of() — svelte Function Reference
Architecture documentation for the of() function in spring.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 7fa90859_da7c_1cac_019f_b98ccaa8f43f["of()"] 9dd00a1e_af31_d3bc_bd26_41f120a8c8f9["Spring"] 7fa90859_da7c_1cac_019f_b98ccaa8f43f -->|defined in| 9dd00a1e_af31_d3bc_bd26_41f120a8c8f9 7494b934_a3b8_689e_91b6_8435e26461c5["render_effect()"] 7fa90859_da7c_1cac_019f_b98ccaa8f43f -->|calls| 7494b934_a3b8_689e_91b6_8435e26461c5 a360a3a5_5250_4fe5_418b_2dcc66c19942["set()"] 7fa90859_da7c_1cac_019f_b98ccaa8f43f -->|calls| a360a3a5_5250_4fe5_418b_2dcc66c19942 style 7fa90859_da7c_1cac_019f_b98ccaa8f43f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/motion/spring.js lines 230–238
static of(fn, options) {
const spring = new Spring(fn(), options);
render_effect(() => {
spring.set(fn());
});
return spring;
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does of() do?
of() is a function in the svelte codebase, defined in packages/svelte/src/motion/spring.js.
Where is of() defined?
of() is defined in packages/svelte/src/motion/spring.js at line 230.
What does of() call?
of() calls 2 function(s): render_effect, set.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free