microboard-temp 0.5.141 → 0.5.143
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 +12 -6
- package/dist/cjs/index.js +12 -6
- package/dist/cjs/node.js +12 -6
- package/dist/esm/browser.js +12 -6
- package/dist/esm/index.js +12 -6
- package/dist/esm/node.js +12 -6
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -39952,7 +39952,11 @@ class Sticker extends BaseItem {
|
|
|
39952
39952
|
if (op.method === "applyMatrix") {
|
|
39953
39953
|
if (op.matrix.scaleX !== 1 || op.matrix.scaleY !== 1) {
|
|
39954
39954
|
if (this.text.isAutosize()) {
|
|
39955
|
-
|
|
39955
|
+
if (op.matrix.scaleX !== op.matrix.scaleY) {
|
|
39956
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39957
|
+
} else {
|
|
39958
|
+
this.text.scaleAutoSizeScale(op.matrix.scaleX);
|
|
39959
|
+
}
|
|
39956
39960
|
this.text.recoordinate();
|
|
39957
39961
|
this.text.transformCanvas();
|
|
39958
39962
|
} else {
|
|
@@ -39963,7 +39967,11 @@ class Sticker extends BaseItem {
|
|
|
39963
39967
|
const transformOp = op.items[this.id];
|
|
39964
39968
|
if (transformOp.method === "applyMatrix" && (transformOp.matrix.scaleX !== 1 || transformOp.matrix.scaleY !== 1)) {
|
|
39965
39969
|
if (this.text.isAutosize()) {
|
|
39966
|
-
|
|
39970
|
+
if (transformOp.matrix.scaleX !== transformOp.matrix.scaleY) {
|
|
39971
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39972
|
+
} else {
|
|
39973
|
+
this.text.scaleAutoSizeScale(transformOp.matrix.scaleX);
|
|
39974
|
+
}
|
|
39967
39975
|
this.text.recoordinate();
|
|
39968
39976
|
this.text.transformCanvas();
|
|
39969
39977
|
} else {
|
|
@@ -46204,10 +46212,8 @@ class AlignmentHelper {
|
|
|
46204
46212
|
transformMap[id] = {
|
|
46205
46213
|
class: "Transformation",
|
|
46206
46214
|
item: [id],
|
|
46207
|
-
method: "
|
|
46208
|
-
x,
|
|
46209
|
-
y,
|
|
46210
|
-
timeStamp
|
|
46215
|
+
method: "applyMatrix",
|
|
46216
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
46211
46217
|
};
|
|
46212
46218
|
this.board.selection.transformMany(transformMap, timeStamp);
|
|
46213
46219
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -39952,7 +39952,11 @@ class Sticker extends BaseItem {
|
|
|
39952
39952
|
if (op.method === "applyMatrix") {
|
|
39953
39953
|
if (op.matrix.scaleX !== 1 || op.matrix.scaleY !== 1) {
|
|
39954
39954
|
if (this.text.isAutosize()) {
|
|
39955
|
-
|
|
39955
|
+
if (op.matrix.scaleX !== op.matrix.scaleY) {
|
|
39956
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39957
|
+
} else {
|
|
39958
|
+
this.text.scaleAutoSizeScale(op.matrix.scaleX);
|
|
39959
|
+
}
|
|
39956
39960
|
this.text.recoordinate();
|
|
39957
39961
|
this.text.transformCanvas();
|
|
39958
39962
|
} else {
|
|
@@ -39963,7 +39967,11 @@ class Sticker extends BaseItem {
|
|
|
39963
39967
|
const transformOp = op.items[this.id];
|
|
39964
39968
|
if (transformOp.method === "applyMatrix" && (transformOp.matrix.scaleX !== 1 || transformOp.matrix.scaleY !== 1)) {
|
|
39965
39969
|
if (this.text.isAutosize()) {
|
|
39966
|
-
|
|
39970
|
+
if (transformOp.matrix.scaleX !== transformOp.matrix.scaleY) {
|
|
39971
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39972
|
+
} else {
|
|
39973
|
+
this.text.scaleAutoSizeScale(transformOp.matrix.scaleX);
|
|
39974
|
+
}
|
|
39967
39975
|
this.text.recoordinate();
|
|
39968
39976
|
this.text.transformCanvas();
|
|
39969
39977
|
} else {
|
|
@@ -46204,10 +46212,8 @@ class AlignmentHelper {
|
|
|
46204
46212
|
transformMap[id] = {
|
|
46205
46213
|
class: "Transformation",
|
|
46206
46214
|
item: [id],
|
|
46207
|
-
method: "
|
|
46208
|
-
x,
|
|
46209
|
-
y,
|
|
46210
|
-
timeStamp
|
|
46215
|
+
method: "applyMatrix",
|
|
46216
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
46211
46217
|
};
|
|
46212
46218
|
this.board.selection.transformMany(transformMap, timeStamp);
|
|
46213
46219
|
}
|
package/dist/cjs/node.js
CHANGED
|
@@ -42425,7 +42425,11 @@ class Sticker extends BaseItem {
|
|
|
42425
42425
|
if (op.method === "applyMatrix") {
|
|
42426
42426
|
if (op.matrix.scaleX !== 1 || op.matrix.scaleY !== 1) {
|
|
42427
42427
|
if (this.text.isAutosize()) {
|
|
42428
|
-
|
|
42428
|
+
if (op.matrix.scaleX !== op.matrix.scaleY) {
|
|
42429
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
42430
|
+
} else {
|
|
42431
|
+
this.text.scaleAutoSizeScale(op.matrix.scaleX);
|
|
42432
|
+
}
|
|
42429
42433
|
this.text.recoordinate();
|
|
42430
42434
|
this.text.transformCanvas();
|
|
42431
42435
|
} else {
|
|
@@ -42436,7 +42440,11 @@ class Sticker extends BaseItem {
|
|
|
42436
42440
|
const transformOp = op.items[this.id];
|
|
42437
42441
|
if (transformOp.method === "applyMatrix" && (transformOp.matrix.scaleX !== 1 || transformOp.matrix.scaleY !== 1)) {
|
|
42438
42442
|
if (this.text.isAutosize()) {
|
|
42439
|
-
|
|
42443
|
+
if (transformOp.matrix.scaleX !== transformOp.matrix.scaleY) {
|
|
42444
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
42445
|
+
} else {
|
|
42446
|
+
this.text.scaleAutoSizeScale(transformOp.matrix.scaleX);
|
|
42447
|
+
}
|
|
42440
42448
|
this.text.recoordinate();
|
|
42441
42449
|
this.text.transformCanvas();
|
|
42442
42450
|
} else {
|
|
@@ -48677,10 +48685,8 @@ class AlignmentHelper {
|
|
|
48677
48685
|
transformMap[id] = {
|
|
48678
48686
|
class: "Transformation",
|
|
48679
48687
|
item: [id],
|
|
48680
|
-
method: "
|
|
48681
|
-
x,
|
|
48682
|
-
y,
|
|
48683
|
-
timeStamp
|
|
48688
|
+
method: "applyMatrix",
|
|
48689
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
48684
48690
|
};
|
|
48685
48691
|
this.board.selection.transformMany(transformMap, timeStamp);
|
|
48686
48692
|
}
|
package/dist/esm/browser.js
CHANGED
|
@@ -39795,7 +39795,11 @@ class Sticker extends BaseItem {
|
|
|
39795
39795
|
if (op.method === "applyMatrix") {
|
|
39796
39796
|
if (op.matrix.scaleX !== 1 || op.matrix.scaleY !== 1) {
|
|
39797
39797
|
if (this.text.isAutosize()) {
|
|
39798
|
-
|
|
39798
|
+
if (op.matrix.scaleX !== op.matrix.scaleY) {
|
|
39799
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39800
|
+
} else {
|
|
39801
|
+
this.text.scaleAutoSizeScale(op.matrix.scaleX);
|
|
39802
|
+
}
|
|
39799
39803
|
this.text.recoordinate();
|
|
39800
39804
|
this.text.transformCanvas();
|
|
39801
39805
|
} else {
|
|
@@ -39806,7 +39810,11 @@ class Sticker extends BaseItem {
|
|
|
39806
39810
|
const transformOp = op.items[this.id];
|
|
39807
39811
|
if (transformOp.method === "applyMatrix" && (transformOp.matrix.scaleX !== 1 || transformOp.matrix.scaleY !== 1)) {
|
|
39808
39812
|
if (this.text.isAutosize()) {
|
|
39809
|
-
|
|
39813
|
+
if (transformOp.matrix.scaleX !== transformOp.matrix.scaleY) {
|
|
39814
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39815
|
+
} else {
|
|
39816
|
+
this.text.scaleAutoSizeScale(transformOp.matrix.scaleX);
|
|
39817
|
+
}
|
|
39810
39818
|
this.text.recoordinate();
|
|
39811
39819
|
this.text.transformCanvas();
|
|
39812
39820
|
} else {
|
|
@@ -46047,10 +46055,8 @@ class AlignmentHelper {
|
|
|
46047
46055
|
transformMap[id] = {
|
|
46048
46056
|
class: "Transformation",
|
|
46049
46057
|
item: [id],
|
|
46050
|
-
method: "
|
|
46051
|
-
x,
|
|
46052
|
-
y,
|
|
46053
|
-
timeStamp
|
|
46058
|
+
method: "applyMatrix",
|
|
46059
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
46054
46060
|
};
|
|
46055
46061
|
this.board.selection.transformMany(transformMap, timeStamp);
|
|
46056
46062
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -39788,7 +39788,11 @@ class Sticker extends BaseItem {
|
|
|
39788
39788
|
if (op.method === "applyMatrix") {
|
|
39789
39789
|
if (op.matrix.scaleX !== 1 || op.matrix.scaleY !== 1) {
|
|
39790
39790
|
if (this.text.isAutosize()) {
|
|
39791
|
-
|
|
39791
|
+
if (op.matrix.scaleX !== op.matrix.scaleY) {
|
|
39792
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39793
|
+
} else {
|
|
39794
|
+
this.text.scaleAutoSizeScale(op.matrix.scaleX);
|
|
39795
|
+
}
|
|
39792
39796
|
this.text.recoordinate();
|
|
39793
39797
|
this.text.transformCanvas();
|
|
39794
39798
|
} else {
|
|
@@ -39799,7 +39803,11 @@ class Sticker extends BaseItem {
|
|
|
39799
39803
|
const transformOp = op.items[this.id];
|
|
39800
39804
|
if (transformOp.method === "applyMatrix" && (transformOp.matrix.scaleX !== 1 || transformOp.matrix.scaleY !== 1)) {
|
|
39801
39805
|
if (this.text.isAutosize()) {
|
|
39802
|
-
|
|
39806
|
+
if (transformOp.matrix.scaleX !== transformOp.matrix.scaleY) {
|
|
39807
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
39808
|
+
} else {
|
|
39809
|
+
this.text.scaleAutoSizeScale(transformOp.matrix.scaleX);
|
|
39810
|
+
}
|
|
39803
39811
|
this.text.recoordinate();
|
|
39804
39812
|
this.text.transformCanvas();
|
|
39805
39813
|
} else {
|
|
@@ -46040,10 +46048,8 @@ class AlignmentHelper {
|
|
|
46040
46048
|
transformMap[id] = {
|
|
46041
46049
|
class: "Transformation",
|
|
46042
46050
|
item: [id],
|
|
46043
|
-
method: "
|
|
46044
|
-
x,
|
|
46045
|
-
y,
|
|
46046
|
-
timeStamp
|
|
46051
|
+
method: "applyMatrix",
|
|
46052
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
46047
46053
|
};
|
|
46048
46054
|
this.board.selection.transformMany(transformMap, timeStamp);
|
|
46049
46055
|
}
|
package/dist/esm/node.js
CHANGED
|
@@ -42256,7 +42256,11 @@ class Sticker extends BaseItem {
|
|
|
42256
42256
|
if (op.method === "applyMatrix") {
|
|
42257
42257
|
if (op.matrix.scaleX !== 1 || op.matrix.scaleY !== 1) {
|
|
42258
42258
|
if (this.text.isAutosize()) {
|
|
42259
|
-
|
|
42259
|
+
if (op.matrix.scaleX !== op.matrix.scaleY) {
|
|
42260
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
42261
|
+
} else {
|
|
42262
|
+
this.text.scaleAutoSizeScale(op.matrix.scaleX);
|
|
42263
|
+
}
|
|
42260
42264
|
this.text.recoordinate();
|
|
42261
42265
|
this.text.transformCanvas();
|
|
42262
42266
|
} else {
|
|
@@ -42267,7 +42271,11 @@ class Sticker extends BaseItem {
|
|
|
42267
42271
|
const transformOp = op.items[this.id];
|
|
42268
42272
|
if (transformOp.method === "applyMatrix" && (transformOp.matrix.scaleX !== 1 || transformOp.matrix.scaleY !== 1)) {
|
|
42269
42273
|
if (this.text.isAutosize()) {
|
|
42270
|
-
|
|
42274
|
+
if (transformOp.matrix.scaleX !== transformOp.matrix.scaleY) {
|
|
42275
|
+
this.text.applyAutoSizeScale(this.text.calcAutoSize());
|
|
42276
|
+
} else {
|
|
42277
|
+
this.text.scaleAutoSizeScale(transformOp.matrix.scaleX);
|
|
42278
|
+
}
|
|
42271
42279
|
this.text.recoordinate();
|
|
42272
42280
|
this.text.transformCanvas();
|
|
42273
42281
|
} else {
|
|
@@ -48508,10 +48516,8 @@ class AlignmentHelper {
|
|
|
48508
48516
|
transformMap[id] = {
|
|
48509
48517
|
class: "Transformation",
|
|
48510
48518
|
item: [id],
|
|
48511
|
-
method: "
|
|
48512
|
-
x,
|
|
48513
|
-
y,
|
|
48514
|
-
timeStamp
|
|
48519
|
+
method: "applyMatrix",
|
|
48520
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
48515
48521
|
};
|
|
48516
48522
|
this.board.selection.transformMany(transformMap, timeStamp);
|
|
48517
48523
|
}
|