microboard-temp 0.5.147 → 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.
- package/dist/cjs/browser.js +5 -3
- package/dist/cjs/index.js +5 -3
- package/dist/cjs/node.js +5 -3
- package/dist/esm/browser.js +5 -3
- package/dist/esm/index.js +5 -3
- package/dist/esm/node.js +5 -3
- package/dist/types/Selection/Transformer/TransformerHelpers/transformShape.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/browser.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) {
|
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) {
|
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) {
|
package/dist/esm/browser.js
CHANGED
|
@@ -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) {
|
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) {
|
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) {
|
|
@@ -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;
|