canvu-react 0.3.28 → 0.3.30
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/{asset-hydration-BEG21hMp.d.ts → asset-hydration-DrTOgDdd.d.ts} +2 -2
- package/dist/{asset-hydration-3Iv5xHxM.d.cts → asset-hydration-EtEuBwb7.d.cts} +2 -2
- package/dist/{camera-KwCYYPhm.d.ts → camera-AoTwBSoE.d.ts} +1 -1
- package/dist/{camera-BwQjm5oh.d.cts → camera-Di5R_Rwl.d.cts} +1 -1
- package/dist/chatbot.d.cts +4 -4
- package/dist/chatbot.d.ts +4 -4
- package/dist/index.cjs +118 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +116 -2
- package/dist/index.js.map +1 -1
- package/dist/native.cjs +99 -0
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +2 -2
- package/dist/native.d.ts +2 -2
- package/dist/native.js +99 -0
- package/dist/native.js.map +1 -1
- package/dist/react.cjs +183 -7
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +15 -12
- package/dist/react.d.ts +15 -12
- package/dist/react.js +183 -8
- package/dist/react.js.map +1 -1
- package/dist/realtime.cjs +10 -0
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +6 -6
- package/dist/realtime.d.ts +6 -6
- package/dist/realtime.js +10 -0
- package/dist/realtime.js.map +1 -1
- package/dist/{shape-builders-DFudWDFI.d.cts → shape-builders-CsSXKCcs.d.ts} +43 -2
- package/dist/{shape-builders-ENwnK-zT.d.ts → shape-builders-CsbSRZnQ.d.cts} +43 -2
- package/dist/tldraw.cjs +101 -2
- package/dist/tldraw.cjs.map +1 -1
- package/dist/tldraw.d.cts +1 -1
- package/dist/tldraw.d.ts +1 -1
- package/dist/tldraw.js +101 -2
- package/dist/tldraw.js.map +1 -1
- package/dist/{types-DNwjgs5U.d.cts → types-B2Na677H.d.cts} +1 -1
- package/dist/{types-BLXR7g_L.d.cts → types-B6PAYKzx.d.ts} +4 -4
- package/dist/{types-CB0TZZuk.d.cts → types-Bnq2HtHQ.d.cts} +1 -1
- package/dist/{types-CB0TZZuk.d.ts → types-Bnq2HtHQ.d.ts} +1 -1
- package/dist/{types-Cm7IsgL4.d.ts → types-DWGk2_GZ.d.cts} +4 -4
- package/dist/{types-BtAJFS_-.d.ts → types-zmUah-vP.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
|
-
import { V as VectorSceneItem, R as Rect } from './types-
|
|
4
|
-
import { C as Camera2D } from './camera-
|
|
5
|
-
import { S as StrokeStyle,
|
|
3
|
+
import { V as VectorSceneItem, R as Rect } from './types-Bnq2HtHQ.js';
|
|
4
|
+
import { C as Camera2D } from './camera-AoTwBSoE.js';
|
|
5
|
+
import { S as StrokeStyle, x as VectorViewportAssetStore } from './shape-builders-CsSXKCcs.js';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
type CanvuChromeActiveToolStyle = StrokeStyle & {
|
|
@@ -43,7 +43,7 @@ declare const CanvuChromeContext: react.Context<CanvuChromeContextValue | null>;
|
|
|
43
43
|
declare function useCanvuChromeContext(): CanvuChromeContextValue | null;
|
|
44
44
|
|
|
45
45
|
type PlacementPreview = {
|
|
46
|
-
kind: "rect" | "ellipse";
|
|
46
|
+
kind: "rect" | "ellipse" | "architectural-cloud";
|
|
47
47
|
rect: Rect;
|
|
48
48
|
}
|
|
49
49
|
/** Multi-select drag (world rect), like image crop / rubber-band selection. */
|
|
@@ -17,7 +17,7 @@ declare function rectsIntersect(a: Rect, b: Rect): boolean;
|
|
|
17
17
|
declare function normalizeRect(r: Rect): Rect;
|
|
18
18
|
|
|
19
19
|
/** Identifies how `childrenSvg` was produced for editing (resize, handles). */
|
|
20
|
-
type VectorToolKind = "rect" | "ellipse" | "line" | "arrow" | "draw" | "pencil" | "brush" | "marker" | "text" | "image" | "custom";
|
|
20
|
+
type VectorToolKind = "rect" | "ellipse" | "architectural-cloud" | "line" | "arrow" | "draw" | "pencil" | "brush" | "marker" | "text" | "image" | "custom";
|
|
21
21
|
/** Local segment for line/arrow (relative to item `x`, `y`). */
|
|
22
22
|
type LineEndpointsLocal = {
|
|
23
23
|
x1: number;
|
|
@@ -17,7 +17,7 @@ declare function rectsIntersect(a: Rect, b: Rect): boolean;
|
|
|
17
17
|
declare function normalizeRect(r: Rect): Rect;
|
|
18
18
|
|
|
19
19
|
/** Identifies how `childrenSvg` was produced for editing (resize, handles). */
|
|
20
|
-
type VectorToolKind = "rect" | "ellipse" | "line" | "arrow" | "draw" | "pencil" | "brush" | "marker" | "text" | "image" | "custom";
|
|
20
|
+
type VectorToolKind = "rect" | "ellipse" | "architectural-cloud" | "line" | "arrow" | "draw" | "pencil" | "brush" | "marker" | "text" | "image" | "custom";
|
|
21
21
|
/** Local segment for line/arrow (relative to item `x`, `y`). */
|
|
22
22
|
type LineEndpointsLocal = {
|
|
23
23
|
x1: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
|
-
import { V as VectorSceneItem, R as Rect } from './types-
|
|
4
|
-
import { C as Camera2D } from './camera-
|
|
5
|
-
import { S as StrokeStyle,
|
|
3
|
+
import { V as VectorSceneItem, R as Rect } from './types-Bnq2HtHQ.cjs';
|
|
4
|
+
import { C as Camera2D } from './camera-Di5R_Rwl.cjs';
|
|
5
|
+
import { S as StrokeStyle, x as VectorViewportAssetStore } from './shape-builders-CsbSRZnQ.cjs';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
type CanvuChromeActiveToolStyle = StrokeStyle & {
|
|
@@ -43,7 +43,7 @@ declare const CanvuChromeContext: react.Context<CanvuChromeContextValue | null>;
|
|
|
43
43
|
declare function useCanvuChromeContext(): CanvuChromeContextValue | null;
|
|
44
44
|
|
|
45
45
|
type PlacementPreview = {
|
|
46
|
-
kind: "rect" | "ellipse";
|
|
46
|
+
kind: "rect" | "ellipse" | "architectural-cloud";
|
|
47
47
|
rect: Rect;
|
|
48
48
|
}
|
|
49
49
|
/** Multi-select drag (world rect), like image crop / rubber-band selection. */
|