canvu-react 0.3.25 → 0.3.27
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/chatbot.d.cts +1 -1
- package/dist/chatbot.d.ts +1 -1
- package/dist/react.cjs +81 -31
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +81 -31
- package/dist/react.js.map +1 -1
- package/dist/realtime.cjs +211 -59
- package/dist/realtime.cjs.map +1 -1
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/realtime.js +207 -59
- package/dist/realtime.js.map +1 -1
- package/dist/{types-7kfWcm0L.d.cts → types-BLXR7g_L.d.cts} +7 -0
- package/dist/{types-C4k_AMvi.d.ts → types-Cm7IsgL4.d.ts} +7 -0
- package/package.json +1 -1
|
@@ -67,6 +67,8 @@ type PlacementPreview = {
|
|
|
67
67
|
x: number;
|
|
68
68
|
y: number;
|
|
69
69
|
}[];
|
|
70
|
+
/** Mirrors the local stroke style so remote previews can match width/color/opacity. */
|
|
71
|
+
style?: StrokeStyle;
|
|
70
72
|
};
|
|
71
73
|
|
|
72
74
|
/**
|
|
@@ -120,6 +122,11 @@ type RemotePresenceMarkupStroke = {
|
|
|
120
122
|
readonly y: number;
|
|
121
123
|
}[];
|
|
122
124
|
readonly tool: "draw" | "pencil" | "brush" | "marker" | "laser";
|
|
125
|
+
/** Optional stroke style mirrored from the local in-progress shape so the
|
|
126
|
+
* preview width/color/opacity matches the eventual committed item. */
|
|
127
|
+
readonly strokeWidth?: number;
|
|
128
|
+
readonly stroke?: string;
|
|
129
|
+
readonly strokeOpacity?: number;
|
|
123
130
|
};
|
|
124
131
|
type RemotePresenceCamera = {
|
|
125
132
|
readonly x: number;
|
|
@@ -67,6 +67,8 @@ type PlacementPreview = {
|
|
|
67
67
|
x: number;
|
|
68
68
|
y: number;
|
|
69
69
|
}[];
|
|
70
|
+
/** Mirrors the local stroke style so remote previews can match width/color/opacity. */
|
|
71
|
+
style?: StrokeStyle;
|
|
70
72
|
};
|
|
71
73
|
|
|
72
74
|
/**
|
|
@@ -120,6 +122,11 @@ type RemotePresenceMarkupStroke = {
|
|
|
120
122
|
readonly y: number;
|
|
121
123
|
}[];
|
|
122
124
|
readonly tool: "draw" | "pencil" | "brush" | "marker" | "laser";
|
|
125
|
+
/** Optional stroke style mirrored from the local in-progress shape so the
|
|
126
|
+
* preview width/color/opacity matches the eventual committed item. */
|
|
127
|
+
readonly strokeWidth?: number;
|
|
128
|
+
readonly stroke?: string;
|
|
129
|
+
readonly strokeOpacity?: number;
|
|
123
130
|
};
|
|
124
131
|
type RemotePresenceCamera = {
|
|
125
132
|
readonly x: number;
|