microboard-temp 0.13.87 → 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;
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;
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;
@@ -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;
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;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.87",
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",