microboard-temp 0.14.41 → 0.14.43

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.
@@ -65342,6 +65342,7 @@ class Sticker extends BaseItem {
65342
65342
  onPropertyUpdated(property, value, prevValue) {
65343
65343
  super.onPropertyUpdated(property, value, prevValue);
65344
65344
  if (property === "backgroundColor") {
65345
+ this.saveStickerData();
65345
65346
  this.subject.publish(this);
65346
65347
  }
65347
65348
  }
@@ -79608,10 +79609,12 @@ class AddSticker extends BoardTool {
79608
79609
  }
79609
79610
  setBackgroundColor(color2) {
79610
79611
  this.sticker.apply({
79611
- class: "Sticker",
79612
- method: "setBackgroundColor",
79612
+ class: "Item",
79613
+ method: "setProperty",
79613
79614
  item: [this.sticker.getId()],
79614
- backgroundColor: coerceColorValue(color2)
79615
+ property: "backgroundColor",
79616
+ value: coerceColorValue(color2),
79617
+ prevValues: [this.sticker.getBackgroundColor()]
79615
79618
  });
79616
79619
  this.setCursor(color2);
79617
79620
  this.board.tools.publish();
package/dist/cjs/index.js CHANGED
@@ -65342,6 +65342,7 @@ class Sticker extends BaseItem {
65342
65342
  onPropertyUpdated(property, value, prevValue) {
65343
65343
  super.onPropertyUpdated(property, value, prevValue);
65344
65344
  if (property === "backgroundColor") {
65345
+ this.saveStickerData();
65345
65346
  this.subject.publish(this);
65346
65347
  }
65347
65348
  }
@@ -79608,10 +79609,12 @@ class AddSticker extends BoardTool {
79608
79609
  }
79609
79610
  setBackgroundColor(color2) {
79610
79611
  this.sticker.apply({
79611
- class: "Sticker",
79612
- method: "setBackgroundColor",
79612
+ class: "Item",
79613
+ method: "setProperty",
79613
79614
  item: [this.sticker.getId()],
79614
- backgroundColor: coerceColorValue(color2)
79615
+ property: "backgroundColor",
79616
+ value: coerceColorValue(color2),
79617
+ prevValues: [this.sticker.getBackgroundColor()]
79615
79618
  });
79616
79619
  this.setCursor(color2);
79617
79620
  this.board.tools.publish();
package/dist/cjs/node.js CHANGED
@@ -67815,6 +67815,7 @@ class Sticker extends BaseItem {
67815
67815
  onPropertyUpdated(property, value, prevValue) {
67816
67816
  super.onPropertyUpdated(property, value, prevValue);
67817
67817
  if (property === "backgroundColor") {
67818
+ this.saveStickerData();
67818
67819
  this.subject.publish(this);
67819
67820
  }
67820
67821
  }
@@ -82081,10 +82082,12 @@ class AddSticker extends BoardTool {
82081
82082
  }
82082
82083
  setBackgroundColor(color2) {
82083
82084
  this.sticker.apply({
82084
- class: "Sticker",
82085
- method: "setBackgroundColor",
82085
+ class: "Item",
82086
+ method: "setProperty",
82086
82087
  item: [this.sticker.getId()],
82087
- backgroundColor: coerceColorValue(color2)
82088
+ property: "backgroundColor",
82089
+ value: coerceColorValue(color2),
82090
+ prevValues: [this.sticker.getBackgroundColor()]
82088
82091
  });
82089
82092
  this.setCursor(color2);
82090
82093
  this.board.tools.publish();
@@ -65118,6 +65118,7 @@ class Sticker extends BaseItem {
65118
65118
  onPropertyUpdated(property, value, prevValue) {
65119
65119
  super.onPropertyUpdated(property, value, prevValue);
65120
65120
  if (property === "backgroundColor") {
65121
+ this.saveStickerData();
65121
65122
  this.subject.publish(this);
65122
65123
  }
65123
65124
  }
@@ -79384,10 +79385,12 @@ class AddSticker extends BoardTool {
79384
79385
  }
79385
79386
  setBackgroundColor(color2) {
79386
79387
  this.sticker.apply({
79387
- class: "Sticker",
79388
- method: "setBackgroundColor",
79388
+ class: "Item",
79389
+ method: "setProperty",
79389
79390
  item: [this.sticker.getId()],
79390
- backgroundColor: coerceColorValue(color2)
79391
+ property: "backgroundColor",
79392
+ value: coerceColorValue(color2),
79393
+ prevValues: [this.sticker.getBackgroundColor()]
79391
79394
  });
79392
79395
  this.setCursor(color2);
79393
79396
  this.board.tools.publish();
package/dist/esm/index.js CHANGED
@@ -65111,6 +65111,7 @@ class Sticker extends BaseItem {
65111
65111
  onPropertyUpdated(property, value, prevValue) {
65112
65112
  super.onPropertyUpdated(property, value, prevValue);
65113
65113
  if (property === "backgroundColor") {
65114
+ this.saveStickerData();
65114
65115
  this.subject.publish(this);
65115
65116
  }
65116
65117
  }
@@ -79377,10 +79378,12 @@ class AddSticker extends BoardTool {
79377
79378
  }
79378
79379
  setBackgroundColor(color2) {
79379
79380
  this.sticker.apply({
79380
- class: "Sticker",
79381
- method: "setBackgroundColor",
79381
+ class: "Item",
79382
+ method: "setProperty",
79382
79383
  item: [this.sticker.getId()],
79383
- backgroundColor: coerceColorValue(color2)
79384
+ property: "backgroundColor",
79385
+ value: coerceColorValue(color2),
79386
+ prevValues: [this.sticker.getBackgroundColor()]
79384
79387
  });
79385
79388
  this.setCursor(color2);
79386
79389
  this.board.tools.publish();
package/dist/esm/node.js CHANGED
@@ -67579,6 +67579,7 @@ class Sticker extends BaseItem {
67579
67579
  onPropertyUpdated(property, value, prevValue) {
67580
67580
  super.onPropertyUpdated(property, value, prevValue);
67581
67581
  if (property === "backgroundColor") {
67582
+ this.saveStickerData();
67582
67583
  this.subject.publish(this);
67583
67584
  }
67584
67585
  }
@@ -81845,10 +81846,12 @@ class AddSticker extends BoardTool {
81845
81846
  }
81846
81847
  setBackgroundColor(color2) {
81847
81848
  this.sticker.apply({
81848
- class: "Sticker",
81849
- method: "setBackgroundColor",
81849
+ class: "Item",
81850
+ method: "setProperty",
81850
81851
  item: [this.sticker.getId()],
81851
- backgroundColor: coerceColorValue(color2)
81852
+ property: "backgroundColor",
81853
+ value: coerceColorValue(color2),
81854
+ prevValues: [this.sticker.getBackgroundColor()]
81852
81855
  });
81853
81856
  this.setCursor(color2);
81854
81857
  this.board.tools.publish();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.14.41",
3
+ "version": "0.14.43",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",