microboard-temp 0.14.10 → 0.14.12
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 +11 -3
- package/dist/cjs/index.js +11 -3
- package/dist/cjs/node.js +11 -3
- package/dist/esm/browser.js +11 -3
- package/dist/esm/index.js +11 -3
- package/dist/esm/node.js +11 -3
- package/dist/types/Items/Transformation/Transformation.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -8787,6 +8787,14 @@ class Transformation {
|
|
|
8787
8787
|
timeStamp
|
|
8788
8788
|
});
|
|
8789
8789
|
}
|
|
8790
|
+
setIsLocked(isLocked) {
|
|
8791
|
+
this.emit({
|
|
8792
|
+
class: "Transformation",
|
|
8793
|
+
method: isLocked ? "locked" : "unlocked",
|
|
8794
|
+
item: [this.id],
|
|
8795
|
+
locked: isLocked
|
|
8796
|
+
});
|
|
8797
|
+
}
|
|
8790
8798
|
scaleToRelativeTo(x, y, _point, timeStamp) {
|
|
8791
8799
|
this.emitMatrix({
|
|
8792
8800
|
translateX: 0,
|
|
@@ -68526,7 +68534,7 @@ class BoardSelection {
|
|
|
68526
68534
|
this.itemsSubject.publish([]);
|
|
68527
68535
|
}
|
|
68528
68536
|
addAll() {
|
|
68529
|
-
const items = this.board.items.listAll()
|
|
68537
|
+
const items = this.board.items.listAll();
|
|
68530
68538
|
this.add(items);
|
|
68531
68539
|
this.setContext("SelectByRect");
|
|
68532
68540
|
}
|
|
@@ -68795,8 +68803,8 @@ class BoardSelection {
|
|
|
68795
68803
|
}
|
|
68796
68804
|
selectEnclosedOrCrossedBy(rect) {
|
|
68797
68805
|
this.removeAll();
|
|
68798
|
-
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom)
|
|
68799
|
-
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) =>
|
|
68806
|
+
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom);
|
|
68807
|
+
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) => item.itemType !== "Frame" || enclosedFrames.includes(item)));
|
|
68800
68808
|
if (list6.length !== 0) {
|
|
68801
68809
|
this.add(list6);
|
|
68802
68810
|
this.setContext("SelectByRect");
|
package/dist/cjs/index.js
CHANGED
|
@@ -8787,6 +8787,14 @@ class Transformation {
|
|
|
8787
8787
|
timeStamp
|
|
8788
8788
|
});
|
|
8789
8789
|
}
|
|
8790
|
+
setIsLocked(isLocked) {
|
|
8791
|
+
this.emit({
|
|
8792
|
+
class: "Transformation",
|
|
8793
|
+
method: isLocked ? "locked" : "unlocked",
|
|
8794
|
+
item: [this.id],
|
|
8795
|
+
locked: isLocked
|
|
8796
|
+
});
|
|
8797
|
+
}
|
|
8790
8798
|
scaleToRelativeTo(x, y, _point, timeStamp) {
|
|
8791
8799
|
this.emitMatrix({
|
|
8792
8800
|
translateX: 0,
|
|
@@ -68526,7 +68534,7 @@ class BoardSelection {
|
|
|
68526
68534
|
this.itemsSubject.publish([]);
|
|
68527
68535
|
}
|
|
68528
68536
|
addAll() {
|
|
68529
|
-
const items = this.board.items.listAll()
|
|
68537
|
+
const items = this.board.items.listAll();
|
|
68530
68538
|
this.add(items);
|
|
68531
68539
|
this.setContext("SelectByRect");
|
|
68532
68540
|
}
|
|
@@ -68795,8 +68803,8 @@ class BoardSelection {
|
|
|
68795
68803
|
}
|
|
68796
68804
|
selectEnclosedOrCrossedBy(rect) {
|
|
68797
68805
|
this.removeAll();
|
|
68798
|
-
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom)
|
|
68799
|
-
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) =>
|
|
68806
|
+
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom);
|
|
68807
|
+
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) => item.itemType !== "Frame" || enclosedFrames.includes(item)));
|
|
68800
68808
|
if (list6.length !== 0) {
|
|
68801
68809
|
this.add(list6);
|
|
68802
68810
|
this.setContext("SelectByRect");
|
package/dist/cjs/node.js
CHANGED
|
@@ -9823,6 +9823,14 @@ class Transformation {
|
|
|
9823
9823
|
timeStamp
|
|
9824
9824
|
});
|
|
9825
9825
|
}
|
|
9826
|
+
setIsLocked(isLocked) {
|
|
9827
|
+
this.emit({
|
|
9828
|
+
class: "Transformation",
|
|
9829
|
+
method: isLocked ? "locked" : "unlocked",
|
|
9830
|
+
item: [this.id],
|
|
9831
|
+
locked: isLocked
|
|
9832
|
+
});
|
|
9833
|
+
}
|
|
9826
9834
|
scaleToRelativeTo(x, y, _point, timeStamp) {
|
|
9827
9835
|
this.emitMatrix({
|
|
9828
9836
|
translateX: 0,
|
|
@@ -70999,7 +71007,7 @@ class BoardSelection {
|
|
|
70999
71007
|
this.itemsSubject.publish([]);
|
|
71000
71008
|
}
|
|
71001
71009
|
addAll() {
|
|
71002
|
-
const items = this.board.items.listAll()
|
|
71010
|
+
const items = this.board.items.listAll();
|
|
71003
71011
|
this.add(items);
|
|
71004
71012
|
this.setContext("SelectByRect");
|
|
71005
71013
|
}
|
|
@@ -71268,8 +71276,8 @@ class BoardSelection {
|
|
|
71268
71276
|
}
|
|
71269
71277
|
selectEnclosedOrCrossedBy(rect) {
|
|
71270
71278
|
this.removeAll();
|
|
71271
|
-
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom)
|
|
71272
|
-
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) =>
|
|
71279
|
+
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom);
|
|
71280
|
+
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) => item.itemType !== "Frame" || enclosedFrames.includes(item)));
|
|
71273
71281
|
if (list6.length !== 0) {
|
|
71274
71282
|
this.add(list6);
|
|
71275
71283
|
this.setContext("SelectByRect");
|
package/dist/esm/browser.js
CHANGED
|
@@ -8590,6 +8590,14 @@ class Transformation {
|
|
|
8590
8590
|
timeStamp
|
|
8591
8591
|
});
|
|
8592
8592
|
}
|
|
8593
|
+
setIsLocked(isLocked) {
|
|
8594
|
+
this.emit({
|
|
8595
|
+
class: "Transformation",
|
|
8596
|
+
method: isLocked ? "locked" : "unlocked",
|
|
8597
|
+
item: [this.id],
|
|
8598
|
+
locked: isLocked
|
|
8599
|
+
});
|
|
8600
|
+
}
|
|
8593
8601
|
scaleToRelativeTo(x, y, _point, timeStamp) {
|
|
8594
8602
|
this.emitMatrix({
|
|
8595
8603
|
translateX: 0,
|
|
@@ -68337,7 +68345,7 @@ class BoardSelection {
|
|
|
68337
68345
|
this.itemsSubject.publish([]);
|
|
68338
68346
|
}
|
|
68339
68347
|
addAll() {
|
|
68340
|
-
const items = this.board.items.listAll()
|
|
68348
|
+
const items = this.board.items.listAll();
|
|
68341
68349
|
this.add(items);
|
|
68342
68350
|
this.setContext("SelectByRect");
|
|
68343
68351
|
}
|
|
@@ -68606,8 +68614,8 @@ class BoardSelection {
|
|
|
68606
68614
|
}
|
|
68607
68615
|
selectEnclosedOrCrossedBy(rect) {
|
|
68608
68616
|
this.removeAll();
|
|
68609
|
-
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom)
|
|
68610
|
-
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) =>
|
|
68617
|
+
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom);
|
|
68618
|
+
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) => item.itemType !== "Frame" || enclosedFrames.includes(item)));
|
|
68611
68619
|
if (list6.length !== 0) {
|
|
68612
68620
|
this.add(list6);
|
|
68613
68621
|
this.setContext("SelectByRect");
|
package/dist/esm/index.js
CHANGED
|
@@ -8583,6 +8583,14 @@ class Transformation {
|
|
|
8583
8583
|
timeStamp
|
|
8584
8584
|
});
|
|
8585
8585
|
}
|
|
8586
|
+
setIsLocked(isLocked) {
|
|
8587
|
+
this.emit({
|
|
8588
|
+
class: "Transformation",
|
|
8589
|
+
method: isLocked ? "locked" : "unlocked",
|
|
8590
|
+
item: [this.id],
|
|
8591
|
+
locked: isLocked
|
|
8592
|
+
});
|
|
8593
|
+
}
|
|
8586
8594
|
scaleToRelativeTo(x, y, _point, timeStamp) {
|
|
8587
8595
|
this.emitMatrix({
|
|
8588
8596
|
translateX: 0,
|
|
@@ -68330,7 +68338,7 @@ class BoardSelection {
|
|
|
68330
68338
|
this.itemsSubject.publish([]);
|
|
68331
68339
|
}
|
|
68332
68340
|
addAll() {
|
|
68333
|
-
const items = this.board.items.listAll()
|
|
68341
|
+
const items = this.board.items.listAll();
|
|
68334
68342
|
this.add(items);
|
|
68335
68343
|
this.setContext("SelectByRect");
|
|
68336
68344
|
}
|
|
@@ -68599,8 +68607,8 @@ class BoardSelection {
|
|
|
68599
68607
|
}
|
|
68600
68608
|
selectEnclosedOrCrossedBy(rect) {
|
|
68601
68609
|
this.removeAll();
|
|
68602
|
-
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom)
|
|
68603
|
-
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) =>
|
|
68610
|
+
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom);
|
|
68611
|
+
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) => item.itemType !== "Frame" || enclosedFrames.includes(item)));
|
|
68604
68612
|
if (list6.length !== 0) {
|
|
68605
68613
|
this.add(list6);
|
|
68606
68614
|
this.setContext("SelectByRect");
|
package/dist/esm/node.js
CHANGED
|
@@ -9366,6 +9366,14 @@ class Transformation {
|
|
|
9366
9366
|
timeStamp
|
|
9367
9367
|
});
|
|
9368
9368
|
}
|
|
9369
|
+
setIsLocked(isLocked) {
|
|
9370
|
+
this.emit({
|
|
9371
|
+
class: "Transformation",
|
|
9372
|
+
method: isLocked ? "locked" : "unlocked",
|
|
9373
|
+
item: [this.id],
|
|
9374
|
+
locked: isLocked
|
|
9375
|
+
});
|
|
9376
|
+
}
|
|
9369
9377
|
scaleToRelativeTo(x, y, _point, timeStamp) {
|
|
9370
9378
|
this.emitMatrix({
|
|
9371
9379
|
translateX: 0,
|
|
@@ -70798,7 +70806,7 @@ class BoardSelection {
|
|
|
70798
70806
|
this.itemsSubject.publish([]);
|
|
70799
70807
|
}
|
|
70800
70808
|
addAll() {
|
|
70801
|
-
const items = this.board.items.listAll()
|
|
70809
|
+
const items = this.board.items.listAll();
|
|
70802
70810
|
this.add(items);
|
|
70803
70811
|
this.setContext("SelectByRect");
|
|
70804
70812
|
}
|
|
@@ -71067,8 +71075,8 @@ class BoardSelection {
|
|
|
71067
71075
|
}
|
|
71068
71076
|
selectEnclosedOrCrossedBy(rect) {
|
|
71069
71077
|
this.removeAll();
|
|
71070
|
-
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom)
|
|
71071
|
-
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) =>
|
|
71078
|
+
const enclosedFrames = this.board.items.getEnclosed(rect.left, rect.top, rect.right, rect.bottom);
|
|
71079
|
+
const list6 = this.getCanvasSelectableItems(this.board.items.getEnclosedOrCrossed(rect.left, rect.top, rect.right, rect.bottom).filter((item) => item.itemType !== "Frame" || enclosedFrames.includes(item)));
|
|
71072
71080
|
if (list6.length !== 0) {
|
|
71073
71081
|
this.add(list6);
|
|
71074
71082
|
this.setContext("SelectByRect");
|