microboard-temp 0.5.138 → 0.5.140
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 +39 -30
- package/dist/cjs/index.js +39 -30
- package/dist/cjs/node.js +39 -30
- package/dist/esm/browser.js +39 -30
- package/dist/esm/index.js +39 -30
- package/dist/esm/node.js +39 -30
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -53323,10 +53323,9 @@ class BoardSelection {
|
|
|
53323
53323
|
function addItemToTranslation(itemId) {
|
|
53324
53324
|
translation[itemId] = {
|
|
53325
53325
|
class: "Transformation",
|
|
53326
|
-
method: "
|
|
53326
|
+
method: "applyMatrix",
|
|
53327
53327
|
item: [itemId],
|
|
53328
|
-
|
|
53329
|
-
translate: { x, y }
|
|
53328
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53330
53329
|
};
|
|
53331
53330
|
}
|
|
53332
53331
|
function tryToAddFrameChildrenToTranslation(selectedItem) {
|
|
@@ -53342,10 +53341,9 @@ class BoardSelection {
|
|
|
53342
53341
|
for (const comment2 of followedComments) {
|
|
53343
53342
|
translation[comment2.getId()] = {
|
|
53344
53343
|
class: "Transformation",
|
|
53345
|
-
method: "
|
|
53344
|
+
method: "applyMatrix",
|
|
53346
53345
|
item: [comment2.getId()],
|
|
53347
|
-
|
|
53348
|
-
translate: { x, y }
|
|
53346
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53349
53347
|
};
|
|
53350
53348
|
}
|
|
53351
53349
|
};
|
|
@@ -55058,34 +55056,45 @@ function mergeItems(opA, opB) {
|
|
|
55058
55056
|
};
|
|
55059
55057
|
} else if (opA.items[itemId].method === "scaleByTranslateBy") {
|
|
55060
55058
|
const newTransformation = resolve2(opA.items[itemId].scale, opA.items[itemId].translate, opB.items[itemId]);
|
|
55061
|
-
|
|
55062
|
-
|
|
55063
|
-
|
|
55064
|
-
|
|
55065
|
-
|
|
55066
|
-
|
|
55067
|
-
|
|
55068
|
-
|
|
55069
|
-
|
|
55070
|
-
|
|
55059
|
+
if (!newTransformation) {
|
|
55060
|
+
items[itemId] = opB.items[itemId];
|
|
55061
|
+
} else {
|
|
55062
|
+
items[itemId] = {
|
|
55063
|
+
class: "Transformation",
|
|
55064
|
+
method: "scaleByTranslateBy",
|
|
55065
|
+
item: [itemId],
|
|
55066
|
+
scale: newTransformation.scale,
|
|
55067
|
+
translate: newTransformation.translate
|
|
55068
|
+
};
|
|
55069
|
+
}
|
|
55071
55070
|
} else if (opA.items[itemId].method === "scaleBy") {
|
|
55072
55071
|
const newTransformation = resolve2({ x: opA.items[itemId].x, y: opA.items[itemId].y }, undefined, opB.items[itemId]);
|
|
55073
|
-
|
|
55074
|
-
|
|
55075
|
-
|
|
55076
|
-
|
|
55077
|
-
|
|
55078
|
-
|
|
55079
|
-
|
|
55072
|
+
if (!newTransformation) {
|
|
55073
|
+
items[itemId] = opB.items[itemId];
|
|
55074
|
+
} else {
|
|
55075
|
+
items[itemId] = {
|
|
55076
|
+
class: "Transformation",
|
|
55077
|
+
method: "scaleByTranslateBy",
|
|
55078
|
+
item: [itemId],
|
|
55079
|
+
scale: newTransformation.scale,
|
|
55080
|
+
translate: newTransformation.translate
|
|
55081
|
+
};
|
|
55082
|
+
}
|
|
55080
55083
|
} else if (opA.items[itemId].method === "translateBy") {
|
|
55081
55084
|
const newTransformation = resolve2(undefined, { x: opA.items[itemId].x, y: opA.items[itemId].y }, opB.items[itemId]);
|
|
55082
|
-
|
|
55083
|
-
|
|
55084
|
-
|
|
55085
|
-
|
|
55086
|
-
|
|
55087
|
-
|
|
55088
|
-
|
|
55085
|
+
if (!newTransformation) {
|
|
55086
|
+
items[itemId] = opB.items[itemId];
|
|
55087
|
+
} else {
|
|
55088
|
+
items[itemId] = {
|
|
55089
|
+
class: "Transformation",
|
|
55090
|
+
method: "scaleByTranslateBy",
|
|
55091
|
+
item: [itemId],
|
|
55092
|
+
scale: newTransformation.scale,
|
|
55093
|
+
translate: newTransformation.translate
|
|
55094
|
+
};
|
|
55095
|
+
}
|
|
55096
|
+
} else {
|
|
55097
|
+
items[itemId] = opB.items[itemId];
|
|
55089
55098
|
}
|
|
55090
55099
|
} else {
|
|
55091
55100
|
items[itemId] = opB.items[itemId];
|
package/dist/cjs/index.js
CHANGED
|
@@ -53323,10 +53323,9 @@ class BoardSelection {
|
|
|
53323
53323
|
function addItemToTranslation(itemId) {
|
|
53324
53324
|
translation[itemId] = {
|
|
53325
53325
|
class: "Transformation",
|
|
53326
|
-
method: "
|
|
53326
|
+
method: "applyMatrix",
|
|
53327
53327
|
item: [itemId],
|
|
53328
|
-
|
|
53329
|
-
translate: { x, y }
|
|
53328
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53330
53329
|
};
|
|
53331
53330
|
}
|
|
53332
53331
|
function tryToAddFrameChildrenToTranslation(selectedItem) {
|
|
@@ -53342,10 +53341,9 @@ class BoardSelection {
|
|
|
53342
53341
|
for (const comment2 of followedComments) {
|
|
53343
53342
|
translation[comment2.getId()] = {
|
|
53344
53343
|
class: "Transformation",
|
|
53345
|
-
method: "
|
|
53344
|
+
method: "applyMatrix",
|
|
53346
53345
|
item: [comment2.getId()],
|
|
53347
|
-
|
|
53348
|
-
translate: { x, y }
|
|
53346
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53349
53347
|
};
|
|
53350
53348
|
}
|
|
53351
53349
|
};
|
|
@@ -55058,34 +55056,45 @@ function mergeItems(opA, opB) {
|
|
|
55058
55056
|
};
|
|
55059
55057
|
} else if (opA.items[itemId].method === "scaleByTranslateBy") {
|
|
55060
55058
|
const newTransformation = resolve2(opA.items[itemId].scale, opA.items[itemId].translate, opB.items[itemId]);
|
|
55061
|
-
|
|
55062
|
-
|
|
55063
|
-
|
|
55064
|
-
|
|
55065
|
-
|
|
55066
|
-
|
|
55067
|
-
|
|
55068
|
-
|
|
55069
|
-
|
|
55070
|
-
|
|
55059
|
+
if (!newTransformation) {
|
|
55060
|
+
items[itemId] = opB.items[itemId];
|
|
55061
|
+
} else {
|
|
55062
|
+
items[itemId] = {
|
|
55063
|
+
class: "Transformation",
|
|
55064
|
+
method: "scaleByTranslateBy",
|
|
55065
|
+
item: [itemId],
|
|
55066
|
+
scale: newTransformation.scale,
|
|
55067
|
+
translate: newTransformation.translate
|
|
55068
|
+
};
|
|
55069
|
+
}
|
|
55071
55070
|
} else if (opA.items[itemId].method === "scaleBy") {
|
|
55072
55071
|
const newTransformation = resolve2({ x: opA.items[itemId].x, y: opA.items[itemId].y }, undefined, opB.items[itemId]);
|
|
55073
|
-
|
|
55074
|
-
|
|
55075
|
-
|
|
55076
|
-
|
|
55077
|
-
|
|
55078
|
-
|
|
55079
|
-
|
|
55072
|
+
if (!newTransformation) {
|
|
55073
|
+
items[itemId] = opB.items[itemId];
|
|
55074
|
+
} else {
|
|
55075
|
+
items[itemId] = {
|
|
55076
|
+
class: "Transformation",
|
|
55077
|
+
method: "scaleByTranslateBy",
|
|
55078
|
+
item: [itemId],
|
|
55079
|
+
scale: newTransformation.scale,
|
|
55080
|
+
translate: newTransformation.translate
|
|
55081
|
+
};
|
|
55082
|
+
}
|
|
55080
55083
|
} else if (opA.items[itemId].method === "translateBy") {
|
|
55081
55084
|
const newTransformation = resolve2(undefined, { x: opA.items[itemId].x, y: opA.items[itemId].y }, opB.items[itemId]);
|
|
55082
|
-
|
|
55083
|
-
|
|
55084
|
-
|
|
55085
|
-
|
|
55086
|
-
|
|
55087
|
-
|
|
55088
|
-
|
|
55085
|
+
if (!newTransformation) {
|
|
55086
|
+
items[itemId] = opB.items[itemId];
|
|
55087
|
+
} else {
|
|
55088
|
+
items[itemId] = {
|
|
55089
|
+
class: "Transformation",
|
|
55090
|
+
method: "scaleByTranslateBy",
|
|
55091
|
+
item: [itemId],
|
|
55092
|
+
scale: newTransformation.scale,
|
|
55093
|
+
translate: newTransformation.translate
|
|
55094
|
+
};
|
|
55095
|
+
}
|
|
55096
|
+
} else {
|
|
55097
|
+
items[itemId] = opB.items[itemId];
|
|
55089
55098
|
}
|
|
55090
55099
|
} else {
|
|
55091
55100
|
items[itemId] = opB.items[itemId];
|
package/dist/cjs/node.js
CHANGED
|
@@ -55796,10 +55796,9 @@ class BoardSelection {
|
|
|
55796
55796
|
function addItemToTranslation(itemId) {
|
|
55797
55797
|
translation[itemId] = {
|
|
55798
55798
|
class: "Transformation",
|
|
55799
|
-
method: "
|
|
55799
|
+
method: "applyMatrix",
|
|
55800
55800
|
item: [itemId],
|
|
55801
|
-
|
|
55802
|
-
translate: { x, y }
|
|
55801
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
55803
55802
|
};
|
|
55804
55803
|
}
|
|
55805
55804
|
function tryToAddFrameChildrenToTranslation(selectedItem) {
|
|
@@ -55815,10 +55814,9 @@ class BoardSelection {
|
|
|
55815
55814
|
for (const comment2 of followedComments) {
|
|
55816
55815
|
translation[comment2.getId()] = {
|
|
55817
55816
|
class: "Transformation",
|
|
55818
|
-
method: "
|
|
55817
|
+
method: "applyMatrix",
|
|
55819
55818
|
item: [comment2.getId()],
|
|
55820
|
-
|
|
55821
|
-
translate: { x, y }
|
|
55819
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
55822
55820
|
};
|
|
55823
55821
|
}
|
|
55824
55822
|
};
|
|
@@ -57531,34 +57529,45 @@ function mergeItems(opA, opB) {
|
|
|
57531
57529
|
};
|
|
57532
57530
|
} else if (opA.items[itemId].method === "scaleByTranslateBy") {
|
|
57533
57531
|
const newTransformation = resolve2(opA.items[itemId].scale, opA.items[itemId].translate, opB.items[itemId]);
|
|
57534
|
-
|
|
57535
|
-
|
|
57536
|
-
|
|
57537
|
-
|
|
57538
|
-
|
|
57539
|
-
|
|
57540
|
-
|
|
57541
|
-
|
|
57542
|
-
|
|
57543
|
-
|
|
57532
|
+
if (!newTransformation) {
|
|
57533
|
+
items[itemId] = opB.items[itemId];
|
|
57534
|
+
} else {
|
|
57535
|
+
items[itemId] = {
|
|
57536
|
+
class: "Transformation",
|
|
57537
|
+
method: "scaleByTranslateBy",
|
|
57538
|
+
item: [itemId],
|
|
57539
|
+
scale: newTransformation.scale,
|
|
57540
|
+
translate: newTransformation.translate
|
|
57541
|
+
};
|
|
57542
|
+
}
|
|
57544
57543
|
} else if (opA.items[itemId].method === "scaleBy") {
|
|
57545
57544
|
const newTransformation = resolve2({ x: opA.items[itemId].x, y: opA.items[itemId].y }, undefined, opB.items[itemId]);
|
|
57546
|
-
|
|
57547
|
-
|
|
57548
|
-
|
|
57549
|
-
|
|
57550
|
-
|
|
57551
|
-
|
|
57552
|
-
|
|
57545
|
+
if (!newTransformation) {
|
|
57546
|
+
items[itemId] = opB.items[itemId];
|
|
57547
|
+
} else {
|
|
57548
|
+
items[itemId] = {
|
|
57549
|
+
class: "Transformation",
|
|
57550
|
+
method: "scaleByTranslateBy",
|
|
57551
|
+
item: [itemId],
|
|
57552
|
+
scale: newTransformation.scale,
|
|
57553
|
+
translate: newTransformation.translate
|
|
57554
|
+
};
|
|
57555
|
+
}
|
|
57553
57556
|
} else if (opA.items[itemId].method === "translateBy") {
|
|
57554
57557
|
const newTransformation = resolve2(undefined, { x: opA.items[itemId].x, y: opA.items[itemId].y }, opB.items[itemId]);
|
|
57555
|
-
|
|
57556
|
-
|
|
57557
|
-
|
|
57558
|
-
|
|
57559
|
-
|
|
57560
|
-
|
|
57561
|
-
|
|
57558
|
+
if (!newTransformation) {
|
|
57559
|
+
items[itemId] = opB.items[itemId];
|
|
57560
|
+
} else {
|
|
57561
|
+
items[itemId] = {
|
|
57562
|
+
class: "Transformation",
|
|
57563
|
+
method: "scaleByTranslateBy",
|
|
57564
|
+
item: [itemId],
|
|
57565
|
+
scale: newTransformation.scale,
|
|
57566
|
+
translate: newTransformation.translate
|
|
57567
|
+
};
|
|
57568
|
+
}
|
|
57569
|
+
} else {
|
|
57570
|
+
items[itemId] = opB.items[itemId];
|
|
57562
57571
|
}
|
|
57563
57572
|
} else {
|
|
57564
57573
|
items[itemId] = opB.items[itemId];
|
package/dist/esm/browser.js
CHANGED
|
@@ -53166,10 +53166,9 @@ class BoardSelection {
|
|
|
53166
53166
|
function addItemToTranslation(itemId) {
|
|
53167
53167
|
translation[itemId] = {
|
|
53168
53168
|
class: "Transformation",
|
|
53169
|
-
method: "
|
|
53169
|
+
method: "applyMatrix",
|
|
53170
53170
|
item: [itemId],
|
|
53171
|
-
|
|
53172
|
-
translate: { x, y }
|
|
53171
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53173
53172
|
};
|
|
53174
53173
|
}
|
|
53175
53174
|
function tryToAddFrameChildrenToTranslation(selectedItem) {
|
|
@@ -53185,10 +53184,9 @@ class BoardSelection {
|
|
|
53185
53184
|
for (const comment2 of followedComments) {
|
|
53186
53185
|
translation[comment2.getId()] = {
|
|
53187
53186
|
class: "Transformation",
|
|
53188
|
-
method: "
|
|
53187
|
+
method: "applyMatrix",
|
|
53189
53188
|
item: [comment2.getId()],
|
|
53190
|
-
|
|
53191
|
-
translate: { x, y }
|
|
53189
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53192
53190
|
};
|
|
53193
53191
|
}
|
|
53194
53192
|
};
|
|
@@ -54901,34 +54899,45 @@ function mergeItems(opA, opB) {
|
|
|
54901
54899
|
};
|
|
54902
54900
|
} else if (opA.items[itemId].method === "scaleByTranslateBy") {
|
|
54903
54901
|
const newTransformation = resolve2(opA.items[itemId].scale, opA.items[itemId].translate, opB.items[itemId]);
|
|
54904
|
-
|
|
54905
|
-
|
|
54906
|
-
|
|
54907
|
-
|
|
54908
|
-
|
|
54909
|
-
|
|
54910
|
-
|
|
54911
|
-
|
|
54912
|
-
|
|
54913
|
-
|
|
54902
|
+
if (!newTransformation) {
|
|
54903
|
+
items[itemId] = opB.items[itemId];
|
|
54904
|
+
} else {
|
|
54905
|
+
items[itemId] = {
|
|
54906
|
+
class: "Transformation",
|
|
54907
|
+
method: "scaleByTranslateBy",
|
|
54908
|
+
item: [itemId],
|
|
54909
|
+
scale: newTransformation.scale,
|
|
54910
|
+
translate: newTransformation.translate
|
|
54911
|
+
};
|
|
54912
|
+
}
|
|
54914
54913
|
} else if (opA.items[itemId].method === "scaleBy") {
|
|
54915
54914
|
const newTransformation = resolve2({ x: opA.items[itemId].x, y: opA.items[itemId].y }, undefined, opB.items[itemId]);
|
|
54916
|
-
|
|
54917
|
-
|
|
54918
|
-
|
|
54919
|
-
|
|
54920
|
-
|
|
54921
|
-
|
|
54922
|
-
|
|
54915
|
+
if (!newTransformation) {
|
|
54916
|
+
items[itemId] = opB.items[itemId];
|
|
54917
|
+
} else {
|
|
54918
|
+
items[itemId] = {
|
|
54919
|
+
class: "Transformation",
|
|
54920
|
+
method: "scaleByTranslateBy",
|
|
54921
|
+
item: [itemId],
|
|
54922
|
+
scale: newTransformation.scale,
|
|
54923
|
+
translate: newTransformation.translate
|
|
54924
|
+
};
|
|
54925
|
+
}
|
|
54923
54926
|
} else if (opA.items[itemId].method === "translateBy") {
|
|
54924
54927
|
const newTransformation = resolve2(undefined, { x: opA.items[itemId].x, y: opA.items[itemId].y }, opB.items[itemId]);
|
|
54925
|
-
|
|
54926
|
-
|
|
54927
|
-
|
|
54928
|
-
|
|
54929
|
-
|
|
54930
|
-
|
|
54931
|
-
|
|
54928
|
+
if (!newTransformation) {
|
|
54929
|
+
items[itemId] = opB.items[itemId];
|
|
54930
|
+
} else {
|
|
54931
|
+
items[itemId] = {
|
|
54932
|
+
class: "Transformation",
|
|
54933
|
+
method: "scaleByTranslateBy",
|
|
54934
|
+
item: [itemId],
|
|
54935
|
+
scale: newTransformation.scale,
|
|
54936
|
+
translate: newTransformation.translate
|
|
54937
|
+
};
|
|
54938
|
+
}
|
|
54939
|
+
} else {
|
|
54940
|
+
items[itemId] = opB.items[itemId];
|
|
54932
54941
|
}
|
|
54933
54942
|
} else {
|
|
54934
54943
|
items[itemId] = opB.items[itemId];
|
package/dist/esm/index.js
CHANGED
|
@@ -53159,10 +53159,9 @@ class BoardSelection {
|
|
|
53159
53159
|
function addItemToTranslation(itemId) {
|
|
53160
53160
|
translation[itemId] = {
|
|
53161
53161
|
class: "Transformation",
|
|
53162
|
-
method: "
|
|
53162
|
+
method: "applyMatrix",
|
|
53163
53163
|
item: [itemId],
|
|
53164
|
-
|
|
53165
|
-
translate: { x, y }
|
|
53164
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53166
53165
|
};
|
|
53167
53166
|
}
|
|
53168
53167
|
function tryToAddFrameChildrenToTranslation(selectedItem) {
|
|
@@ -53178,10 +53177,9 @@ class BoardSelection {
|
|
|
53178
53177
|
for (const comment2 of followedComments) {
|
|
53179
53178
|
translation[comment2.getId()] = {
|
|
53180
53179
|
class: "Transformation",
|
|
53181
|
-
method: "
|
|
53180
|
+
method: "applyMatrix",
|
|
53182
53181
|
item: [comment2.getId()],
|
|
53183
|
-
|
|
53184
|
-
translate: { x, y }
|
|
53182
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
53185
53183
|
};
|
|
53186
53184
|
}
|
|
53187
53185
|
};
|
|
@@ -54894,34 +54892,45 @@ function mergeItems(opA, opB) {
|
|
|
54894
54892
|
};
|
|
54895
54893
|
} else if (opA.items[itemId].method === "scaleByTranslateBy") {
|
|
54896
54894
|
const newTransformation = resolve2(opA.items[itemId].scale, opA.items[itemId].translate, opB.items[itemId]);
|
|
54897
|
-
|
|
54898
|
-
|
|
54899
|
-
|
|
54900
|
-
|
|
54901
|
-
|
|
54902
|
-
|
|
54903
|
-
|
|
54904
|
-
|
|
54905
|
-
|
|
54906
|
-
|
|
54895
|
+
if (!newTransformation) {
|
|
54896
|
+
items[itemId] = opB.items[itemId];
|
|
54897
|
+
} else {
|
|
54898
|
+
items[itemId] = {
|
|
54899
|
+
class: "Transformation",
|
|
54900
|
+
method: "scaleByTranslateBy",
|
|
54901
|
+
item: [itemId],
|
|
54902
|
+
scale: newTransformation.scale,
|
|
54903
|
+
translate: newTransformation.translate
|
|
54904
|
+
};
|
|
54905
|
+
}
|
|
54907
54906
|
} else if (opA.items[itemId].method === "scaleBy") {
|
|
54908
54907
|
const newTransformation = resolve2({ x: opA.items[itemId].x, y: opA.items[itemId].y }, undefined, opB.items[itemId]);
|
|
54909
|
-
|
|
54910
|
-
|
|
54911
|
-
|
|
54912
|
-
|
|
54913
|
-
|
|
54914
|
-
|
|
54915
|
-
|
|
54908
|
+
if (!newTransformation) {
|
|
54909
|
+
items[itemId] = opB.items[itemId];
|
|
54910
|
+
} else {
|
|
54911
|
+
items[itemId] = {
|
|
54912
|
+
class: "Transformation",
|
|
54913
|
+
method: "scaleByTranslateBy",
|
|
54914
|
+
item: [itemId],
|
|
54915
|
+
scale: newTransformation.scale,
|
|
54916
|
+
translate: newTransformation.translate
|
|
54917
|
+
};
|
|
54918
|
+
}
|
|
54916
54919
|
} else if (opA.items[itemId].method === "translateBy") {
|
|
54917
54920
|
const newTransformation = resolve2(undefined, { x: opA.items[itemId].x, y: opA.items[itemId].y }, opB.items[itemId]);
|
|
54918
|
-
|
|
54919
|
-
|
|
54920
|
-
|
|
54921
|
-
|
|
54922
|
-
|
|
54923
|
-
|
|
54924
|
-
|
|
54921
|
+
if (!newTransformation) {
|
|
54922
|
+
items[itemId] = opB.items[itemId];
|
|
54923
|
+
} else {
|
|
54924
|
+
items[itemId] = {
|
|
54925
|
+
class: "Transformation",
|
|
54926
|
+
method: "scaleByTranslateBy",
|
|
54927
|
+
item: [itemId],
|
|
54928
|
+
scale: newTransformation.scale,
|
|
54929
|
+
translate: newTransformation.translate
|
|
54930
|
+
};
|
|
54931
|
+
}
|
|
54932
|
+
} else {
|
|
54933
|
+
items[itemId] = opB.items[itemId];
|
|
54925
54934
|
}
|
|
54926
54935
|
} else {
|
|
54927
54936
|
items[itemId] = opB.items[itemId];
|
package/dist/esm/node.js
CHANGED
|
@@ -55627,10 +55627,9 @@ class BoardSelection {
|
|
|
55627
55627
|
function addItemToTranslation(itemId) {
|
|
55628
55628
|
translation[itemId] = {
|
|
55629
55629
|
class: "Transformation",
|
|
55630
|
-
method: "
|
|
55630
|
+
method: "applyMatrix",
|
|
55631
55631
|
item: [itemId],
|
|
55632
|
-
|
|
55633
|
-
translate: { x, y }
|
|
55632
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
55634
55633
|
};
|
|
55635
55634
|
}
|
|
55636
55635
|
function tryToAddFrameChildrenToTranslation(selectedItem) {
|
|
@@ -55646,10 +55645,9 @@ class BoardSelection {
|
|
|
55646
55645
|
for (const comment2 of followedComments) {
|
|
55647
55646
|
translation[comment2.getId()] = {
|
|
55648
55647
|
class: "Transformation",
|
|
55649
|
-
method: "
|
|
55648
|
+
method: "applyMatrix",
|
|
55650
55649
|
item: [comment2.getId()],
|
|
55651
|
-
|
|
55652
|
-
translate: { x, y }
|
|
55650
|
+
matrix: { translateX: x, translateY: y, scaleX: 1, scaleY: 1, shearX: 0, shearY: 0 }
|
|
55653
55651
|
};
|
|
55654
55652
|
}
|
|
55655
55653
|
};
|
|
@@ -57362,34 +57360,45 @@ function mergeItems(opA, opB) {
|
|
|
57362
57360
|
};
|
|
57363
57361
|
} else if (opA.items[itemId].method === "scaleByTranslateBy") {
|
|
57364
57362
|
const newTransformation = resolve2(opA.items[itemId].scale, opA.items[itemId].translate, opB.items[itemId]);
|
|
57365
|
-
|
|
57366
|
-
|
|
57367
|
-
|
|
57368
|
-
|
|
57369
|
-
|
|
57370
|
-
|
|
57371
|
-
|
|
57372
|
-
|
|
57373
|
-
|
|
57374
|
-
|
|
57363
|
+
if (!newTransformation) {
|
|
57364
|
+
items[itemId] = opB.items[itemId];
|
|
57365
|
+
} else {
|
|
57366
|
+
items[itemId] = {
|
|
57367
|
+
class: "Transformation",
|
|
57368
|
+
method: "scaleByTranslateBy",
|
|
57369
|
+
item: [itemId],
|
|
57370
|
+
scale: newTransformation.scale,
|
|
57371
|
+
translate: newTransformation.translate
|
|
57372
|
+
};
|
|
57373
|
+
}
|
|
57375
57374
|
} else if (opA.items[itemId].method === "scaleBy") {
|
|
57376
57375
|
const newTransformation = resolve2({ x: opA.items[itemId].x, y: opA.items[itemId].y }, undefined, opB.items[itemId]);
|
|
57377
|
-
|
|
57378
|
-
|
|
57379
|
-
|
|
57380
|
-
|
|
57381
|
-
|
|
57382
|
-
|
|
57383
|
-
|
|
57376
|
+
if (!newTransformation) {
|
|
57377
|
+
items[itemId] = opB.items[itemId];
|
|
57378
|
+
} else {
|
|
57379
|
+
items[itemId] = {
|
|
57380
|
+
class: "Transformation",
|
|
57381
|
+
method: "scaleByTranslateBy",
|
|
57382
|
+
item: [itemId],
|
|
57383
|
+
scale: newTransformation.scale,
|
|
57384
|
+
translate: newTransformation.translate
|
|
57385
|
+
};
|
|
57386
|
+
}
|
|
57384
57387
|
} else if (opA.items[itemId].method === "translateBy") {
|
|
57385
57388
|
const newTransformation = resolve2(undefined, { x: opA.items[itemId].x, y: opA.items[itemId].y }, opB.items[itemId]);
|
|
57386
|
-
|
|
57387
|
-
|
|
57388
|
-
|
|
57389
|
-
|
|
57390
|
-
|
|
57391
|
-
|
|
57392
|
-
|
|
57389
|
+
if (!newTransformation) {
|
|
57390
|
+
items[itemId] = opB.items[itemId];
|
|
57391
|
+
} else {
|
|
57392
|
+
items[itemId] = {
|
|
57393
|
+
class: "Transformation",
|
|
57394
|
+
method: "scaleByTranslateBy",
|
|
57395
|
+
item: [itemId],
|
|
57396
|
+
scale: newTransformation.scale,
|
|
57397
|
+
translate: newTransformation.translate
|
|
57398
|
+
};
|
|
57399
|
+
}
|
|
57400
|
+
} else {
|
|
57401
|
+
items[itemId] = opB.items[itemId];
|
|
57393
57402
|
}
|
|
57394
57403
|
} else {
|
|
57395
57404
|
items[itemId] = opB.items[itemId];
|