microboard-temp 0.4.97 → 0.4.99

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.
@@ -18999,6 +18999,7 @@ class Comment {
18999
18999
  subject = new Subject;
19000
19000
  linkTo;
19001
19001
  transformationRenderBlock = undefined;
19002
+ enableResize = true;
19002
19003
  constructor(anchor = new Point, events, id = "") {
19003
19004
  this.anchor = anchor;
19004
19005
  this.events = events;
@@ -21477,6 +21478,7 @@ class BaseItem extends Mbr {
21477
21478
  shouldUseCustomRender = false;
21478
21479
  shouldRenderOutsideViewRect = true;
21479
21480
  shouldUseRelativeAlignment = true;
21481
+ enableResize = true;
21480
21482
  itemType = "";
21481
21483
  constructor(board, id = "", defaultItemData, isGroupItem) {
21482
21484
  super();
@@ -47827,6 +47829,7 @@ class Card extends BaseItem {
47827
47829
  backside = null;
47828
47830
  imageToRender = null;
47829
47831
  shouldUseCustomRender = false;
47832
+ enableResize = false;
47830
47833
  constructor(board, id = "", urls) {
47831
47834
  super(board, id, defaultCardData);
47832
47835
  if (urls) {
@@ -47934,6 +47937,7 @@ class Deck extends BaseItem {
47934
47937
  shouldUseCustomRender = false;
47935
47938
  cachedCanvas = null;
47936
47939
  isCacheDirty = true;
47940
+ enableResize = false;
47937
47941
  constructor(board, id = "") {
47938
47942
  super(board, id, defaultDeckData, true);
47939
47943
  this.index.getUnderPoint = () => [];
@@ -47978,13 +47982,6 @@ class Deck extends BaseItem {
47978
47982
  const foundItem = this.index?.getById(childId);
47979
47983
  if (this.parent !== childId && this.getId() !== childId) {
47980
47984
  if (foundItem) {
47981
- foundItem.transformation.apply({
47982
- class: "Transformation",
47983
- method: "translateTo",
47984
- item: [this.id],
47985
- x: this.left,
47986
- y: this.top - this.getHeight() / 2
47987
- });
47988
47985
  this.index?.remove(foundItem);
47989
47986
  foundItem.parent = "Board";
47990
47987
  foundItem.shouldUseRelativeAlignment = true;
@@ -48088,6 +48085,7 @@ class Deck extends BaseItem {
48088
48085
  });
48089
48086
  this.cachedCanvas = tempCanvas;
48090
48087
  this.isCacheDirty = false;
48088
+ this.updateMbr();
48091
48089
  }
48092
48090
  }
48093
48091
  registerItem({
@@ -51625,7 +51623,8 @@ class Transformer extends Tool {
51625
51623
  return false;
51626
51624
  }
51627
51625
  const isLockedItems = this.selection.getIsLockedSelection();
51628
- if (isLockedItems) {
51626
+ const isResizeEnabled = this.selection.getIsResizeEnabled();
51627
+ if (isLockedItems || !isResizeEnabled) {
51629
51628
  return false;
51630
51629
  }
51631
51630
  this.updateAnchorType();
@@ -52868,6 +52867,10 @@ class BoardSelection {
52868
52867
  this.board.tools.getSelect()?.nestingHighlighter.clear();
52869
52868
  this.setContext("None");
52870
52869
  }
52870
+ getIsResizeEnabled() {
52871
+ const items = this.list();
52872
+ return !items.some((item) => !item.enableResize);
52873
+ }
52871
52874
  getIsLockedSelection() {
52872
52875
  const items = this.list();
52873
52876
  return items.some((item) => item.transformation.isLocked);
@@ -54191,7 +54194,7 @@ class Board {
54191
54194
  itemData.transformation.translateX = translateX - minX + x;
54192
54195
  itemData.transformation.translateY = translateY - minY + y;
54193
54196
  }
54194
- if (itemData.itemType === "Frame") {
54197
+ if ("children" in itemData && itemData.children) {
54195
54198
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54196
54199
  }
54197
54200
  newMap[newItemId] = itemData;
package/dist/cjs/index.js CHANGED
@@ -18999,6 +18999,7 @@ class Comment {
18999
18999
  subject = new Subject;
19000
19000
  linkTo;
19001
19001
  transformationRenderBlock = undefined;
19002
+ enableResize = true;
19002
19003
  constructor(anchor = new Point, events, id = "") {
19003
19004
  this.anchor = anchor;
19004
19005
  this.events = events;
@@ -21477,6 +21478,7 @@ class BaseItem extends Mbr {
21477
21478
  shouldUseCustomRender = false;
21478
21479
  shouldRenderOutsideViewRect = true;
21479
21480
  shouldUseRelativeAlignment = true;
21481
+ enableResize = true;
21480
21482
  itemType = "";
21481
21483
  constructor(board, id = "", defaultItemData, isGroupItem) {
21482
21484
  super();
@@ -47827,6 +47829,7 @@ class Card extends BaseItem {
47827
47829
  backside = null;
47828
47830
  imageToRender = null;
47829
47831
  shouldUseCustomRender = false;
47832
+ enableResize = false;
47830
47833
  constructor(board, id = "", urls) {
47831
47834
  super(board, id, defaultCardData);
47832
47835
  if (urls) {
@@ -47934,6 +47937,7 @@ class Deck extends BaseItem {
47934
47937
  shouldUseCustomRender = false;
47935
47938
  cachedCanvas = null;
47936
47939
  isCacheDirty = true;
47940
+ enableResize = false;
47937
47941
  constructor(board, id = "") {
47938
47942
  super(board, id, defaultDeckData, true);
47939
47943
  this.index.getUnderPoint = () => [];
@@ -47978,13 +47982,6 @@ class Deck extends BaseItem {
47978
47982
  const foundItem = this.index?.getById(childId);
47979
47983
  if (this.parent !== childId && this.getId() !== childId) {
47980
47984
  if (foundItem) {
47981
- foundItem.transformation.apply({
47982
- class: "Transformation",
47983
- method: "translateTo",
47984
- item: [this.id],
47985
- x: this.left,
47986
- y: this.top - this.getHeight() / 2
47987
- });
47988
47985
  this.index?.remove(foundItem);
47989
47986
  foundItem.parent = "Board";
47990
47987
  foundItem.shouldUseRelativeAlignment = true;
@@ -48088,6 +48085,7 @@ class Deck extends BaseItem {
48088
48085
  });
48089
48086
  this.cachedCanvas = tempCanvas;
48090
48087
  this.isCacheDirty = false;
48088
+ this.updateMbr();
48091
48089
  }
48092
48090
  }
48093
48091
  registerItem({
@@ -51625,7 +51623,8 @@ class Transformer extends Tool {
51625
51623
  return false;
51626
51624
  }
51627
51625
  const isLockedItems = this.selection.getIsLockedSelection();
51628
- if (isLockedItems) {
51626
+ const isResizeEnabled = this.selection.getIsResizeEnabled();
51627
+ if (isLockedItems || !isResizeEnabled) {
51629
51628
  return false;
51630
51629
  }
51631
51630
  this.updateAnchorType();
@@ -52868,6 +52867,10 @@ class BoardSelection {
52868
52867
  this.board.tools.getSelect()?.nestingHighlighter.clear();
52869
52868
  this.setContext("None");
52870
52869
  }
52870
+ getIsResizeEnabled() {
52871
+ const items = this.list();
52872
+ return !items.some((item) => !item.enableResize);
52873
+ }
52871
52874
  getIsLockedSelection() {
52872
52875
  const items = this.list();
52873
52876
  return items.some((item) => item.transformation.isLocked);
@@ -54191,7 +54194,7 @@ class Board {
54191
54194
  itemData.transformation.translateX = translateX - minX + x;
54192
54195
  itemData.transformation.translateY = translateY - minY + y;
54193
54196
  }
54194
- if (itemData.itemType === "Frame") {
54197
+ if ("children" in itemData && itemData.children) {
54195
54198
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54196
54199
  }
54197
54200
  newMap[newItemId] = itemData;
package/dist/cjs/node.js CHANGED
@@ -21538,6 +21538,7 @@ class Comment {
21538
21538
  subject = new Subject;
21539
21539
  linkTo;
21540
21540
  transformationRenderBlock = undefined;
21541
+ enableResize = true;
21541
21542
  constructor(anchor = new Point, events, id = "") {
21542
21543
  this.anchor = anchor;
21543
21544
  this.events = events;
@@ -23949,6 +23950,7 @@ class BaseItem extends Mbr {
23949
23950
  shouldUseCustomRender = false;
23950
23951
  shouldRenderOutsideViewRect = true;
23951
23952
  shouldUseRelativeAlignment = true;
23953
+ enableResize = true;
23952
23954
  itemType = "";
23953
23955
  constructor(board, id = "", defaultItemData, isGroupItem) {
23954
23956
  super();
@@ -50300,6 +50302,7 @@ class Card extends BaseItem {
50300
50302
  backside = null;
50301
50303
  imageToRender = null;
50302
50304
  shouldUseCustomRender = false;
50305
+ enableResize = false;
50303
50306
  constructor(board, id = "", urls) {
50304
50307
  super(board, id, defaultCardData);
50305
50308
  if (urls) {
@@ -50407,6 +50410,7 @@ class Deck extends BaseItem {
50407
50410
  shouldUseCustomRender = false;
50408
50411
  cachedCanvas = null;
50409
50412
  isCacheDirty = true;
50413
+ enableResize = false;
50410
50414
  constructor(board, id = "") {
50411
50415
  super(board, id, defaultDeckData, true);
50412
50416
  this.index.getUnderPoint = () => [];
@@ -50451,13 +50455,6 @@ class Deck extends BaseItem {
50451
50455
  const foundItem = this.index?.getById(childId);
50452
50456
  if (this.parent !== childId && this.getId() !== childId) {
50453
50457
  if (foundItem) {
50454
- foundItem.transformation.apply({
50455
- class: "Transformation",
50456
- method: "translateTo",
50457
- item: [this.id],
50458
- x: this.left,
50459
- y: this.top - this.getHeight() / 2
50460
- });
50461
50458
  this.index?.remove(foundItem);
50462
50459
  foundItem.parent = "Board";
50463
50460
  foundItem.shouldUseRelativeAlignment = true;
@@ -50561,6 +50558,7 @@ class Deck extends BaseItem {
50561
50558
  });
50562
50559
  this.cachedCanvas = tempCanvas;
50563
50560
  this.isCacheDirty = false;
50561
+ this.updateMbr();
50564
50562
  }
50565
50563
  }
50566
50564
  registerItem({
@@ -54098,7 +54096,8 @@ class Transformer extends Tool {
54098
54096
  return false;
54099
54097
  }
54100
54098
  const isLockedItems = this.selection.getIsLockedSelection();
54101
- if (isLockedItems) {
54099
+ const isResizeEnabled = this.selection.getIsResizeEnabled();
54100
+ if (isLockedItems || !isResizeEnabled) {
54102
54101
  return false;
54103
54102
  }
54104
54103
  this.updateAnchorType();
@@ -55341,6 +55340,10 @@ class BoardSelection {
55341
55340
  this.board.tools.getSelect()?.nestingHighlighter.clear();
55342
55341
  this.setContext("None");
55343
55342
  }
55343
+ getIsResizeEnabled() {
55344
+ const items = this.list();
55345
+ return !items.some((item) => !item.enableResize);
55346
+ }
55344
55347
  getIsLockedSelection() {
55345
55348
  const items = this.list();
55346
55349
  return items.some((item) => item.transformation.isLocked);
@@ -56664,7 +56667,7 @@ class Board {
56664
56667
  itemData.transformation.translateX = translateX - minX + x;
56665
56668
  itemData.transformation.translateY = translateY - minY + y;
56666
56669
  }
56667
- if (itemData.itemType === "Frame") {
56670
+ if ("children" in itemData && itemData.children) {
56668
56671
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
56669
56672
  }
56670
56673
  newMap[newItemId] = itemData;
@@ -18848,6 +18848,7 @@ class Comment {
18848
18848
  subject = new Subject;
18849
18849
  linkTo;
18850
18850
  transformationRenderBlock = undefined;
18851
+ enableResize = true;
18851
18852
  constructor(anchor = new Point, events, id = "") {
18852
18853
  this.anchor = anchor;
18853
18854
  this.events = events;
@@ -21326,6 +21327,7 @@ class BaseItem extends Mbr {
21326
21327
  shouldUseCustomRender = false;
21327
21328
  shouldRenderOutsideViewRect = true;
21328
21329
  shouldUseRelativeAlignment = true;
21330
+ enableResize = true;
21329
21331
  itemType = "";
21330
21332
  constructor(board, id = "", defaultItemData, isGroupItem) {
21331
21333
  super();
@@ -47676,6 +47678,7 @@ class Card extends BaseItem {
47676
47678
  backside = null;
47677
47679
  imageToRender = null;
47678
47680
  shouldUseCustomRender = false;
47681
+ enableResize = false;
47679
47682
  constructor(board, id = "", urls) {
47680
47683
  super(board, id, defaultCardData);
47681
47684
  if (urls) {
@@ -47783,6 +47786,7 @@ class Deck extends BaseItem {
47783
47786
  shouldUseCustomRender = false;
47784
47787
  cachedCanvas = null;
47785
47788
  isCacheDirty = true;
47789
+ enableResize = false;
47786
47790
  constructor(board, id = "") {
47787
47791
  super(board, id, defaultDeckData, true);
47788
47792
  this.index.getUnderPoint = () => [];
@@ -47827,13 +47831,6 @@ class Deck extends BaseItem {
47827
47831
  const foundItem = this.index?.getById(childId);
47828
47832
  if (this.parent !== childId && this.getId() !== childId) {
47829
47833
  if (foundItem) {
47830
- foundItem.transformation.apply({
47831
- class: "Transformation",
47832
- method: "translateTo",
47833
- item: [this.id],
47834
- x: this.left,
47835
- y: this.top - this.getHeight() / 2
47836
- });
47837
47834
  this.index?.remove(foundItem);
47838
47835
  foundItem.parent = "Board";
47839
47836
  foundItem.shouldUseRelativeAlignment = true;
@@ -47937,6 +47934,7 @@ class Deck extends BaseItem {
47937
47934
  });
47938
47935
  this.cachedCanvas = tempCanvas;
47939
47936
  this.isCacheDirty = false;
47937
+ this.updateMbr();
47940
47938
  }
47941
47939
  }
47942
47940
  registerItem({
@@ -51474,7 +51472,8 @@ class Transformer extends Tool {
51474
51472
  return false;
51475
51473
  }
51476
51474
  const isLockedItems = this.selection.getIsLockedSelection();
51477
- if (isLockedItems) {
51475
+ const isResizeEnabled = this.selection.getIsResizeEnabled();
51476
+ if (isLockedItems || !isResizeEnabled) {
51478
51477
  return false;
51479
51478
  }
51480
51479
  this.updateAnchorType();
@@ -52717,6 +52716,10 @@ class BoardSelection {
52717
52716
  this.board.tools.getSelect()?.nestingHighlighter.clear();
52718
52717
  this.setContext("None");
52719
52718
  }
52719
+ getIsResizeEnabled() {
52720
+ const items = this.list();
52721
+ return !items.some((item) => !item.enableResize);
52722
+ }
52720
52723
  getIsLockedSelection() {
52721
52724
  const items = this.list();
52722
52725
  return items.some((item) => item.transformation.isLocked);
@@ -54040,7 +54043,7 @@ class Board {
54040
54043
  itemData.transformation.translateX = translateX - minX + x;
54041
54044
  itemData.transformation.translateY = translateY - minY + y;
54042
54045
  }
54043
- if (itemData.itemType === "Frame") {
54046
+ if ("children" in itemData && itemData.children) {
54044
54047
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54045
54048
  }
54046
54049
  newMap[newItemId] = itemData;
package/dist/esm/index.js CHANGED
@@ -18841,6 +18841,7 @@ class Comment {
18841
18841
  subject = new Subject;
18842
18842
  linkTo;
18843
18843
  transformationRenderBlock = undefined;
18844
+ enableResize = true;
18844
18845
  constructor(anchor = new Point, events, id = "") {
18845
18846
  this.anchor = anchor;
18846
18847
  this.events = events;
@@ -21319,6 +21320,7 @@ class BaseItem extends Mbr {
21319
21320
  shouldUseCustomRender = false;
21320
21321
  shouldRenderOutsideViewRect = true;
21321
21322
  shouldUseRelativeAlignment = true;
21323
+ enableResize = true;
21322
21324
  itemType = "";
21323
21325
  constructor(board, id = "", defaultItemData, isGroupItem) {
21324
21326
  super();
@@ -47669,6 +47671,7 @@ class Card extends BaseItem {
47669
47671
  backside = null;
47670
47672
  imageToRender = null;
47671
47673
  shouldUseCustomRender = false;
47674
+ enableResize = false;
47672
47675
  constructor(board, id = "", urls) {
47673
47676
  super(board, id, defaultCardData);
47674
47677
  if (urls) {
@@ -47776,6 +47779,7 @@ class Deck extends BaseItem {
47776
47779
  shouldUseCustomRender = false;
47777
47780
  cachedCanvas = null;
47778
47781
  isCacheDirty = true;
47782
+ enableResize = false;
47779
47783
  constructor(board, id = "") {
47780
47784
  super(board, id, defaultDeckData, true);
47781
47785
  this.index.getUnderPoint = () => [];
@@ -47820,13 +47824,6 @@ class Deck extends BaseItem {
47820
47824
  const foundItem = this.index?.getById(childId);
47821
47825
  if (this.parent !== childId && this.getId() !== childId) {
47822
47826
  if (foundItem) {
47823
- foundItem.transformation.apply({
47824
- class: "Transformation",
47825
- method: "translateTo",
47826
- item: [this.id],
47827
- x: this.left,
47828
- y: this.top - this.getHeight() / 2
47829
- });
47830
47827
  this.index?.remove(foundItem);
47831
47828
  foundItem.parent = "Board";
47832
47829
  foundItem.shouldUseRelativeAlignment = true;
@@ -47930,6 +47927,7 @@ class Deck extends BaseItem {
47930
47927
  });
47931
47928
  this.cachedCanvas = tempCanvas;
47932
47929
  this.isCacheDirty = false;
47930
+ this.updateMbr();
47933
47931
  }
47934
47932
  }
47935
47933
  registerItem({
@@ -51467,7 +51465,8 @@ class Transformer extends Tool {
51467
51465
  return false;
51468
51466
  }
51469
51467
  const isLockedItems = this.selection.getIsLockedSelection();
51470
- if (isLockedItems) {
51468
+ const isResizeEnabled = this.selection.getIsResizeEnabled();
51469
+ if (isLockedItems || !isResizeEnabled) {
51471
51470
  return false;
51472
51471
  }
51473
51472
  this.updateAnchorType();
@@ -52710,6 +52709,10 @@ class BoardSelection {
52710
52709
  this.board.tools.getSelect()?.nestingHighlighter.clear();
52711
52710
  this.setContext("None");
52712
52711
  }
52712
+ getIsResizeEnabled() {
52713
+ const items = this.list();
52714
+ return !items.some((item) => !item.enableResize);
52715
+ }
52713
52716
  getIsLockedSelection() {
52714
52717
  const items = this.list();
52715
52718
  return items.some((item) => item.transformation.isLocked);
@@ -54033,7 +54036,7 @@ class Board {
54033
54036
  itemData.transformation.translateX = translateX - minX + x;
54034
54037
  itemData.transformation.translateY = translateY - minY + y;
54035
54038
  }
54036
- if (itemData.itemType === "Frame") {
54039
+ if ("children" in itemData && itemData.children) {
54037
54040
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
54038
54041
  }
54039
54042
  newMap[newItemId] = itemData;
package/dist/esm/node.js CHANGED
@@ -21375,6 +21375,7 @@ class Comment {
21375
21375
  subject = new Subject;
21376
21376
  linkTo;
21377
21377
  transformationRenderBlock = undefined;
21378
+ enableResize = true;
21378
21379
  constructor(anchor = new Point, events, id = "") {
21379
21380
  this.anchor = anchor;
21380
21381
  this.events = events;
@@ -23786,6 +23787,7 @@ class BaseItem extends Mbr {
23786
23787
  shouldUseCustomRender = false;
23787
23788
  shouldRenderOutsideViewRect = true;
23788
23789
  shouldUseRelativeAlignment = true;
23790
+ enableResize = true;
23789
23791
  itemType = "";
23790
23792
  constructor(board, id = "", defaultItemData, isGroupItem) {
23791
23793
  super();
@@ -50137,6 +50139,7 @@ class Card extends BaseItem {
50137
50139
  backside = null;
50138
50140
  imageToRender = null;
50139
50141
  shouldUseCustomRender = false;
50142
+ enableResize = false;
50140
50143
  constructor(board, id = "", urls) {
50141
50144
  super(board, id, defaultCardData);
50142
50145
  if (urls) {
@@ -50244,6 +50247,7 @@ class Deck extends BaseItem {
50244
50247
  shouldUseCustomRender = false;
50245
50248
  cachedCanvas = null;
50246
50249
  isCacheDirty = true;
50250
+ enableResize = false;
50247
50251
  constructor(board, id = "") {
50248
50252
  super(board, id, defaultDeckData, true);
50249
50253
  this.index.getUnderPoint = () => [];
@@ -50288,13 +50292,6 @@ class Deck extends BaseItem {
50288
50292
  const foundItem = this.index?.getById(childId);
50289
50293
  if (this.parent !== childId && this.getId() !== childId) {
50290
50294
  if (foundItem) {
50291
- foundItem.transformation.apply({
50292
- class: "Transformation",
50293
- method: "translateTo",
50294
- item: [this.id],
50295
- x: this.left,
50296
- y: this.top - this.getHeight() / 2
50297
- });
50298
50295
  this.index?.remove(foundItem);
50299
50296
  foundItem.parent = "Board";
50300
50297
  foundItem.shouldUseRelativeAlignment = true;
@@ -50398,6 +50395,7 @@ class Deck extends BaseItem {
50398
50395
  });
50399
50396
  this.cachedCanvas = tempCanvas;
50400
50397
  this.isCacheDirty = false;
50398
+ this.updateMbr();
50401
50399
  }
50402
50400
  }
50403
50401
  registerItem({
@@ -53935,7 +53933,8 @@ class Transformer extends Tool {
53935
53933
  return false;
53936
53934
  }
53937
53935
  const isLockedItems = this.selection.getIsLockedSelection();
53938
- if (isLockedItems) {
53936
+ const isResizeEnabled = this.selection.getIsResizeEnabled();
53937
+ if (isLockedItems || !isResizeEnabled) {
53939
53938
  return false;
53940
53939
  }
53941
53940
  this.updateAnchorType();
@@ -55178,6 +55177,10 @@ class BoardSelection {
55178
55177
  this.board.tools.getSelect()?.nestingHighlighter.clear();
55179
55178
  this.setContext("None");
55180
55179
  }
55180
+ getIsResizeEnabled() {
55181
+ const items = this.list();
55182
+ return !items.some((item) => !item.enableResize);
55183
+ }
55181
55184
  getIsLockedSelection() {
55182
55185
  const items = this.list();
55183
55186
  return items.some((item) => item.transformation.isLocked);
@@ -56501,7 +56504,7 @@ class Board {
56501
56504
  itemData.transformation.translateX = translateX - minX + x;
56502
56505
  itemData.transformation.translateY = translateY - minY + y;
56503
56506
  }
56504
- if (itemData.itemType === "Frame") {
56507
+ if ("children" in itemData && itemData.children) {
56505
56508
  itemData.children = itemData.children.map((childId) => newItemIdMap[childId]);
56506
56509
  }
56507
56510
  newMap[newItemId] = itemData;
@@ -37,6 +37,7 @@ export declare class BaseItem extends Mbr implements Geometry {
37
37
  shouldUseCustomRender: boolean;
38
38
  shouldRenderOutsideViewRect: boolean;
39
39
  shouldUseRelativeAlignment: boolean;
40
+ enableResize: boolean;
40
41
  itemType: string;
41
42
  constructor(board: Board, id?: string, defaultItemData?: BaseItemData | undefined, isGroupItem?: boolean);
42
43
  getId(): string;
@@ -47,6 +47,7 @@ export declare class Comment implements Geometry {
47
47
  readonly subject: Subject<Comment>;
48
48
  readonly linkTo: LinkTo;
49
49
  transformationRenderBlock?: boolean;
50
+ enableResize: boolean;
50
51
  constructor(anchor?: Point, events?: Events | undefined, id?: string);
51
52
  serialize(): CommentData;
52
53
  deserialize(data: CommentData): this;
@@ -20,6 +20,7 @@ export declare class Card extends BaseItem {
20
20
  backside: HTMLImageElement | null;
21
21
  private imageToRender;
22
22
  shouldUseCustomRender: boolean;
23
+ enableResize: boolean;
23
24
  constructor(board: Board, id?: string, urls?: {
24
25
  faceUrl: string;
25
26
  backsideUrl: string;
@@ -10,6 +10,7 @@ export declare class Deck extends BaseItem {
10
10
  shouldUseCustomRender: boolean;
11
11
  private cachedCanvas;
12
12
  private isCacheDirty;
13
+ enableResize: boolean;
13
14
  constructor(board: Board, id?: string);
14
15
  applyAddChildren(childIds: string[]): void;
15
16
  applyRemoveChildren(childIds: string[]): void;
@@ -131,6 +131,7 @@ export declare class BoardSelection {
131
131
  setHorisontalAlignment(horisontalAlignment: HorisontalAlignment): void;
132
132
  setVerticalAlignment(verticalAlignment: VerticalAlignment): void;
133
133
  removeFromBoard(): void;
134
+ getIsResizeEnabled(): boolean;
134
135
  getIsLockedSelection(): boolean;
135
136
  isLocked(): boolean;
136
137
  lock(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.4.97",
3
+ "version": "0.4.99",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",