exodeui 6.4.1 → 6.4.2
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 +17 -17
- package/dist/index.mjs +1943 -1840
- package/dist/src/engine.d.ts +15 -1
- package/dist/src/useExodeUI.d.ts +16 -1
- package/package.json +1 -1
package/dist/src/engine.d.ts
CHANGED
|
@@ -119,7 +119,20 @@ export declare class ExodeUIEngine {
|
|
|
119
119
|
getActiveStateIds(layerName?: string): string[];
|
|
120
120
|
getObjectState(id: string): any;
|
|
121
121
|
updateObjectOptions(id: string, newOptions: any): void;
|
|
122
|
-
updateGraphData(nameOrId: string, data: number[]): void;
|
|
122
|
+
updateGraphData(nameOrId: string, data: number[] | number[][], categories?: string[]): void;
|
|
123
|
+
updateBarChartData(nameOrId: string, datasets: (number[] | {
|
|
124
|
+
id?: string;
|
|
125
|
+
label?: string;
|
|
126
|
+
data: number[];
|
|
127
|
+
color?: string;
|
|
128
|
+
})[], categories?: string[]): void;
|
|
129
|
+
updatePieChartData(nameOrId: string, slices: (number | {
|
|
130
|
+
id?: string;
|
|
131
|
+
label?: string;
|
|
132
|
+
value: number;
|
|
133
|
+
color?: string;
|
|
134
|
+
})[]): void;
|
|
135
|
+
setDropdownOptions(nameOrId: string, options: string[]): void;
|
|
123
136
|
load(data: Artboard): void;
|
|
124
137
|
/**
|
|
125
138
|
* Pre-loads all images found in the artboard into the image cache.
|
|
@@ -173,6 +186,7 @@ export declare class ExodeUIEngine {
|
|
|
173
186
|
handleScroll(x: number, y: number): void;
|
|
174
187
|
isListViewObject(obj: any): boolean;
|
|
175
188
|
getResolvedListViewItems(obj: any, opts?: any): any[];
|
|
189
|
+
getResolvedDropdownOptions(obj: any, opts?: any): string[];
|
|
176
190
|
handleWheel(deltaX: number, deltaY: number, canvasX?: number, canvasY?: number, canvasWidth?: number, canvasHeight?: number): void;
|
|
177
191
|
private handlePointerEvent;
|
|
178
192
|
handleKeyDown(e: KeyboardEvent): void;
|
package/dist/src/useExodeUI.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { ExodeUIEngine } from './engine';
|
|
|
3
3
|
export declare function useExodeUI(): {
|
|
4
4
|
setEngine: import('react').Dispatch<import('react').SetStateAction<ExodeUIEngine | null>>;
|
|
5
5
|
engine: ExodeUIEngine | null;
|
|
6
|
+
updateInput: (nameOrId: string, value: any) => void;
|
|
7
|
+
setInputValue: (nameOrId: string, value: any) => void;
|
|
6
8
|
setInputBool: (name: string, value: boolean) => void;
|
|
7
9
|
setInputNumber: (name: string, value: number) => void;
|
|
8
10
|
fireTrigger: (name: string) => void;
|
|
@@ -10,7 +12,20 @@ export declare function useExodeUI(): {
|
|
|
10
12
|
setInputNumberArray: (name: string, value: number[]) => void;
|
|
11
13
|
setInputStringArray: (name: string, value: string[]) => void;
|
|
12
14
|
updateConstraint: (objectId: string, index: number, properties: any) => void;
|
|
13
|
-
updateGraphData: (nameOrId: string, data: number[]) => void;
|
|
15
|
+
updateGraphData: (nameOrId: string, data: number[] | number[][], categories?: string[]) => void;
|
|
16
|
+
updateBarChartData: (nameOrId: string, datasets: (number[] | {
|
|
17
|
+
id?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
data: number[];
|
|
20
|
+
color?: string;
|
|
21
|
+
})[], categories?: string[]) => void;
|
|
22
|
+
updatePieChartData: (nameOrId: string, slices: (number | {
|
|
23
|
+
id?: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
value: number;
|
|
26
|
+
color?: string;
|
|
27
|
+
})[]) => void;
|
|
28
|
+
setDropdownOptions: (nameOrId: string, options: string[]) => void;
|
|
14
29
|
updateObjectOptions: (objectId: string, options: any) => void;
|
|
15
30
|
getInputValue: (nameOrId: string) => any;
|
|
16
31
|
};
|