exodeui 6.3.27 → 6.3.28
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.js +30 -30
- package/dist/index.mjs +2554 -2520
- package/dist/src/engine.d.ts +8 -3
- package/dist/src/types.d.ts +23 -29
- package/package.json +1 -1
package/dist/src/engine.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare class ExodeUIEngine {
|
|
|
5
5
|
private objectStates;
|
|
6
6
|
private physicsEngine;
|
|
7
7
|
private activeStateMachine;
|
|
8
|
-
inputs
|
|
8
|
+
private inputs;
|
|
9
9
|
private inputNameMap;
|
|
10
10
|
private layerStates;
|
|
11
11
|
private pretextCache;
|
|
@@ -38,6 +38,7 @@ export declare class ExodeUIEngine {
|
|
|
38
38
|
private _prevPointerPos;
|
|
39
39
|
private focusedId;
|
|
40
40
|
private draggingSliderId;
|
|
41
|
+
private draggingJoystickId;
|
|
41
42
|
private activeDropdownId;
|
|
42
43
|
private activeObjectId;
|
|
43
44
|
private draggingListViewId;
|
|
@@ -48,6 +49,7 @@ export declare class ExodeUIEngine {
|
|
|
48
49
|
private _totalScroll;
|
|
49
50
|
private draggingBehaviors;
|
|
50
51
|
private isMouseDown;
|
|
52
|
+
private activeKeys;
|
|
51
53
|
private _layoutAnimCache;
|
|
52
54
|
private _springChainState;
|
|
53
55
|
private _emitterPools;
|
|
@@ -125,7 +127,6 @@ export declare class ExodeUIEngine {
|
|
|
125
127
|
setInputNumberArray(nameOrId: string, value: number[]): void;
|
|
126
128
|
setInputStringArray(nameOrId: string, value: string[]): void;
|
|
127
129
|
updateObjectProperty(id: string, property: string, value: any): void;
|
|
128
|
-
private resolveRandomValue;
|
|
129
130
|
updateInput(nameOrId: string, value: any): void;
|
|
130
131
|
private evaluateVariableTriggers;
|
|
131
132
|
private evaluateTransitions;
|
|
@@ -146,7 +147,6 @@ export declare class ExodeUIEngine {
|
|
|
146
147
|
private activeTriggers;
|
|
147
148
|
seek(time: number): void;
|
|
148
149
|
advance(dt: number): void;
|
|
149
|
-
private evaluateLogicProperties;
|
|
150
150
|
private evaluateContinuousInteractions;
|
|
151
151
|
private solveConstraints;
|
|
152
152
|
private getGlobalTransform;
|
|
@@ -158,6 +158,7 @@ export declare class ExodeUIEngine {
|
|
|
158
158
|
handleWheel(deltaX: number, deltaY: number): void;
|
|
159
159
|
private handlePointerEvent;
|
|
160
160
|
handleKeyDown(e: KeyboardEvent): void;
|
|
161
|
+
handleKeyUp(e: KeyboardEvent): void;
|
|
161
162
|
private fireEventForObject;
|
|
162
163
|
private fireAnalyticsEvent;
|
|
163
164
|
private initGlobalAnimationTriggers;
|
|
@@ -166,6 +167,9 @@ export declare class ExodeUIEngine {
|
|
|
166
167
|
private getWorldTransform;
|
|
167
168
|
private hitTest;
|
|
168
169
|
private updateSliderValueFromPointer;
|
|
170
|
+
private updateJoystickValueFromPointer;
|
|
171
|
+
private processJoysticks;
|
|
172
|
+
applyBlendState(state: any, time: number): void;
|
|
169
173
|
applyAnimation(anim: SDKAnimation, time: number, filterObjectId?: string | string[]): void;
|
|
170
174
|
private interpolate;
|
|
171
175
|
private interpolateColor;
|
|
@@ -211,6 +215,7 @@ export declare class ExodeUIEngine {
|
|
|
211
215
|
private renderRadioGroup;
|
|
212
216
|
private renderBarChart;
|
|
213
217
|
private renderPieChart;
|
|
218
|
+
private renderJoystick;
|
|
214
219
|
private getRadioGroupItemIndexAtPointer;
|
|
215
220
|
private renderLineGraph;
|
|
216
221
|
private _catmullRom;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -182,20 +182,6 @@ export interface AnalyticsConfig {
|
|
|
182
182
|
};
|
|
183
183
|
parameters: AnalyticsParameter[];
|
|
184
184
|
}
|
|
185
|
-
export interface EffectConfig {
|
|
186
|
-
id?: string;
|
|
187
|
-
isEnabled: boolean;
|
|
188
|
-
type: 'BackgroundBlur' | 'PathDistortion';
|
|
189
|
-
radius?: number;
|
|
190
|
-
color?: string;
|
|
191
|
-
opacity?: number;
|
|
192
|
-
noise?: number;
|
|
193
|
-
amplitude?: number;
|
|
194
|
-
frequency?: number;
|
|
195
|
-
seed?: number;
|
|
196
|
-
direction?: number;
|
|
197
|
-
directionStrength?: number;
|
|
198
|
-
}
|
|
199
185
|
export interface Style {
|
|
200
186
|
fill?: Fill;
|
|
201
187
|
stroke?: {
|
|
@@ -216,8 +202,6 @@ export interface Style {
|
|
|
216
202
|
};
|
|
217
203
|
shadow?: Shadow;
|
|
218
204
|
blur?: Blur;
|
|
219
|
-
effect?: any;
|
|
220
|
-
effects?: EffectConfig[];
|
|
221
205
|
adjustments?: Adjustments;
|
|
222
206
|
liquidMorph?: LiquidMorphConfig;
|
|
223
207
|
liquidFill?: LiquidFillConfig;
|
|
@@ -359,6 +343,17 @@ export type Geometry = {
|
|
|
359
343
|
width: number;
|
|
360
344
|
height: number;
|
|
361
345
|
adjustments?: Adjustments;
|
|
346
|
+
} | {
|
|
347
|
+
type: 'Joystick';
|
|
348
|
+
width: number;
|
|
349
|
+
height: number;
|
|
350
|
+
isMask?: boolean;
|
|
351
|
+
stepX?: number;
|
|
352
|
+
stepY?: number;
|
|
353
|
+
deadzone?: number;
|
|
354
|
+
boundsShape?: 'circle' | 'square';
|
|
355
|
+
handleOrigin?: 'center' | 'top-left' | 'bottom-right';
|
|
356
|
+
options?: any;
|
|
362
357
|
} | {
|
|
363
358
|
type: "LineGraph";
|
|
364
359
|
datasets?: LineDataset[];
|
|
@@ -470,11 +465,7 @@ export declare enum BehaviorType {
|
|
|
470
465
|
ParticleEmitter = "ParticleEmitter",
|
|
471
466
|
StateReactive = "StateReactive",
|
|
472
467
|
Fold = "Fold",
|
|
473
|
-
Crumple = "Crumple"
|
|
474
|
-
GraphPathDraw = "GraphPathDraw",
|
|
475
|
-
GraphWipeReveal = "GraphWipeReveal",
|
|
476
|
-
GraphPointPop = "GraphPointPop",
|
|
477
|
-
GraphGradientFlow = "GraphGradientFlow"
|
|
468
|
+
Crumple = "Crumple"
|
|
478
469
|
}
|
|
479
470
|
export declare enum BehaviorSensor {
|
|
480
471
|
Scale = "Scale",
|
|
@@ -660,8 +651,6 @@ export interface ShapeObject {
|
|
|
660
651
|
bindMatrices?: {
|
|
661
652
|
[boneId: string]: number[];
|
|
662
653
|
};
|
|
663
|
-
masterObjectId?: string;
|
|
664
|
-
isInstance?: boolean;
|
|
665
654
|
}
|
|
666
655
|
export interface Keyframe {
|
|
667
656
|
time: number;
|
|
@@ -737,6 +726,10 @@ export interface Transition {
|
|
|
737
726
|
delay?: number;
|
|
738
727
|
conditions: Condition[];
|
|
739
728
|
}
|
|
729
|
+
export interface BlendAnimation {
|
|
730
|
+
animationId: string;
|
|
731
|
+
position: [number, number];
|
|
732
|
+
}
|
|
740
733
|
export interface State {
|
|
741
734
|
id: string;
|
|
742
735
|
name: string;
|
|
@@ -745,6 +738,11 @@ export interface State {
|
|
|
745
738
|
transitions: Transition[];
|
|
746
739
|
animationId?: string | null;
|
|
747
740
|
loop?: boolean;
|
|
741
|
+
isBlendState?: boolean;
|
|
742
|
+
blendType?: '1D' | '2D';
|
|
743
|
+
blendAnimations?: BlendAnimation[];
|
|
744
|
+
blendInputX?: string;
|
|
745
|
+
blendInputY?: string;
|
|
748
746
|
speed?: number;
|
|
749
747
|
onEntry?: StateAction[];
|
|
750
748
|
onExit?: StateAction[];
|
|
@@ -876,7 +874,7 @@ export interface Artboard {
|
|
|
876
874
|
opacity?: number;
|
|
877
875
|
x?: number;
|
|
878
876
|
y?: number;
|
|
879
|
-
objects: ShapeObject[];
|
|
877
|
+
objects: (ShapeObject | any)[];
|
|
880
878
|
animations: Animation[];
|
|
881
879
|
stateMachine?: StateMachine;
|
|
882
880
|
tokens?: DesignTokens;
|
|
@@ -899,12 +897,8 @@ export interface Artboard {
|
|
|
899
897
|
stateVariables?: {
|
|
900
898
|
id: string;
|
|
901
899
|
name: string;
|
|
902
|
-
type: 'Boolean' | 'Number' | 'Trigger'
|
|
900
|
+
type: 'Boolean' | 'Number' | 'Trigger';
|
|
903
901
|
value: any;
|
|
904
|
-
min?: number;
|
|
905
|
-
max?: number;
|
|
906
|
-
minAlpha?: number;
|
|
907
|
-
maxAlpha?: number;
|
|
908
902
|
}[];
|
|
909
903
|
lastModified?: number;
|
|
910
904
|
}
|