microboard-temp 0.14.49 → 0.14.51
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 +39 -1
- package/dist/cjs/index.js +39 -1
- package/dist/cjs/node.js +39 -1
- package/dist/esm/browser.js +39 -1
- package/dist/esm/index.js +39 -1
- package/dist/esm/node.js +39 -1
- package/dist/types/Items/Sticker/Sticker.d.ts +2 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -44486,6 +44486,7 @@ class RichText extends BaseItem {
|
|
|
44486
44486
|
});
|
|
44487
44487
|
return {
|
|
44488
44488
|
resizedMbr: res?.resizedMbr ?? null,
|
|
44489
|
+
translation: res?.translation ?? null,
|
|
44489
44490
|
onPointerUpCb: res?.onPointerUpCb
|
|
44490
44491
|
};
|
|
44491
44492
|
}
|
|
@@ -65530,6 +65531,33 @@ class Sticker extends BaseItem {
|
|
|
65530
65531
|
getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
|
|
65531
65532
|
return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
|
|
65532
65533
|
}
|
|
65534
|
+
handleTransform(params) {
|
|
65535
|
+
const {
|
|
65536
|
+
board,
|
|
65537
|
+
mbr,
|
|
65538
|
+
resizeType,
|
|
65539
|
+
oppositePoint,
|
|
65540
|
+
isHeight,
|
|
65541
|
+
isWidth,
|
|
65542
|
+
isShiftPressed,
|
|
65543
|
+
beginTimeStamp,
|
|
65544
|
+
followingComments,
|
|
65545
|
+
startMbr
|
|
65546
|
+
} = params;
|
|
65547
|
+
return transformShape({
|
|
65548
|
+
board,
|
|
65549
|
+
mbr,
|
|
65550
|
+
resizeType,
|
|
65551
|
+
oppositePoint,
|
|
65552
|
+
isHeight,
|
|
65553
|
+
isWidth,
|
|
65554
|
+
isShiftPressed,
|
|
65555
|
+
beginTimeStamp,
|
|
65556
|
+
followingComments,
|
|
65557
|
+
startMbr,
|
|
65558
|
+
single: this
|
|
65559
|
+
});
|
|
65560
|
+
}
|
|
65533
65561
|
getRichText() {
|
|
65534
65562
|
return this.text;
|
|
65535
65563
|
}
|
|
@@ -68989,7 +69017,6 @@ class Drawing extends BaseItem {
|
|
|
68989
69017
|
this.linkTo.apply(op);
|
|
68990
69018
|
} else {
|
|
68991
69019
|
super.apply(op);
|
|
68992
|
-
return;
|
|
68993
69020
|
}
|
|
68994
69021
|
const hint = this.calculateUpdateHint(op);
|
|
68995
69022
|
this.updateVisuals(op, hint);
|
|
@@ -78069,6 +78096,9 @@ class Select extends BoardTool {
|
|
|
78069
78096
|
const selectionItems = selection.list();
|
|
78070
78097
|
this.isDownOnSelection = this.isPointerDownOnSelection(hover);
|
|
78071
78098
|
if (this.isDownOnSelection) {
|
|
78099
|
+
if (this.board.selection.tool.leftButtonDown()) {
|
|
78100
|
+
return true;
|
|
78101
|
+
}
|
|
78072
78102
|
return this.initializeSelectionDrag(selectionItems);
|
|
78073
78103
|
}
|
|
78074
78104
|
this.isDownOnBoard = hover.length === 0;
|
|
@@ -78127,6 +78157,9 @@ class Select extends BoardTool {
|
|
|
78127
78157
|
if (this.board.getInterfaceType() !== "edit") {
|
|
78128
78158
|
return false;
|
|
78129
78159
|
}
|
|
78160
|
+
if (this.board.selection.tool.pointerMoveBy(x, y)) {
|
|
78161
|
+
return true;
|
|
78162
|
+
}
|
|
78130
78163
|
this.updateMovementFlag();
|
|
78131
78164
|
if (this.isCameraPan) {
|
|
78132
78165
|
return this.handleCameraPanMove(x, y);
|
|
@@ -78232,6 +78265,11 @@ class Select extends BoardTool {
|
|
|
78232
78265
|
if (!this.isLeftDown) {
|
|
78233
78266
|
return false;
|
|
78234
78267
|
}
|
|
78268
|
+
if (this.board.selection.tool.leftButtonUp()) {
|
|
78269
|
+
this.clear();
|
|
78270
|
+
this.board.tools.publish();
|
|
78271
|
+
return true;
|
|
78272
|
+
}
|
|
78235
78273
|
this.initialCursorPos = null;
|
|
78236
78274
|
if (this.hasSelectionRectangleArea()) {
|
|
78237
78275
|
return this.finishSelectionRectangleSelection();
|
package/dist/cjs/index.js
CHANGED
|
@@ -44486,6 +44486,7 @@ class RichText extends BaseItem {
|
|
|
44486
44486
|
});
|
|
44487
44487
|
return {
|
|
44488
44488
|
resizedMbr: res?.resizedMbr ?? null,
|
|
44489
|
+
translation: res?.translation ?? null,
|
|
44489
44490
|
onPointerUpCb: res?.onPointerUpCb
|
|
44490
44491
|
};
|
|
44491
44492
|
}
|
|
@@ -65530,6 +65531,33 @@ class Sticker extends BaseItem {
|
|
|
65530
65531
|
getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
|
|
65531
65532
|
return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
|
|
65532
65533
|
}
|
|
65534
|
+
handleTransform(params) {
|
|
65535
|
+
const {
|
|
65536
|
+
board,
|
|
65537
|
+
mbr,
|
|
65538
|
+
resizeType,
|
|
65539
|
+
oppositePoint,
|
|
65540
|
+
isHeight,
|
|
65541
|
+
isWidth,
|
|
65542
|
+
isShiftPressed,
|
|
65543
|
+
beginTimeStamp,
|
|
65544
|
+
followingComments,
|
|
65545
|
+
startMbr
|
|
65546
|
+
} = params;
|
|
65547
|
+
return transformShape({
|
|
65548
|
+
board,
|
|
65549
|
+
mbr,
|
|
65550
|
+
resizeType,
|
|
65551
|
+
oppositePoint,
|
|
65552
|
+
isHeight,
|
|
65553
|
+
isWidth,
|
|
65554
|
+
isShiftPressed,
|
|
65555
|
+
beginTimeStamp,
|
|
65556
|
+
followingComments,
|
|
65557
|
+
startMbr,
|
|
65558
|
+
single: this
|
|
65559
|
+
});
|
|
65560
|
+
}
|
|
65533
65561
|
getRichText() {
|
|
65534
65562
|
return this.text;
|
|
65535
65563
|
}
|
|
@@ -68989,7 +69017,6 @@ class Drawing extends BaseItem {
|
|
|
68989
69017
|
this.linkTo.apply(op);
|
|
68990
69018
|
} else {
|
|
68991
69019
|
super.apply(op);
|
|
68992
|
-
return;
|
|
68993
69020
|
}
|
|
68994
69021
|
const hint = this.calculateUpdateHint(op);
|
|
68995
69022
|
this.updateVisuals(op, hint);
|
|
@@ -78069,6 +78096,9 @@ class Select extends BoardTool {
|
|
|
78069
78096
|
const selectionItems = selection.list();
|
|
78070
78097
|
this.isDownOnSelection = this.isPointerDownOnSelection(hover);
|
|
78071
78098
|
if (this.isDownOnSelection) {
|
|
78099
|
+
if (this.board.selection.tool.leftButtonDown()) {
|
|
78100
|
+
return true;
|
|
78101
|
+
}
|
|
78072
78102
|
return this.initializeSelectionDrag(selectionItems);
|
|
78073
78103
|
}
|
|
78074
78104
|
this.isDownOnBoard = hover.length === 0;
|
|
@@ -78127,6 +78157,9 @@ class Select extends BoardTool {
|
|
|
78127
78157
|
if (this.board.getInterfaceType() !== "edit") {
|
|
78128
78158
|
return false;
|
|
78129
78159
|
}
|
|
78160
|
+
if (this.board.selection.tool.pointerMoveBy(x, y)) {
|
|
78161
|
+
return true;
|
|
78162
|
+
}
|
|
78130
78163
|
this.updateMovementFlag();
|
|
78131
78164
|
if (this.isCameraPan) {
|
|
78132
78165
|
return this.handleCameraPanMove(x, y);
|
|
@@ -78232,6 +78265,11 @@ class Select extends BoardTool {
|
|
|
78232
78265
|
if (!this.isLeftDown) {
|
|
78233
78266
|
return false;
|
|
78234
78267
|
}
|
|
78268
|
+
if (this.board.selection.tool.leftButtonUp()) {
|
|
78269
|
+
this.clear();
|
|
78270
|
+
this.board.tools.publish();
|
|
78271
|
+
return true;
|
|
78272
|
+
}
|
|
78235
78273
|
this.initialCursorPos = null;
|
|
78236
78274
|
if (this.hasSelectionRectangleArea()) {
|
|
78237
78275
|
return this.finishSelectionRectangleSelection();
|
package/dist/cjs/node.js
CHANGED
|
@@ -47025,6 +47025,7 @@ class RichText extends BaseItem {
|
|
|
47025
47025
|
});
|
|
47026
47026
|
return {
|
|
47027
47027
|
resizedMbr: res?.resizedMbr ?? null,
|
|
47028
|
+
translation: res?.translation ?? null,
|
|
47028
47029
|
onPointerUpCb: res?.onPointerUpCb
|
|
47029
47030
|
};
|
|
47030
47031
|
}
|
|
@@ -68003,6 +68004,33 @@ class Sticker extends BaseItem {
|
|
|
68003
68004
|
getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
|
|
68004
68005
|
return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
|
|
68005
68006
|
}
|
|
68007
|
+
handleTransform(params) {
|
|
68008
|
+
const {
|
|
68009
|
+
board,
|
|
68010
|
+
mbr,
|
|
68011
|
+
resizeType,
|
|
68012
|
+
oppositePoint,
|
|
68013
|
+
isHeight,
|
|
68014
|
+
isWidth,
|
|
68015
|
+
isShiftPressed,
|
|
68016
|
+
beginTimeStamp,
|
|
68017
|
+
followingComments,
|
|
68018
|
+
startMbr
|
|
68019
|
+
} = params;
|
|
68020
|
+
return transformShape({
|
|
68021
|
+
board,
|
|
68022
|
+
mbr,
|
|
68023
|
+
resizeType,
|
|
68024
|
+
oppositePoint,
|
|
68025
|
+
isHeight,
|
|
68026
|
+
isWidth,
|
|
68027
|
+
isShiftPressed,
|
|
68028
|
+
beginTimeStamp,
|
|
68029
|
+
followingComments,
|
|
68030
|
+
startMbr,
|
|
68031
|
+
single: this
|
|
68032
|
+
});
|
|
68033
|
+
}
|
|
68006
68034
|
getRichText() {
|
|
68007
68035
|
return this.text;
|
|
68008
68036
|
}
|
|
@@ -71462,7 +71490,6 @@ class Drawing extends BaseItem {
|
|
|
71462
71490
|
this.linkTo.apply(op);
|
|
71463
71491
|
} else {
|
|
71464
71492
|
super.apply(op);
|
|
71465
|
-
return;
|
|
71466
71493
|
}
|
|
71467
71494
|
const hint = this.calculateUpdateHint(op);
|
|
71468
71495
|
this.updateVisuals(op, hint);
|
|
@@ -80542,6 +80569,9 @@ class Select extends BoardTool {
|
|
|
80542
80569
|
const selectionItems = selection.list();
|
|
80543
80570
|
this.isDownOnSelection = this.isPointerDownOnSelection(hover);
|
|
80544
80571
|
if (this.isDownOnSelection) {
|
|
80572
|
+
if (this.board.selection.tool.leftButtonDown()) {
|
|
80573
|
+
return true;
|
|
80574
|
+
}
|
|
80545
80575
|
return this.initializeSelectionDrag(selectionItems);
|
|
80546
80576
|
}
|
|
80547
80577
|
this.isDownOnBoard = hover.length === 0;
|
|
@@ -80600,6 +80630,9 @@ class Select extends BoardTool {
|
|
|
80600
80630
|
if (this.board.getInterfaceType() !== "edit") {
|
|
80601
80631
|
return false;
|
|
80602
80632
|
}
|
|
80633
|
+
if (this.board.selection.tool.pointerMoveBy(x, y)) {
|
|
80634
|
+
return true;
|
|
80635
|
+
}
|
|
80603
80636
|
this.updateMovementFlag();
|
|
80604
80637
|
if (this.isCameraPan) {
|
|
80605
80638
|
return this.handleCameraPanMove(x, y);
|
|
@@ -80705,6 +80738,11 @@ class Select extends BoardTool {
|
|
|
80705
80738
|
if (!this.isLeftDown) {
|
|
80706
80739
|
return false;
|
|
80707
80740
|
}
|
|
80741
|
+
if (this.board.selection.tool.leftButtonUp()) {
|
|
80742
|
+
this.clear();
|
|
80743
|
+
this.board.tools.publish();
|
|
80744
|
+
return true;
|
|
80745
|
+
}
|
|
80708
80746
|
this.initialCursorPos = null;
|
|
80709
80747
|
if (this.hasSelectionRectangleArea()) {
|
|
80710
80748
|
return this.finishSelectionRectangleSelection();
|
package/dist/esm/browser.js
CHANGED
|
@@ -44259,6 +44259,7 @@ class RichText extends BaseItem {
|
|
|
44259
44259
|
});
|
|
44260
44260
|
return {
|
|
44261
44261
|
resizedMbr: res?.resizedMbr ?? null,
|
|
44262
|
+
translation: res?.translation ?? null,
|
|
44262
44263
|
onPointerUpCb: res?.onPointerUpCb
|
|
44263
44264
|
};
|
|
44264
44265
|
}
|
|
@@ -65303,6 +65304,33 @@ class Sticker extends BaseItem {
|
|
|
65303
65304
|
getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
|
|
65304
65305
|
return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
|
|
65305
65306
|
}
|
|
65307
|
+
handleTransform(params) {
|
|
65308
|
+
const {
|
|
65309
|
+
board,
|
|
65310
|
+
mbr,
|
|
65311
|
+
resizeType,
|
|
65312
|
+
oppositePoint,
|
|
65313
|
+
isHeight,
|
|
65314
|
+
isWidth,
|
|
65315
|
+
isShiftPressed,
|
|
65316
|
+
beginTimeStamp,
|
|
65317
|
+
followingComments,
|
|
65318
|
+
startMbr
|
|
65319
|
+
} = params;
|
|
65320
|
+
return transformShape({
|
|
65321
|
+
board,
|
|
65322
|
+
mbr,
|
|
65323
|
+
resizeType,
|
|
65324
|
+
oppositePoint,
|
|
65325
|
+
isHeight,
|
|
65326
|
+
isWidth,
|
|
65327
|
+
isShiftPressed,
|
|
65328
|
+
beginTimeStamp,
|
|
65329
|
+
followingComments,
|
|
65330
|
+
startMbr,
|
|
65331
|
+
single: this
|
|
65332
|
+
});
|
|
65333
|
+
}
|
|
65306
65334
|
getRichText() {
|
|
65307
65335
|
return this.text;
|
|
65308
65336
|
}
|
|
@@ -68762,7 +68790,6 @@ class Drawing extends BaseItem {
|
|
|
68762
68790
|
this.linkTo.apply(op);
|
|
68763
68791
|
} else {
|
|
68764
68792
|
super.apply(op);
|
|
68765
|
-
return;
|
|
68766
68793
|
}
|
|
68767
68794
|
const hint = this.calculateUpdateHint(op);
|
|
68768
68795
|
this.updateVisuals(op, hint);
|
|
@@ -77842,6 +77869,9 @@ class Select extends BoardTool {
|
|
|
77842
77869
|
const selectionItems = selection.list();
|
|
77843
77870
|
this.isDownOnSelection = this.isPointerDownOnSelection(hover);
|
|
77844
77871
|
if (this.isDownOnSelection) {
|
|
77872
|
+
if (this.board.selection.tool.leftButtonDown()) {
|
|
77873
|
+
return true;
|
|
77874
|
+
}
|
|
77845
77875
|
return this.initializeSelectionDrag(selectionItems);
|
|
77846
77876
|
}
|
|
77847
77877
|
this.isDownOnBoard = hover.length === 0;
|
|
@@ -77900,6 +77930,9 @@ class Select extends BoardTool {
|
|
|
77900
77930
|
if (this.board.getInterfaceType() !== "edit") {
|
|
77901
77931
|
return false;
|
|
77902
77932
|
}
|
|
77933
|
+
if (this.board.selection.tool.pointerMoveBy(x, y)) {
|
|
77934
|
+
return true;
|
|
77935
|
+
}
|
|
77903
77936
|
this.updateMovementFlag();
|
|
77904
77937
|
if (this.isCameraPan) {
|
|
77905
77938
|
return this.handleCameraPanMove(x, y);
|
|
@@ -78005,6 +78038,11 @@ class Select extends BoardTool {
|
|
|
78005
78038
|
if (!this.isLeftDown) {
|
|
78006
78039
|
return false;
|
|
78007
78040
|
}
|
|
78041
|
+
if (this.board.selection.tool.leftButtonUp()) {
|
|
78042
|
+
this.clear();
|
|
78043
|
+
this.board.tools.publish();
|
|
78044
|
+
return true;
|
|
78045
|
+
}
|
|
78008
78046
|
this.initialCursorPos = null;
|
|
78009
78047
|
if (this.hasSelectionRectangleArea()) {
|
|
78010
78048
|
return this.finishSelectionRectangleSelection();
|
package/dist/esm/index.js
CHANGED
|
@@ -44252,6 +44252,7 @@ class RichText extends BaseItem {
|
|
|
44252
44252
|
});
|
|
44253
44253
|
return {
|
|
44254
44254
|
resizedMbr: res?.resizedMbr ?? null,
|
|
44255
|
+
translation: res?.translation ?? null,
|
|
44255
44256
|
onPointerUpCb: res?.onPointerUpCb
|
|
44256
44257
|
};
|
|
44257
44258
|
}
|
|
@@ -65296,6 +65297,33 @@ class Sticker extends BaseItem {
|
|
|
65296
65297
|
getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
|
|
65297
65298
|
return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
|
|
65298
65299
|
}
|
|
65300
|
+
handleTransform(params) {
|
|
65301
|
+
const {
|
|
65302
|
+
board,
|
|
65303
|
+
mbr,
|
|
65304
|
+
resizeType,
|
|
65305
|
+
oppositePoint,
|
|
65306
|
+
isHeight,
|
|
65307
|
+
isWidth,
|
|
65308
|
+
isShiftPressed,
|
|
65309
|
+
beginTimeStamp,
|
|
65310
|
+
followingComments,
|
|
65311
|
+
startMbr
|
|
65312
|
+
} = params;
|
|
65313
|
+
return transformShape({
|
|
65314
|
+
board,
|
|
65315
|
+
mbr,
|
|
65316
|
+
resizeType,
|
|
65317
|
+
oppositePoint,
|
|
65318
|
+
isHeight,
|
|
65319
|
+
isWidth,
|
|
65320
|
+
isShiftPressed,
|
|
65321
|
+
beginTimeStamp,
|
|
65322
|
+
followingComments,
|
|
65323
|
+
startMbr,
|
|
65324
|
+
single: this
|
|
65325
|
+
});
|
|
65326
|
+
}
|
|
65299
65327
|
getRichText() {
|
|
65300
65328
|
return this.text;
|
|
65301
65329
|
}
|
|
@@ -68755,7 +68783,6 @@ class Drawing extends BaseItem {
|
|
|
68755
68783
|
this.linkTo.apply(op);
|
|
68756
68784
|
} else {
|
|
68757
68785
|
super.apply(op);
|
|
68758
|
-
return;
|
|
68759
68786
|
}
|
|
68760
68787
|
const hint = this.calculateUpdateHint(op);
|
|
68761
68788
|
this.updateVisuals(op, hint);
|
|
@@ -77835,6 +77862,9 @@ class Select extends BoardTool {
|
|
|
77835
77862
|
const selectionItems = selection.list();
|
|
77836
77863
|
this.isDownOnSelection = this.isPointerDownOnSelection(hover);
|
|
77837
77864
|
if (this.isDownOnSelection) {
|
|
77865
|
+
if (this.board.selection.tool.leftButtonDown()) {
|
|
77866
|
+
return true;
|
|
77867
|
+
}
|
|
77838
77868
|
return this.initializeSelectionDrag(selectionItems);
|
|
77839
77869
|
}
|
|
77840
77870
|
this.isDownOnBoard = hover.length === 0;
|
|
@@ -77893,6 +77923,9 @@ class Select extends BoardTool {
|
|
|
77893
77923
|
if (this.board.getInterfaceType() !== "edit") {
|
|
77894
77924
|
return false;
|
|
77895
77925
|
}
|
|
77926
|
+
if (this.board.selection.tool.pointerMoveBy(x, y)) {
|
|
77927
|
+
return true;
|
|
77928
|
+
}
|
|
77896
77929
|
this.updateMovementFlag();
|
|
77897
77930
|
if (this.isCameraPan) {
|
|
77898
77931
|
return this.handleCameraPanMove(x, y);
|
|
@@ -77998,6 +78031,11 @@ class Select extends BoardTool {
|
|
|
77998
78031
|
if (!this.isLeftDown) {
|
|
77999
78032
|
return false;
|
|
78000
78033
|
}
|
|
78034
|
+
if (this.board.selection.tool.leftButtonUp()) {
|
|
78035
|
+
this.clear();
|
|
78036
|
+
this.board.tools.publish();
|
|
78037
|
+
return true;
|
|
78038
|
+
}
|
|
78001
78039
|
this.initialCursorPos = null;
|
|
78002
78040
|
if (this.hasSelectionRectangleArea()) {
|
|
78003
78041
|
return this.finishSelectionRectangleSelection();
|
package/dist/esm/node.js
CHANGED
|
@@ -46786,6 +46786,7 @@ class RichText extends BaseItem {
|
|
|
46786
46786
|
});
|
|
46787
46787
|
return {
|
|
46788
46788
|
resizedMbr: res?.resizedMbr ?? null,
|
|
46789
|
+
translation: res?.translation ?? null,
|
|
46789
46790
|
onPointerUpCb: res?.onPointerUpCb
|
|
46790
46791
|
};
|
|
46791
46792
|
}
|
|
@@ -67764,6 +67765,33 @@ class Sticker extends BaseItem {
|
|
|
67764
67765
|
getResizeType(point5, cameraScale, mbr, anchorDistance = 5) {
|
|
67765
67766
|
return getTextResizeType(point5, cameraScale, mbr, anchorDistance);
|
|
67766
67767
|
}
|
|
67768
|
+
handleTransform(params) {
|
|
67769
|
+
const {
|
|
67770
|
+
board,
|
|
67771
|
+
mbr,
|
|
67772
|
+
resizeType,
|
|
67773
|
+
oppositePoint,
|
|
67774
|
+
isHeight,
|
|
67775
|
+
isWidth,
|
|
67776
|
+
isShiftPressed,
|
|
67777
|
+
beginTimeStamp,
|
|
67778
|
+
followingComments,
|
|
67779
|
+
startMbr
|
|
67780
|
+
} = params;
|
|
67781
|
+
return transformShape({
|
|
67782
|
+
board,
|
|
67783
|
+
mbr,
|
|
67784
|
+
resizeType,
|
|
67785
|
+
oppositePoint,
|
|
67786
|
+
isHeight,
|
|
67787
|
+
isWidth,
|
|
67788
|
+
isShiftPressed,
|
|
67789
|
+
beginTimeStamp,
|
|
67790
|
+
followingComments,
|
|
67791
|
+
startMbr,
|
|
67792
|
+
single: this
|
|
67793
|
+
});
|
|
67794
|
+
}
|
|
67767
67795
|
getRichText() {
|
|
67768
67796
|
return this.text;
|
|
67769
67797
|
}
|
|
@@ -71223,7 +71251,6 @@ class Drawing extends BaseItem {
|
|
|
71223
71251
|
this.linkTo.apply(op);
|
|
71224
71252
|
} else {
|
|
71225
71253
|
super.apply(op);
|
|
71226
|
-
return;
|
|
71227
71254
|
}
|
|
71228
71255
|
const hint = this.calculateUpdateHint(op);
|
|
71229
71256
|
this.updateVisuals(op, hint);
|
|
@@ -80303,6 +80330,9 @@ class Select extends BoardTool {
|
|
|
80303
80330
|
const selectionItems = selection.list();
|
|
80304
80331
|
this.isDownOnSelection = this.isPointerDownOnSelection(hover);
|
|
80305
80332
|
if (this.isDownOnSelection) {
|
|
80333
|
+
if (this.board.selection.tool.leftButtonDown()) {
|
|
80334
|
+
return true;
|
|
80335
|
+
}
|
|
80306
80336
|
return this.initializeSelectionDrag(selectionItems);
|
|
80307
80337
|
}
|
|
80308
80338
|
this.isDownOnBoard = hover.length === 0;
|
|
@@ -80361,6 +80391,9 @@ class Select extends BoardTool {
|
|
|
80361
80391
|
if (this.board.getInterfaceType() !== "edit") {
|
|
80362
80392
|
return false;
|
|
80363
80393
|
}
|
|
80394
|
+
if (this.board.selection.tool.pointerMoveBy(x, y)) {
|
|
80395
|
+
return true;
|
|
80396
|
+
}
|
|
80364
80397
|
this.updateMovementFlag();
|
|
80365
80398
|
if (this.isCameraPan) {
|
|
80366
80399
|
return this.handleCameraPanMove(x, y);
|
|
@@ -80466,6 +80499,11 @@ class Select extends BoardTool {
|
|
|
80466
80499
|
if (!this.isLeftDown) {
|
|
80467
80500
|
return false;
|
|
80468
80501
|
}
|
|
80502
|
+
if (this.board.selection.tool.leftButtonUp()) {
|
|
80503
|
+
this.clear();
|
|
80504
|
+
this.board.tools.publish();
|
|
80505
|
+
return true;
|
|
80506
|
+
}
|
|
80469
80507
|
this.initialCursorPos = null;
|
|
80470
80508
|
if (this.hasSelectionRectangleArea()) {
|
|
80471
80509
|
return this.finishSelectionRectangleSelection();
|
|
@@ -17,6 +17,7 @@ import type { SerializedItemData } from "../BaseItem/BaseItem";
|
|
|
17
17
|
import { BaseItemOperation } from "../BaseItem/BaseItemOperation";
|
|
18
18
|
import { UpdateHint } from "../BaseItem/UpdateHint";
|
|
19
19
|
import { ColorValue } from "../../..";
|
|
20
|
+
import { TransformParams, TransformResult } from "../BaseItem/TransformContext";
|
|
20
21
|
export declare const stickerColors: {
|
|
21
22
|
[color: string]: string;
|
|
22
23
|
};
|
|
@@ -75,6 +76,7 @@ export declare class Sticker extends BaseItem<Sticker> {
|
|
|
75
76
|
mbr: Mbr;
|
|
76
77
|
};
|
|
77
78
|
getResizeType(point: Point, cameraScale: number, mbr: Mbr, anchorDistance?: number): ResizeType | undefined;
|
|
79
|
+
handleTransform(params: TransformParams): TransformResult;
|
|
78
80
|
getRichText(): RichText;
|
|
79
81
|
getLinkTo(): string | undefined;
|
|
80
82
|
}
|