constructor() — svelte Function Reference
Architecture documentation for the constructor() function in tweened.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e03e4ed7_8b9e_8112_4a8b_da9c61bbf402["constructor()"] 97ee19d7_08c4_87a4_93c0_06e41fb303a5["Tween"] e03e4ed7_8b9e_8112_4a8b_da9c61bbf402 -->|defined in| 97ee19d7_08c4_87a4_93c0_06e41fb303a5 39208392_58c1_7201_b748_aa74d97cadb9["state()"] e03e4ed7_8b9e_8112_4a8b_da9c61bbf402 -->|calls| 39208392_58c1_7201_b748_aa74d97cadb9 4dfcf957_8573_ff55_bd31_4181227109e3["tag()"] e03e4ed7_8b9e_8112_4a8b_da9c61bbf402 -->|calls| 4dfcf957_8573_ff55_bd31_4181227109e3 style e03e4ed7_8b9e_8112_4a8b_da9c61bbf402 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/motion/tweened.js lines 193–202
constructor(value, options = {}) {
this.#current = state(value);
this.#target = state(value);
this.#defaults = options;
if (DEV) {
tag(this.#current, 'Tween.current');
tag(this.#target, 'Tween.target');
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the svelte codebase, defined in packages/svelte/src/motion/tweened.js.
Where is constructor() defined?
constructor() is defined in packages/svelte/src/motion/tweened.js at line 193.
What does constructor() call?
constructor() calls 2 function(s): state, tag.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free