microboard-temp 0.13.10 → 0.13.12

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.
@@ -22341,10 +22341,10 @@ class RichText extends BaseItem {
22341
22341
  const shouldUpdateLayout = this.getTextWidth() > (maxWidth || 0);
22342
22342
  if (shouldUpdateLayout) {
22343
22343
  this.updateElement();
22344
- this.subject.publish(this);
22345
22344
  } else {
22346
22345
  this.transformCanvas();
22347
22346
  this.recoordinate(maxWidth);
22347
+ this.subject.publish(this);
22348
22348
  }
22349
22349
  }
22350
22350
  handleFocus = () => {
@@ -22863,9 +22863,7 @@ class RichText extends BaseItem {
22863
22863
  this.insideOf = data.insideOf;
22864
22864
  if (typeof document !== "undefined") {
22865
22865
  document.fonts.ready.then(() => {
22866
- this.layoutNodes = getBlockNodes(this.getBlockNodes(), this.shrinkWidth ? Infinity : this.getMaxWidth() || 0, this.shrinkWidth, this.insideOf === "Frame");
22867
- this.alignInRectangle(this.getTransformedContainer(), this.editor.verticalAlignment);
22868
- this.transformCanvas();
22866
+ this.updateElement();
22869
22867
  });
22870
22868
  }
22871
22869
  this.subject.publish(this);
@@ -40025,7 +40023,9 @@ class Shape extends BaseItem {
40025
40023
  this.subject.publish(this);
40026
40024
  });
40027
40025
  this.text.insideOf = this.itemType;
40026
+ this.transformPath();
40028
40027
  this.updateMbr();
40028
+ this.subject.publish(this);
40029
40029
  }
