canvu-react 0.3.24 → 0.3.26

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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvu-react",
3
- "version": "0.3.24",
3
+ "version": "0.3.26",
4
4
  "description": "Vector-first infinite canvas (SVG) with pan, zoom, React bindings, and optional plugins",
5
5
  "license": "MIT",
6
6
  "type": "module",