Home / File/ private.d.ts — svelte Source File

private.d.ts — svelte Source File

Architecture documentation for private.d.ts, a typescript file in the svelte codebase.

Entity Profile

Relationship Graph

Source Code

export interface TickContext {
	inv_mass: number;
	dt: number;
	opts: {
		stiffness: number;
		damping: number;
		precision: number;
	};
	settled: boolean;
}

export interface SpringOpts {
	stiffness?: number;
	damping?: number;
	precision?: number;
}

export interface SpringUpdateOpts {
	/**
	 * @deprecated Only use this for the spring store; does nothing when set on the Spring class
	 */
	hard?: any;
	/**
	 * @deprecated Only use this for the spring store; does nothing when set on the Spring class
	 */
	soft?: string | number | boolean;
	/**
	 * Only use this for the Spring class; does nothing when set on the spring store
	 */
	instant?: boolean;
	/**
	 * Only use this for the Spring class; does nothing when set on the spring store
	 */
	preserveMomentum?: number;
}

export type Updater<T> = (target_value: T, value: T) => T;

export interface TweenedOptions<T> {
	delay?: number;
	duration?: number | ((from: T, to: T) => number);
	easing?: (t: number) => number;
	interpolate?: (a: T, b: T) => (t: number) => T;
}

Subdomains

Functions

Frequently Asked Questions

What does private.d.ts do?
private.d.ts is a source file in the svelte codebase, written in typescript. It belongs to the SharedInternal domain, DOMUtils subdomain.
What functions are defined in private.d.ts?
private.d.ts defines 4 function(s): T, a, from, t.
Where is private.d.ts in the architecture?
private.d.ts is located at packages/svelte/src/motion/private.d.ts (domain: SharedInternal, subdomain: DOMUtils, directory: packages/svelte/src/motion).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free