40030
40030
  saveShapeData() {
40031
40031
  tempStorage.setShapeData({
@@ -40576,6 +40576,8 @@ class Sticker extends BaseItem {
40576
40576
  this.subject.publish(this);
40577
40577
  });
40578
40578
  this.text.updateElement();
40579
+ this.transformPath();
40580
+ this.subject.publish(this);
40579
40581
  }
40580
40582
  emit(operation) {
40581
40583
  if (this.board.events) {
package/dist/cjs/index.js CHANGED
@@ -22341,10 +22341,10 @@ class RichText extends BaseItem {
22341
22341
  const shouldUpdateLayout = this.getTextWidth() > (maxWidth || 0);
22342
22342
  if (shouldUpdateLayout) {
22343
22343
  this.updateElement();
22344
- this.subject.publish(this);
22345
22344
  } else {
22346
22345
  this.transformCanvas();
22347
22346
  this.recoordinate(maxWidth);
22347
+ this.subject.publish(this);
22348
22348
  }
22349
22349
  }
22350
22350
  handleFocus = () => {
@@ -22863,9 +22863,7 @@ class RichText extends BaseItem {
22863
22863
  this.insideOf = data.insideOf;
22864
22864
  if (typeof document !== "undefined") {
22865
22865
  document.fonts.ready.then(() => {
22866
- this.layoutNodes = getBlockNodes(this.getBlockNodes(), this.shrinkWidth ? Infinity : this.getMaxWidth() || 0, this.shrinkWidth, this.insideOf === "Frame");
22867
- this.alignInRectangle(this.getTransformedContainer(), this.editor.verticalAlignment);
22868
- this.transformCanvas();
22866
+ this.updateElement();
22869
22867
  });
22870
22868
  }
22871
22869
  this.subject.publish(this);
@@ -40025,7 +40023,9 @@ class Shape extends BaseItem {
40025
40023
  this.subject.publish(this);
40026
40024
  });
40027
40025
  this.text.insideOf = this.itemType;
40026
+ this.transformPath();
40028
40027
  this.updateMbr();
40028
+ this.subject.publish(this);
40029
40029
  }
40030
40030
  saveShapeData() {
40031
40031
  tempStorage.setShapeData({
@@ -40576,6 +40576,8 @@ class Sticker extends BaseItem {
40576
40576
  this.subject.publish(this);
40577
40577
  });
40578
40578
  this.text.updateElement();
40579
+ this.transformPath();
40580
+ this.subject.publish(this);
40579
40581
  }
40580
40582
  emit(operation) {
40581
40583
  if (this.board.events) {
package/dist/cjs/node.js CHANGED
@@ -24813,10 +24813,10 @@ class RichText extends BaseItem {
24813
24813
  const shouldUpdateLayout = this.getTextWidth() > (maxWidth || 0);
24814
24814
  if (shouldUpdateLayout) {
24815
24815
  this.updateElement();
24816
- this.subject.publish(this);
24817
24816
  } else {
24818
24817
  this.transformCanvas();
24819
24818
  this.recoordinate(maxWidth);
24819
+ this.subject.publish(this);
24820
24820
  }
24821
24821
  }
24822
24822
  handleFocus = () => {
@@ -25335,9 +25335,7 @@ class RichText extends BaseItem {
25335
25335
  this.insideOf = data.insideOf;
25336
25336
  if (typeof document !== "undefined") {
25337
25337
  document.fonts.ready.then(() => {
25338
- this.layoutNodes = getBlockNodes(this.getBlockNodes(), this.shrinkWidth ? Infinity : this.getMaxWidth() || 0, this.shrinkWidth, this.insideOf === "Frame");
25339
- this.alignInRectangle(this.getTransformedContainer(), this.editor.verticalAlignment);
25340
- this.transformCanvas();
25338
+ this.updateElement();
25341
25339
  });
25342
25340
  }
25343
25341
  this.subject.publish(this);
@@ -42498,7 +42496,9 @@ class Shape extends BaseItem {
42498
42496
  this.subject.publish(this);
42499
42497
  });
42500
42498
  this.text.insideOf = this.itemType;
42499
+ this.transformPath();
42501
42500
  this.updateMbr();
42501
+ this.subject.publish(this);
42502
42502
  }
42503
42503
  saveShapeData() {
42504
42504
  tempStorage.setShapeData({
@@ -43049,6 +43049,8 @@ class Sticker extends BaseItem {
43049
43049
  this.subject.publish(this);
43050
43050
  });
43051
43051
  this.text.updateElement();
43052
+ this.transformPath();
43053
+ this.subject.publish(this);
43052
43054
  }
43053
43055
  emit(operation) {
43054
43056
  if (this.board.events) {
@@ -22170,10 +22170,10 @@ class RichText extends BaseItem {
22170
22170
  const shouldUpdateLayout = this.getTextWidth() > (maxWidth || 0);
22171
22171
  if (shouldUpdateLayout) {
22172
22172
  this.updateElement();
22173
- this.subject.publish(this);
22174
22173
  } else {
22175
22174
  this.transformCanvas();
22176
22175
  this.recoordinate(maxWidth);
22176
+ this.subject.publish(this);
22177
22177
  }
22178
22178
  }
22179
22179
  handleFocus = () => {
@@ -22692,9 +22692,7 @@ class RichText extends BaseItem {
22692
22692
  this.insideOf = data.insideOf;
22693
22693
  if (typeof document !== "undefined") {
22694
22694
  document.fonts.ready.then(() => {
22695
- this.layoutNodes = getBlockNodes(this.getBlockNodes(), this.shrinkWidth ? Infinity : this.getMaxWidth() || 0, this.shrinkWidth, this.insideOf === "Frame");
22696
- this.alignInRectangle(this.getTransformedContainer(), this.editor.verticalAlignment);
22697
- this.transformCanvas();
22695
+ this.updateElement();
22698
22696
  });
22699
22697
  }
22700
22698
  this.subject.publish(this);
@@ -39854,7 +39852,9 @@ class Shape extends BaseItem {
39854
39852
  this.subject.publish(this);
39855
39853
  });
39856
39854
  this.text.insideOf = this.itemType;
39855
+ this.transformPath();
39857
39856
  this.updateMbr();
39857
+ this.subject.publish(this);
39858
39858
  }
39859
39859
  saveShapeData() {
39860
39860
  tempStorage.setShapeData({
@@ -40405,6 +40405,8 @@ class Sticker extends BaseItem {
40405
40405
  this.subject.publish(this);
40406
40406
  });
40407
40407
  this.text.updateElement();
40408
+ this.transformPath();
40409
+ this.subject.publish(this);
40408
40410
  }
40409
40411
  emit(operation) {
40410
40412
  if (this.board.events) {
package/dist/esm/index.js CHANGED
@@ -22163,10 +22163,10 @@ class RichText extends BaseItem {
22163
22163
  const shouldUpdateLayout = this.getTextWidth() > (maxWidth || 0);
22164
22164
  if (shouldUpdateLayout) {
22165
22165
  this.updateElement();
22166
- this.subject.publish(this);
22167
22166
  } else {
22168
22167
  this.transformCanvas();
22169
22168
  this.recoordinate(maxWidth);
22169
+ this.subject.publish(this);
22170
22170
  }
22171
22171
  }
22172
22172
  handleFocus = () => {
@@ -22685,9 +22685,7 @@ class RichText extends BaseItem {
22685
22685
  this.insideOf = data.insideOf;
22686
22686
  if (typeof document !== "undefined") {
22687
22687
  document.fonts.ready.then(() => {
22688
- this.layoutNodes = getBlockNodes(this.getBlockNodes(), this.shrinkWidth ? Infinity : this.getMaxWidth() || 0, this.shrinkWidth, this.insideOf === "Frame");
22689
- this.alignInRectangle(this.getTransformedContainer(), this.editor.verticalAlignment);
22690
- this.transformCanvas();
22688
+ this.updateElement();
22691
22689
  });
22692
22690
  }
22693
22691
  this.subject.publish(this);
@@ -39847,7 +39845,9 @@ class Shape extends BaseItem {
39847
39845
  this.subject.publish(this);
39848
39846
  });
39849
39847
  this.text.insideOf = this.itemType;
39848
+ this.transformPath();
39850
39849
  this.updateMbr();
39850
+ this.subject.publish(this);
39851
39851
  }
39852
39852
  saveShapeData() {
39853
39853
  tempStorage.setShapeData({
@@ -40398,6 +40398,8 @@ class Sticker extends BaseItem {
40398
40398
  this.subject.publish(this);
40399
40399
  });
40400
40400
  this.text.updateElement();
40401
+ this.transformPath();
40402
+ this.subject.publish(this);
40401
40403
  }
40402
40404
  emit(operation) {
40403
40405
  if (this.board.events) {
package/dist/esm/node.js CHANGED
@@ -24630,10 +24630,10 @@ class RichText extends BaseItem {
24630
24630
  const shouldUpdateLayout = this.getTextWidth() > (maxWidth || 0);
24631
24631
  if (shouldUpdateLayout) {
24632
24632
  this.updateElement();
24633
- this.subject.publish(this);
24634
24633
  } else {
24635
24634
  this.transformCanvas();
24636
24635
  this.recoordinate(maxWidth);
24636
+ this.subject.publish(this);
24637
24637
  }
24638
24638
  }
24639
24639
  handleFocus = () => {
@@ -25152,9 +25152,7 @@ class RichText extends BaseItem {
25152
25152
  this.insideOf = data.insideOf;
25153
25153
  if (typeof document !== "undefined") {
25154
25154
  document.fonts.ready.then(() => {
25155
- this.layoutNodes = getBlockNodes(this.getBlockNodes(), this.shrinkWidth ? Infinity : this.getMaxWidth() || 0, this.shrinkWidth, this.insideOf === "Frame");
25156
- this.alignInRectangle(this.getTransformedContainer(), this.editor.verticalAlignment);
25157
- this.transformCanvas();
25155
+ this.updateElement();
25158
25156
  });
25159
25157
  }
25160
25158
  this.subject.publish(this);
@@ -42315,7 +42313,9 @@ class Shape extends BaseItem {
42315
42313
  this.subject.publish(this);
42316
42314
  });
42317
42315
  this.text.insideOf = this.itemType;
42316
+ this.transformPath();
42318
42317
  this.updateMbr();
42318
+ this.subject.publish(this);
42319
42319
  }
42320
42320
  saveShapeData() {
42321
42321
  tempStorage.setShapeData({
@@ -42866,6 +42866,8 @@ class Sticker extends BaseItem {
42866
42866
  this.subject.publish(this);
42867
42867
  });
42868
42868
  this.text.updateElement();
42869
+ this.transformPath();
42870
+ this.subject.publish(this);
42869
42871
  }
42870
42872
  emit(operation) {
42871
42873
  if (this.board.events) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.10",
3
+ "version": "0.13.12",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",