exodeui 6.0.16 → 6.0.22

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.
@@ -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 shadowBuffer;
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
@@ -2,4 +2,4 @@ export * from './ExodeUICanvas';
2
2
  export * from './types';
3
3
  export * from './engine';
4
4
  export * from './useExodeUI';
5
- export declare const VERSION = "6.0.16";
5
+ export declare const VERSION = "6.0.22";