microboard-temp 0.4.105 → 0.4.106

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.
@@ -48054,7 +48054,7 @@ class Deck extends BaseItem {
48054
48054
  updateMbr() {
48055
48055
  const { translateX, translateY } = this.transformation.matrix;
48056
48056
  const items = this.index.list();
48057
- const itemsMbr = items[0].getMbr().combine(items.slice(1).map((item) => item.getMbr()));
48057
+ const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
48058
48058
  this.left = translateX;
48059
48059
  this.top = translateY;
48060
48060
  this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
package/dist/cjs/index.js CHANGED
@@ -48054,7 +48054,7 @@ class Deck extends BaseItem {
48054
48054
  updateMbr() {
48055
48055
  const { translateX, translateY } = this.transformation.matrix;
48056
48056
  const items = this.index.list();
48057
- const itemsMbr = items[0].getMbr().combine(items.slice(1).map((item) => item.getMbr()));
48057
+ const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
48058
48058
  this.left = translateX;
48059
48059
  this.top = translateY;
48060
48060
  this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
package/dist/cjs/node.js CHANGED
@@ -50527,7 +50527,7 @@ class Deck extends BaseItem {
50527
50527
  updateMbr() {
50528
50528
  const { translateX, translateY } = this.transformation.matrix;
50529
50529
  const items = this.index.list();
50530
- const itemsMbr = items[0].getMbr().combine(items.slice(1).map((item) => item.getMbr()));
50530
+ const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
50531
50531
  this.left = translateX;
50532
50532
  this.top = translateY;
50533
50533
  this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
@@ -47903,7 +47903,7 @@ class Deck extends BaseItem {
47903
47903
  updateMbr() {
47904
47904
  const { translateX, translateY } = this.transformation.matrix;
47905
47905
  const items = this.index.list();
47906
- const itemsMbr = items[0].getMbr().combine(items.slice(1).map((item) => item.getMbr()));
47906
+ const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
47907
47907
  this.left = translateX;
47908
47908
  this.top = translateY;
47909
47909
  this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
package/dist/esm/index.js CHANGED
@@ -47896,7 +47896,7 @@ class Deck extends BaseItem {
47896
47896
  updateMbr() {
47897
47897
  const { translateX, translateY } = this.transformation.matrix;
47898
47898
  const items = this.index.list();
47899
- const itemsMbr = items[0].getMbr().combine(items.slice(1).map((item) => item.getMbr()));
47899
+ const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
47900
47900
  this.left = translateX;
47901
47901
  this.top = translateY;
47902
47902
  this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
package/dist/esm/node.js CHANGED
@@ -50364,7 +50364,7 @@ class Deck extends BaseItem {
50364
50364
  updateMbr() {
50365
50365
  const { translateX, translateY } = this.transformation.matrix;
50366
50366
  const items = this.index.list();
50367
- const itemsMbr = items[0].getMbr().combine(items.slice(1).map((item) => item.getMbr()));
50367
+ const itemsMbr = items[0]?.getMbr().combine(items.slice(1).map((item) => item.getMbr()));
50368
50368
  this.left = translateX;
50369
50369
  this.top = translateY;
50370
50370
  this.right = translateX + (itemsMbr?.getWidth() || conf.CARD_DIMENSIONS.width + conf.DECK_HORIZONTAL_OFFSET * ((this.children.length || 1) - 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.105",
3
+ "version": "0.4.106",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",