microboard-temp 0.14.25 → 0.14.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.
@@ -11945,6 +11945,7 @@ class BaseItem {
11945
11945
  shouldUseRelativeAlignment = true;
11946
11946
  resizeEnabled = true;
11947
11947
  onlyProportionalResize = false;
11948
+ opacity = 1;
11948
11949
  itemType = "";
11949
11950
  childIds = [];
11950
11951
  isHoverHighlighted = false;
@@ -12297,6 +12298,7 @@ class BaseItem {
12297
12298
  itemType: this.itemType,
12298
12299
  childIds: this.childIds,
12299
12300
  parent: this.parent,
12301
+ opacity: this.opacity,
12300
12302
  resizeEnabled: this.resizeEnabled
12301
12303
  };
12302
12304
  }
@@ -43143,7 +43145,7 @@ class DrawingHTMLRenderer {
43143
43145
  const pathElement = documentFactory.createElementNS("http://www.w3.org/2000/svg", "path");
43144
43146
  pathElement.setAttribute("d", this.getPathData(drawing));
43145
43147
  pathElement.setAttribute("stroke", resolveColor(drawing.borderColor, conf.theme, drawing.colorRole));
43146
- pathElement.setAttribute("stroke-opacity", `${drawing.borderOpacity}`);
43148
+ pathElement.setAttribute("stroke-opacity", `${drawing.opacity}`);
43147
43149
  pathElement.setAttribute("stroke-width", `${drawing.strokeWidth}`);
43148
43150
  pathElement.setAttribute("fill", "none");
43149
43151
  svg.appendChild(pathElement);
@@ -62978,6 +62980,7 @@ var DrawingDataSchema = exports_external.object({
62978
62980
  strokeStyle: ColorValueSchema,
62979
62981
  strokeWidth: exports_external.number(),
62980
62982
  colorRole: exports_external.enum(["foreground", "background"]).optional(),
62983
+ opacity: exports_external.number().optional(),
62981
62984
  linkTo: exports_external.string().optional()
62982
62985
  });
62983
62986
 
@@ -62994,7 +62997,6 @@ class Drawing extends BaseItem {
62994
62997
  borderStyle = "solid";
62995
62998
  colorRole = "foreground";
62996
62999
  linePattern = scalePatterns(this.strokeWidth)[this.borderStyle];
62997
- borderOpacity = 1;
62998
63000
  transformationRenderBlock = undefined;
62999
63001
  points = [];
63000
63002
  constructor(board, id = "") {
@@ -63008,14 +63010,12 @@ class Drawing extends BaseItem {
63008
63010
  points.push({ x: point5.x, y: point5.y });
63009
63011
  }
63010
63012
  return {
63011
- id: this.id,
63013
+ ...super.serialize(),
63012
63014
  itemType: "Drawing",
63013
63015
  points,
63014
- transformation: this.transformation.serialize(),
63015
63016
  strokeStyle: this.borderColor,
63016
63017
  strokeWidth: this.strokeWidth,
63017
- colorRole: this.colorRole,
63018
- linkTo: this.linkTo.serialize()
63018
+ colorRole: this.colorRole
63019
63019
  };
63020
63020
  }
63021
63021
  deserialize(data) {
@@ -63033,6 +63033,7 @@ class Drawing extends BaseItem {
63033
63033
  if (data.colorRole) {
63034
63034
  this.colorRole = data.colorRole;
63035
63035
  }
63036
+ this.opacity = data.opacity ?? this.opacity;
63036
63037
  this.updateVisuals({ method: "deserialize", class: this.itemType }, "FullRebuild" /* FullRebuild */);
63037
63038
  return this;
63038
63039
  }
@@ -63147,7 +63148,7 @@ class Drawing extends BaseItem {
63147
63148
  const ctx = context.ctx;
63148
63149
  ctx.save();
63149
63150
  ctx.strokeStyle = resolveColor(this.borderColor, conf.theme, this.colorRole);
63150
- ctx.globalAlpha = this.borderOpacity;
63151
+ ctx.globalAlpha = this.opacity;
63151
63152
  ctx.lineWidth = this.strokeWidth;
63152
63153
  ctx.lineCap = "round";
63153
63154
  ctx.setLineDash(this.linePattern);
@@ -63277,7 +63278,7 @@ class Drawing extends BaseItem {
63277
63278
  "borderColor",
63278
63279
  "strokeWidth",
63279
63280
  "borderStyle",
63280
- "borderOpacity",
63281
+ "opacity",
63281
63282
  "colorRole",
63282
63283
  "strokeStyle"
63283
63284
  ];
@@ -63287,7 +63288,7 @@ class Drawing extends BaseItem {
63287
63288
  return super.getPropertyUpdateHint(property);
63288
63289
  }
63289
63290
  getStrokeOpacity() {
63290
- return this.borderOpacity;
63291
+ return this.opacity;
63291
63292
  }
63292
63293
  getBorderStyle() {
63293
63294
  return this.borderStyle;
@@ -63333,7 +63334,7 @@ registerItem({
63333
63334
  itemType: "Drawing",
63334
63335
  points: [],
63335
63336
  borderColor: coerceColorValue("#000000"),
63336
- borderOpacity: 1,
63337
+ opacity: 1,
63337
63338
  borderStyle: "solid",
63338
63339
  strokeWidth: 2,
63339
63340
  transformation: new DefaultTransformationData
@@ -73315,7 +73316,7 @@ class AddHighlighter extends AddDrawing {
73315
73316
  }
73316
73317
  applyDrawingRole(drawing) {
73317
73318
  drawing.setColorRole("background");
73318
- drawing.apply(propertyOps.setProperty([drawing], "borderOpacity", 0.5));
73319
+ drawing.apply(propertyOps.setProperty([drawing], "opacity", 0.5));
73319
73320
  }
73320
73321
  updateSettings() {
73321
73322
  localStorage.setItem(conf.HIGHLIGHTER_SETTINGS_KEY, JSON.stringify({
package/dist/cjs/index.js CHANGED
@@ -11945,6 +11945,7 @@ class BaseItem {
11945
11945
  shouldUseRelativeAlignment = true;
11946
11946
  resizeEnabled = true;
11947
11947
  onlyProportionalResize = false;
11948
+ opacity = 1;
11948
11949
  itemType = "";
11949
11950
  childIds = [];
11950
11951
  isHoverHighlighted = false;
@@ -12297,6 +12298,7 @@ class BaseItem {
12297
12298
  itemType: this.itemType,
12298
12299
  childIds: this.childIds,
12299
12300
  parent: this.parent,
12301
+ opacity: this.opacity,
12300
12302
  resizeEnabled: this.resizeEnabled
12301
12303
  };
12302
12304
  }
@@ -43143,7 +43145,7 @@ class DrawingHTMLRenderer {
43143
43145
  const pathElement = documentFactory.createElementNS("http://www.w3.org/2000/svg", "path");
43144
43146
  pathElement.setAttribute("d", this.getPathData(drawing));
43145
43147
  pathElement.setAttribute("stroke", resolveColor(drawing.borderColor, conf.theme, drawing.colorRole));
43146
- pathElement.setAttribute("stroke-opacity", `${drawing.borderOpacity}`);
43148
+ pathElement.setAttribute("stroke-opacity", `${drawing.opacity}`);
43147
43149
  pathElement.setAttribute("stroke-width", `${drawing.strokeWidth}`);
43148
43150
  pathElement.setAttribute("fill", "none");
43149
43151
  svg.appendChild(pathElement);
@@ -62978,6 +62980,7 @@ var DrawingDataSchema = exports_external.object({
62978
62980
  strokeStyle: ColorValueSchema,
62979
62981
  strokeWidth: exports_external.number(),
62980
62982
  colorRole: exports_external.enum(["foreground", "background"]).optional(),
62983
+ opacity: exports_external.number().optional(),
62981
62984
  linkTo: exports_external.string().optional()
62982
62985
  });
62983
62986
 
@@ -62994,7 +62997,6 @@ class Drawing extends BaseItem {
62994
62997
  borderStyle = "solid";
62995
62998
  colorRole = "foreground";
62996
62999
  linePattern = scalePatterns(this.strokeWidth)[this.borderStyle];
62997
- borderOpacity = 1;
62998
63000
  transformationRenderBlock = undefined;
62999
63001
  points = [];
63000
63002
  constructor(board, id = "") {
@@ -63008,14 +63010,12 @@ class Drawing extends BaseItem {
63008
63010
  points.push({ x: point5.x, y: point5.y });
63009
63011
  }
63010
63012
  return {
63011
- id: this.id,
63013
+ ...super.serialize(),
63012
63014
  itemType: "Drawing",
63013
63015
  points,
63014
- transformation: this.transformation.serialize(),
63015
63016
  strokeStyle: this.borderColor,
63016
63017
  strokeWidth: this.strokeWidth,
63017
- colorRole: this.colorRole,
63018
- linkTo: this.linkTo.serialize()
63018
+ colorRole: this.colorRole
63019
63019
  };
63020
63020
  }
63021
63021
  deserialize(data) {
@@ -63033,6 +63033,7 @@ class Drawing extends BaseItem {
63033
63033
  if (data.colorRole) {
63034
63034
  this.colorRole = data.colorRole;
63035
63035
  }
63036
+ this.opacity = data.opacity ?? this.opacity;
63036
63037
  this.updateVisuals({ method: "deserialize", class: this.itemType }, "FullRebuild" /* FullRebuild */);
63037
63038
  return this;
63038
63039
  }
@@ -63147,7 +63148,7 @@ class Drawing extends BaseItem {
63147
63148
  const ctx = context.ctx;
63148
63149
  ctx.save();
63149
63150
  ctx.strokeStyle = resolveColor(this.borderColor, conf.theme, this.colorRole);
63150
- ctx.globalAlpha = this.borderOpacity;
63151
+ ctx.globalAlpha = this.opacity;
63151
63152
  ctx.lineWidth = this.strokeWidth;
63152
63153
  ctx.lineCap = "round";
63153
63154
  ctx.setLineDash(this.linePattern);
@@ -63277,7 +63278,7 @@ class Drawing extends BaseItem {
63277
63278
  "borderColor",
63278
63279
  "strokeWidth",
63279
63280
  "borderStyle",
63280
- "borderOpacity",
63281
+ "opacity",
63281
63282
  "colorRole",
63282
63283
  "strokeStyle"
63283
63284
  ];
@@ -63287,7 +63288,7 @@ class Drawing extends BaseItem {
63287
63288
  return super.getPropertyUpdateHint(property);
63288
63289
  }
63289
63290
  getStrokeOpacity() {
63290
- return this.borderOpacity;
63291
+ return this.opacity;
63291
63292
  }
63292
63293
  getBorderStyle() {
63293
63294
  return this.borderStyle;
@@ -63333,7 +63334,7 @@ registerItem({
63333
63334
  itemType: "Drawing",
63334
63335
  points: [],
63335
63336
  borderColor: coerceColorValue("#000000"),
63336
- borderOpacity: 1,
63337
+ opacity: 1,
63337
63338
  borderStyle: "solid",
63338
63339
  strokeWidth: 2,
63339
63340
  transformation: new DefaultTransformationData
@@ -73315,7 +73316,7 @@ class AddHighlighter extends AddDrawing {
73315
73316
  }
73316
73317
  applyDrawingRole(drawing) {
73317
73318
  drawing.setColorRole("background");
73318
- drawing.apply(propertyOps.setProperty([drawing], "borderOpacity", 0.5));
73319
+ drawing.apply(propertyOps.setProperty([drawing], "opacity", 0.5));
73319
73320
  }
73320
73321
  updateSettings() {
73321
73322
  localStorage.setItem(conf.HIGHLIGHTER_SETTINGS_KEY, JSON.stringify({
package/dist/cjs/node.js CHANGED
@@ -12981,6 +12981,7 @@ class BaseItem {
12981
12981
  shouldUseRelativeAlignment = true;
12982
12982
  resizeEnabled = true;
12983
12983
  onlyProportionalResize = false;
12984
+ opacity = 1;
12984
12985
  itemType = "";
12985
12986
  childIds = [];
12986
12987
  isHoverHighlighted = false;
@@ -13333,6 +13334,7 @@ class BaseItem {
13333
13334
  itemType: this.itemType,
13334
13335
  childIds: this.childIds,
13335
13336
  parent: this.parent,
13337
+ opacity: this.opacity,
13336
13338
  resizeEnabled: this.resizeEnabled
13337
13339
  };
13338
13340
  }
@@ -45615,7 +45617,7 @@ class DrawingHTMLRenderer {
45615
45617
  const pathElement = documentFactory.createElementNS("http://www.w3.org/2000/svg", "path");
45616
45618
  pathElement.setAttribute("d", this.getPathData(drawing));
45617
45619
  pathElement.setAttribute("stroke", resolveColor(drawing.borderColor, conf.theme, drawing.colorRole));
45618
- pathElement.setAttribute("stroke-opacity", `${drawing.borderOpacity}`);
45620
+ pathElement.setAttribute("stroke-opacity", `${drawing.opacity}`);
45619
45621
  pathElement.setAttribute("stroke-width", `${drawing.strokeWidth}`);
45620
45622
  pathElement.setAttribute("fill", "none");
45621
45623
  svg.appendChild(pathElement);
@@ -65451,6 +65453,7 @@ var DrawingDataSchema = exports_external.object({
65451
65453
  strokeStyle: ColorValueSchema,
65452
65454
  strokeWidth: exports_external.number(),
65453
65455
  colorRole: exports_external.enum(["foreground", "background"]).optional(),
65456
+ opacity: exports_external.number().optional(),
65454
65457
  linkTo: exports_external.string().optional()
65455
65458
  });
65456
65459
 
@@ -65467,7 +65470,6 @@ class Drawing extends BaseItem {
65467
65470
  borderStyle = "solid";
65468
65471
  colorRole = "foreground";
65469
65472
  linePattern = scalePatterns(this.strokeWidth)[this.borderStyle];
65470
- borderOpacity = 1;
65471
65473
  transformationRenderBlock = undefined;
65472
65474
  points = [];
65473
65475
  constructor(board, id = "") {
@@ -65481,14 +65483,12 @@ class Drawing extends BaseItem {
65481
65483
  points.push({ x: point5.x, y: point5.y });
65482
65484
  }
65483
65485
  return {
65484
- id: this.id,
65486
+ ...super.serialize(),
65485
65487
  itemType: "Drawing",
65486
65488
  points,
65487
- transformation: this.transformation.serialize(),
65488
65489
  strokeStyle: this.borderColor,
65489
65490
  strokeWidth: this.strokeWidth,
65490
- colorRole: this.colorRole,
65491
- linkTo: this.linkTo.serialize()
65491
+ colorRole: this.colorRole
65492
65492
  };
65493
65493
  }
65494
65494
  deserialize(data) {
@@ -65506,6 +65506,7 @@ class Drawing extends BaseItem {
65506
65506
  if (data.colorRole) {
65507
65507
  this.colorRole = data.colorRole;
65508
65508
  }
65509
+ this.opacity = data.opacity ?? this.opacity;
65509
65510
  this.updateVisuals({ method: "deserialize", class: this.itemType }, "FullRebuild" /* FullRebuild */);
65510
65511
  return this;
65511
65512
  }
@@ -65620,7 +65621,7 @@ class Drawing extends BaseItem {
65620
65621
  const ctx = context.ctx;
65621
65622
  ctx.save();
65622
65623
  ctx.strokeStyle = resolveColor(this.borderColor, conf.theme, this.colorRole);
65623
- ctx.globalAlpha = this.borderOpacity;
65624
+ ctx.globalAlpha = this.opacity;
65624
65625
  ctx.lineWidth = this.strokeWidth;
65625
65626
  ctx.lineCap = "round";
65626
65627
  ctx.setLineDash(this.linePattern);
@@ -65750,7 +65751,7 @@ class Drawing extends BaseItem {
65750
65751
  "borderColor",
65751
65752
  "strokeWidth",
65752
65753
  "borderStyle",
65753
- "borderOpacity",
65754
+ "opacity",
65754
65755
  "colorRole",
65755
65756
  "strokeStyle"
65756
65757
  ];
@@ -65760,7 +65761,7 @@ class Drawing extends BaseItem {
65760
65761
  return super.getPropertyUpdateHint(property);
65761
65762
  }
65762
65763
  getStrokeOpacity() {
65763
- return this.borderOpacity;
65764
+ return this.opacity;
65764
65765
  }
65765
65766
  getBorderStyle() {
65766
65767
  return this.borderStyle;
@@ -65806,7 +65807,7 @@ registerItem({
65806
65807
  itemType: "Drawing",
65807
65808
  points: [],
65808
65809
  borderColor: coerceColorValue("#000000"),
65809
- borderOpacity: 1,
65810
+ opacity: 1,
65810
65811
  borderStyle: "solid",
65811
65812
  strokeWidth: 2,
65812
65813
  transformation: new DefaultTransformationData
@@ -75788,7 +75789,7 @@ class AddHighlighter extends AddDrawing {
75788
75789
  }
75789
75790
  applyDrawingRole(drawing) {
75790
75791
  drawing.setColorRole("background");
75791
- drawing.apply(propertyOps.setProperty([drawing], "borderOpacity", 0.5));
75792
+ drawing.apply(propertyOps.setProperty([drawing], "opacity", 0.5));
75792
75793
  }
75793
75794
  updateSettings() {
75794
75795
  localStorage.setItem(conf.HIGHLIGHTER_SETTINGS_KEY, JSON.stringify({
@@ -32,7 +32,7 @@ const overlayIconManifest = {
32
32
  "overlay-icons/Items/Dice/icons/Throw.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M12%204a8%208%200%201%201-7.45%2011%22%2F%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22m6%2013%201.5%204L3.5%2016z%22%2F%3E%3C%2Fsvg%3E",
33
33
  "overlay-icons/Items/Dice/icons/Tool.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%2216%22%20height%3D%2216%22%20rx%3D%223%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%229%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2215%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E",
34
34
  "overlay-icons/Items/Drawing/icons/Eraser.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2017%2017%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M6.16%206.38%202.03%2010.5l4.33%204.33h1.95l3.15-3.15zm1.17-1.18%205.31%205.31%202.36-2.36-5.31-5.31zm3.34%209.63h5a.83.83%200%201%201%200%201.67H9l-3.33.01L.26%2011.1a.83.83%200%200%201%200-1.18L9.1%201.08a.83.83%200%200%201%201.18%200l6.48%206.48a.83.83%200%200%201%200%201.18z%22%2F%3E%3C%2Fsvg%3E",
35
- "overlay-icons/Items/Drawing/icons/Highlighter.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M9%2017.33A8.33%208.33%200%201%200%209%20.67a8.33%208.33%200%200%200%200%2016.66m2.72-2.24A6.66%206.66%200%200%201%209%2015.67a6.66%206.66%200%200%201-2.72-.58l.27-4.42h4.9zM6.5%209V7.22c0-.43.28-.81.68-.95l3-1c.65-.22%201.32.27%201.32.95V9h.6c.19%200%20.37.06.51.18.15.11.25.27.3.45l.18%202.66A6.65%206.65%200%200%200%2015.67%209%206.67%206.67%200%201%200%204.91%2014.3l.18-2.67c.04-.18.15-.34.29-.45A.83.83%200%200%201%205.9%209z%22%2F%3E%3C%2Fsvg%3E",
35
+ "overlay-icons/Items/Drawing/icons/Highlighter.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.7209%2015.0883C10.865%2015.4714%209.93767%2015.6686%209.00002%2015.6667C8.06237%2015.6686%207.13499%2015.4715%206.27919%2015.0883L6.55169%2010.6667H11.4484L11.7209%2015.0883ZM0.666687%209.00001C0.666687%2013.6025%204.39752%2017.3333%209.00002%2017.3333C13.6025%2017.3333%2017.3334%2013.6025%2017.3334%209.00001C17.3334%204.39751%2013.6025%200.666672%209.00002%200.666672C4.39752%200.666672%200.666687%204.39751%200.666687%209.00001ZM12.1%209.00001H11.5V6.22076C11.5%205.53821%2010.8313%205.05624%2010.1838%205.27208L7.18379%206.27208C6.77545%206.4082%206.50002%206.79033%206.50002%207.22076V9.00001H5.90002C5.71439%209.0002%205.53414%209.06236%205.38785%209.17664C5.24157%209.29092%205.13763%209.45077%205.09252%209.63084L4.79085%2014.17C3.72337%2013.3009%202.95109%2012.1226%202.58007%2010.797C2.20905%209.47141%202.25747%208.06345%202.71869%206.76646C3.17991%205.46947%204.03131%204.34706%205.15599%203.55333C6.28066%202.75961%207.62347%202.33349%209.00002%202.33349C10.3766%202.33349%2011.7194%202.75961%2012.8441%203.55333C13.9687%204.34706%2014.8201%205.46947%2015.2813%206.76646C15.7426%208.06345%2015.791%209.47141%2015.42%2010.797C15.0489%2012.1226%2014.2767%2013.3009%2013.2092%2014.17L12.9084%209.63084C12.8632%209.45063%2012.7591%209.29068%2012.6127%209.17638C12.4662%209.06209%2012.2858%209.00001%2012.1%209.00001Z%22%20%2F%3E%3C%2Fsvg%3E",
36
36
  "overlay-icons/Items/Drawing/icons/Pen.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M13.95%204.12a3.82%203.82%200%200%201%205.4%205.41l-8.56%208.58h8.77a.94.94%200%201%201%200%201.89H4.44a.94.94%200%200%201-.94-.94v-4.08c0-.25.1-.49.28-.67zM8.12%2018.11l7.48-7.5-2.73-2.74-7.48%207.5v2.74zm6.09-11.58%202.73%202.74%201.08-1.08a1.93%201.93%200%200%200-2.73-2.74z%22%2F%3E%3C%2Fsvg%3E",
37
37
  "overlay-icons/Items/Frame/Basic/1-1/1-1.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%221.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E",
38
38
  "overlay-icons/Items/Frame/Basic/16-9/16-9.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%2216%22%20height%3D%229%22%20rx%3D%221.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E",
@@ -11719,6 +11719,7 @@ class BaseItem {
11719
11719
  shouldUseRelativeAlignment = true;
11720
11720
  resizeEnabled = true;
11721
11721
  onlyProportionalResize = false;
11722
+ opacity = 1;
11722
11723
  itemType = "";
11723
11724
  childIds = [];
11724
11725
  isHoverHighlighted = false;
@@ -12071,6 +12072,7 @@ class BaseItem {
12071
12072
  itemType: this.itemType,
12072
12073
  childIds: this.childIds,
12073
12074
  parent: this.parent,
12075
+ opacity: this.opacity,
12074
12076
  resizeEnabled: this.resizeEnabled
12075
12077
  };
12076
12078
  }
@@ -42925,7 +42927,7 @@ class DrawingHTMLRenderer {
42925
42927
  const pathElement = documentFactory.createElementNS("http://www.w3.org/2000/svg", "path");
42926
42928
  pathElement.setAttribute("d", this.getPathData(drawing));
42927
42929
  pathElement.setAttribute("stroke", resolveColor(drawing.borderColor, conf.theme, drawing.colorRole));
42928
- pathElement.setAttribute("stroke-opacity", `${drawing.borderOpacity}`);
42930
+ pathElement.setAttribute("stroke-opacity", `${drawing.opacity}`);
42929
42931
  pathElement.setAttribute("stroke-width", `${drawing.strokeWidth}`);
42930
42932
  pathElement.setAttribute("fill", "none");
42931
42933
  svg.appendChild(pathElement);
@@ -62760,6 +62762,7 @@ var DrawingDataSchema = exports_external.object({
62760
62762
  strokeStyle: ColorValueSchema,
62761
62763
  strokeWidth: exports_external.number(),
62762
62764
  colorRole: exports_external.enum(["foreground", "background"]).optional(),
62765
+ opacity: exports_external.number().optional(),
62763
62766
  linkTo: exports_external.string().optional()
62764
62767
  });
62765
62768
 
@@ -62776,7 +62779,6 @@ class Drawing extends BaseItem {
62776
62779
  borderStyle = "solid";
62777
62780
  colorRole = "foreground";
62778
62781
  linePattern = scalePatterns(this.strokeWidth)[this.borderStyle];
62779
- borderOpacity = 1;
62780
62782
  transformationRenderBlock = undefined;
62781
62783
  points = [];
62782
62784
  constructor(board, id = "") {
@@ -62790,14 +62792,12 @@ class Drawing extends BaseItem {
62790
62792
  points.push({ x: point5.x, y: point5.y });
62791
62793
  }
62792
62794
  return {
62793
- id: this.id,
62795
+ ...super.serialize(),
62794
62796
  itemType: "Drawing",
62795
62797
  points,
62796
- transformation: this.transformation.serialize(),
62797
62798
  strokeStyle: this.borderColor,
62798
62799
  strokeWidth: this.strokeWidth,
62799
- colorRole: this.colorRole,
62800
- linkTo: this.linkTo.serialize()
62800
+ colorRole: this.colorRole
62801
62801
  };
62802
62802
  }
62803
62803
  deserialize(data) {
@@ -62815,6 +62815,7 @@ class Drawing extends BaseItem {
62815
62815
  if (data.colorRole) {
62816
62816
  this.colorRole = data.colorRole;
62817
62817
  }
62818
+ this.opacity = data.opacity ?? this.opacity;
62818
62819
  this.updateVisuals({ method: "deserialize", class: this.itemType }, "FullRebuild" /* FullRebuild */);
62819
62820
  return this;
62820
62821
  }
@@ -62929,7 +62930,7 @@ class Drawing extends BaseItem {
62929
62930
  const ctx = context.ctx;
62930
62931
  ctx.save();
62931
62932
  ctx.strokeStyle = resolveColor(this.borderColor, conf.theme, this.colorRole);
62932
- ctx.globalAlpha = this.borderOpacity;
62933
+ ctx.globalAlpha = this.opacity;
62933
62934
  ctx.lineWidth = this.strokeWidth;
62934
62935
  ctx.lineCap = "round";
62935
62936
  ctx.setLineDash(this.linePattern);
@@ -63059,7 +63060,7 @@ class Drawing extends BaseItem {
63059
63060
  "borderColor",
63060
63061
  "strokeWidth",
63061
63062
  "borderStyle",
63062
- "borderOpacity",
63063
+ "opacity",
63063
63064
  "colorRole",
63064
63065
  "strokeStyle"
63065
63066
  ];
@@ -63069,7 +63070,7 @@ class Drawing extends BaseItem {
63069
63070
  return super.getPropertyUpdateHint(property);
63070
63071
  }
63071
63072
  getStrokeOpacity() {
63072
- return this.borderOpacity;
63073
+ return this.opacity;
63073
63074
  }
63074
63075
  getBorderStyle() {
63075
63076
  return this.borderStyle;
@@ -63115,7 +63116,7 @@ registerItem({
63115
63116
  itemType: "Drawing",
63116
63117
  points: [],
63117
63118
  borderColor: coerceColorValue("#000000"),
63118
- borderOpacity: 1,
63119
+ opacity: 1,
63119
63120
  borderStyle: "solid",
63120
63121
  strokeWidth: 2,
63121
63122
  transformation: new DefaultTransformationData
@@ -73097,7 +73098,7 @@ class AddHighlighter extends AddDrawing {
73097
73098
  }
73098
73099
  applyDrawingRole(drawing) {
73099
73100
  drawing.setColorRole("background");
73100
- drawing.apply(propertyOps.setProperty([drawing], "borderOpacity", 0.5));
73101
+ drawing.apply(propertyOps.setProperty([drawing], "opacity", 0.5));
73101
73102
  }
73102
73103
  updateSettings() {
73103
73104
  localStorage.setItem(conf.HIGHLIGHTER_SETTINGS_KEY, JSON.stringify({
package/dist/esm/index.js CHANGED
@@ -11712,6 +11712,7 @@ class BaseItem {
11712
11712
  shouldUseRelativeAlignment = true;
11713
11713
  resizeEnabled = true;
11714
11714
  onlyProportionalResize = false;
11715
+ opacity = 1;
11715
11716
  itemType = "";
11716
11717
  childIds = [];
11717
11718
  isHoverHighlighted = false;
@@ -12064,6 +12065,7 @@ class BaseItem {
12064
12065
  itemType: this.itemType,
12065
12066
  childIds: this.childIds,
12066
12067
  parent: this.parent,
12068
+ opacity: this.opacity,
12067
12069
  resizeEnabled: this.resizeEnabled
12068
12070
  };
12069
12071
  }
@@ -42918,7 +42920,7 @@ class DrawingHTMLRenderer {
42918
42920
  const pathElement = documentFactory.createElementNS("http://www.w3.org/2000/svg", "path");
42919
42921
  pathElement.setAttribute("d", this.getPathData(drawing));
42920
42922
  pathElement.setAttribute("stroke", resolveColor(drawing.borderColor, conf.theme, drawing.colorRole));
42921
- pathElement.setAttribute("stroke-opacity", `${drawing.borderOpacity}`);
42923
+ pathElement.setAttribute("stroke-opacity", `${drawing.opacity}`);
42922
42924
  pathElement.setAttribute("stroke-width", `${drawing.strokeWidth}`);
42923
42925
  pathElement.setAttribute("fill", "none");
42924
42926
  svg.appendChild(pathElement);
@@ -62753,6 +62755,7 @@ var DrawingDataSchema = exports_external.object({
62753
62755
  strokeStyle: ColorValueSchema,
62754
62756
  strokeWidth: exports_external.number(),
62755
62757
  colorRole: exports_external.enum(["foreground", "background"]).optional(),
62758
+ opacity: exports_external.number().optional(),
62756
62759
  linkTo: exports_external.string().optional()
62757
62760
  });
62758
62761
 
@@ -62769,7 +62772,6 @@ class Drawing extends BaseItem {
62769
62772
  borderStyle = "solid";
62770
62773
  colorRole = "foreground";
62771
62774
  linePattern = scalePatterns(this.strokeWidth)[this.borderStyle];
62772
- borderOpacity = 1;
62773
62775
  transformationRenderBlock = undefined;
62774
62776
  points = [];
62775
62777
  constructor(board, id = "") {
@@ -62783,14 +62785,12 @@ class Drawing extends BaseItem {
62783
62785
  points.push({ x: point5.x, y: point5.y });
62784
62786
  }
62785
62787
  return {
62786
- id: this.id,
62788
+ ...super.serialize(),
62787
62789
  itemType: "Drawing",
62788
62790
  points,
62789
- transformation: this.transformation.serialize(),
62790
62791
  strokeStyle: this.borderColor,
62791
62792
  strokeWidth: this.strokeWidth,
62792
- colorRole: this.colorRole,
62793
- linkTo: this.linkTo.serialize()
62793
+ colorRole: this.colorRole
62794
62794
  };
62795
62795
  }
62796
62796
  deserialize(data) {
@@ -62808,6 +62808,7 @@ class Drawing extends BaseItem {
62808
62808
  if (data.colorRole) {
62809
62809
  this.colorRole = data.colorRole;
62810
62810
  }
62811
+ this.opacity = data.opacity ?? this.opacity;
62811
62812
  this.updateVisuals({ method: "deserialize", class: this.itemType }, "FullRebuild" /* FullRebuild */);
62812
62813
  return this;
62813
62814
  }
@@ -62922,7 +62923,7 @@ class Drawing extends BaseItem {
62922
62923
  const ctx = context.ctx;
62923
62924
  ctx.save();
62924
62925
  ctx.strokeStyle = resolveColor(this.borderColor, conf.theme, this.colorRole);
62925
- ctx.globalAlpha = this.borderOpacity;
62926
+ ctx.globalAlpha = this.opacity;
62926
62927
  ctx.lineWidth = this.strokeWidth;
62927
62928
  ctx.lineCap = "round";
62928
62929
  ctx.setLineDash(this.linePattern);
@@ -63052,7 +63053,7 @@ class Drawing extends BaseItem {
63052
63053
  "borderColor",
63053
63054
  "strokeWidth",
63054
63055
  "borderStyle",
63055
- "borderOpacity",
63056
+ "opacity",
63056
63057
  "colorRole",
63057
63058
  "strokeStyle"
63058
63059
  ];
@@ -63062,7 +63063,7 @@ class Drawing extends BaseItem {
63062
63063
  return super.getPropertyUpdateHint(property);
63063
63064
  }
63064
63065
  getStrokeOpacity() {
63065
- return this.borderOpacity;
63066
+ return this.opacity;
63066
63067
  }
63067
63068
  getBorderStyle() {
63068
63069
  return this.borderStyle;
@@ -63108,7 +63109,7 @@ registerItem({
63108
63109
  itemType: "Drawing",
63109
63110
  points: [],
63110
63111
  borderColor: coerceColorValue("#000000"),
63111
- borderOpacity: 1,
63112
+ opacity: 1,
63112
63113
  borderStyle: "solid",
63113
63114
  strokeWidth: 2,
63114
63115
  transformation: new DefaultTransformationData
@@ -73090,7 +73091,7 @@ class AddHighlighter extends AddDrawing {
73090
73091
  }
73091
73092
  applyDrawingRole(drawing) {
73092
73093
  drawing.setColorRole("background");
73093
- drawing.apply(propertyOps.setProperty([drawing], "borderOpacity", 0.5));
73094
+ drawing.apply(propertyOps.setProperty([drawing], "opacity", 0.5));
73094
73095
  }
73095
73096
  updateSettings() {
73096
73097
  localStorage.setItem(conf.HIGHLIGHTER_SETTINGS_KEY, JSON.stringify({
package/dist/esm/node.js CHANGED
@@ -12495,6 +12495,7 @@ class BaseItem {
12495
12495
  shouldUseRelativeAlignment = true;
12496
12496
  resizeEnabled = true;
12497
12497
  onlyProportionalResize = false;
12498
+ opacity = 1;
12498
12499
  itemType = "";
12499
12500
  childIds = [];
12500
12501
  isHoverHighlighted = false;
@@ -12847,6 +12848,7 @@ class BaseItem {
12847
12848
  itemType: this.itemType,
12848
12849
  childIds: this.childIds,
12849
12850
  parent: this.parent,
12851
+ opacity: this.opacity,
12850
12852
  resizeEnabled: this.resizeEnabled
12851
12853
  };
12852
12854
  }
@@ -45385,7 +45387,7 @@ class DrawingHTMLRenderer {
45385
45387
  const pathElement = documentFactory.createElementNS("http://www.w3.org/2000/svg", "path");
45386
45388
  pathElement.setAttribute("d", this.getPathData(drawing));
45387
45389
  pathElement.setAttribute("stroke", resolveColor(drawing.borderColor, conf.theme, drawing.colorRole));
45388
- pathElement.setAttribute("stroke-opacity", `${drawing.borderOpacity}`);
45390
+ pathElement.setAttribute("stroke-opacity", `${drawing.opacity}`);
45389
45391
  pathElement.setAttribute("stroke-width", `${drawing.strokeWidth}`);
45390
45392
  pathElement.setAttribute("fill", "none");
45391
45393
  svg.appendChild(pathElement);
@@ -65221,6 +65223,7 @@ var DrawingDataSchema = exports_external.object({
65221
65223
  strokeStyle: ColorValueSchema,
65222
65224
  strokeWidth: exports_external.number(),
65223
65225
  colorRole: exports_external.enum(["foreground", "background"]).optional(),
65226
+ opacity: exports_external.number().optional(),
65224
65227
  linkTo: exports_external.string().optional()
65225
65228
  });
65226
65229
 
@@ -65237,7 +65240,6 @@ class Drawing extends BaseItem {
65237
65240
  borderStyle = "solid";
65238
65241
  colorRole = "foreground";
65239
65242
  linePattern = scalePatterns(this.strokeWidth)[this.borderStyle];
65240
- borderOpacity = 1;
65241
65243
  transformationRenderBlock = undefined;
65242
65244
  points = [];
65243
65245
  constructor(board, id = "") {
@@ -65251,14 +65253,12 @@ class Drawing extends BaseItem {
65251
65253
  points.push({ x: point5.x, y: point5.y });
65252
65254
  }
65253
65255
  return {
65254
- id: this.id,
65256
+ ...super.serialize(),
65255
65257
  itemType: "Drawing",
65256
65258
  points,
65257
- transformation: this.transformation.serialize(),
65258
65259
  strokeStyle: this.borderColor,
65259
65260
  strokeWidth: this.strokeWidth,
65260
- colorRole: this.colorRole,
65261
- linkTo: this.linkTo.serialize()
65261
+ colorRole: this.colorRole
65262
65262
  };
65263
65263
  }
65264
65264
  deserialize(data) {
@@ -65276,6 +65276,7 @@ class Drawing extends BaseItem {
65276
65276
  if (data.colorRole) {
65277
65277
  this.colorRole = data.colorRole;
65278
65278
  }
65279
+ this.opacity = data.opacity ?? this.opacity;
65279
65280
  this.updateVisuals({ method: "deserialize", class: this.itemType }, "FullRebuild" /* FullRebuild */);
65280
65281
  return this;
65281
65282
  }
@@ -65390,7 +65391,7 @@ class Drawing extends BaseItem {
65390
65391
  const ctx = context.ctx;
65391
65392
  ctx.save();
65392
65393
  ctx.strokeStyle = resolveColor(this.borderColor, conf.theme, this.colorRole);
65393
- ctx.globalAlpha = this.borderOpacity;
65394
+ ctx.globalAlpha = this.opacity;
65394
65395
  ctx.lineWidth = this.strokeWidth;
65395
65396
  ctx.lineCap = "round";
65396
65397
  ctx.setLineDash(this.linePattern);
@@ -65520,7 +65521,7 @@ class Drawing extends BaseItem {
65520
65521
  "borderColor",
65521
65522
  "strokeWidth",
65522
65523
  "borderStyle",
65523
- "borderOpacity",
65524
+ "opacity",
65524
65525
  "colorRole",
65525
65526
  "strokeStyle"
65526
65527
  ];
@@ -65530,7 +65531,7 @@ class Drawing extends BaseItem {
65530
65531
  return super.getPropertyUpdateHint(property);
65531
65532
  }
65532
65533
  getStrokeOpacity() {
65533
- return this.borderOpacity;
65534
+ return this.opacity;
65534
65535
  }
65535
65536
  getBorderStyle() {
65536
65537
  return this.borderStyle;
@@ -65576,7 +65577,7 @@ registerItem({
65576
65577
  itemType: "Drawing",
65577
65578
  points: [],
65578
65579
  borderColor: coerceColorValue("#000000"),
65579
- borderOpacity: 1,
65580
+ opacity: 1,
65580
65581
  borderStyle: "solid",
65581
65582
  strokeWidth: 2,
65582
65583
  transformation: new DefaultTransformationData
@@ -75558,7 +75559,7 @@ class AddHighlighter extends AddDrawing {
75558
75559
  }
75559
75560
  applyDrawingRole(drawing) {
75560
75561
  drawing.setColorRole("background");
75561
- drawing.apply(propertyOps.setProperty([drawing], "borderOpacity", 0.5));
75562
+ drawing.apply(propertyOps.setProperty([drawing], "opacity", 0.5));
75562
75563
  }
75563
75564
  updateSettings() {
75564
75565
  localStorage.setItem(conf.HIGHLIGHTER_SETTINGS_KEY, JSON.stringify({
@@ -31,7 +31,7 @@ export const overlayIconManifest = {
31
31
  "overlay-icons/Items/Dice/icons/Throw.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M12%204a8%208%200%201%201-7.45%2011%22%2F%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22m6%2013%201.5%204L3.5%2016z%22%2F%3E%3C%2Fsvg%3E",
32
32
  "overlay-icons/Items/Dice/icons/Tool.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%2216%22%20height%3D%2216%22%20rx%3D%223%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2215%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%229%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2215%22%20r%3D%221.5%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E",
33
33
  "overlay-icons/Items/Drawing/icons/Eraser.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2017%2017%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M6.16%206.38%202.03%2010.5l4.33%204.33h1.95l3.15-3.15zm1.17-1.18%205.31%205.31%202.36-2.36-5.31-5.31zm3.34%209.63h5a.83.83%200%201%201%200%201.67H9l-3.33.01L.26%2011.1a.83.83%200%200%201%200-1.18L9.1%201.08a.83.83%200%200%201%201.18%200l6.48%206.48a.83.83%200%200%201%200%201.18z%22%2F%3E%3C%2Fsvg%3E",
34
- "overlay-icons/Items/Drawing/icons/Highlighter.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M9%2017.33A8.33%208.33%200%201%200%209%20.67a8.33%208.33%200%200%200%200%2016.66m2.72-2.24A6.66%206.66%200%200%201%209%2015.67a6.66%206.66%200%200%201-2.72-.58l.27-4.42h4.9zM6.5%209V7.22c0-.43.28-.81.68-.95l3-1c.65-.22%201.32.27%201.32.95V9h.6c.19%200%20.37.06.51.18.15.11.25.27.3.45l.18%202.66A6.65%206.65%200%200%200%2015.67%209%206.67%206.67%200%201%200%204.91%2014.3l.18-2.67c.04-.18.15-.34.29-.45A.83.83%200%200%201%205.9%209z%22%2F%3E%3C%2Fsvg%3E",
34
+ "overlay-icons/Items/Drawing/icons/Highlighter.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.7209%2015.0883C10.865%2015.4714%209.93767%2015.6686%209.00002%2015.6667C8.06237%2015.6686%207.13499%2015.4715%206.27919%2015.0883L6.55169%2010.6667H11.4484L11.7209%2015.0883ZM0.666687%209.00001C0.666687%2013.6025%204.39752%2017.3333%209.00002%2017.3333C13.6025%2017.3333%2017.3334%2013.6025%2017.3334%209.00001C17.3334%204.39751%2013.6025%200.666672%209.00002%200.666672C4.39752%200.666672%200.666687%204.39751%200.666687%209.00001ZM12.1%209.00001H11.5V6.22076C11.5%205.53821%2010.8313%205.05624%2010.1838%205.27208L7.18379%206.27208C6.77545%206.4082%206.50002%206.79033%206.50002%207.22076V9.00001H5.90002C5.71439%209.0002%205.53414%209.06236%205.38785%209.17664C5.24157%209.29092%205.13763%209.45077%205.09252%209.63084L4.79085%2014.17C3.72337%2013.3009%202.95109%2012.1226%202.58007%2010.797C2.20905%209.47141%202.25747%208.06345%202.71869%206.76646C3.17991%205.46947%204.03131%204.34706%205.15599%203.55333C6.28066%202.75961%207.62347%202.33349%209.00002%202.33349C10.3766%202.33349%2011.7194%202.75961%2012.8441%203.55333C13.9687%204.34706%2014.8201%205.46947%2015.2813%206.76646C15.7426%208.06345%2015.791%209.47141%2015.42%2010.797C15.0489%2012.1226%2014.2767%2013.3009%2013.2092%2014.17L12.9084%209.63084C12.8632%209.45063%2012.7591%209.29068%2012.6127%209.17638C12.4662%209.06209%2012.2858%209.00001%2012.1%209.00001Z%22%20%2F%3E%3C%2Fsvg%3E",
35
35
  "overlay-icons/Items/Drawing/icons/Pen.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%20%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M13.95%204.12a3.82%203.82%200%200%201%205.4%205.41l-8.56%208.58h8.77a.94.94%200%201%201%200%201.89H4.44a.94.94%200%200%201-.94-.94v-4.08c0-.25.1-.49.28-.67zM8.12%2018.11l7.48-7.5-2.73-2.74-7.48%207.5v2.74zm6.09-11.58%202.73%202.74%201.08-1.08a1.93%201.93%200%200%200-2.73-2.74z%22%2F%3E%3C%2Fsvg%3E",
36
36
  "overlay-icons/Items/Frame/Basic/1-1/1-1.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%221.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E",
37
37
  "overlay-icons/Items/Frame/Basic/16-9/16-9.icon.svg": "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%2216%22%20height%3D%229%22%20rx%3D%221.5%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E",
@@ -1,3 +1,8 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" fill="none">
2
- <path fill="currentColor" d="M9 17.33A8.33 8.33 0 1 0 9 .67a8.33 8.33 0 0 0 0 16.66m2.72-2.24A6.66 6.66 0 0 1 9 15.67a6.66 6.66 0 0 1-2.72-.58l.27-4.42h4.9zM6.5 9V7.22c0-.43.28-.81.68-.95l3-1c.65-.22 1.32.27 1.32.95V9h.6c.19 0 .37.06.51.18.15.11.25.27.3.45l.18 2.66A6.65 6.65 0 0 0 15.67 9 6.67 6.67 0 1 0 4.91 14.3l.18-2.67c.04-.18.15-.34.29-.45A.83.83 0 0 1 5.9 9z"/>
2
+ <path
3
+ fill="currentColor"
4
+ fill-rule="evenodd"
5
+ clip-rule="evenodd"
6
+ d="M11.7209 15.0883C10.865 15.4714 9.93767 15.6686 9.00002 15.6667C8.06237 15.6686 7.13499 15.4715 6.27919 15.0883L6.55169 10.6667H11.4484L11.7209 15.0883ZM0.666687 9.00001C0.666687 13.6025 4.39752 17.3333 9.00002 17.3333C13.6025 17.3333 17.3334 13.6025 17.3334 9.00001C17.3334 4.39751 13.6025 0.666672 9.00002 0.666672C4.39752 0.666672 0.666687 4.39751 0.666687 9.00001ZM12.1 9.00001H11.5V6.22076C11.5 5.53821 10.8313 5.05624 10.1838 5.27208L7.18379 6.27208C6.77545 6.4082 6.50002 6.79033 6.50002 7.22076V9.00001H5.90002C5.71439 9.0002 5.53414 9.06236 5.38785 9.17664C5.24157 9.29092 5.13763 9.45077 5.09252 9.63084L4.79085 14.17C3.72337 13.3009 2.95109 12.1226 2.58007 10.797C2.20905 9.47141 2.25747 8.06345 2.71869 6.76646C3.17991 5.46947 4.03131 4.34706 5.15599 3.55333C6.28066 2.75961 7.62347 2.33349 9.00002 2.33349C10.3766 2.33349 11.7194 2.75961 12.8441 3.55333C13.9687 4.34706 14.8201 5.46947 15.2813 6.76646C15.7426 8.06345 15.791 9.47141 15.42 10.797C15.0489 12.1226 14.2767 13.3009 13.2092 14.17L12.9084 9.63084C12.8632 9.45063 12.7591 9.29068 12.6127 9.17638C12.4662 9.06209 12.2858 9.00001 12.1 9.00001Z"
7
+ />
3
8
  </svg>
@@ -29,6 +29,7 @@ export interface BaseItemData {
29
29
  linkTo?: string;
30
30
  childIds?: string[];
31
31
  parent?: string;
32
+ opacity?: number;
32
33
  [key: string]: unknown;
33
34
  }
34
35
  export type SerializedItemData<T extends BaseItemData = BaseItemData> = T & {
@@ -53,6 +54,7 @@ export declare class BaseItem<T extends BaseItem<any> = any> implements Geometry
53
54
  shouldUseRelativeAlignment: boolean;
54
55
  resizeEnabled: boolean;
55
56
  onlyProportionalResize: boolean;
57
+ opacity: number;
56
58
  itemType: ItemType;
57
59
  childIds: string[];
58
60
  isHoverHighlighted: boolean;
@@ -23,6 +23,7 @@ export interface DrawingData {
23
23
  strokeStyle: ColorValue | string;
24
24
  strokeWidth: number;
25
25
  colorRole?: ColorRole;
26
+ opacity?: number;
26
27
  linkTo?: string;
27
28
  [key: string]: unknown;
28
29
  }
@@ -38,7 +39,6 @@ export declare class Drawing extends BaseItem<Drawing> {
38
39
  borderStyle: BorderStyle;
39
40
  colorRole: ColorRole;
40
41
  private linePattern;
41
- private borderOpacity;
42
42
  transformationRenderBlock?: boolean;
43
43
  points: Point[];
44
44
  constructor(board: Board, id?: string);
@@ -37,6 +37,7 @@ export declare const DrawingDataSchema: z.ZodObject<{
37
37
  background: "background";
38
38
  foreground: "foreground";
39
39
  }>>;
40
+ opacity: z.ZodOptional<z.ZodNumber>;
40
41
  linkTo: z.ZodOptional<z.ZodString>;
41
42
  }, z.core.$strip>;
42
43
  export type DrawingData = z.infer<typeof DrawingDataSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.14.25",
3
+ "version": "0.14.27",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",