microboard-temp 0.4.83 → 0.4.85

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.
@@ -45993,7 +45993,7 @@ class AlignmentHelper {
45993
45993
  this.board.selection.transformMany(translation, timeStamp);
45994
45994
  return;
45995
45995
  }
45996
- if (item.itemType === "Frame") {
45996
+ if ("index" in item && item.index) {
45997
45997
  const translation = this.board.selection.getManyItemsTranslation(x, y);
45998
45998
  this.board.selection.transformMany(translation, timeStamp);
45999
45999
  } else {
@@ -46905,6 +46905,7 @@ class ShapeTool extends CustomTool {
46905
46905
  this.isDown = false;
46906
46906
  this.board.selection.removeAll();
46907
46907
  this.board.selection.add(addedItem);
46908
+ this.board.tools.select();
46908
46909
  this.board.tools.publish();
46909
46910
  return true;
46910
46911
  }
package/dist/cjs/index.js CHANGED
@@ -45993,7 +45993,7 @@ class AlignmentHelper {
45993
45993
  this.board.selection.transformMany(translation, timeStamp);
45994
45994
  return;
45995
45995
  }
45996
- if (item.itemType === "Frame") {
45996
+ if ("index" in item && item.index) {
45997
45997
  const translation = this.board.selection.getManyItemsTranslation(x, y);
45998
45998
  this.board.selection.transformMany(translation, timeStamp);
45999
45999
  } else {
@@ -46905,6 +46905,7 @@ class ShapeTool extends CustomTool {
46905
46905
  this.isDown = false;
46906
46906
  this.board.selection.removeAll();
46907
46907
  this.board.selection.add(addedItem);
46908
+ this.board.tools.select();
46908
46909
  this.board.tools.publish();
46909
46910
  return true;
46910
46911
  }
package/dist/cjs/node.js CHANGED
@@ -48466,7 +48466,7 @@ class AlignmentHelper {
48466
48466
  this.board.selection.transformMany(translation, timeStamp);
48467
48467
  return;
48468
48468
  }
48469
- if (item.itemType === "Frame") {
48469
+ if ("index" in item && item.index) {
48470
48470
  const translation = this.board.selection.getManyItemsTranslation(x, y);
48471
48471
  this.board.selection.transformMany(translation, timeStamp);
48472
48472
  } else {
@@ -49378,6 +49378,7 @@ class ShapeTool extends CustomTool {
49378
49378
  this.isDown = false;
49379
49379
  this.board.selection.removeAll();
49380
49380
  this.board.selection.add(addedItem);
49381
+ this.board.tools.select();
49381
49382
  this.board.tools.publish();
49382
49383
  return true;
49383
49384
  }
@@ -45842,7 +45842,7 @@ class AlignmentHelper {
45842
45842
  this.board.selection.transformMany(translation, timeStamp);
45843
45843
  return;
45844
45844
  }
45845
- if (item.itemType === "Frame") {
45845
+ if ("index" in item && item.index) {
45846
45846
  const translation = this.board.selection.getManyItemsTranslation(x, y);
45847
45847
  this.board.selection.transformMany(translation, timeStamp);
45848
45848
  } else {
@@ -46754,6 +46754,7 @@ class ShapeTool extends CustomTool {
46754
46754
  this.isDown = false;
46755
46755
  this.board.selection.removeAll();
46756
46756
  this.board.selection.add(addedItem);
46757
+ this.board.tools.select();
46757
46758
  this.board.tools.publish();
46758
46759
  return true;
46759
46760
  }
package/dist/esm/index.js CHANGED
@@ -45835,7 +45835,7 @@ class AlignmentHelper {
45835
45835
  this.board.selection.transformMany(translation, timeStamp);
45836
45836
  return;
45837
45837
  }
45838
- if (item.itemType === "Frame") {
45838
+ if ("index" in item && item.index) {
45839
45839
  const translation = this.board.selection.getManyItemsTranslation(x, y);
45840
45840
  this.board.selection.transformMany(translation, timeStamp);
45841
45841
  } else {
@@ -46747,6 +46747,7 @@ class ShapeTool extends CustomTool {
46747
46747
  this.isDown = false;
46748
46748
  this.board.selection.removeAll();
46749
46749
  this.board.selection.add(addedItem);
46750
+ this.board.tools.select();
46750
46751
  this.board.tools.publish();
46751
46752
  return true;
46752
46753
  }
package/dist/esm/node.js CHANGED
@@ -48303,7 +48303,7 @@ class AlignmentHelper {
48303
48303
  this.board.selection.transformMany(translation, timeStamp);
48304
48304
  return;
48305
48305
  }
48306
- if (item.itemType === "Frame") {
48306
+ if ("index" in item && item.index) {
48307
48307
  const translation = this.board.selection.getManyItemsTranslation(x, y);
48308
48308
  this.board.selection.transformMany(translation, timeStamp);
48309
48309
  } else {
@@ -49215,6 +49215,7 @@ class ShapeTool extends CustomTool {
49215
49215
  this.isDown = false;
49216
49216
  this.board.selection.removeAll();
49217
49217
  this.board.selection.add(addedItem);
49218
+ this.board.tools.select();
49218
49219
  this.board.tools.publish();
49219
49220
  return true;
49220
49221
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.83",
3
+ "version": "0.4.85",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",