@number10/jsx-konva 5.0.0

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.
Files changed (61) hide show
  1. package/LICENSE +667 -0
  2. package/README.md +48 -0
  3. package/dist/appliers/konva-background.d.ts +14 -0
  4. package/dist/appliers/konva-background.d.ts.map +1 -0
  5. package/dist/appliers/konva-base.d.ts +10 -0
  6. package/dist/appliers/konva-base.d.ts.map +1 -0
  7. package/dist/appliers/konva-border-draw-context.d.ts +40 -0
  8. package/dist/appliers/konva-border-draw-context.d.ts.map +1 -0
  9. package/dist/appliers/konva-gesture.d.ts +21 -0
  10. package/dist/appliers/konva-gesture.d.ts.map +1 -0
  11. package/dist/appliers/konva-nineslice.d.ts +36 -0
  12. package/dist/appliers/konva-nineslice.d.ts.map +1 -0
  13. package/dist/appliers/konva-node.d.ts +66 -0
  14. package/dist/appliers/konva-node.d.ts.map +1 -0
  15. package/dist/appliers/konva-tooltip.d.ts +6 -0
  16. package/dist/appliers/konva-tooltip.d.ts.map +1 -0
  17. package/dist/appliers/konva-vector-draw.d.ts +11 -0
  18. package/dist/appliers/konva-vector-draw.d.ts.map +1 -0
  19. package/dist/index.cjs +8851 -0
  20. package/dist/index.cjs.map +1 -0
  21. package/dist/index.d.ts +16 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +8752 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/jsx-dev-runtime.cjs +9 -0
  26. package/dist/jsx-dev-runtime.d.ts +7 -0
  27. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  28. package/dist/jsx-dev-runtime.js +2 -0
  29. package/dist/jsx-runtime.cjs +21 -0
  30. package/dist/jsx-runtime.d.ts +7 -0
  31. package/dist/jsx-runtime.d.ts.map +1 -0
  32. package/dist/jsx-runtime.js +2 -0
  33. package/dist/jsx-types.d.ts +12 -0
  34. package/dist/jsx-types.d.ts.map +1 -0
  35. package/dist/konva-debug-snapshot.d.ts +22 -0
  36. package/dist/konva-debug-snapshot.d.ts.map +1 -0
  37. package/dist/konva-effects-bridge.d.ts +2 -0
  38. package/dist/konva-effects-bridge.d.ts.map +1 -0
  39. package/dist/konva-gesture-manager.d.ts +65 -0
  40. package/dist/konva-gesture-manager.d.ts.map +1 -0
  41. package/dist/konva-host-adapter.d.ts +52 -0
  42. package/dist/konva-host-adapter.d.ts.map +1 -0
  43. package/dist/konva-layout-bridge.d.ts +8 -0
  44. package/dist/konva-layout-bridge.d.ts.map +1 -0
  45. package/dist/konva-scene-backgrounds.d.ts +57 -0
  46. package/dist/konva-scene-backgrounds.d.ts.map +1 -0
  47. package/dist/konva-scheduler.d.ts +18 -0
  48. package/dist/konva-scheduler.d.ts.map +1 -0
  49. package/dist/konva-surface-adapter.d.ts +29 -0
  50. package/dist/konva-surface-adapter.d.ts.map +1 -0
  51. package/dist/konva-vdom-runtime.d.ts +2 -0
  52. package/dist/konva-vdom-runtime.d.ts.map +1 -0
  53. package/dist/mount-konva.d.ts +21 -0
  54. package/dist/mount-konva.d.ts.map +1 -0
  55. package/dist/utils/konva-colors.d.ts +27 -0
  56. package/dist/utils/konva-colors.d.ts.map +1 -0
  57. package/dist/vector/KonvaVectorDrawContext.d.ts +51 -0
  58. package/dist/vector/KonvaVectorDrawContext.d.ts.map +1 -0
  59. package/dist/vector/index.d.ts +2 -0
  60. package/dist/vector/index.d.ts.map +1 -0
  61. package/package.json +97 -0
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @number10/jsx-konva
2
+
3
+ Konva renderer adapter for the PhaserJSX framework — provides Konva-specific runtime, mounting, backgrounds, and Canvas 2D rendering.
4
+
5
+ ## Status
6
+
7
+ ✅ Full implementation — HostAdapter, SurfaceAdapter, VDOM runtime, gestures, effects, scene backgrounds, vector draw, text shadows.
8
+
9
+ ## Usage
10
+
11
+ ```tsx
12
+ /** @jsxImportSource @number10/jsx-konva */
13
+ import { View, Text, Button } from '@number10/jsx-components'
14
+ import { useState } from '@number10/jsx-core'
15
+ import { mountKonvaJSX } from '@number10/jsx-konva'
16
+
17
+ await mountKonvaJSX({
18
+ component: App,
19
+ target: document.getElementById('app')!,
20
+ width: 800,
21
+ height: 600,
22
+ })
23
+ ```
24
+
25
+ ## What's included
26
+
27
+ - **Konva mount helper** — `mountKonvaJSX()`, VDOM reconciliation, component rendering via Konva shapes and layers
28
+ - **Konva adapters** — `KonvaHostAdapter`, `KonvaSurfaceAdapter`
29
+ - **Gestures** — Touch, drag, long-press, hover, scroll with proper depth sorting
30
+ - **Effects** — Core effect engine integration
31
+ - **Scene backgrounds** — Grid, logo, gradient, particles, animated backgrounds
32
+ - **Vector drawing** — Konva vector draw context for portable `VectorDrawContent`
33
+ - **NineSlice** — Cached composite texture rendering
34
+ - **Re-exports** from `@number10/jsx-components` and `@number10/jsx-core`
35
+
36
+ ## Import from the right package
37
+
38
+ | Need | Import from |
39
+ | ---------------------- | -------------------------- |
40
+ | Portable UI components | `@number10/jsx-components` |
41
+ | Konva mount + adapters | `@number10/jsx-konva` |
42
+ | Pixi mount + adapters | `@number10/jsx-pixi` |
43
+ | Phaser runtime | `@number10/jsx-phaser` |
44
+ | Legacy all-in-one | `@number10/phaserjsx` |
45
+
46
+ ## License
47
+
48
+ GPL-3.0-only
@@ -0,0 +1,14 @@
1
+ import { KonvaNode } from './konva-node';
2
+ /**
3
+ * Apply background color, border, and corner radius to a view node.
4
+ * Creates the rect once, then updates via setAttrs to avoid
5
+ * destroy+recreate cycles that trigger parent layout invalidation.
6
+ *
7
+ * When `props.border` (BorderPropsV2) is set, it takes precedence over
8
+ * the legacy `borderWidth`/`borderColor`/`borderAlpha` props.
9
+ *
10
+ * @param node - Target Konva view node
11
+ * @param props - Props object (backgroundColor, borderColor, cornerRadius, etc.)
12
+ */
13
+ export declare function applyViewBackground(node: KonvaNode, props: Record<string, unknown>): void;
14
+ //# sourceMappingURL=konva-background.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-background.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-background.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AA6HlE;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAkOzF"}
@@ -0,0 +1,10 @@
1
+ import { KonvaNode } from './konva-node';
2
+ /**
3
+ * Apply base transform/visibility props to a Konva node.
4
+ * Layout stays on the outer node. The inner effect container receives
5
+ * transform props so temporary effect animation can run independently.
6
+ * @param node - Target outer Konva node
7
+ * @param props - Props object (x, y, alpha, visible, angle, scale)
8
+ */
9
+ export declare function applyBaseProps(node: KonvaNode, props: Record<string, unknown>): void;
10
+ //# sourceMappingURL=konva-base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-base.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-base.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAwC7C;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CA8CpF"}
@@ -0,0 +1,40 @@
1
+ import { VectorDrawContext } from '@number10/jsx-core';
2
+ import { default as Konva } from 'konva';
3
+ export declare class KonvaBorderDrawContext implements VectorDrawContext {
4
+ private container;
5
+ private boxW;
6
+ private boxH;
7
+ private shapes;
8
+ private pathOps;
9
+ private fillColor;
10
+ private fillAlpha;
11
+ private strokeColor;
12
+ private strokeWidth;
13
+ constructor(container: Konva.Container, boxW: number, boxH: number);
14
+ /** Resolve a color to a Konva-compatible string, with fallback. */
15
+ private resolveColor;
16
+ /** Return all created shapes for lifecycle management. */
17
+ getShapes(): Konva.Shape[];
18
+ /** Destroy all created shapes and reset state. */
19
+ clear(): this;
20
+ fillStyle(_color: number, alpha?: number): this;
21
+ lineStyle(width: number, color: number, alpha?: number): this;
22
+ beginPath(): this;
23
+ moveTo(x: number, y: number): this;
24
+ lineTo(x: number, y: number): this;
25
+ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): this;
26
+ closePath(): this;
27
+ fillPath(): this;
28
+ strokePath(): this;
29
+ fillCircle(_cx: number, _cy: number, _radius: number): this;
30
+ strokeCircle(): this;
31
+ fillRect(x: number, y: number, width: number, height: number): this;
32
+ strokeRect(): this;
33
+ fillRoundedRect(): this;
34
+ strokeRoundedRect(): this;
35
+ lineBetween(): this;
36
+ fillCircleStyled(x: number, y: number, radius: number, color: number, alpha: number): this;
37
+ strokeLine(x1: number, y1: number, x2: number, y2: number, width: number, color: number, alpha: number): this;
38
+ fillArc(cx: number, cy: number, r: number, startAngle: number, endAngle: number, color: number, alpha: number): this;
39
+ }
40
+ //# sourceMappingURL=konva-border-draw-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-border-draw-context.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-border-draw-context.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAA;AAiBzB,qBAAa,sBAAuB,YAAW,iBAAiB;IAS5D,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAVd,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,SAAS,CAAI;IACrB,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,WAAW,CAAI;gBAGb,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM;IAGtB,mEAAmE;IACnE,OAAO,CAAC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E,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,IAAI;IAaP,OAAO,CACL,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,CAAC,EAAE,MAAM,EACT,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,IAAI;CAkBR"}
@@ -0,0 +1,21 @@
1
+ import { GestureProps } from '@number10/jsx-core';
2
+ import { default as Konva } from 'konva';
3
+ /**
4
+ * Resolve the local hit area for a Konva group based on its layout box.
5
+ * Returns null if the group has no valid dimensions.
6
+ */
7
+ /**
8
+ * Apply gesture props to a Konva group.
9
+ * Registers, updates, or unregisters the group with the KonvaGestureManager.
10
+ * @param group - Target Konva group
11
+ * @param stage - Konva Stage (needed to get the gesture manager singleton)
12
+ * @param props - Gesture props from the component
13
+ */
14
+ export declare function applyGestureProps(group: Konva.Group, stage: Konva.Stage, props: Partial<GestureProps<Konva.KonvaEventObject<PointerEvent>>>): void;
15
+ /**
16
+ * Update gesture hit area after layout recalculation.
17
+ * @param group - Target Konva group
18
+ * @param stage - Konva Stage
19
+ */
20
+ export declare function updateGestureHitArea(group: Konva.Group, stage: Konva.Stage): void;
21
+ //# sourceMappingURL=konva-gesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-gesture.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-gesture.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;;GAGG;AACH;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,GACjE,IAAI,CAqBN;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,CAGjF"}
@@ -0,0 +1,36 @@
1
+ import { default as Konva } from 'konva';
2
+ import { KonvaNode } from './konva-node';
3
+ export interface KonvaNineSliceNode extends KonvaNode {
4
+ /** Reference to the Konva.Shape used for drawing */
5
+ __nineSliceShape?: Konva.Shape;
6
+ /** Cached props for sceneFunc access */
7
+ __nsProps?: NineSliceStoredProps;
8
+ /** Cached composed bitmap to avoid per-slice seams under transforms */
9
+ __nineSliceCanvas?: HTMLCanvasElement | null;
10
+ /** Effective render scale used for the cached bitmap */
11
+ __nineSliceCanvasScale?: {
12
+ x: number;
13
+ y: number;
14
+ };
15
+ /** Whether the cached bitmap must be rebuilt before the next draw */
16
+ __nineSliceCanvasDirty?: boolean;
17
+ }
18
+ interface NineSliceStoredProps {
19
+ textureKey: string;
20
+ frame: string | undefined;
21
+ tint: number | undefined;
22
+ leftWidth: number;
23
+ rightWidth: number;
24
+ topHeight: number;
25
+ bottomHeight: number;
26
+ width: number;
27
+ height: number;
28
+ imageSmoothingEnabled: boolean;
29
+ }
30
+ /**
31
+ * Create or update a KonvaNineSliceNode's internal Konva.Shape.
32
+ * Called by the host adapter on create/patch.
33
+ */
34
+ export declare function applyKonvaNineSliceProps(node: KonvaNineSliceNode, props: Record<string, unknown>): void;
35
+ export {};
36
+ //# sourceMappingURL=konva-nineslice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-nineslice.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-nineslice.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AA0BlE,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAA;IAC9B,wCAAwC;IACxC,SAAS,CAAC,EAAE,oBAAoB,CAAA;IAChC,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5C,wDAAwD;IACxD,sBAAsB,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACjD,qEAAqE;IACrE,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAMD,UAAU,oBAAoB;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,qBAAqB,EAAE,OAAO,CAAA;CAC/B;AAwOD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,kBAAkB,EACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,IAAI,CAqEN"}
@@ -0,0 +1,66 @@
1
+ import { BackgroundProps, EffectTransformOrigin, HostNode, HostParent, LayoutProps, SurfaceContext, TransformProps } from '@number10/jsx-core';
2
+ import { default as Konva } from 'konva';
3
+ export type KonvaNode = Konva.Group & {
4
+ __konvaHostNode?: true;
5
+ __konvaNode?: {
6
+ destroyed: boolean;
7
+ };
8
+ __effectContainer?: Konva.Group;
9
+ __effectOrigin?: EffectTransformOrigin;
10
+ __layoutBox?: {
11
+ width: number;
12
+ height: number;
13
+ };
14
+ __cachedLayoutSize?: {
15
+ width: number;
16
+ height: number;
17
+ };
18
+ __getLayoutSize?: () => {
19
+ width: number;
20
+ height: number;
21
+ };
22
+ __layoutProps?: Partial<LayoutProps & BackgroundProps & TransformProps>;
23
+ __layoutParent?: unknown;
24
+ __backgroundRect?: Konva.Rect | undefined;
25
+ __surfaceContext?: SurfaceContext;
26
+ __layoutAccessorsInstalled?: true;
27
+ __signalEffects?: Map<string, () => void>;
28
+ __lastPropValues?: Record<string, unknown>;
29
+ __sprite?: Konva.Image | undefined;
30
+ list?: unknown[];
31
+ setPosition?: (x: number, y: number) => KonvaNode;
32
+ setSize?: (width: number, height: number) => KonvaNode;
33
+ };
34
+ export type KonvaTextNode = KonvaNode & {
35
+ __textBackgroundRect?: Konva.Rect | undefined;
36
+ __textDisplay: Konva.Text;
37
+ __textStyleSource?: Record<string, unknown>;
38
+ };
39
+ /** Cast a HostNode to Konva.Group. */
40
+ export declare function asContainer(node: HostNode): Konva.Group;
41
+ /** Check whether a node has been destroyed. */
42
+ export declare function isDestroyed(node: HostNode | HostParent): boolean;
43
+ export declare function markDestroyed(node: KonvaNode): void;
44
+ /** Check whether a KonvaNode is a text node (has __textDisplay). */
45
+ export declare function isTextNode(node: KonvaNode): node is KonvaTextNode;
46
+ /** Check whether a display object is a host node wrapper. */
47
+ export declare function isHostNodeContainer(value: unknown): value is KonvaNode;
48
+ /** Get the animatable/content container for a host node. */
49
+ export declare function getContentContainer(node: HostNode | HostParent | KonvaNode): Konva.Group;
50
+ /** Set the layout box dimensions. Only stores numeric pixel values. */
51
+ export declare function setLayoutSize(node: KonvaNode, width: number, height: number): void;
52
+ /** Get measured size — prefers text local bounds, falls back to __layoutBox. */
53
+ export declare function getMeasuredSize(node: KonvaNode): {
54
+ width: number;
55
+ height: number;
56
+ };
57
+ /**
58
+ * Install layout-aware width/height accessors on a Konva Group, mirroring
59
+ * Pixi's installLayoutSizeAccessors. The layout engine reads/writes node.width
60
+ * and node.height as plain properties — without these accessors, Konva's native
61
+ * width()/height() (which are functions) would be used, causing NaN comparisons.
62
+ */
63
+ export declare function installLayoutSizeAccessors(node: KonvaNode): void;
64
+ /** Set the active transform origin for the effect container. */
65
+ export declare function setEffectTransformOrigin(node: KonvaNode, origin: EffectTransformOrigin): void;
66
+ //# sourceMappingURL=konva-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-node.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-node.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,QAAQ,EACR,UAAU,EACV,WAAW,EACX,cAAc,EACd,cAAc,EACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,GAAG;IACpC,eAAe,CAAC,EAAE,IAAI,CAAA;IACtB,WAAW,CAAC,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAA;IACpC,iBAAiB,CAAC,EAAE,KAAK,CAAC,KAAK,CAAA;IAC/B,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,kBAAkB,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IACtD,eAAe,CAAC,EAAE,MAAM;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC,WAAW,GAAG,eAAe,GAAG,cAAc,CAAC,CAAA;IACvE,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,KAAK,CAAC,IAAI,GAAG,SAAS,CAAA;IACzC,gBAAgB,CAAC,EAAE,cAAc,CAAA;IACjC,0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AK,CAGxF;AAMD,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAOlF;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAoBlF;AAaD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CA0ChE;AAED,gEAAgE;AAChE,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAG7F"}
@@ -0,0 +1,6 @@
1
+ import { TooltipCallback } from '@number10/jsx-core';
2
+ import { default as Konva } from 'konva';
3
+ export declare function applyTooltipProps(group: Konva.Group, stage: Konva.Stage, callback: TooltipCallback | undefined): void;
4
+ export declare function cleanupTooltipProps(group: Konva.Group): void;
5
+ export declare function updateTooltipHitArea(_group: Konva.Group): void;
6
+ //# sourceMappingURL=konva-tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-tooltip.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-tooltip.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,oBAAoB,CAAA;AAExE,OAAO,KAAK,MAAM,OAAO,CAAA;AA+TzB,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,eAAe,GAAG,SAAS,GACpC,IAAI,CA8DN;AAqDD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,CAe5D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,CAG9D"}
@@ -0,0 +1,11 @@
1
+ import { default as Konva } from 'konva';
2
+ import { KonvaVectorDrawContext } from '../vector';
3
+ import { KonvaNode } from './konva-node';
4
+ export type KonvaVectorDrawNode = KonvaNode & {
5
+ __vectorImage?: Konva.Image | undefined;
6
+ __vectorDrawContext?: KonvaVectorDrawContext | undefined;
7
+ __drawDependencies?: unknown[] | undefined;
8
+ __hasDrawnVectorContent?: boolean | undefined;
9
+ };
10
+ export declare function applyVectorDrawProps(node: KonvaVectorDrawNode, prev: Record<string, unknown>, next: Record<string, unknown>): void;
11
+ //# sourceMappingURL=konva-vector-draw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"konva-vector-draw.d.ts","sourceRoot":"","sources":["../../src/appliers/konva-vector-draw.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAsC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAEjF,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C,aAAa,CAAC,EAAE,KAAK,CAAC,KAAK,GAAG,SAAS,CAAA;IACvC,mBAAmB,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAA;IACxD,kBAAkB,CAAC,EAAE,OAAO,EAAE,GAAG,SAAS,CAAA;IAC1C,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9C,CAAA;AAuGD,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,IAAI,CAkBN"}