microboard-temp 0.13.30 → 0.13.31
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.
- package/dist/cjs/browser.js +1 -7
- package/dist/cjs/index.js +1 -7
- package/dist/cjs/node.js +1 -7
- package/dist/esm/browser.js +1 -7
- package/dist/esm/index.js +1 -7
- package/dist/esm/node.js +1 -7
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -22466,7 +22466,7 @@ class RichText extends BaseItem {
|
|
|
22466
22466
|
return this.editor.maxWidth || this.container.getWidth();
|
|
22467
22467
|
}
|
|
22468
22468
|
if (this.isContainerSet) {
|
|
22469
|
-
return this.
|
|
22469
|
+
return this.getTransformedContainer().getWidth();
|
|
22470
22470
|
} else {
|
|
22471
22471
|
return this.containerMaxWidth || this.editor.maxWidth;
|
|
22472
22472
|
}
|
|
@@ -40481,16 +40481,10 @@ class Shape extends BaseItem {
|
|
|
40481
40481
|
div.setAttribute("stroke-width", this.borderWidth.toString());
|
|
40482
40482
|
const textElement = this.text.renderHTML(documentFactory);
|
|
40483
40483
|
textElement.id = `${this.getId()}_text`;
|
|
40484
|
-
textElement.style.maxWidth = `${width}px`;
|
|
40485
40484
|
textElement.style.overflow = "auto";
|
|
40486
40485
|
positionRelatively(textElement, div);
|
|
40487
40486
|
resetElementScale(textElement);
|
|
40488
40487
|
scaleElementBy(textElement, 1 / scaleX, 1 / scaleY);
|
|
40489
|
-
const [dx, dy] = [
|
|
40490
|
-
(width - parseInt(textElement.style.width)) / scaleX / 2 - 1,
|
|
40491
|
-
(height - parseInt(textElement.style.height)) / scaleY / 2 - 1
|
|
40492
|
-
];
|
|
40493
|
-
translateElementBy(textElement, dx, dy);
|
|
40494
40488
|
div.setAttribute("data-link-to", this.linkTo.serialize() || "");
|
|
40495
40489
|
if (this.getLinkTo()) {
|
|
40496
40490
|
const linkElement = this.linkTo.renderHTML(documentFactory);
|
package/dist/cjs/index.js
CHANGED
|
@@ -22466,7 +22466,7 @@ class RichText extends BaseItem {
|
|
|
22466
22466
|
return this.editor.maxWidth || this.container.getWidth();
|
|
22467
22467
|
}
|
|
22468
22468
|
if (this.isContainerSet) {
|
|
22469
|
-
return this.
|
|
22469
|
+
return this.getTransformedContainer().getWidth();
|
|
22470
22470
|
} else {
|
|
22471
22471
|
return this.containerMaxWidth || this.editor.maxWidth;
|
|
22472
22472
|
}
|
|
@@ -40481,16 +40481,10 @@ class Shape extends BaseItem {
|
|
|
40481
40481
|
div.setAttribute("stroke-width", this.borderWidth.toString());
|
|
40482
40482
|
const textElement = this.text.renderHTML(documentFactory);
|
|
40483
40483
|
textElement.id = `${this.getId()}_text`;
|
|
40484
|
-
textElement.style.maxWidth = `${width}px`;
|
|
40485
40484
|
textElement.style.overflow = "auto";
|
|
40486
40485
|
positionRelatively(textElement, div);
|
|
40487
40486
|
resetElementScale(textElement);
|
|
40488
40487
|
scaleElementBy(textElement, 1 / scaleX, 1 / scaleY);
|
|
40489
|
-
const [dx, dy] = [
|
|
40490
|
-
(width - parseInt(textElement.style.width)) / scaleX / 2 - 1,
|
|
40491
|
-
(height - parseInt(textElement.style.height)) / scaleY / 2 - 1
|
|
40492
|
-
];
|
|
40493
|
-
translateElementBy(textElement, dx, dy);
|
|
40494
40488
|
div.setAttribute("data-link-to", this.linkTo.serialize() || "");
|
|
40495
40489
|
if (this.getLinkTo()) {
|
|
40496
40490
|
const linkElement = this.linkTo.renderHTML(documentFactory);
|
package/dist/cjs/node.js
CHANGED
|
@@ -24938,7 +24938,7 @@ class RichText extends BaseItem {
|
|
|
24938
24938
|
return this.editor.maxWidth || this.container.getWidth();
|
|
24939
24939
|
}
|
|
24940
24940
|
if (this.isContainerSet) {
|
|
24941
|
-
return this.
|
|
24941
|
+
return this.getTransformedContainer().getWidth();
|
|
24942
24942
|
} else {
|
|
24943
24943
|
return this.containerMaxWidth || this.editor.maxWidth;
|
|
24944
24944
|
}
|
|
@@ -42954,16 +42954,10 @@ class Shape extends BaseItem {
|
|
|
42954
42954
|
div.setAttribute("stroke-width", this.borderWidth.toString());
|
|
42955
42955
|
const textElement = this.text.renderHTML(documentFactory);
|
|
42956
42956
|
textElement.id = `${this.getId()}_text`;
|
|
42957
|
-
textElement.style.maxWidth = `${width}px`;
|
|
42958
42957
|
textElement.style.overflow = "auto";
|
|
42959
42958
|
positionRelatively(textElement, div);
|
|
42960
42959
|
resetElementScale(textElement);
|
|
42961
42960
|
scaleElementBy(textElement, 1 / scaleX, 1 / scaleY);
|
|
42962
|
-
const [dx, dy] = [
|
|
42963
|
-
(width - parseInt(textElement.style.width)) / scaleX / 2 - 1,
|
|
42964
|
-
(height - parseInt(textElement.style.height)) / scaleY / 2 - 1
|
|
42965
|
-
];
|
|
42966
|
-
translateElementBy(textElement, dx, dy);
|
|
42967
42961
|
div.setAttribute("data-link-to", this.linkTo.serialize() || "");
|
|
42968
42962
|
if (this.getLinkTo()) {
|
|
42969
42963
|
const linkElement = this.linkTo.renderHTML(documentFactory);
|
package/dist/esm/browser.js
CHANGED
|
@@ -22295,7 +22295,7 @@ class RichText extends BaseItem {
|
|
|
22295
22295
|
return this.editor.maxWidth || this.container.getWidth();
|
|
22296
22296
|
}
|
|
22297
22297
|
if (this.isContainerSet) {
|
|
22298
|
-
return this.
|
|
22298
|
+
return this.getTransformedContainer().getWidth();
|
|
22299
22299
|
} else {
|
|
22300
22300
|
return this.containerMaxWidth || this.editor.maxWidth;
|
|
22301
22301
|
}
|
|
@@ -40310,16 +40310,10 @@ class Shape extends BaseItem {
|
|
|
40310
40310
|
div.setAttribute("stroke-width", this.borderWidth.toString());
|
|
40311
40311
|
const textElement = this.text.renderHTML(documentFactory);
|
|
40312
40312
|
textElement.id = `${this.getId()}_text`;
|
|
40313
|
-
textElement.style.maxWidth = `${width}px`;
|
|
40314
40313
|
textElement.style.overflow = "auto";
|
|
40315
40314
|
positionRelatively(textElement, div);
|
|
40316
40315
|
resetElementScale(textElement);
|
|
40317
40316
|
scaleElementBy(textElement, 1 / scaleX, 1 / scaleY);
|
|
40318
|
-
const [dx, dy] = [
|
|
40319
|
-
(width - parseInt(textElement.style.width)) / scaleX / 2 - 1,
|
|
40320
|
-
(height - parseInt(textElement.style.height)) / scaleY / 2 - 1
|
|
40321
|
-
];
|
|
40322
|
-
translateElementBy(textElement, dx, dy);
|
|
40323
40317
|
div.setAttribute("data-link-to", this.linkTo.serialize() || "");
|
|
40324
40318
|
if (this.getLinkTo()) {
|
|
40325
40319
|
const linkElement = this.linkTo.renderHTML(documentFactory);
|
package/dist/esm/index.js
CHANGED
|
@@ -22288,7 +22288,7 @@ class RichText extends BaseItem {
|
|
|
22288
22288
|
return this.editor.maxWidth || this.container.getWidth();
|
|
22289
22289
|
}
|
|
22290
22290
|
if (this.isContainerSet) {
|
|
22291
|
-
return this.
|
|
22291
|
+
return this.getTransformedContainer().getWidth();
|
|
22292
22292
|
} else {
|
|
22293
22293
|
return this.containerMaxWidth || this.editor.maxWidth;
|
|
22294
22294
|
}
|
|
@@ -40303,16 +40303,10 @@ class Shape extends BaseItem {
|
|
|
40303
40303
|
div.setAttribute("stroke-width", this.borderWidth.toString());
|
|
40304
40304
|
const textElement = this.text.renderHTML(documentFactory);
|
|
40305
40305
|
textElement.id = `${this.getId()}_text`;
|
|
40306
|
-
textElement.style.maxWidth = `${width}px`;
|
|
40307
40306
|
textElement.style.overflow = "auto";
|
|
40308
40307
|
positionRelatively(textElement, div);
|
|
40309
40308
|
resetElementScale(textElement);
|
|
40310
40309
|
scaleElementBy(textElement, 1 / scaleX, 1 / scaleY);
|
|
40311
|
-
const [dx, dy] = [
|
|
40312
|
-
(width - parseInt(textElement.style.width)) / scaleX / 2 - 1,
|
|
40313
|
-
(height - parseInt(textElement.style.height)) / scaleY / 2 - 1
|
|
40314
|
-
];
|
|
40315
|
-
translateElementBy(textElement, dx, dy);
|
|
40316
40310
|
div.setAttribute("data-link-to", this.linkTo.serialize() || "");
|
|
40317
40311
|
if (this.getLinkTo()) {
|
|
40318
40312
|
const linkElement = this.linkTo.renderHTML(documentFactory);
|
package/dist/esm/node.js
CHANGED
|
@@ -24755,7 +24755,7 @@ class RichText extends BaseItem {
|
|
|
24755
24755
|
return this.editor.maxWidth || this.container.getWidth();
|
|
24756
24756
|
}
|
|
24757
24757
|
if (this.isContainerSet) {
|
|
24758
|
-
return this.
|
|
24758
|
+
return this.getTransformedContainer().getWidth();
|
|
24759
24759
|
} else {
|
|
24760
24760
|
return this.containerMaxWidth || this.editor.maxWidth;
|
|
24761
24761
|
}
|
|
@@ -42771,16 +42771,10 @@ class Shape extends BaseItem {
|
|
|
42771
42771
|
div.setAttribute("stroke-width", this.borderWidth.toString());
|
|
42772
42772
|
const textElement = this.text.renderHTML(documentFactory);
|
|
42773
42773
|
textElement.id = `${this.getId()}_text`;
|
|
42774
|
-
textElement.style.maxWidth = `${width}px`;
|
|
42775
42774
|
textElement.style.overflow = "auto";
|
|
42776
42775
|
positionRelatively(textElement, div);
|
|
42777
42776
|
resetElementScale(textElement);
|
|
42778
42777
|
scaleElementBy(textElement, 1 / scaleX, 1 / scaleY);
|
|
42779
|
-
const [dx, dy] = [
|
|
42780
|
-
(width - parseInt(textElement.style.width)) / scaleX / 2 - 1,
|
|
42781
|
-
(height - parseInt(textElement.style.height)) / scaleY / 2 - 1
|
|
42782
|
-
];
|
|
42783
|
-
translateElementBy(textElement, dx, dy);
|
|
42784
42778
|
div.setAttribute("data-link-to", this.linkTo.serialize() || "");
|
|
42785
42779
|
if (this.getLinkTo()) {
|
|
42786
42780
|
const linkElement = this.linkTo.renderHTML(documentFactory);
|