MCPcopy
hub / github.com/Popmotion/popmotion / Styler

Interface Styler

packages/stylefire/src/styler/types.ts:21–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 * @public
20 */
21export interface Styler {
22 /**
23 * Get the latest value of a given key.
24 *
25 * @param key - The name of the property to read.
26 * @param forceRead - If `true`, will force a potentially expensive read. Defaults to `false`.
27 */
28 get: (key: string, forceRead?: boolean) => any;
29
30 /**
31 * Set a value or many values.
32 *
33 * This will trigger the scheduling of a render on the next available frame.
34 *
35 * @param key/state - Either the name of the prop to set, or an object map of values.
36 * @param value - If `key` is a string, the value to set to that string.
37 */
38 set: (key: string | State, value?: any) => Styler;
39
40 /**
41 * Will immediately trigger render if any values have changed.
42 *
43 * Useful for synchronous write/measure operations.
44 *
45 * @param forceRender - If `true`, will force a render even if no values have changed.
46 */
47 render: (forceRender?: boolean) => Styler;
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…