@vnejs/plugins.canvas.props.animation 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/dist/modules/animation.d.ts +17 -0
- package/dist/modules/animation.js +63 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.js +1 -0
- package/dist/utils/animation.d.ts +29 -0
- package/dist/utils/animation.js +1 -0
- package/package.json +44 -0
- package/src/index.ts +8 -0
- package/src/modules/animation.ts +108 -0
- package/src/types.ts +13 -0
- package/src/utils/animation.ts +33 -0
- package/tsconfig.json +9 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@vnejs/contracts.canvas.props.animation";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "@vnejs/contracts.canvas.props.animation";
|
|
2
|
+
import { regPlugin } from "@vnejs/shared";
|
|
3
|
+
import { CONSTANTS, PARAMS, PLUGIN_NAME, SETTINGS_KEYS, SUBSCRIBE_EVENTS } from "@vnejs/contracts.canvas.props.animation";
|
|
4
|
+
import { LayerAnimation } from "./modules/animation.js";
|
|
5
|
+
regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS, settings: SETTINGS_KEYS }, [LayerAnimation]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModuleCore, type ModuleGlobalStateRegistry, type SettingsChangedResult } from "@vnejs/module.core";
|
|
2
|
+
import type { AnimationPluginConstants, AnimationPluginEvents, AnimationPluginParams, AnimationPluginSettings } from "../types.js";
|
|
3
|
+
import type { AnimationSetPayload, AnimationState, AnimationUnsetPayload } from "../utils/animation.js";
|
|
4
|
+
export declare class LayerAnimation extends ModuleCore<AnimationPluginEvents, AnimationPluginConstants, AnimationPluginSettings, AnimationPluginParams, AnimationState> {
|
|
5
|
+
name: string;
|
|
6
|
+
subscribe: () => void;
|
|
7
|
+
init: () => Promise<unknown[]> | undefined;
|
|
8
|
+
isDangerousEnabled: () => boolean;
|
|
9
|
+
shouldApplyToView: (isDangerous: boolean) => boolean;
|
|
10
|
+
onAnimationSet: ({ layer, name, value, duration, transformOriginX, transformOriginY, isDangerous, args, }?: AnimationSetPayload) => Promise<unknown[] | undefined>;
|
|
11
|
+
onAnimationUnset: ({ layer, duration }?: AnimationUnsetPayload) => Promise<unknown[] | undefined>;
|
|
12
|
+
onStateSet: (payload: ModuleGlobalStateRegistry) => Promise<void>;
|
|
13
|
+
onStateClear: () => Promise<(unknown[] | undefined)[]>;
|
|
14
|
+
onSettingsChanged: ({ name, value }: SettingsChangedResult) => false | Promise<(unknown[] | undefined)[]>;
|
|
15
|
+
emitLayerPropsUpdate: (layer: string, animation: string, transformOriginX: string, transformOriginY: string, duration: number) => Promise<unknown[]> | undefined;
|
|
16
|
+
getDefaultState: () => AnimationState;
|
|
17
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createPromiseResolve } from "@vnejs/helpers";
|
|
2
|
+
import { ModuleCore } from "@vnejs/module.core";
|
|
3
|
+
export class LayerAnimation extends ModuleCore {
|
|
4
|
+
name = "layer.animation";
|
|
5
|
+
subscribe = () => {
|
|
6
|
+
this.on(this.EVENTS.LAYER_ANIMATION.SET, this.onAnimationSet);
|
|
7
|
+
this.on(this.EVENTS.LAYER_ANIMATION.UNSET, this.onAnimationUnset);
|
|
8
|
+
this.on(this.EVENTS.STATE.SET, this.onStateSet);
|
|
9
|
+
this.on(this.EVENTS.STATE.CLEAR, this.onStateClear);
|
|
10
|
+
this.on(this.EVENTS.SETTINGS.CHANGED, this.onSettingsChanged);
|
|
11
|
+
};
|
|
12
|
+
init = () => this.emit(this.EVENTS.SETTINGS.INIT, {
|
|
13
|
+
name: this.SETTINGS.LAYER_ANIMATION.DANGEROUS_ENABLED,
|
|
14
|
+
value: this.PARAMS.LAYER_ANIMATION.DEFAULT_DANGEROUS_ENABLED,
|
|
15
|
+
});
|
|
16
|
+
isDangerousEnabled = () => Boolean(this.shared.settings[this.SETTINGS.LAYER_ANIMATION.DANGEROUS_ENABLED]);
|
|
17
|
+
shouldApplyToView = (isDangerous) => !isDangerous || this.isDangerousEnabled();
|
|
18
|
+
onAnimationSet = async ({ layer = "", name = "", value = "", duration = 0, transformOriginX = "center", transformOriginY = "center", isDangerous = false, args = [], } = {}) => {
|
|
19
|
+
const animationFn = this.PARAMS.LAYER_ANIMATION.ANIMATIONS[name];
|
|
20
|
+
const animation = value || (animationFn ? animationFn(...args) : "");
|
|
21
|
+
this.state[layer] = { animation, transformOriginX, transformOriginY, isDangerous };
|
|
22
|
+
if (this.shouldApplyToView(isDangerous))
|
|
23
|
+
return this.emitLayerPropsUpdate(layer, animation, transformOriginX, transformOriginY, duration);
|
|
24
|
+
};
|
|
25
|
+
onAnimationUnset = async ({ layer = "", duration = 0 } = {}) => {
|
|
26
|
+
delete this.state[layer];
|
|
27
|
+
return this.emitLayerPropsUpdate(layer, "", "", "", duration);
|
|
28
|
+
};
|
|
29
|
+
onStateSet = async (payload) => {
|
|
30
|
+
const layerState = this.getStateSlice(payload) ?? {};
|
|
31
|
+
await Promise.all(Object.keys(this.state).map((layer) => this.emit(this.EVENTS.LAYER_ANIMATION.UNSET, { layer, duration: 0 })));
|
|
32
|
+
await Promise.all(Object.keys(layerState).map((layer) => {
|
|
33
|
+
const { animation = "", transformOriginX = "center", transformOriginY = "center", isDangerous = false } = layerState[layer] ?? {};
|
|
34
|
+
return this.emit(this.EVENTS.LAYER_ANIMATION.SET, {
|
|
35
|
+
layer,
|
|
36
|
+
value: animation,
|
|
37
|
+
transformOriginX,
|
|
38
|
+
transformOriginY,
|
|
39
|
+
isDangerous,
|
|
40
|
+
duration: 0,
|
|
41
|
+
});
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
onStateClear = () => Promise.all(Object.keys(this.state).map((layer) => this.emit(this.EVENTS.LAYER_ANIMATION.UNSET, { layer, duration: 0 })));
|
|
45
|
+
onSettingsChanged = ({ name, value }) => name === this.SETTINGS.LAYER_ANIMATION.DANGEROUS_ENABLED &&
|
|
46
|
+
Promise.all(Object.entries(this.state)
|
|
47
|
+
.filter(([layer, layerState]) => layerState.isDangerous)
|
|
48
|
+
.map(([layer, layerState]) => Boolean(value)
|
|
49
|
+
? this.emitLayerPropsUpdate(layer, layerState.animation, layerState.transformOriginX, layerState.transformOriginY, 0)
|
|
50
|
+
: this.emitLayerPropsUpdate(layer, "", "", "", 0)));
|
|
51
|
+
emitLayerPropsUpdate = (layer, animation, transformOriginX, transformOriginY, duration) => {
|
|
52
|
+
const props = { animation, transformOriginX, transformOriginY };
|
|
53
|
+
if (!duration || this.shared.viewForceAnimationSources.isNotEmpty())
|
|
54
|
+
return this.emit(this.EVENTS.LAYER.PROPS_UPDATE, { layer, props, duration: 0 });
|
|
55
|
+
const { resolve: skipResolve, promise: skipPromise } = createPromiseResolve();
|
|
56
|
+
return this.emitInteractPushPop({
|
|
57
|
+
key: `${this.name}_${layer}`,
|
|
58
|
+
skipHandler: () => void this.emit(this.EVENTS.LAYER.UPDATE_FORCE, { layer })?.then(skipResolve),
|
|
59
|
+
handler: () => Promise.race([this.emit(this.EVENTS.LAYER.PROPS_UPDATE, { layer, props, duration }), skipPromise]),
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
getDefaultState = () => ({});
|
|
63
|
+
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
2
|
+
import type { Constants, Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/contracts.canvas.props.animation";
|
|
3
|
+
import type { PluginName as LayerPluginName, SubscribeEvents as LayerSubscribeEvents } from "@vnejs/contracts.canvas.layer";
|
|
4
|
+
export type AnimationPluginEvents = ModuleCoreEvents & Record<PluginName, SubscribeEvents> & Record<LayerPluginName, LayerSubscribeEvents>;
|
|
5
|
+
export type AnimationPluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
|
|
6
|
+
export type AnimationPluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
|
7
|
+
export type AnimationPluginParams = ModuleCoreParams & Record<PluginName, Params>;
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type AnimationLayerState = {
|
|
2
|
+
animation: string;
|
|
3
|
+
transformOriginX: string;
|
|
4
|
+
transformOriginY: string;
|
|
5
|
+
isDangerous: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type AnimationState = Record<string, AnimationLayerState>;
|
|
8
|
+
export type AnimationSetPayload = {
|
|
9
|
+
layer?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
duration?: number;
|
|
13
|
+
transformOriginX?: string;
|
|
14
|
+
transformOriginY?: string;
|
|
15
|
+
isDangerous?: boolean;
|
|
16
|
+
args?: unknown[];
|
|
17
|
+
};
|
|
18
|
+
export type AnimationUnsetPayload = {
|
|
19
|
+
layer?: string;
|
|
20
|
+
duration?: number;
|
|
21
|
+
};
|
|
22
|
+
export type AnimationStateSetPayload = {
|
|
23
|
+
layer?: string;
|
|
24
|
+
value?: string;
|
|
25
|
+
transformOriginX?: string;
|
|
26
|
+
transformOriginY?: string;
|
|
27
|
+
isDangerous?: boolean;
|
|
28
|
+
duration?: number;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnejs/plugins.canvas.props.animation",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src",
|
|
18
|
+
"tsconfig.json"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
22
|
+
"build": "npx @vnejs/monorepo package",
|
|
23
|
+
"publish:major:plugin": "npm run publish:major",
|
|
24
|
+
"publish:minor:plugin": "npm run publish:minor",
|
|
25
|
+
"publish:patch:plugin": "npm run publish:patch",
|
|
26
|
+
"publish:major": "npx @vnejs/monorepo publish major --access public",
|
|
27
|
+
"publish:minor": "npx @vnejs/monorepo publish minor --access public",
|
|
28
|
+
"publish:patch": "npx @vnejs/monorepo publish patch --access public"
|
|
29
|
+
},
|
|
30
|
+
"author": "",
|
|
31
|
+
"license": "ISC",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@vnejs/contracts.canvas.props.animation": "~0.1.0"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@vnejs/helpers": "~0.1.0",
|
|
37
|
+
"@vnejs/module.core": "~0.1.0",
|
|
38
|
+
"@vnejs/contracts.canvas.layer": "~0.1.0",
|
|
39
|
+
"@vnejs/shared": "~0.1.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@vnejs/configs.ts-common": "~0.1.0"
|
|
43
|
+
}
|
|
44
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "@vnejs/contracts.canvas.props.animation";
|
|
2
|
+
|
|
3
|
+
import { regPlugin } from "@vnejs/shared";
|
|
4
|
+
import { CONSTANTS, PARAMS, PLUGIN_NAME, SETTINGS_KEYS, SUBSCRIBE_EVENTS } from "@vnejs/contracts.canvas.props.animation";
|
|
5
|
+
|
|
6
|
+
import { LayerAnimation } from "./modules/animation.js";
|
|
7
|
+
|
|
8
|
+
regPlugin(PLUGIN_NAME, { constants: CONSTANTS, events: SUBSCRIBE_EVENTS, params: PARAMS, settings: SETTINGS_KEYS }, [LayerAnimation]);
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { createPromiseResolve } from "@vnejs/helpers";
|
|
2
|
+
import { ModuleCore, type ModuleGlobalStateRegistry, type SettingsChangedResult } from "@vnejs/module.core";
|
|
3
|
+
|
|
4
|
+
import type { AnimationPluginConstants, AnimationPluginEvents, AnimationPluginParams, AnimationPluginSettings } from "../types.js";
|
|
5
|
+
import type { AnimationSetPayload, AnimationState, AnimationStateSetPayload, AnimationUnsetPayload } from "../utils/animation.js";
|
|
6
|
+
|
|
7
|
+
export class LayerAnimation extends ModuleCore<
|
|
8
|
+
AnimationPluginEvents,
|
|
9
|
+
AnimationPluginConstants,
|
|
10
|
+
AnimationPluginSettings,
|
|
11
|
+
AnimationPluginParams,
|
|
12
|
+
AnimationState
|
|
13
|
+
> {
|
|
14
|
+
name = "layer.animation";
|
|
15
|
+
|
|
16
|
+
subscribe = () => {
|
|
17
|
+
this.on(this.EVENTS.LAYER_ANIMATION.SET, this.onAnimationSet);
|
|
18
|
+
this.on(this.EVENTS.LAYER_ANIMATION.UNSET, this.onAnimationUnset);
|
|
19
|
+
|
|
20
|
+
this.on(this.EVENTS.STATE.SET, this.onStateSet);
|
|
21
|
+
this.on(this.EVENTS.STATE.CLEAR, this.onStateClear);
|
|
22
|
+
this.on(this.EVENTS.SETTINGS.CHANGED, this.onSettingsChanged);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
init = () =>
|
|
26
|
+
this.emit(this.EVENTS.SETTINGS.INIT, {
|
|
27
|
+
name: this.SETTINGS.LAYER_ANIMATION.DANGEROUS_ENABLED,
|
|
28
|
+
value: this.PARAMS.LAYER_ANIMATION.DEFAULT_DANGEROUS_ENABLED,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
isDangerousEnabled = () => Boolean(this.shared.settings[this.SETTINGS.LAYER_ANIMATION.DANGEROUS_ENABLED]);
|
|
32
|
+
|
|
33
|
+
shouldApplyToView = (isDangerous: boolean) => !isDangerous || this.isDangerousEnabled();
|
|
34
|
+
|
|
35
|
+
onAnimationSet = async ({
|
|
36
|
+
layer = "",
|
|
37
|
+
name = "",
|
|
38
|
+
value = "",
|
|
39
|
+
duration = 0,
|
|
40
|
+
transformOriginX = "center",
|
|
41
|
+
transformOriginY = "center",
|
|
42
|
+
isDangerous = false,
|
|
43
|
+
args = [],
|
|
44
|
+
}: AnimationSetPayload = {}) => {
|
|
45
|
+
const animationFn = this.PARAMS.LAYER_ANIMATION.ANIMATIONS[name as keyof typeof this.PARAMS.LAYER_ANIMATION.ANIMATIONS];
|
|
46
|
+
const animation = value || (animationFn ? (animationFn as (...animationArgs: unknown[]) => string)(...args) : "");
|
|
47
|
+
|
|
48
|
+
this.state[layer] = { animation, transformOriginX, transformOriginY, isDangerous };
|
|
49
|
+
|
|
50
|
+
if (this.shouldApplyToView(isDangerous)) return this.emitLayerPropsUpdate(layer, animation, transformOriginX, transformOriginY, duration);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
onAnimationUnset = async ({ layer = "", duration = 0 }: AnimationUnsetPayload = {}) => {
|
|
54
|
+
delete this.state[layer];
|
|
55
|
+
|
|
56
|
+
return this.emitLayerPropsUpdate(layer, "", "", "", duration);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
onStateSet = async (payload: ModuleGlobalStateRegistry) => {
|
|
60
|
+
const layerState = this.getStateSlice(payload) ?? ({} as AnimationState);
|
|
61
|
+
|
|
62
|
+
await Promise.all(Object.keys(this.state).map((layer) => this.emit(this.EVENTS.LAYER_ANIMATION.UNSET, { layer, duration: 0 })));
|
|
63
|
+
await Promise.all(
|
|
64
|
+
Object.keys(layerState).map((layer) => {
|
|
65
|
+
const { animation = "", transformOriginX = "center", transformOriginY = "center", isDangerous = false } = layerState[layer] ?? {};
|
|
66
|
+
|
|
67
|
+
return this.emit(this.EVENTS.LAYER_ANIMATION.SET, {
|
|
68
|
+
layer,
|
|
69
|
+
value: animation,
|
|
70
|
+
transformOriginX,
|
|
71
|
+
transformOriginY,
|
|
72
|
+
isDangerous,
|
|
73
|
+
duration: 0,
|
|
74
|
+
} satisfies AnimationStateSetPayload);
|
|
75
|
+
}),
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
onStateClear = () => Promise.all(Object.keys(this.state).map((layer) => this.emit(this.EVENTS.LAYER_ANIMATION.UNSET, { layer, duration: 0 })));
|
|
80
|
+
|
|
81
|
+
onSettingsChanged = ({ name, value }: SettingsChangedResult) =>
|
|
82
|
+
name === this.SETTINGS.LAYER_ANIMATION.DANGEROUS_ENABLED &&
|
|
83
|
+
Promise.all(
|
|
84
|
+
Object.entries(this.state)
|
|
85
|
+
.filter(([layer, layerState]) => layerState.isDangerous)
|
|
86
|
+
.map(([layer, layerState]) =>
|
|
87
|
+
Boolean(value)
|
|
88
|
+
? this.emitLayerPropsUpdate(layer, layerState.animation, layerState.transformOriginX, layerState.transformOriginY, 0)
|
|
89
|
+
: this.emitLayerPropsUpdate(layer, "", "", "", 0),
|
|
90
|
+
),
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
emitLayerPropsUpdate = (layer: string, animation: string, transformOriginX: string, transformOriginY: string, duration: number) => {
|
|
94
|
+
const props = { animation, transformOriginX, transformOriginY };
|
|
95
|
+
|
|
96
|
+
if (!duration || this.shared.viewForceAnimationSources.isNotEmpty()) return this.emit(this.EVENTS.LAYER.PROPS_UPDATE, { layer, props, duration: 0 });
|
|
97
|
+
|
|
98
|
+
const { resolve: skipResolve, promise: skipPromise } = createPromiseResolve();
|
|
99
|
+
|
|
100
|
+
return this.emitInteractPushPop({
|
|
101
|
+
key: `${this.name}_${layer}`,
|
|
102
|
+
skipHandler: () => void this.emit(this.EVENTS.LAYER.UPDATE_FORCE, { layer })?.then(skipResolve),
|
|
103
|
+
handler: () => Promise.race([this.emit(this.EVENTS.LAYER.PROPS_UPDATE, { layer, props, duration }), skipPromise]),
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
getDefaultState = (): AnimationState => ({});
|
|
108
|
+
}
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ModuleCoreConstants, ModuleCoreEvents, ModuleCoreParams, ModuleCoreSettings } from "@vnejs/module.core";
|
|
2
|
+
import type { Constants, Params, PluginName, SettingsKeys, SubscribeEvents } from "@vnejs/contracts.canvas.props.animation";
|
|
3
|
+
import type { PluginName as LayerPluginName, SubscribeEvents as LayerSubscribeEvents } from "@vnejs/contracts.canvas.layer";
|
|
4
|
+
|
|
5
|
+
export type AnimationPluginEvents = ModuleCoreEvents &
|
|
6
|
+
Record<PluginName, SubscribeEvents> &
|
|
7
|
+
Record<LayerPluginName, LayerSubscribeEvents>;
|
|
8
|
+
|
|
9
|
+
export type AnimationPluginConstants = ModuleCoreConstants & Record<PluginName, Constants>;
|
|
10
|
+
|
|
11
|
+
export type AnimationPluginSettings = ModuleCoreSettings & Record<PluginName, SettingsKeys>;
|
|
12
|
+
|
|
13
|
+
export type AnimationPluginParams = ModuleCoreParams & Record<PluginName, Params>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type AnimationLayerState = {
|
|
2
|
+
animation: string;
|
|
3
|
+
transformOriginX: string;
|
|
4
|
+
transformOriginY: string;
|
|
5
|
+
isDangerous: boolean;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type AnimationState = Record<string, AnimationLayerState>;
|
|
9
|
+
|
|
10
|
+
export type AnimationSetPayload = {
|
|
11
|
+
layer?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
duration?: number;
|
|
15
|
+
transformOriginX?: string;
|
|
16
|
+
transformOriginY?: string;
|
|
17
|
+
isDangerous?: boolean;
|
|
18
|
+
args?: unknown[];
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type AnimationUnsetPayload = {
|
|
22
|
+
layer?: string;
|
|
23
|
+
duration?: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type AnimationStateSetPayload = {
|
|
27
|
+
layer?: string;
|
|
28
|
+
value?: string;
|
|
29
|
+
transformOriginX?: string;
|
|
30
|
+
transformOriginY?: string;
|
|
31
|
+
isDangerous?: boolean;
|
|
32
|
+
duration?: number;
|
|
33
|
+
};
|