Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LottieFiles/dotlottie-web
/ functions
Functions
921 in github.com/LottieFiles/dotlottie-web
⨍
Functions
921
◇
Types & classes
150
↓ 1 callers
Method
setMode
(mode: Mode)
packages/web/src/worker/dotlottie.ts:608
↓ 1 callers
Method
setRenderConfig
(renderConfig: RenderConfig)
packages/web/src/worker/dotlottie.ts:636
↓ 1 callers
Method
setScalarSlot
* Set a scalar slot value (single number like rotation, opacity) * @param slotId - The slot ID to set * @param value - Static number or array of
packages/web/src/dotlottie.ts:1736
↓ 1 callers
Method
setScalarSlot
(slotId: string, value: ScalarSlotValue)
packages/web/src/worker/dotlottie.ts:854
↓ 1 callers
Method
setSegment
(start: number, end: number)
packages/web/src/worker/dotlottie.ts:622
↓ 1 callers
Method
setSlots
(slots: Record<string, unknown>)
packages/web/src/worker/dotlottie.ts:818
↓ 1 callers
Method
setSpeed
* Changes the animation playback speed in the worker thread. * Awaits worker response before resolving. * @param speed - Playback speed multipli
packages/web/src/worker/dotlottie.ts:601
↓ 1 callers
Method
setTextSlot
(slotId: string, value: TextSlotValue)
packages/web/src/worker/dotlottie.ts:872
↓ 1 callers
Method
setTheme
(themeId: string)
packages/web/src/worker/dotlottie.ts:687
↓ 1 callers
Method
setThemeData
(themeData: string)
packages/web/src/worker/dotlottie.ts:923
↓ 1 callers
Method
setTransform
(transform: Transform)
packages/web/src/worker/dotlottie.ts:945
↓ 1 callers
Method
setUseFrameInterpolation
(useFrameInterpolation: boolean)
packages/web/src/worker/dotlottie.ts:680
↓ 1 callers
Method
setVectorSlot
* Set a vector slot value (2D or 3D point for position, scale, etc.) * Handles both "vector" and "position" slot types * @param slotId - The slo
packages/web/src/dotlottie.ts:1757
↓ 1 callers
Method
setVectorSlot
(slotId: string, value: VectorSlotValue)
packages/web/src/worker/dotlottie.ts:860
↓ 1 callers
Method
setViewport
* Sets a custom viewport region for rendering a portion of the animation. * Defines a rectangular area to render, useful for implementing animation
packages/web/src/dotlottie.ts:1917
↓ 1 callers
Method
setViewport
(x: number, y: number, width: number, height: number)
packages/web/src/worker/dotlottie.ts:933
↓ 1 callers
Function
setWasmUrl
(url: string)
packages/react/src/index.ts:9
↓ 1 callers
Function
setWasmUrl
(url: string)
packages/svelte/src/lib/index.ts:6
↓ 1 callers
Method
setWasmUrl
(url: string)
packages/web/src/worker/dotlottie.ts:993
↓ 1 callers
Method
set_background
* Set background colour. Pass `(0, 0, 0, 0)` to clear. * @param {number} r * @param {number} g * @param {number} b * @param {numbe
packages/web/src/core/dotlottie-player.js:655
↓ 1 callers
Method
set_slots_str
* Set multiple slots at once from a JSON string. * @param {string} json * @returns {boolean}
packages/web/src/core/dotlottie-player.js:539
↓ 1 callers
Method
set_theme
* @param {string} id * @returns {boolean}
packages/web/src/core/dotlottie-player.js:1240
↓ 1 callers
Method
set_theme_data
* @param {string} data * @returns {boolean}
packages/web/src/core/dotlottie-player.js:683
↓ 1 callers
Method
set_transform
* @param {Float32Array} data * @returns {boolean}
packages/web/src/core/dotlottie-player.js:562
↓ 1 callers
Method
set_viewport
* @param {number} x * @param {number} y * @param {number} w * @param {number} h * @returns {boolean}
packages/web/src/core/dotlottie-player.js:462
↓ 1 callers
Method
set_webgpu_device
* Store the WebGPU device. Call before `set_webgpu_surface` and `load_animation`. * @param {GPUDevice} device
packages/web/src/webgpu/dotlottie-player.js:932
↓ 1 callers
Method
set_webgpu_surface
* Store the WebGPU canvas context (surface). Call before `load_animation`. * @param {GPUCanvasContext} surface
packages/web/src/webgpu/dotlottie-player.js:946
↓ 1 callers
Method
setup_gl_target
* Set up (or resize) the OpenGL rendering target. * @param {number} width * @param {number} height * @returns {boolean}
packages/web/src/webgl/dotlottie-player.js:831
↓ 1 callers
Method
setup_sw_target
* Set up (or resize) the software rendering target. * @param {number} width * @param {number} height * @returns {boolean}
packages/web/src/core/dotlottie-player.js:742
↓ 1 callers
Method
setup_wg_target
* Set up (or resize) the WebGPU rendering target. * @param {number} width * @param {number} height * @returns {boolean}
packages/web/src/webgpu/dotlottie-player.js:860
↓ 1 callers
Method
sm_current_state
* Get the name of the current state. * @returns {string}
packages/web/src/core/dotlottie-player.js:769
↓ 1 callers
Method
sm_fire
* Fire a named event into the state machine. * @param {string} event * @returns {boolean}
packages/web/src/core/dotlottie-player.js:1121
↓ 1 callers
Method
sm_framework_setup
* Returns the framework setup listeners as a JS array of strings. * @returns {any}
packages/web/src/core/dotlottie-player.js:833
↓ 1 callers
Method
sm_get_boolean_input
* @param {string} key * @returns {boolean | undefined}
packages/web/src/core/dotlottie-player.js:902
↓ 1 callers
Method
sm_get_inputs
* Returns all state machine inputs as a JS array of strings. * @returns {any}
packages/web/src/core/dotlottie-player.js:572
↓ 1 callers
Method
sm_get_numeric_input
* @param {string} key * @returns {number | undefined}
packages/web/src/core/dotlottie-player.js:912
↓ 1 callers
Method
sm_get_string_input
* @param {string} key * @returns {string | undefined}
packages/web/src/core/dotlottie-player.js:874
↓ 1 callers
Method
sm_override_current_state
* Override the current state. * @param {string} state * @param {boolean} immediate * @returns {boolean}
packages/web/src/core/dotlottie-player.js:1012
↓ 1 callers
Method
sm_poll_event
* Poll the next state machine event. Returns `null` if the queue is empty, * otherwise a JS object with a `type` field and optional payload.
packages/web/src/core/dotlottie-player.js:581
↓ 1 callers
Method
sm_poll_internal_event
* Poll the next state machine internal event. Returns `null` if the * queue is empty, otherwise a JS object `{ type: "Message", message }`.
packages/web/src/core/dotlottie-player.js:992
↓ 1 callers
Method
sm_post_click
* @param {number} x * @param {number} y
packages/web/src/core/dotlottie-player.js:589
↓ 1 callers
Method
sm_post_pointer_down
* @param {number} x * @param {number} y
packages/web/src/core/dotlottie-player.js:922
↓ 1 callers
Method
sm_post_pointer_enter
* @param {number} x * @param {number} y
packages/web/src/core/dotlottie-player.js:971
↓ 1 callers
Method
sm_post_pointer_exit
* @param {number} x * @param {number} y
packages/web/src/core/dotlottie-player.js:929
↓ 1 callers
Method
sm_post_pointer_move
* @param {number} x * @param {number} y
packages/web/src/core/dotlottie-player.js:936
↓ 1 callers
Method
sm_post_pointer_up
* @param {number} x * @param {number} y
packages/web/src/core/dotlottie-player.js:841
↓ 1 callers
Method
sm_set_boolean_input
* @param {string} key * @param {boolean} value * @returns {boolean}
packages/web/src/core/dotlottie-player.js:944
↓ 1 callers
Method
sm_set_numeric_input
* @param {string} key * @param {number} value * @returns {boolean}
packages/web/src/core/dotlottie-player.js:955
↓ 1 callers
Method
sm_set_string_input
* @param {string} key * @param {string} value * @returns {boolean}
packages/web/src/core/dotlottie-player.js:890
↓ 1 callers
Method
sm_start
* Start the state machine with an open-URL policy. * @param {boolean} require_user_interaction * @param {any[]} whitelist * @returns {b
packages/web/src/core/dotlottie-player.js:1177
↓ 1 callers
Method
sm_status
* Get the current status of the state machine as a string. * @returns {string}
packages/web/src/core/dotlottie-player.js:1250
↓ 1 callers
Method
sm_stop
* Stop the state machine. * @returns {boolean}
packages/web/src/core/dotlottie-player.js:1131
↓ 1 callers
Method
sm_tick
* Advance the state machine by `dt` milliseconds and render if the frame changed. * Returns `true` when a new frame was rendered, `false` otherwi
packages/web/src/core/dotlottie-player.js:1141
↓ 1 callers
Method
stateMachineFireEvent
* @experimental * Fire an event in the state machine * @param name - The name of the event to fire
packages/web/src/worker/dotlottie.ts:1193
↓ 1 callers
Method
stateMachineGet
* @experimental * Get a specific state machine by ID * @param stateMachineId - The ID of the state machine to get * @returns The state machin
packages/web/src/worker/dotlottie.ts:1251
↓ 1 callers
Method
stateMachineGetActiveId
* @experimental * Get the active state machine ID * @returns The active state machine ID as a string
packages/web/src/worker/dotlottie.ts:1226
↓ 1 callers
Method
stateMachineGetBooleanInput
* @experimental * Get a boolean input value from the state machine * @param name - The name of the boolean input * @returns The boolean value
packages/web/src/worker/dotlottie.ts:1159
↓ 1 callers
Method
stateMachineGetCurrentState
* @experimental * Get the current state of the state machine * @returns The current state of the state machine as a string
packages/web/src/worker/dotlottie.ts:1215
↓ 1 callers
Method
stateMachineGetInputs
* @experimental * Get all the inputs of the current state machine. * @returns An array of input keys followed by its type at n+1.
packages/web/src/dotlottie.ts:2203
↓ 1 callers
Method
stateMachineGetInputs
* @experimental * Get all inputs * @returns All input keys, followed by their type
packages/web/src/worker/dotlottie.ts:1182
↓ 1 callers
Method
stateMachineGetListeners
* @experimental * Get the list of state machine listeners * @returns Array of listener names
packages/web/src/dotlottie.ts:2126
↓ 1 callers
Method
stateMachineGetListeners
* @experimental * Get the list of state machine listeners * @returns Array of listener names
packages/web/src/worker/dotlottie.ts:1262
↓ 1 callers
Method
stateMachineGetNumericInput
* @experimental * Get a numeric input value from the state machine * @param name - The name of the numeric input * @returns The numeric value
packages/web/src/worker/dotlottie.ts:1147
↓ 1 callers
Method
stateMachineGetStatus
* @experimental * Get the current status of the state machine * @returns The current status of the state machine as a string
packages/web/src/worker/dotlottie.ts:1204
↓ 1 callers
Method
stateMachineGetStringInput
* @experimental * Get a string input value from the state machine * @param name - The name of the string input * @returns The string value or
packages/web/src/worker/dotlottie.ts:1171
↓ 1 callers
Method
stateMachineLoad
* @experimental * Load a state machine by ID * @param stateMachineId - The ID of the state machine to load * @returns true if the state machi
packages/web/src/worker/dotlottie.ts:1034
↓ 1 callers
Method
stateMachineLoadData
* @experimental * Load a state machine from data string * @param stateMachineData - The state machine data as a string * @returns true if the
packages/web/src/dotlottie.ts:2009
↓ 1 callers
Method
stateMachineLoadData
* @experimental * Load a state machine from data string * @param stateMachineData - The state machine data as a string * @returns true if the
packages/web/src/worker/dotlottie.ts:1050
↓ 1 callers
Method
stateMachineOverrideState
* @experimental * Override the current state of the state machine * @param state - The state to override to * @param immediate - Whether to i
packages/web/src/worker/dotlottie.ts:1239
↓ 1 callers
Method
stateMachinePostClickEvent
* @experimental * Post a click event to the state machine * @param x - The x coordinate of the click * @param y - The y coordinate of the cli
packages/web/src/dotlottie.ts:2230
↓ 1 callers
Method
stateMachinePostClickEvent
* @experimental * Post a click event to the state machine * @param x - The x coordinate of the click * @param y - The y coordinate of the cli
packages/web/src/worker/dotlottie.ts:1275
↓ 1 callers
Method
stateMachinePostPointerDownEvent
* @experimental * Post a pointer down event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate o
packages/web/src/dotlottie.ts:2250
↓ 1 callers
Method
stateMachinePostPointerDownEvent
* @experimental * Post a pointer down event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate o
packages/web/src/worker/dotlottie.ts:1301
↓ 1 callers
Method
stateMachinePostPointerEnterEvent
* @experimental * Post a pointer enter event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate
packages/web/src/dotlottie.ts:2270
↓ 1 callers
Method
stateMachinePostPointerEnterEvent
* @experimental * Post a pointer enter event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate
packages/web/src/worker/dotlottie.ts:1327
↓ 1 callers
Method
stateMachinePostPointerExitEvent
* @experimental * Post a pointer exit event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate o
packages/web/src/dotlottie.ts:2280
↓ 1 callers
Method
stateMachinePostPointerExitEvent
* @experimental * Post a pointer exit event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate o
packages/web/src/worker/dotlottie.ts:1340
↓ 1 callers
Method
stateMachinePostPointerMoveEvent
* @experimental * Post a pointer move event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate o
packages/web/src/dotlottie.ts:2260
↓ 1 callers
Method
stateMachinePostPointerMoveEvent
* @experimental * Post a pointer move event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate o
packages/web/src/worker/dotlottie.ts:1314
↓ 1 callers
Method
stateMachinePostPointerUpEvent
* @experimental * Post a pointer up event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate of
packages/web/src/dotlottie.ts:2240
↓ 1 callers
Method
stateMachinePostPointerUpEvent
* @experimental * Post a pointer up event to the state machine * @param x - The x coordinate of the pointer * @param y - The y coordinate of
packages/web/src/worker/dotlottie.ts:1288
↓ 1 callers
Method
stateMachineSetBooleanInput
* @experimental * Set a boolean input value for the state machine * @param name - The name of the boolean input * @param value - The boolean
packages/web/src/worker/dotlottie.ts:1111
↓ 1 callers
Method
stateMachineSetConfig
* @experimental * Set the state machine config * @param config - The state machine config
packages/web/src/worker/dotlottie.ts:1122
↓ 1 callers
Method
stateMachineSetNumericInput
* @experimental * Set a numeric input value for the state machine * @param name - The name of the numeric input * @param value - The numeric
packages/web/src/worker/dotlottie.ts:1098
↓ 1 callers
Method
stateMachineSetStringInput
* @experimental * Set a string input value for the state machine * @param name - The name of the string input * @param value - The string val
packages/web/src/worker/dotlottie.ts:1135
↓ 1 callers
Method
stateMachineStart
* @experimental * Start the state machine * @returns true if the state machine was started successfully
packages/web/src/worker/dotlottie.ts:1065
↓ 1 callers
Method
stateMachineStop
* @experimental * Stop the state machine * @returns true if the state machine was stopped successfully
packages/web/src/worker/dotlottie.ts:1083
↓ 1 callers
Method
state_machine_id
* Returns the ID of the currently active state machine, or `undefined`. * @returns {string | undefined}
packages/web/src/core/dotlottie-player.js:785
↓ 1 callers
Method
state_machine_load
* Load a state machine from a JSON definition string. Returns `true` on * success. The engine is kept alive inside the player and interacted
packages/web/src/core/dotlottie-player.js:851
↓ 1 callers
Method
state_machine_load_from_id
* Load a state machine from a .lottie archive by state-machine ID. * @param {string} id * @returns {boolean}
packages/web/src/core/dotlottie-player.js:1023
↓ 1 callers
Method
stop
* Stops animation playback and resets to start frame in the worker thread. * Awaits worker response before resolving. Updates isStopped state to tr
packages/web/src/worker/dotlottie.ts:588
↓ 1 callers
Method
theme_id
* @returns {string | undefined}
packages/web/src/core/dotlottie-player.js:1186
↓ 1 callers
Method
tick
* Advance the animation by `dt` milliseconds and render if the frame changed. * Call once per `requestAnimationFrame`, passing the frame delta in
packages/web/src/core/dotlottie-player.js:1068
↓ 1 callers
Method
total_frames
* @returns {number}
packages/web/src/core/dotlottie-player.js:469
↓ 1 callers
Method
unassignAnimationFromWorker
(animationId: string)
packages/web/src/worker/worker-manager.ts:34
↓ 1 callers
Method
unregisterEventHandler
(instanceId: string)
packages/web/src/worker/worker-manager.ts:62
↓ 1 callers
Method
unregisterRpcReplyHandler
(requestId: string)
packages/web/src/worker/worker-manager.ts:70
↓ 1 callers
Function
useDotLottie
(config: DotLottieConfig)
packages/solid/src/use-dotlottie.tsx:55
↓ 1 callers
Function
useDotLottiePool
()
apps/viewer/src/hooks/useDotLottiePool.ts:9
↓ 1 callers
Function
useIsDesktop
()
apps/viewer/src/pages/playground.tsx:93
← previous
next →
301–400 of 921, ranked by callers