microboard-temp 0.6.3 → 0.6.4

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.
@@ -36449,14 +36449,13 @@ function getControlPoint(data, findItem2) {
36449
36449
  }
36450
36450
  }
36451
36451
  function toRelativePoint(point5, item) {
36452
- const matrix = item.transformation?.matrix || new Matrix2;
36453
- const inverse = matrix.getInverse();
36452
+ const inverse = item.transformation ? item.transformation.getInverse().toMatrix() : new Matrix2;
36454
36453
  point5 = point5.copy();
36455
36454
  point5.transform(inverse);
36456
36455
  return point5;
36457
36456
  }
36458
36457
  function fromRelativePoint(relativePoint, item, edge) {
36459
- const matrix = item.transformation?.matrix.copy() || new Matrix2;
36458
+ const matrix = item.transformation?.toMatrix() ?? new Matrix2;
36460
36459
  const point5 = relativePoint.copy();
36461
36460
  point5.transform(matrix);
36462
36461
  if (item instanceof RichText || item instanceof AINode) {
package/dist/cjs/index.js CHANGED
@@ -36449,14 +36449,13 @@ function getControlPoint(data, findItem2) {
36449
36449
  }
36450
36450
  }
36451
36451
  function toRelativePoint(point5, item) {
36452
- const matrix = item.transformation?.matrix || new Matrix2;
36453
- const inverse = matrix.getInverse();
36452
+ const inverse = item.transformation ? item.transformation.getInverse().toMatrix() : new Matrix2;
36454
36453
  point5 = point5.copy();
36455
36454
  point5.transform(inverse);
36456
36455
  return point5;
36457
36456
  }
36458
36457
  function fromRelativePoint(relativePoint, item, edge) {
36459
- const matrix = item.transformation?.matrix.copy() || new Matrix2;
36458
+ const matrix = item.transformation?.toMatrix() ?? new Matrix2;
36460
36459
  const point5 = relativePoint.copy();
36461
36460
  point5.transform(matrix);
36462
36461
  if (item instanceof RichText || item instanceof AINode) {
package/dist/cjs/node.js CHANGED
@@ -38922,14 +38922,13 @@ function getControlPoint(data, findItem2) {
38922
38922
  }
38923
38923
  }
38924
38924
  function toRelativePoint(point5, item) {
38925
- const matrix = item.transformation?.matrix || new Matrix2;
38926
- const inverse = matrix.getInverse();
38925
+ const inverse = item.transformation ? item.transformation.getInverse().toMatrix() : new Matrix2;
38927
38926
  point5 = point5.copy();
38928
38927
  point5.transform(inverse);
38929
38928
  return point5;
38930
38929
  }
38931
38930
  function fromRelativePoint(relativePoint, item, edge) {
38932
- const matrix = item.transformation?.matrix.copy() || new Matrix2;
38931
+ const matrix = item.transformation?.toMatrix() ?? new Matrix2;
38933
38932
  const point5 = relativePoint.copy();
38934
38933
  point5.transform(matrix);
38935
38934
  if (item instanceof RichText || item instanceof AINode) {
@@ -36295,14 +36295,13 @@ function getControlPoint(data, findItem2) {
36295
36295
  }
36296
36296
  }
36297
36297
  function toRelativePoint(point5, item) {
36298
- const matrix = item.transformation?.matrix || new Matrix2;
36299
- const inverse = matrix.getInverse();
36298
+ const inverse = item.transformation ? item.transformation.getInverse().toMatrix() : new Matrix2;
36300
36299
  point5 = point5.copy();
36301
36300
  point5.transform(inverse);
36302
36301
  return point5;
36303
36302
  }
36304
36303
  function fromRelativePoint(relativePoint, item, edge) {
36305
- const matrix = item.transformation?.matrix.copy() || new Matrix2;
36304
+ const matrix = item.transformation?.toMatrix() ?? new Matrix2;
36306
36305
  const point5 = relativePoint.copy();
36307
36306
  point5.transform(matrix);
36308
36307
  if (item instanceof RichText || item instanceof AINode) {
package/dist/esm/index.js CHANGED
@@ -36288,14 +36288,13 @@ function getControlPoint(data, findItem2) {
36288
36288
  }
36289
36289
  }
36290
36290
  function toRelativePoint(point5, item) {
36291
- const matrix = item.transformation?.matrix || new Matrix2;
36292
- const inverse = matrix.getInverse();
36291
+ const inverse = item.transformation ? item.transformation.getInverse().toMatrix() : new Matrix2;
36293
36292
  point5 = point5.copy();
36294
36293
  point5.transform(inverse);
36295
36294
  return point5;
36296
36295
  }
36297
36296
  function fromRelativePoint(relativePoint, item, edge) {
36298
- const matrix = item.transformation?.matrix.copy() || new Matrix2;
36297
+ const matrix = item.transformation?.toMatrix() ?? new Matrix2;
36299
36298
  const point5 = relativePoint.copy();
36300
36299
  point5.transform(matrix);
36301
36300
  if (item instanceof RichText || item instanceof AINode) {
package/dist/esm/node.js CHANGED
@@ -38756,14 +38756,13 @@ function getControlPoint(data, findItem2) {
38756
38756
  }
38757
38757
  }
38758
38758
  function toRelativePoint(point5, item) {
38759
- const matrix = item.transformation?.matrix || new Matrix2;
38760
- const inverse = matrix.getInverse();
38759
+ const inverse = item.transformation ? item.transformation.getInverse().toMatrix() : new Matrix2;
38761
38760
  point5 = point5.copy();
38762
38761
  point5.transform(inverse);
38763
38762
  return point5;
38764
38763
  }
38765
38764
  function fromRelativePoint(relativePoint, item, edge) {
38766
- const matrix = item.transformation?.matrix.copy() || new Matrix2;
38765
+ const matrix = item.transformation?.toMatrix() ?? new Matrix2;
38767
38766
  const point5 = relativePoint.copy();
38768
38767
  point5.transform(matrix);
38769
38768
  if (item instanceof RichText || item instanceof AINode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",