microboard-temp 0.13.86 → 0.13.88

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.
@@ -13326,7 +13326,8 @@ var init_BaseItem = __esm(() => {
13326
13326
  const foundItem = this.board.items.getById(childId);
13327
13327
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13328
13328
  if (!this.index?.getById(childId) && foundItem) {
13329
- const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13329
+ const worldMatrix = foundItem.getWorldMatrix();
13330
+ const localMatrix = worldMatrix.toLocalOf(containerNestingMatrix);
13330
13331
  const currentParentId = foundItem.parent;
13331
13332
  const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13332
13333
  const sourceIndex = currentParent?.index || this.board.items.index;
@@ -60131,10 +60132,6 @@ var init_Frame = __esm(() => {
60131
60132
  this.borderOpacity = data.borderOpacity ?? this.borderOpacity;
60132
60133
  this.borderStyle = data.borderStyle ?? this.borderStyle;
60133
60134
  this.borderWidth = data.borderWidth ?? this.borderWidth;
60134
- if (data.transformation) {
60135
- this.transformation.deserialize(data.transformation);
60136
- this.transformPath();
60137
- }
60138
60135
  if (data.childIds) {
60139
60136
  this.childIds = data.childIds || [];
60140
60137
  }
@@ -60142,6 +60139,10 @@ var init_Frame = __esm(() => {
60142
60139
  this.text.deserialize(data.text);
60143
60140
  this.updateTextContainer();
60144
60141
  }
60142
+ if (data.transformation) {
60143
+ this.transformation.deserialize(data.transformation);
60144
+ this.transformPath();
60145
+ }
60145
60146
  this.canChangeRatio = data.canChangeRatio ?? this.canChangeRatio;
60146
60147
  this.subject.publish(this);
60147
60148
  return this;
package/dist/cjs/index.js CHANGED
@@ -13326,7 +13326,8 @@ var init_BaseItem = __esm(() => {
13326
13326
  const foundItem = this.board.items.getById(childId);
13327
13327
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13328
13328
  if (!this.index?.getById(childId) && foundItem) {
13329
- const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13329
+ const worldMatrix = foundItem.getWorldMatrix();
13330
+ const localMatrix = worldMatrix.toLocalOf(containerNestingMatrix);
13330
13331
  const currentParentId = foundItem.parent;
13331
13332
  const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13332
13333
  const sourceIndex = currentParent?.index || this.board.items.index;
@@ -60131,10 +60132,6 @@ var init_Frame = __esm(() => {
60131
60132
  this.borderOpacity = data.borderOpacity ?? this.borderOpacity;
60132
60133
  this.borderStyle = data.borderStyle ?? this.borderStyle;
60133
60134
  this.borderWidth = data.borderWidth ?? this.borderWidth;
60134
- if (data.transformation) {
60135
- this.transformation.deserialize(data.transformation);
60136
- this.transformPath();
60137
- }
60138
60135
  if (data.childIds) {
60139
60136
  this.childIds = data.childIds || [];
60140
60137
  }
@@ -60142,6 +60139,10 @@ var init_Frame = __esm(() => {
60142
60139
  this.text.deserialize(data.text);
60143
60140
  this.updateTextContainer();
60144
60141
  }
60142
+ if (data.transformation) {
60143
+ this.transformation.deserialize(data.transformation);
60144
+ this.transformPath();
60145
+ }
60145
60146
  this.canChangeRatio = data.canChangeRatio ?? this.canChangeRatio;
60146
60147
  this.subject.publish(this);
60147
60148
  return this;
package/dist/cjs/node.js CHANGED
@@ -13346,7 +13346,8 @@ var init_BaseItem = __esm(() => {
13346
13346
  const foundItem = this.board.items.getById(childId);
13347
13347
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13348
13348
  if (!this.index?.getById(childId) && foundItem) {
13349
- const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13349
+ const worldMatrix = foundItem.getWorldMatrix();
13350
+ const localMatrix = worldMatrix.toLocalOf(containerNestingMatrix);
13350
13351
  const currentParentId = foundItem.parent;
13351
13352
  const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13352
13353
  const sourceIndex = currentParent?.index || this.board.items.index;
@@ -62551,10 +62552,6 @@ var init_Frame = __esm(() => {
62551
62552
  this.borderOpacity = data.borderOpacity ?? this.borderOpacity;
62552
62553
  this.borderStyle = data.borderStyle ?? this.borderStyle;
62553
62554
  this.borderWidth = data.borderWidth ?? this.borderWidth;
62554
- if (data.transformation) {
62555
- this.transformation.deserialize(data.transformation);
62556
- this.transformPath();
62557
- }
62558
62555
  if (data.childIds) {
62559
62556
  this.childIds = data.childIds || [];
62560
62557
  }
@@ -62562,6 +62559,10 @@ var init_Frame = __esm(() => {
62562
62559
  this.text.deserialize(data.text);
62563
62560
  this.updateTextContainer();
62564
62561
  }
62562
+ if (data.transformation) {
62563
+ this.transformation.deserialize(data.transformation);
62564
+ this.transformPath();
62565
+ }
62565
62566
  this.canChangeRatio = data.canChangeRatio ?? this.canChangeRatio;
62566
62567
  this.subject.publish(this);
62567
62568
  return this;
@@ -13298,7 +13298,8 @@ var init_BaseItem = __esm(() => {
13298
13298
  const foundItem = this.board.items.getById(childId);
13299
13299
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13300
13300
  if (!this.index?.getById(childId) && foundItem) {
13301
- const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13301
+ const worldMatrix = foundItem.getWorldMatrix();
13302
+ const localMatrix = worldMatrix.toLocalOf(containerNestingMatrix);
13302
13303
  const currentParentId = foundItem.parent;
13303
13304
  const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13304
13305
  const sourceIndex = currentParent?.index || this.board.items.index;
@@ -60069,10 +60070,6 @@ var init_Frame = __esm(() => {
60069
60070
  this.borderOpacity = data.borderOpacity ?? this.borderOpacity;
60070
60071
  this.borderStyle = data.borderStyle ?? this.borderStyle;
60071
60072
  this.borderWidth = data.borderWidth ?? this.borderWidth;
60072
- if (data.transformation) {
60073
- this.transformation.deserialize(data.transformation);
60074
- this.transformPath();
60075
- }
60076
60073
  if (data.childIds) {
60077
60074
  this.childIds = data.childIds || [];
60078
60075
  }
@@ -60080,6 +60077,10 @@ var init_Frame = __esm(() => {
60080
60077
  this.text.deserialize(data.text);
60081
60078
  this.updateTextContainer();
60082
60079
  }
60080
+ if (data.transformation) {
60081
+ this.transformation.deserialize(data.transformation);
60082
+ this.transformPath();
60083
+ }
60083
60084
  this.canChangeRatio = data.canChangeRatio ?? this.canChangeRatio;
60084
60085
  this.subject.publish(this);
60085
60086
  return this;
package/dist/esm/index.js CHANGED
@@ -13291,7 +13291,8 @@ var init_BaseItem = __esm(() => {
13291
13291
  const foundItem = this.board.items.getById(childId);
13292
13292
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13293
13293
  if (!this.index?.getById(childId) && foundItem) {
13294
- const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13294
+ const worldMatrix = foundItem.getWorldMatrix();
13295
+ const localMatrix = worldMatrix.toLocalOf(containerNestingMatrix);
13295
13296
  const currentParentId = foundItem.parent;
13296
13297
  const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13297
13298
  const sourceIndex = currentParent?.index || this.board.items.index;
@@ -60062,10 +60063,6 @@ var init_Frame = __esm(() => {
60062
60063
  this.borderOpacity = data.borderOpacity ?? this.borderOpacity;
60063
60064
  this.borderStyle = data.borderStyle ?? this.borderStyle;
60064
60065
  this.borderWidth = data.borderWidth ?? this.borderWidth;
60065
- if (data.transformation) {
60066
- this.transformation.deserialize(data.transformation);
60067
- this.transformPath();
60068
- }
60069
60066
  if (data.childIds) {
60070
60067
  this.childIds = data.childIds || [];
60071
60068
  }
@@ -60073,6 +60070,10 @@ var init_Frame = __esm(() => {
60073
60070
  this.text.deserialize(data.text);
60074
60071
  this.updateTextContainer();
60075
60072
  }
60073
+ if (data.transformation) {
60074
+ this.transformation.deserialize(data.transformation);
60075
+ this.transformPath();
60076
+ }
60076
60077
  this.canChangeRatio = data.canChangeRatio ?? this.canChangeRatio;
60077
60078
  this.subject.publish(this);
60078
60079
  return this;
package/dist/esm/node.js CHANGED
@@ -13313,7 +13313,8 @@ var init_BaseItem = __esm(() => {
13313
13313
  const foundItem = this.board.items.getById(childId);
13314
13314
  if (this.parent !== childId && this.getId() !== childId && !this.hasAncestor(childId)) {
13315
13315
  if (!this.index?.getById(childId) && foundItem) {
13316
- const localMatrix = foundItem.transformation.toMatrix().toLocalOf(containerNestingMatrix);
13316
+ const worldMatrix = foundItem.getWorldMatrix();
13317
+ const localMatrix = worldMatrix.toLocalOf(containerNestingMatrix);
13317
13318
  const currentParentId = foundItem.parent;
13318
13319
  const currentParent = currentParentId !== "Board" ? this.board.items.getById(currentParentId) : undefined;
13319
13320
  const sourceIndex = currentParent?.index || this.board.items.index;
@@ -62471,10 +62472,6 @@ var init_Frame = __esm(() => {
62471
62472
  this.borderOpacity = data.borderOpacity ?? this.borderOpacity;
62472
62473
  this.borderStyle = data.borderStyle ?? this.borderStyle;
62473
62474
  this.borderWidth = data.borderWidth ?? this.borderWidth;
62474
- if (data.transformation) {
62475
- this.transformation.deserialize(data.transformation);
62476
- this.transformPath();
62477
- }
62478
62475
  if (data.childIds) {
62479
62476
  this.childIds = data.childIds || [];
62480
62477
  }
@@ -62482,6 +62479,10 @@ var init_Frame = __esm(() => {
62482
62479
  this.text.deserialize(data.text);
62483
62480
  this.updateTextContainer();
62484
62481
  }
62482
+ if (data.transformation) {
62483
+ this.transformation.deserialize(data.transformation);
62484
+ this.transformPath();
62485
+ }
62485
62486
  this.canChangeRatio = data.canChangeRatio ?? this.canChangeRatio;
62486
62487
  this.subject.publish(this);
62487
62488
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.86",
3
+ "version": "0.13.88",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",