microboard-temp 0.4.70 → 0.4.71

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.
@@ -47909,8 +47909,11 @@ class Deck extends BaseItem {
47909
47909
  shouldUseCustomRender = false;
47910
47910
  constructor(board, id = "", defaultData2, cards) {
47911
47911
  super(board, id, defaultDeckData, true);
47912
+ this.index.getUnderPoint = () => [];
47913
+ this.index.getEnclosed = () => [];
47914
+ this.index.getEnclosedOrCrossed = () => [];
47912
47915
  if (cards) {
47913
- this.transformation.matrix = cards[cards.length - 1].transformation.matrix;
47916
+ this.transformation.matrix = cards[0].transformation.matrix;
47914
47917
  this.applyAddChildren(cards.map((card) => card.getId()));
47915
47918
  }
47916
47919
  this.transformation.subject.subscribe(() => {
@@ -47926,7 +47929,7 @@ class Deck extends BaseItem {
47926
47929
  childIds.forEach((childId) => {
47927
47930
  const foundItem = this.board.items.getById(childId);
47928
47931
  if (this.parent !== childId && this.getId() !== childId) {
47929
- if (!this.index?.getById(childId) && foundItem && foundItem.itemType === "Card") {
47932
+ if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
47930
47933
  foundItem.transformation.apply({
47931
47934
  class: "Transformation",
47932
47935
  method: "translateTo",
package/dist/cjs/index.js CHANGED
@@ -47909,8 +47909,11 @@ class Deck extends BaseItem {
47909
47909
  shouldUseCustomRender = false;
47910
47910
  constructor(board, id = "", defaultData2, cards) {
47911
47911
  super(board, id, defaultDeckData, true);
47912
+ this.index.getUnderPoint = () => [];
47913
+ this.index.getEnclosed = () => [];
47914
+ this.index.getEnclosedOrCrossed = () => [];
47912
47915
  if (cards) {
47913
- this.transformation.matrix = cards[cards.length - 1].transformation.matrix;
47916
+ this.transformation.matrix = cards[0].transformation.matrix;
47914
47917
  this.applyAddChildren(cards.map((card) => card.getId()));
47915
47918
  }
47916
47919
  this.transformation.subject.subscribe(() => {
@@ -47926,7 +47929,7 @@ class Deck extends BaseItem {
47926
47929
  childIds.forEach((childId) => {
47927
47930
  const foundItem = this.board.items.getById(childId);
47928
47931
  if (this.parent !== childId && this.getId() !== childId) {
47929
- if (!this.index?.getById(childId) && foundItem && foundItem.itemType === "Card") {
47932
+ if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
47930
47933
  foundItem.transformation.apply({
47931
47934
  class: "Transformation",
47932
47935
  method: "translateTo",
package/dist/cjs/node.js CHANGED
@@ -50382,8 +50382,11 @@ class Deck extends BaseItem {
50382
50382
  shouldUseCustomRender = false;
50383
50383
  constructor(board, id = "", defaultData2, cards) {
50384
50384
  super(board, id, defaultDeckData, true);
50385
+ this.index.getUnderPoint = () => [];
50386
+ this.index.getEnclosed = () => [];
50387
+ this.index.getEnclosedOrCrossed = () => [];
50385
50388
  if (cards) {
50386
- this.transformation.matrix = cards[cards.length - 1].transformation.matrix;
50389
+ this.transformation.matrix = cards[0].transformation.matrix;
50387
50390
  this.applyAddChildren(cards.map((card) => card.getId()));
50388
50391
  }
50389
50392
  this.transformation.subject.subscribe(() => {
@@ -50399,7 +50402,7 @@ class Deck extends BaseItem {
50399
50402
  childIds.forEach((childId) => {
50400
50403
  const foundItem = this.board.items.getById(childId);
50401
50404
  if (this.parent !== childId && this.getId() !== childId) {
50402
- if (!this.index?.getById(childId) && foundItem && foundItem.itemType === "Card") {
50405
+ if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
50403
50406
  foundItem.transformation.apply({
50404
50407
  class: "Transformation",
50405
50408
  method: "translateTo",
@@ -47758,8 +47758,11 @@ class Deck extends BaseItem {
47758
47758
  shouldUseCustomRender = false;
47759
47759
  constructor(board, id = "", defaultData2, cards) {
47760
47760
  super(board, id, defaultDeckData, true);
47761
+ this.index.getUnderPoint = () => [];
47762
+ this.index.getEnclosed = () => [];
47763
+ this.index.getEnclosedOrCrossed = () => [];
47761
47764
  if (cards) {
47762
- this.transformation.matrix = cards[cards.length - 1].transformation.matrix;
47765
+ this.transformation.matrix = cards[0].transformation.matrix;
47763
47766
  this.applyAddChildren(cards.map((card) => card.getId()));
47764
47767
  }
47765
47768
  this.transformation.subject.subscribe(() => {
@@ -47775,7 +47778,7 @@ class Deck extends BaseItem {
47775
47778
  childIds.forEach((childId) => {
47776
47779
  const foundItem = this.board.items.getById(childId);
47777
47780
  if (this.parent !== childId && this.getId() !== childId) {
47778
- if (!this.index?.getById(childId) && foundItem && foundItem.itemType === "Card") {
47781
+ if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
47779
47782
  foundItem.transformation.apply({
47780
47783
  class: "Transformation",
47781
47784
  method: "translateTo",
package/dist/esm/index.js CHANGED
@@ -47751,8 +47751,11 @@ class Deck extends BaseItem {
47751
47751
  shouldUseCustomRender = false;
47752
47752
  constructor(board, id = "", defaultData2, cards) {
47753
47753
  super(board, id, defaultDeckData, true);
47754
+ this.index.getUnderPoint = () => [];
47755
+ this.index.getEnclosed = () => [];
47756
+ this.index.getEnclosedOrCrossed = () => [];
47754
47757
  if (cards) {
47755
- this.transformation.matrix = cards[cards.length - 1].transformation.matrix;
47758
+ this.transformation.matrix = cards[0].transformation.matrix;
47756
47759
  this.applyAddChildren(cards.map((card) => card.getId()));
47757
47760
  }
47758
47761
  this.transformation.subject.subscribe(() => {
@@ -47768,7 +47771,7 @@ class Deck extends BaseItem {
47768
47771
  childIds.forEach((childId) => {
47769
47772
  const foundItem = this.board.items.getById(childId);
47770
47773
  if (this.parent !== childId && this.getId() !== childId) {
47771
- if (!this.index?.getById(childId) && foundItem && foundItem.itemType === "Card") {
47774
+ if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
47772
47775
  foundItem.transformation.apply({
47773
47776
  class: "Transformation",
47774
47777
  method: "translateTo",
package/dist/esm/node.js CHANGED
@@ -50219,8 +50219,11 @@ class Deck extends BaseItem {
50219
50219
  shouldUseCustomRender = false;
50220
50220
  constructor(board, id = "", defaultData2, cards) {
50221
50221
  super(board, id, defaultDeckData, true);
50222
+ this.index.getUnderPoint = () => [];
50223
+ this.index.getEnclosed = () => [];
50224
+ this.index.getEnclosedOrCrossed = () => [];
50222
50225
  if (cards) {
50223
- this.transformation.matrix = cards[cards.length - 1].transformation.matrix;
50226
+ this.transformation.matrix = cards[0].transformation.matrix;
50224
50227
  this.applyAddChildren(cards.map((card) => card.getId()));
50225
50228
  }
50226
50229
  this.transformation.subject.subscribe(() => {
@@ -50236,7 +50239,7 @@ class Deck extends BaseItem {
50236
50239
  childIds.forEach((childId) => {
50237
50240
  const foundItem = this.board.items.getById(childId);
50238
50241
  if (this.parent !== childId && this.getId() !== childId) {
50239
- if (!this.index?.getById(childId) && foundItem && foundItem.itemType === "Card") {
50242
+ if (!this.index?.getById(childId) && foundItem?.itemType === "Card") {
50240
50243
  foundItem.transformation.apply({
50241
50244
  class: "Transformation",
50242
50245
  method: "translateTo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.70",
3
+ "version": "0.4.71",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",