microboard-temp 0.4.88 → 0.4.89

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.
@@ -47836,8 +47836,10 @@ class Card extends BaseItem {
47836
47836
  this.throttledBringToFront = throttle(() => {
47837
47837
  this.board.bringToFront(this);
47838
47838
  }, 1000);
47839
- this.transformation.subject.subscribe(() => {
47840
- this.throttledBringToFront();
47839
+ this.transformation.subject.subscribe((_, op) => {
47840
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47841
+ this.throttledBringToFront();
47842
+ }
47841
47843
  this.updateMbr();
47842
47844
  this.subject.publish(this);
47843
47845
  });
package/dist/cjs/index.js CHANGED
@@ -47836,8 +47836,10 @@ class Card extends BaseItem {
47836
47836
  this.throttledBringToFront = throttle(() => {
47837
47837
  this.board.bringToFront(this);
47838
47838
  }, 1000);
47839
- this.transformation.subject.subscribe(() => {
47840
- this.throttledBringToFront();
47839
+ this.transformation.subject.subscribe((_, op) => {
47840
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47841
+ this.throttledBringToFront();
47842
+ }
47841
47843
  this.updateMbr();
47842
47844
  this.subject.publish(this);
47843
47845
  });
package/dist/cjs/node.js CHANGED
@@ -50309,8 +50309,10 @@ class Card extends BaseItem {
50309
50309
  this.throttledBringToFront = throttle(() => {
50310
50310
  this.board.bringToFront(this);
50311
50311
  }, 1000);
50312
- this.transformation.subject.subscribe(() => {
50313
- this.throttledBringToFront();
50312
+ this.transformation.subject.subscribe((_, op) => {
50313
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
50314
+ this.throttledBringToFront();
50315
+ }
50314
50316
  this.updateMbr();
50315
50317
  this.subject.publish(this);
50316
50318
  });
@@ -47685,8 +47685,10 @@ class Card extends BaseItem {
47685
47685
  this.throttledBringToFront = throttle(() => {
47686
47686
  this.board.bringToFront(this);
47687
47687
  }, 1000);
47688
- this.transformation.subject.subscribe(() => {
47689
- this.throttledBringToFront();
47688
+ this.transformation.subject.subscribe((_, op) => {
47689
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47690
+ this.throttledBringToFront();
47691
+ }
47690
47692
  this.updateMbr();
47691
47693
  this.subject.publish(this);
47692
47694
  });
package/dist/esm/index.js CHANGED
@@ -47678,8 +47678,10 @@ class Card extends BaseItem {
47678
47678
  this.throttledBringToFront = throttle(() => {
47679
47679
  this.board.bringToFront(this);
47680
47680
  }, 1000);
47681
- this.transformation.subject.subscribe(() => {
47682
- this.throttledBringToFront();
47681
+ this.transformation.subject.subscribe((_, op) => {
47682
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
47683
+ this.throttledBringToFront();
47684
+ }
47683
47685
  this.updateMbr();
47684
47686
  this.subject.publish(this);
47685
47687
  });
package/dist/esm/node.js CHANGED
@@ -50146,8 +50146,10 @@ class Card extends BaseItem {
50146
50146
  this.throttledBringToFront = throttle(() => {
50147
50147
  this.board.bringToFront(this);
50148
50148
  }, 1000);
50149
- this.transformation.subject.subscribe(() => {
50150
- this.throttledBringToFront();
50149
+ this.transformation.subject.subscribe((_, op) => {
50150
+ if (this.parent === "Board" && op.method === "translateBy" || op.method === "transformMany" && !Object.keys(op.items).length) {
50151
+ this.throttledBringToFront();
50152
+ }
50151
50153
  this.updateMbr();
50152
50154
  this.subject.publish(this);
50153
50155
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.88",
3
+ "version": "0.4.89",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",