exodeui 2.6.37 → 6.0.5
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/__tests__/frame_parity.test.d.ts +1 -0
- package/dist/easing.d.ts +96 -0
- package/dist/engine.d.ts +5 -0
- package/dist/index.js +7 -7
- package/dist/index.mjs +3360 -2991
- package/dist/layout.d.ts +19 -0
- package/dist/types.d.ts +135 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/easing.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Easing Functions Library
|
|
3
|
+
* Based on Robert Penner's easing equations
|
|
4
|
+
* All functions take a parameter t in range [0, 1] and return the eased value
|
|
5
|
+
*/
|
|
6
|
+
export type EasingFunction = (t: number) => number;
|
|
7
|
+
export declare const linear: (t: number) => number;
|
|
8
|
+
export declare const stepStart: (t: number) => number;
|
|
9
|
+
export declare const stepEnd: (t: number) => number;
|
|
10
|
+
export declare const easeInQuad: (t: number) => number;
|
|
11
|
+
export declare const easeOutQuad: (t: number) => number;
|
|
12
|
+
export declare const easeInOutQuad: (t: number) => number;
|
|
13
|
+
export declare const easeInCubic: (t: number) => number;
|
|
14
|
+
export declare const easeOutCubic: (t: number) => number;
|
|
15
|
+
export declare const easeInOutCubic: (t: number) => number;
|
|
16
|
+
export declare const easeInQuart: (t: number) => number;
|
|
17
|
+
export declare const easeOutQuart: (t: number) => number;
|
|
18
|
+
export declare const easeInOutQuart: (t: number) => number;
|
|
19
|
+
export declare const easeInQuint: (t: number) => number;
|
|
20
|
+
export declare const easeOutQuint: (t: number) => number;
|
|
21
|
+
export declare const easeInOutQuint: (t: number) => number;
|
|
22
|
+
export declare const easeInSine: (t: number) => number;
|
|
23
|
+
export declare const easeOutSine: (t: number) => number;
|
|
24
|
+
export declare const easeInOutSine: (t: number) => number;
|
|
25
|
+
export declare const easeInExpo: (t: number) => number;
|
|
26
|
+
export declare const easeOutExpo: (t: number) => number;
|
|
27
|
+
export declare const easeInOutExpo: (t: number) => number;
|
|
28
|
+
export declare const easeInCirc: (t: number) => number;
|
|
29
|
+
export declare const easeOutCirc: (t: number) => number;
|
|
30
|
+
export declare const easeInOutCirc: (t: number) => number;
|
|
31
|
+
export declare const easeInBack: (t: number) => number;
|
|
32
|
+
export declare const easeOutBack: (t: number) => number;
|
|
33
|
+
export declare const easeInOutBack: (t: number) => number;
|
|
34
|
+
export declare const easeInElastic: (t: number) => number;
|
|
35
|
+
export declare const easeOutElastic: (t: number) => number;
|
|
36
|
+
export declare const easeInOutElastic: (t: number) => number;
|
|
37
|
+
export declare const easeInBounce: (t: number) => number;
|
|
38
|
+
export declare const easeOutBounce: (t: number) => number;
|
|
39
|
+
export declare const easeInOutBounce: (t: number) => number;
|
|
40
|
+
/**
|
|
41
|
+
* Cubic Bezier curve generator
|
|
42
|
+
* Creates an easing function from cubic bezier control points
|
|
43
|
+
* @param x1 - X coordinate of first control point (0-1)
|
|
44
|
+
* @param y1 - Y coordinate of first control point
|
|
45
|
+
* @param x2 - X coordinate of second control point (0-1)
|
|
46
|
+
* @param y2 - Y coordinate of second control point
|
|
47
|
+
* @returns Easing function that follows the bezier curve
|
|
48
|
+
*/
|
|
49
|
+
export declare const cubicBezier: (x1: number, y1: number, x2: number, y2: number) => EasingFunction;
|
|
50
|
+
/**
|
|
51
|
+
* Parse cubic-bezier CSS string to easing function
|
|
52
|
+
* @param bezierString - String in format "cubic-bezier(x1, y1, x2, y2)"
|
|
53
|
+
* @returns Easing function or null if invalid
|
|
54
|
+
*/
|
|
55
|
+
export declare const parseCubicBezier: (bezierString: string) => EasingFunction | null;
|
|
56
|
+
/**
|
|
57
|
+
* Common CSS cubic-bezier presets
|
|
58
|
+
*/
|
|
59
|
+
export declare const bezierPresets: {
|
|
60
|
+
ease: EasingFunction;
|
|
61
|
+
'ease-in': EasingFunction;
|
|
62
|
+
'ease-out': EasingFunction;
|
|
63
|
+
'ease-in-out': EasingFunction;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Easing function map - maps string names to easing functions
|
|
67
|
+
*/
|
|
68
|
+
export declare const easingFunctions: Record<string, EasingFunction>;
|
|
69
|
+
/**
|
|
70
|
+
* Get easing function by name, defaults to linear if not found
|
|
71
|
+
* Supports:
|
|
72
|
+
* - Named easings: "EaseInQuad", "EaseOutBounce", etc.
|
|
73
|
+
* - Semantic ones: "Snappy", "Bouncy", etc.
|
|
74
|
+
* - CSS presets: "ease", "ease-in", "ease-out", "ease-in-out"
|
|
75
|
+
* - Cubic bezier strings: "cubic-bezier(0.42, 0, 1, 1)"
|
|
76
|
+
*/
|
|
77
|
+
export declare const getEasingFunction: (name: string) => EasingFunction;
|
|
78
|
+
/**
|
|
79
|
+
* Categorized easing options for UI
|
|
80
|
+
*/
|
|
81
|
+
export declare const easingCategories: {
|
|
82
|
+
name: string;
|
|
83
|
+
options: string[];
|
|
84
|
+
}[];
|
|
85
|
+
/**
|
|
86
|
+
* Semantic Feelings Metadata for UI
|
|
87
|
+
*/
|
|
88
|
+
export declare const semanticEasingMetadata: Record<string, {
|
|
89
|
+
label: string;
|
|
90
|
+
description: string;
|
|
91
|
+
value: string;
|
|
92
|
+
}>;
|
|
93
|
+
/**
|
|
94
|
+
* Get human-readable label for an easing value
|
|
95
|
+
*/
|
|
96
|
+
export declare const getEasingLabel: (easing: string) => string;
|
package/dist/engine.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export declare class ExodeUIEngine {
|
|
|
35
35
|
private activeDropdownId;
|
|
36
36
|
private draggingListViewId;
|
|
37
37
|
private objectVelocities;
|
|
38
|
+
private currentTime;
|
|
39
|
+
private frameCount;
|
|
38
40
|
setTriggerCallback(cb: (triggerName: string, animationName: string) => void): void;
|
|
39
41
|
setInputUpdateCallback(cb: (nameOrId: string, value: any) => void): void;
|
|
40
42
|
setComponentChangeCallback(cb: (event: ComponentEvent) => void): void;
|
|
@@ -52,6 +54,7 @@ export declare class ExodeUIEngine {
|
|
|
52
54
|
updateGraphData(nameOrId: string, data: number[]): void;
|
|
53
55
|
load(data: Artboard): void;
|
|
54
56
|
reset(): void;
|
|
57
|
+
private updateAutoLayout;
|
|
55
58
|
private loadFonts;
|
|
56
59
|
private enterStates;
|
|
57
60
|
setInputBool(nameOrId: string, value: boolean): void;
|
|
@@ -122,4 +125,6 @@ export declare class ExodeUIEngine {
|
|
|
122
125
|
private updateListViewHoverFromPointer;
|
|
123
126
|
private getListViewItemIndexAtPointer;
|
|
124
127
|
private drawListViewRect;
|
|
128
|
+
private solveBehaviors;
|
|
129
|
+
private applyBehaviorSensor;
|
|
125
130
|
}
|