microboard-temp 0.5.146 → 0.5.148

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.
@@ -51888,7 +51888,8 @@ function transformShape({
51888
51888
  isHeight,
51889
51889
  isWidth,
51890
51890
  startMbr,
51891
- followingComments
51891
+ followingComments,
51892
+ beginTimeStamp
51892
51893
  }) {
51893
51894
  let translation = null;
51894
51895
  if (isShiftPressed && single.itemType !== "Sticker") {
@@ -51903,7 +51904,7 @@ function transformShape({
51903
51904
  });
51904
51905
  return { resizedMbr, translation };
51905
51906
  } else {
51906
- const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, Date.now()).mbr;
51907
+ const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, beginTimeStamp ?? Date.now()).mbr;
51907
51908
  if (followingComments) {
51908
51909
  const { matrix, mbr: resizedMbr2 } = single instanceof Sticker ? getProportionalResize(resizeType, board.pointer.point, mbr, oppositePoint) : getResize(resizeType, board.pointer.point, mbr, oppositePoint);
51909
51910
  translation = handleMultipleItemsResize({
@@ -52423,7 +52424,8 @@ class Transformer extends Tool {
52423
52424
  resizeType: this.resizeType,
52424
52425
  oppositePoint: this.oppositePoint,
52425
52426
  followingComments,
52426
- startMbr: this.startMbr
52427
+ startMbr: this.startMbr,
52428
+ beginTimeStamp: this.beginTimeStamp
52427
52429
  });
52428
52430
  this.mbr = resizedMbr;
52429
52431
  if (translation) {
@@ -52645,6 +52647,7 @@ class BoardSelection {
52645
52647
  memorySnapshot = null;
52646
52648
  constructor(board) {
52647
52649
  this.board = board;
52650
+ console.log("[DEBUG] BoardSelection initialized - version check OK");
52648
52651
  safeRequestAnimationFrame(this.updateScheduledObservers);
52649
52652
  this.tool = new SelectionTransformer(board, this);
52650
52653
  this.quickAddButtons = getQuickAddButtons(this, board);
package/dist/cjs/index.js CHANGED
@@ -51888,7 +51888,8 @@ function transformShape({
51888
51888
  isHeight,
51889
51889
  isWidth,
51890
51890
  startMbr,
51891
- followingComments
51891
+ followingComments,
51892
+ beginTimeStamp
51892
51893
  }) {
51893
51894
  let translation = null;
51894
51895
  if (isShiftPressed && single.itemType !== "Sticker") {
@@ -51903,7 +51904,7 @@ function transformShape({
51903
51904
  });
51904
51905
  return { resizedMbr, translation };
51905
51906
  } else {
51906
- const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, Date.now()).mbr;
51907
+ const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, beginTimeStamp ?? Date.now()).mbr;
51907
51908
  if (followingComments) {
51908
51909
  const { matrix, mbr: resizedMbr2 } = single instanceof Sticker ? getProportionalResize(resizeType, board.pointer.point, mbr, oppositePoint) : getResize(resizeType, board.pointer.point, mbr, oppositePoint);
51909
51910
  translation = handleMultipleItemsResize({
@@ -52423,7 +52424,8 @@ class Transformer extends Tool {
52423
52424
  resizeType: this.resizeType,
52424
52425
  oppositePoint: this.oppositePoint,
52425
52426
  followingComments,
52426
- startMbr: this.startMbr
52427
+ startMbr: this.startMbr,
52428
+ beginTimeStamp: this.beginTimeStamp
52427
52429
  });
52428
52430
  this.mbr = resizedMbr;
52429
52431
  if (translation) {
@@ -52645,6 +52647,7 @@ class BoardSelection {
52645
52647
  memorySnapshot = null;
52646
52648
  constructor(board) {
52647
52649
  this.board = board;
52650
+ console.log("[DEBUG] BoardSelection initialized - version check OK");
52648
52651
  safeRequestAnimationFrame(this.updateScheduledObservers);
52649
52652
  this.tool = new SelectionTransformer(board, this);
52650
52653
  this.quickAddButtons = getQuickAddButtons(this, board);
package/dist/cjs/node.js CHANGED
@@ -54361,7 +54361,8 @@ function transformShape({
54361
54361
  isHeight,
54362
54362
  isWidth,
54363
54363
  startMbr,
54364
- followingComments
54364
+ followingComments,
54365
+ beginTimeStamp
54365
54366
  }) {
54366
54367
  let translation = null;
54367
54368
  if (isShiftPressed && single.itemType !== "Sticker") {
@@ -54376,7 +54377,7 @@ function transformShape({
54376
54377
  });
54377
54378
  return { resizedMbr, translation };
54378
54379
  } else {
54379
- const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, Date.now()).mbr;
54380
+ const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, beginTimeStamp ?? Date.now()).mbr;
54380
54381
  if (followingComments) {
54381
54382
  const { matrix, mbr: resizedMbr2 } = single instanceof Sticker ? getProportionalResize(resizeType, board.pointer.point, mbr, oppositePoint) : getResize(resizeType, board.pointer.point, mbr, oppositePoint);
54382
54383
  translation = handleMultipleItemsResize({
@@ -54896,7 +54897,8 @@ class Transformer extends Tool {
54896
54897
  resizeType: this.resizeType,
54897
54898
  oppositePoint: this.oppositePoint,
54898
54899
  followingComments,
54899
- startMbr: this.startMbr
54900
+ startMbr: this.startMbr,
54901
+ beginTimeStamp: this.beginTimeStamp
54900
54902
  });
54901
54903
  this.mbr = resizedMbr;
54902
54904
  if (translation) {
@@ -55118,6 +55120,7 @@ class BoardSelection {
55118
55120
  memorySnapshot = null;
55119
55121
  constructor(board) {
55120
55122
  this.board = board;
55123
+ console.log("[DEBUG] BoardSelection initialized - version check OK");
55121
55124
  safeRequestAnimationFrame(this.updateScheduledObservers);
55122
55125
  this.tool = new SelectionTransformer(board, this);
55123
55126
  this.quickAddButtons = getQuickAddButtons(this, board);
@@ -51731,7 +51731,8 @@ function transformShape({
51731
51731
  isHeight,
51732
51732
  isWidth,
51733
51733
  startMbr,
51734
- followingComments
51734
+ followingComments,
51735
+ beginTimeStamp
51735
51736
  }) {
51736
51737
  let translation = null;
51737
51738
  if (isShiftPressed && single.itemType !== "Sticker") {
@@ -51746,7 +51747,7 @@ function transformShape({
51746
51747
  });
51747
51748
  return { resizedMbr, translation };
51748
51749
  } else {
51749
- const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, Date.now()).mbr;
51750
+ const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, beginTimeStamp ?? Date.now()).mbr;
51750
51751
  if (followingComments) {
51751
51752
  const { matrix, mbr: resizedMbr2 } = single instanceof Sticker ? getProportionalResize(resizeType, board.pointer.point, mbr, oppositePoint) : getResize(resizeType, board.pointer.point, mbr, oppositePoint);
51752
51753
  translation = handleMultipleItemsResize({
@@ -52266,7 +52267,8 @@ class Transformer extends Tool {
52266
52267
  resizeType: this.resizeType,
52267
52268
  oppositePoint: this.oppositePoint,
52268
52269
  followingComments,
52269
- startMbr: this.startMbr
52270
+ startMbr: this.startMbr,
52271
+ beginTimeStamp: this.beginTimeStamp
52270
52272
  });
52271
52273
  this.mbr = resizedMbr;
52272
52274
  if (translation) {
@@ -52488,6 +52490,7 @@ class BoardSelection {
52488
52490
  memorySnapshot = null;
52489
52491
  constructor(board) {
52490
52492
  this.board = board;
52493
+ console.log("[DEBUG] BoardSelection initialized - version check OK");
52491
52494
  safeRequestAnimationFrame(this.updateScheduledObservers);
52492
52495
  this.tool = new SelectionTransformer(board, this);
52493
52496
  this.quickAddButtons = getQuickAddButtons(this, board);
package/dist/esm/index.js CHANGED
@@ -51724,7 +51724,8 @@ function transformShape({
51724
51724
  isHeight,
51725
51725
  isWidth,
51726
51726
  startMbr,
51727
- followingComments
51727
+ followingComments,
51728
+ beginTimeStamp
51728
51729
  }) {
51729
51730
  let translation = null;
51730
51731
  if (isShiftPressed && single.itemType !== "Sticker") {
@@ -51739,7 +51740,7 @@ function transformShape({
51739
51740
  });
51740
51741
  return { resizedMbr, translation };
51741
51742
  } else {
51742
- const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, Date.now()).mbr;
51743
+ const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, beginTimeStamp ?? Date.now()).mbr;
51743
51744
  if (followingComments) {
51744
51745
  const { matrix, mbr: resizedMbr2 } = single instanceof Sticker ? getProportionalResize(resizeType, board.pointer.point, mbr, oppositePoint) : getResize(resizeType, board.pointer.point, mbr, oppositePoint);
51745
51746
  translation = handleMultipleItemsResize({
@@ -52259,7 +52260,8 @@ class Transformer extends Tool {
52259
52260
  resizeType: this.resizeType,
52260
52261
  oppositePoint: this.oppositePoint,
52261
52262
  followingComments,
52262
- startMbr: this.startMbr
52263
+ startMbr: this.startMbr,
52264
+ beginTimeStamp: this.beginTimeStamp
52263
52265
  });
52264
52266
  this.mbr = resizedMbr;
52265
52267
  if (translation) {
@@ -52481,6 +52483,7 @@ class BoardSelection {
52481
52483
  memorySnapshot = null;
52482
52484
  constructor(board) {
52483
52485
  this.board = board;
52486
+ console.log("[DEBUG] BoardSelection initialized - version check OK");
52484
52487
  safeRequestAnimationFrame(this.updateScheduledObservers);
52485
52488
  this.tool = new SelectionTransformer(board, this);
52486
52489
  this.quickAddButtons = getQuickAddButtons(this, board);
package/dist/esm/node.js CHANGED
@@ -54192,7 +54192,8 @@ function transformShape({
54192
54192
  isHeight,
54193
54193
  isWidth,
54194
54194
  startMbr,
54195
- followingComments
54195
+ followingComments,
54196
+ beginTimeStamp
54196
54197
  }) {
54197
54198
  let translation = null;
54198
54199
  if (isShiftPressed && single.itemType !== "Sticker") {
@@ -54207,7 +54208,7 @@ function transformShape({
54207
54208
  });
54208
54209
  return { resizedMbr, translation };
54209
54210
  } else {
54210
- const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, Date.now()).mbr;
54211
+ const resizedMbr = single.doResize(resizeType, board.pointer.point, mbr, oppositePoint, startMbr || new Mbr, beginTimeStamp ?? Date.now()).mbr;
54211
54212
  if (followingComments) {
54212
54213
  const { matrix, mbr: resizedMbr2 } = single instanceof Sticker ? getProportionalResize(resizeType, board.pointer.point, mbr, oppositePoint) : getResize(resizeType, board.pointer.point, mbr, oppositePoint);
54213
54214
  translation = handleMultipleItemsResize({
@@ -54727,7 +54728,8 @@ class Transformer extends Tool {
54727
54728
  resizeType: this.resizeType,
54728
54729
  oppositePoint: this.oppositePoint,
54729
54730
  followingComments,
54730
- startMbr: this.startMbr
54731
+ startMbr: this.startMbr,
54732
+ beginTimeStamp: this.beginTimeStamp
54731
54733
  });
54732
54734
  this.mbr = resizedMbr;
54733
54735
  if (translation) {
@@ -54949,6 +54951,7 @@ class BoardSelection {
54949
54951
  memorySnapshot = null;
54950
54952
  constructor(board) {
54951
54953
  this.board = board;
54954
+ console.log("[DEBUG] BoardSelection initialized - version check OK");
54952
54955
  safeRequestAnimationFrame(this.updateScheduledObservers);
54953
54956
  this.tool = new SelectionTransformer(board, this);
54954
54957
  this.quickAddButtons = getQuickAddButtons(this, board);
@@ -7,7 +7,7 @@ import { Board } from "../../../Board";
7
7
  import { ResizeType } from "../../Transformer/TransformerHelpers/getResizeType";
8
8
  import { Point } from "../../../Items/Point/Point";
9
9
  import { Comment } from "../../../Items/Comment/Comment";
10
- export declare function transformShape({ mbr, board, single, oppositePoint, resizeType, isShiftPressed, isHeight, isWidth, startMbr, followingComments, }: {
10
+ export declare function transformShape({ mbr, board, single, oppositePoint, resizeType, isShiftPressed, isHeight, isWidth, startMbr, followingComments, beginTimeStamp, }: {
11
11
  single: Sticker | Shape | Frame;
12
12
  board: Board;
13
13
  resizeType: ResizeType;
@@ -18,6 +18,7 @@ export declare function transformShape({ mbr, board, single, oppositePoint, resi
18
18
  isHeight: boolean;
19
19
  followingComments?: Comment[];
20
20
  startMbr?: Mbr;
21
+ beginTimeStamp?: number;
21
22
  }): {
22
23
  resizedMbr: Mbr;
23
24
  translation: ApplyMatrixItem[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.146",
3
+ "version": "0.5.148",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",