@lottiefiles/dotlottie-solid
Advanced tools
Comparing version 0.2.0-beta.3 to 0.2.0-beta.4
@@ -17,2 +17,3 @@ import { Config, DotLottie } from '@lottiefiles/dotlottie-web'; | ||
playOnHover: boolean; | ||
stateMachineId?: string; | ||
themeData?: string; | ||
@@ -19,0 +20,0 @@ themeId?: string; |
@@ -182,2 +182,10 @@ // src/dotlottie.tsx | ||
})); | ||
createEffect(on(() => config.stateMachineId, () => { | ||
const dotLottieInstance = dotLottie(); | ||
if (!dotLottieInstance) return; | ||
if (dotLottieInstance.isLoaded && dotLottieInstance.activeStateMachineId() !== config.stateMachineId) { | ||
dotLottieInstance.stateMachineLoad(config.stateMachineId || ""); | ||
dotLottieInstance.stateMachineStart(); | ||
} | ||
})); | ||
createEffect(on(() => config.themeData, () => { | ||
@@ -205,3 +213,3 @@ const dotLottieInstance = dotLottie(); | ||
var DotLottieSolid = (props) => { | ||
const [dotLottieProps, restProps] = splitProps(props, ["src", "data", "mode", "loop", "speed", "marker", "segment", "themeId", "autoplay", "themeData", "playOnHover", "animationId", "renderConfig", "dotLottieRefCallback", "useFrameInterpolation"]); | ||
const [dotLottieProps, restProps] = splitProps(props, ["src", "data", "mode", "loop", "speed", "marker", "segment", "themeId", "stateMachineId", "autoplay", "themeData", "playOnHover", "animationId", "renderConfig", "dotLottieRefCallback", "useFrameInterpolation"]); | ||
const { | ||
@@ -208,0 +216,0 @@ DotLottieComponent: DotLottieComponent2, |
{ | ||
"name": "@lottiefiles/dotlottie-solid", | ||
"version": "0.2.0-beta.3", | ||
"version": "0.2.0-beta.4", | ||
"type": "module", | ||
@@ -37,3 +37,3 @@ "description": "Solid wrapper around the dotlottie-web library", | ||
"dependencies": { | ||
"@lottiefiles/dotlottie-web": "0.39.0-beta.3" | ||
"@lottiefiles/dotlottie-web": "0.39.0-beta.4" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
38564
255
9
+ Added@lottiefiles/dotlottie-web@0.39.0-beta.4(transitive)
- Removed@lottiefiles/dotlottie-web@0.39.0-beta.3(transitive)