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.
@@ -53323,10 +53323,9 @@ class BoardSelection {
53323
53323
  function addItemToTranslation(itemId) {
53324
53324
  translation[itemId] = {
53325
53325
  class: "Transformation",
53326
- method: "scaleByTranslateBy",
53326
+ method: "applyMatrix",
53327
53327
  item: [itemId],
53328
- scale: { x: 1, y: 1 },
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: "scaleByTranslateBy",
53344
+ method: "applyMatrix",
53346
53345
  item: [comment2.getId()],
53347
- scale: { x: 1, y: 1 },
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
- items[itemId] = {
55062
- class: "Transformation",
55063
- method: "scaleByTranslateBy",
55064
- item: [itemId],
55065
- scale: newTransformation?.scale ?? { x: 0, y: 0 },
55066
- translate: newTransformation?.translate ?? {
55067
- x: 0,
55068
- y: 0
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
- items[itemId] = {
55074
- class: "Transformation",
55075
- method: "scaleByTranslateBy",
55076
- item: [itemId],
55077
- scale: newTransformation.scale,
55078
- translate: newTransformation.translate
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
- items[itemId] = {
55083
- class: "Transformation",
55084
- method: "scaleByTranslateBy",
55085
- item: [itemId],
55086
- scale: newTransformation.scale,
55087
- translate: newTransformation.translate
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: "scaleByTranslateBy",
53326
+ method: "applyMatrix",
53327
53327
  item: [itemId],
53328
- scale: { x: 1, y: 1 },
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: "scaleByTranslateBy",
53344
+ method: "applyMatrix",
53346
53345
  item: [comment2.getId()],
53347
- scale: { x: 1, y: 1 },
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
- items[itemId] = {
55062
- class: "Transformation",
55063
- method: "scaleByTranslateBy",
55064
- item: [itemId],
55065
- scale: newTransformation?.scale ?? { x: 0, y: 0 },
55066
- translate: newTransformation?.translate ?? {
55067
- x: 0,
55068
- y: 0
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
- items[itemId] = {
55074
- class: "Transformation",
55075
- method: "scaleByTranslateBy",
55076
- item: [itemId],
55077
- scale: newTransformation.scale,
55078
- translate: newTransformation.translate
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
- items[itemId] = {
55083
- class: "Transformation",
55084
- method: "scaleByTranslateBy",
55085
- item: [itemId],
55086
- scale: newTransformation.scale,
55087
- translate: newTransformation.translate
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: "scaleByTranslateBy",
55799
+ method: "applyMatrix",
55800
55800
  item: [itemId],
55801
- scale: { x: 1, y: 1 },
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: "scaleByTranslateBy",
55817
+ method: "applyMatrix",
55819
55818
  item: [comment2.getId()],
55820
- scale: { x: 1, y: 1 },
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
- items[itemId] = {
57535
- class: "Transformation",
57536
- method: "scaleByTranslateBy",
57537
- item: [itemId],
57538
- scale: newTransformation?.scale ?? { x: 0, y: 0 },
57539
- translate: newTransformation?.translate ?? {
57540
- x: 0,
57541
- y: 0
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
- items[itemId] = {
57547
- class: "Transformation",
57548
- method: "scaleByTranslateBy",
57549
- item: [itemId],
57550
- scale: newTransformation.scale,
57551
- translate: newTransformation.translate
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
- items[itemId] = {
57556
- class: "Transformation",
57557
- method: "scaleByTranslateBy",
57558
- item: [itemId],
57559
- scale: newTransformation.scale,
57560
- translate: newTransformation.translate
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];
@@ -53166,10 +53166,9 @@ class BoardSelection {
53166
53166
  function addItemToTranslation(itemId) {
53167
53167
  translation[itemId] = {
53168
53168
  class: "Transformation",
53169
- method: "scaleByTranslateBy",
53169
+ method: "applyMatrix",
53170
53170
  item: [itemId],
53171
- scale: { x: 1, y: 1 },
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: "scaleByTranslateBy",
53187
+ method: "applyMatrix",
53189
53188
  item: [comment2.getId()],
53190
- scale: { x: 1, y: 1 },
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
- items[itemId] = {
54905
- class: "Transformation",
54906
- method: "scaleByTranslateBy",
54907
- item: [itemId],
54908
- scale: newTransformation?.scale ?? { x: 0, y: 0 },
54909
- translate: newTransformation?.translate ?? {
54910
- x: 0,
54911
- y: 0
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
- items[itemId] = {
54917
- class: "Transformation",
54918
- method: "scaleByTranslateBy",
54919
- item: [itemId],
54920
- scale: newTransformation.scale,
54921
- translate: newTransformation.translate
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
- items[itemId] = {
54926
- class: "Transformation",
54927
- method: "scaleByTranslateBy",
54928
- item: [itemId],
54929
- scale: newTransformation.scale,
54930
- translate: newTransformation.translate
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: "scaleByTranslateBy",
53162
+ method: "applyMatrix",
53163
53163
  item: [itemId],
53164
- scale: { x: 1, y: 1 },
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: "scaleByTranslateBy",
53180
+ method: "applyMatrix",
53182
53181
  item: [comment2.getId()],
53183
- scale: { x: 1, y: 1 },
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
- items[itemId] = {
54898
- class: "Transformation",
54899
- method: "scaleByTranslateBy",
54900
- item: [itemId],
54901
- scale: newTransformation?.scale ?? { x: 0, y: 0 },
54902
- translate: newTransformation?.translate ?? {
54903
- x: 0,
54904
- y: 0
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
- items[itemId] = {
54910
- class: "Transformation",
54911
- method: "scaleByTranslateBy",
54912
- item: [itemId],
54913
- scale: newTransformation.scale,
54914
- translate: newTransformation.translate
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
- items[itemId] = {
54919
- class: "Transformation",
54920
- method: "scaleByTranslateBy",
54921
- item: [itemId],
54922
- scale: newTransformation.scale,
54923
- translate: newTransformation.translate
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: "scaleByTranslateBy",
55630
+ method: "applyMatrix",
55631
55631
  item: [itemId],
55632
- scale: { x: 1, y: 1 },
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: "scaleByTranslateBy",
55648
+ method: "applyMatrix",
55650
55649
  item: [comment2.getId()],
55651
- scale: { x: 1, y: 1 },
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
- items[itemId] = {
57366
- class: "Transformation",
57367
- method: "scaleByTranslateBy",
57368
- item: [itemId],
57369
- scale: newTransformation?.scale ?? { x: 0, y: 0 },
57370
- translate: newTransformation?.translate ?? {
57371
- x: 0,
57372
- y: 0
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
- items[itemId] = {
57378
- class: "Transformation",
57379
- method: "scaleByTranslateBy",
57380
- item: [itemId],
57381
- scale: newTransformation.scale,
57382
- translate: newTransformation.translate
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
- items[itemId] = {
57387
- class: "Transformation",
57388
- method: "scaleByTranslateBy",
57389
- item: [itemId],
57390
- scale: newTransformation.scale,
57391
- translate: newTransformation.translate
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];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.138",
3
+ "version": "0.5.140",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",