exodeui 6.0.13 → 6.0.21
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/ExodeUICanvas.d.ts +1 -0
- package/dist/engine.d.ts +6 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -6
- package/dist/index.mjs +3689 -3357
- package/dist/types.d.ts +19 -1
- package/package.json +1 -1
package/dist/ExodeUICanvas.d.ts
CHANGED
|
@@ -18,5 +18,6 @@ export interface ExodeUICanvasProps {
|
|
|
18
18
|
onInputChange?: (name: string, text: string) => void;
|
|
19
19
|
onInputFocus?: (name: string) => void;
|
|
20
20
|
onInputBlur?: (name: string) => void;
|
|
21
|
+
onLog?: (msg: string) => void;
|
|
21
22
|
}
|
|
22
23
|
export declare const ExodeUICanvas: React.ForwardRefExoticComponent<ExodeUICanvasProps & React.RefAttributes<HTMLCanvasElement>>;
|
package/dist/engine.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class ExodeUIEngine {
|
|
|
12
12
|
private pointerHistory;
|
|
13
13
|
private readonly MAX_HISTORY;
|
|
14
14
|
private imageCache;
|
|
15
|
-
private
|
|
15
|
+
private lastValidSvgImgMap;
|
|
16
16
|
private maskBuffer;
|
|
17
17
|
private maskCtx;
|
|
18
18
|
private lumaBuffer;
|
|
@@ -25,6 +25,7 @@ export declare class ExodeUIEngine {
|
|
|
25
25
|
private onInputChange?;
|
|
26
26
|
private onInputFocus?;
|
|
27
27
|
private onInputBlur?;
|
|
28
|
+
private onLog?;
|
|
28
29
|
private justFiredTriggers;
|
|
29
30
|
private rootTransform;
|
|
30
31
|
private canvasWidth;
|
|
@@ -50,6 +51,8 @@ export declare class ExodeUIEngine {
|
|
|
50
51
|
setComponentChangeCallback(cb: (event: ComponentEvent) => void): void;
|
|
51
52
|
setToggleCallback(cb: (name: string, checked: boolean) => void): void;
|
|
52
53
|
setInputChangeCallback(cb: (name: string, text: string) => void): void;
|
|
54
|
+
setOnLogCallback(cb: (msg: string) => void): void;
|
|
55
|
+
private debugLog;
|
|
53
56
|
setInputFocusCallback(cb: (name: string) => void): void;
|
|
54
57
|
setInputBlurCallback(cb: (name: string) => void): void;
|
|
55
58
|
updateConstraint(objectId: string, index: number, properties: Partial<Constraint>): void;
|
|
@@ -105,11 +108,13 @@ export declare class ExodeUIEngine {
|
|
|
105
108
|
private interpolateColor;
|
|
106
109
|
private interpolateStops;
|
|
107
110
|
private interpolateFill;
|
|
111
|
+
private interpolateStroke;
|
|
108
112
|
render(ctx: CanvasRenderingContext2D, width: number, height: number): void;
|
|
109
113
|
private calculateTransform;
|
|
110
114
|
private mapFontWeight;
|
|
111
115
|
private getFontLeadingFactor;
|
|
112
116
|
private renderObject;
|
|
117
|
+
private _renderText;
|
|
113
118
|
private applyStrokeAlignment;
|
|
114
119
|
private getPerimeter;
|
|
115
120
|
private getBezierLength;
|
package/dist/index.d.ts
CHANGED