exodeui 6.2.10 → 6.3.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/index.js +22 -22
- package/dist/index.mjs +3137 -3062
- package/dist/src/ExodeUICanvas.d.ts +9 -0
- package/dist/src/__tests__/triggers.test.d.ts +1 -0
- package/dist/src/engine.d.ts +15 -1
- package/dist/src/types.d.ts +8 -2
- package/package.json +1 -1
|
@@ -22,6 +22,15 @@ export interface ExodeUICanvasProps {
|
|
|
22
22
|
onInputBlur?: (name: string) => void;
|
|
23
23
|
onLog?: (msg: string) => void;
|
|
24
24
|
onLogicUpdate?: (values: Record<string, any>) => void;
|
|
25
|
+
onButtonClick?: (name: string, objectId: string) => void;
|
|
26
|
+
onGraphPointClick?: (event: {
|
|
27
|
+
objectId: string;
|
|
28
|
+
componentName: string;
|
|
29
|
+
datasetIndex: number;
|
|
30
|
+
pointIndex: number;
|
|
31
|
+
value: number;
|
|
32
|
+
label: string;
|
|
33
|
+
}) => void;
|
|
25
34
|
currentTime?: number;
|
|
26
35
|
revision?: number;
|
|
27
36
|
scrollY?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/src/engine.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export declare class ExodeUIEngine {
|
|
|
26
26
|
private onInputFocus?;
|
|
27
27
|
private onInputBlur?;
|
|
28
28
|
private onLog?;
|
|
29
|
+
private onButtonClick?;
|
|
30
|
+
private onGraphPointClick?;
|
|
29
31
|
private justFiredTriggers;
|
|
30
32
|
private rootTransform;
|
|
31
33
|
private canvasWidth;
|
|
@@ -50,12 +52,24 @@ export declare class ExodeUIEngine {
|
|
|
50
52
|
private fontLeadingFactors;
|
|
51
53
|
private onLogicUpdate?;
|
|
52
54
|
private logicNodeValues;
|
|
55
|
+
private logicNodeState;
|
|
56
|
+
private pointerDownTimes;
|
|
57
|
+
private activeHoverIds;
|
|
53
58
|
setTriggerCallback(cb: (triggerName: string, animationName: string) => void): void;
|
|
54
59
|
setInputUpdateCallback(cb: (nameOrId: string, value: any) => void): void;
|
|
55
60
|
setComponentChangeCallback(cb: (event: ComponentEvent) => void): void;
|
|
56
61
|
setToggleCallback(cb: (name: string, checked: boolean) => void): void;
|
|
57
62
|
setLogicUpdateCallback(cb: (values: Record<string, any>) => void): void;
|
|
58
63
|
setInputChangeCallback(cb: (name: string, text: string) => void): void;
|
|
64
|
+
setButtonClickCallback(cb: (name: string, objectId: string) => void): void;
|
|
65
|
+
setGraphPointClickCallback(cb: (event: {
|
|
66
|
+
objectId: string;
|
|
67
|
+
componentName: string;
|
|
68
|
+
datasetIndex: number;
|
|
69
|
+
pointIndex: number;
|
|
70
|
+
value: number;
|
|
71
|
+
label: string;
|
|
72
|
+
}) => void): void;
|
|
59
73
|
private ensurePathPoints;
|
|
60
74
|
private svgPathToPoints;
|
|
61
75
|
setOnLogCallback(cb: (msg: string) => void): void;
|
|
@@ -129,7 +143,7 @@ export declare class ExodeUIEngine {
|
|
|
129
143
|
private getWorldTransform;
|
|
130
144
|
private hitTest;
|
|
131
145
|
private updateSliderValueFromPointer;
|
|
132
|
-
applyAnimation(anim: SDKAnimation, time: number): void;
|
|
146
|
+
applyAnimation(anim: SDKAnimation, time: number, filterObjectId?: string): void;
|
|
133
147
|
private interpolate;
|
|
134
148
|
private interpolateColor;
|
|
135
149
|
private interpolateStops;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -419,8 +419,10 @@ export interface Trigger {
|
|
|
419
419
|
eventType: 'onClick' | 'onHold' | 'pointerDown' | 'pointerUp' | 'hover';
|
|
420
420
|
entryAnimationId?: string | null;
|
|
421
421
|
exitAnimationId?: string | null;
|
|
422
|
+
targetObjectId?: string | null;
|
|
422
423
|
duration?: number;
|
|
423
424
|
loop?: boolean;
|
|
425
|
+
conditions?: Condition[];
|
|
424
426
|
}
|
|
425
427
|
export interface Interaction {
|
|
426
428
|
id: string;
|
|
@@ -430,6 +432,7 @@ export interface Interaction {
|
|
|
430
432
|
targetProperty?: string;
|
|
431
433
|
targetObjectId?: string;
|
|
432
434
|
value?: any;
|
|
435
|
+
conditions?: Condition[];
|
|
433
436
|
}
|
|
434
437
|
export interface Physics {
|
|
435
438
|
enabled: boolean;
|
|
@@ -474,7 +477,7 @@ export interface ShapeObject {
|
|
|
474
477
|
id: string;
|
|
475
478
|
name: string;
|
|
476
479
|
transform: Transform;
|
|
477
|
-
geometry
|
|
480
|
+
geometry?: Geometry;
|
|
478
481
|
style: Style;
|
|
479
482
|
parentId?: string;
|
|
480
483
|
children?: string[];
|
|
@@ -591,6 +594,8 @@ export interface Input {
|
|
|
591
594
|
x?: number;
|
|
592
595
|
y?: number;
|
|
593
596
|
nodes?: InputNodePosition[];
|
|
597
|
+
sourceId?: string;
|
|
598
|
+
sourceHandleId?: string;
|
|
594
599
|
}
|
|
595
600
|
export interface Layer {
|
|
596
601
|
name: string;
|
|
@@ -638,7 +643,8 @@ export declare enum LogicOp {
|
|
|
638
643
|
MOUSE_Y = "MOUSE_Y",
|
|
639
644
|
IS_MOUSE_DOWN = "IS_MOUSE_DOWN",
|
|
640
645
|
EFFECTOR = "EFFECTOR",
|
|
641
|
-
MONITOR = "MONITOR"
|
|
646
|
+
MONITOR = "MONITOR",
|
|
647
|
+
DELAY = "DELAY"
|
|
642
648
|
}
|
|
643
649
|
export interface LogicNode {
|
|
644
650
|
id: string;
|