microboard-temp 0.12.8 → 0.12.9
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 +6 -6
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/node.js +6 -6
- package/dist/esm/browser.js +6 -6
- package/dist/esm/index.js +6 -6
- package/dist/esm/node.js +6 -6
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -22151,7 +22151,7 @@ class BaseItem extends Mbr {
|
|
|
22151
22151
|
if (!this.isHoverHighlighted) {
|
|
22152
22152
|
return;
|
|
22153
22153
|
}
|
|
22154
|
-
const mbr = this.
|
|
22154
|
+
const mbr = this.getWorldMbr();
|
|
22155
22155
|
mbr.strokeWidth = 2 / context.matrix.scaleX;
|
|
22156
22156
|
mbr.borderColor = BaseItem.HOVER_HIGHLIGHT_COLOR;
|
|
22157
22157
|
mbr.render(context);
|
|
@@ -53725,9 +53725,9 @@ class BoardSelection {
|
|
|
53725
53725
|
}
|
|
53726
53726
|
const selectedMbr = selected.reduce((acc, item) => {
|
|
53727
53727
|
if (!acc) {
|
|
53728
|
-
return item.getMbr();
|
|
53728
|
+
return item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
53729
53729
|
}
|
|
53730
|
-
return acc.combine(item.getMbr());
|
|
53730
|
+
return acc.combine(item instanceof BaseItem ? item.getWorldMbr() : item.getMbr());
|
|
53731
53731
|
}, undefined);
|
|
53732
53732
|
if (selectedMbr) {
|
|
53733
53733
|
const selectedMap = Object.fromEntries(selected.map((item) => [item.getId(), { item, nested: false }]));
|
|
@@ -53759,7 +53759,7 @@ class BoardSelection {
|
|
|
53759
53759
|
const childrenIds = val.item.getChildrenIds();
|
|
53760
53760
|
if (childrenIds) {
|
|
53761
53761
|
const currGroup = val.item;
|
|
53762
|
-
const currMbr = currGroup.
|
|
53762
|
+
const currMbr = currGroup.getWorldMbr();
|
|
53763
53763
|
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
53764
53764
|
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
53765
53765
|
const uniqueItems = new Set;
|
|
@@ -54240,7 +54240,7 @@ class BoardSelection {
|
|
|
54240
54240
|
};
|
|
54241
54241
|
}
|
|
54242
54242
|
renderItemMbr(context, item, customScale) {
|
|
54243
|
-
const mbr = item.getMbr();
|
|
54243
|
+
const mbr = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54244
54244
|
mbr.strokeWidth = !customScale ? 1 / context.matrix.scaleX : 1 / customScale;
|
|
54245
54245
|
const selectionColor = item.transformation.isLocked ? conf.SELECTION_LOCKED_COLOR : conf.SELECTION_COLOR;
|
|
54246
54246
|
mbr.borderColor = selectionColor;
|
|
@@ -54297,7 +54297,7 @@ class BoardSelection {
|
|
|
54297
54297
|
path2.setBackgroundColor("none");
|
|
54298
54298
|
path2.render(context);
|
|
54299
54299
|
} else {
|
|
54300
|
-
const itemRect = item.getMbr();
|
|
54300
|
+
const itemRect = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54301
54301
|
itemRect.borderColor = CONTEXT_NODE_HIGHLIGHT_COLOR;
|
|
54302
54302
|
itemRect.strokeWidth = 2;
|
|
54303
54303
|
itemRect.render(context);
|
package/dist/cjs/index.js
CHANGED
|
@@ -22151,7 +22151,7 @@ class BaseItem extends Mbr {
|
|
|
22151
22151
|
if (!this.isHoverHighlighted) {
|
|
22152
22152
|
return;
|
|
22153
22153
|
}
|
|
22154
|
-
const mbr = this.
|
|
22154
|
+
const mbr = this.getWorldMbr();
|
|
22155
22155
|
mbr.strokeWidth = 2 / context.matrix.scaleX;
|
|
22156
22156
|
mbr.borderColor = BaseItem.HOVER_HIGHLIGHT_COLOR;
|
|
22157
22157
|
mbr.render(context);
|
|
@@ -53725,9 +53725,9 @@ class BoardSelection {
|
|
|
53725
53725
|
}
|
|
53726
53726
|
const selectedMbr = selected.reduce((acc, item) => {
|
|
53727
53727
|
if (!acc) {
|
|
53728
|
-
return item.getMbr();
|
|
53728
|
+
return item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
53729
53729
|
}
|
|
53730
|
-
return acc.combine(item.getMbr());
|
|
53730
|
+
return acc.combine(item instanceof BaseItem ? item.getWorldMbr() : item.getMbr());
|
|
53731
53731
|
}, undefined);
|
|
53732
53732
|
if (selectedMbr) {
|
|
53733
53733
|
const selectedMap = Object.fromEntries(selected.map((item) => [item.getId(), { item, nested: false }]));
|
|
@@ -53759,7 +53759,7 @@ class BoardSelection {
|
|
|
53759
53759
|
const childrenIds = val.item.getChildrenIds();
|
|
53760
53760
|
if (childrenIds) {
|
|
53761
53761
|
const currGroup = val.item;
|
|
53762
|
-
const currMbr = currGroup.
|
|
53762
|
+
const currMbr = currGroup.getWorldMbr();
|
|
53763
53763
|
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
53764
53764
|
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
53765
53765
|
const uniqueItems = new Set;
|
|
@@ -54240,7 +54240,7 @@ class BoardSelection {
|
|
|
54240
54240
|
};
|
|
54241
54241
|
}
|
|
54242
54242
|
renderItemMbr(context, item, customScale) {
|
|
54243
|
-
const mbr = item.getMbr();
|
|
54243
|
+
const mbr = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54244
54244
|
mbr.strokeWidth = !customScale ? 1 / context.matrix.scaleX : 1 / customScale;
|
|
54245
54245
|
const selectionColor = item.transformation.isLocked ? conf.SELECTION_LOCKED_COLOR : conf.SELECTION_COLOR;
|
|
54246
54246
|
mbr.borderColor = selectionColor;
|
|
@@ -54297,7 +54297,7 @@ class BoardSelection {
|
|
|
54297
54297
|
path2.setBackgroundColor("none");
|
|
54298
54298
|
path2.render(context);
|
|
54299
54299
|
} else {
|
|
54300
|
-
const itemRect = item.getMbr();
|
|
54300
|
+
const itemRect = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54301
54301
|
itemRect.borderColor = CONTEXT_NODE_HIGHLIGHT_COLOR;
|
|
54302
54302
|
itemRect.strokeWidth = 2;
|
|
54303
54303
|
itemRect.render(context);
|
package/dist/cjs/node.js
CHANGED
|
@@ -24623,7 +24623,7 @@ class BaseItem extends Mbr {
|
|
|
24623
24623
|
if (!this.isHoverHighlighted) {
|
|
24624
24624
|
return;
|
|
24625
24625
|
}
|
|
24626
|
-
const mbr = this.
|
|
24626
|
+
const mbr = this.getWorldMbr();
|
|
24627
24627
|
mbr.strokeWidth = 2 / context.matrix.scaleX;
|
|
24628
24628
|
mbr.borderColor = BaseItem.HOVER_HIGHLIGHT_COLOR;
|
|
24629
24629
|
mbr.render(context);
|
|
@@ -56198,9 +56198,9 @@ class BoardSelection {
|
|
|
56198
56198
|
}
|
|
56199
56199
|
const selectedMbr = selected.reduce((acc, item) => {
|
|
56200
56200
|
if (!acc) {
|
|
56201
|
-
return item.getMbr();
|
|
56201
|
+
return item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
56202
56202
|
}
|
|
56203
|
-
return acc.combine(item.getMbr());
|
|
56203
|
+
return acc.combine(item instanceof BaseItem ? item.getWorldMbr() : item.getMbr());
|
|
56204
56204
|
}, undefined);
|
|
56205
56205
|
if (selectedMbr) {
|
|
56206
56206
|
const selectedMap = Object.fromEntries(selected.map((item) => [item.getId(), { item, nested: false }]));
|
|
@@ -56232,7 +56232,7 @@ class BoardSelection {
|
|
|
56232
56232
|
const childrenIds = val.item.getChildrenIds();
|
|
56233
56233
|
if (childrenIds) {
|
|
56234
56234
|
const currGroup = val.item;
|
|
56235
|
-
const currMbr = currGroup.
|
|
56235
|
+
const currMbr = currGroup.getWorldMbr();
|
|
56236
56236
|
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
56237
56237
|
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
56238
56238
|
const uniqueItems = new Set;
|
|
@@ -56713,7 +56713,7 @@ class BoardSelection {
|
|
|
56713
56713
|
};
|
|
56714
56714
|
}
|
|
56715
56715
|
renderItemMbr(context, item, customScale) {
|
|
56716
|
-
const mbr = item.getMbr();
|
|
56716
|
+
const mbr = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
56717
56717
|
mbr.strokeWidth = !customScale ? 1 / context.matrix.scaleX : 1 / customScale;
|
|
56718
56718
|
const selectionColor = item.transformation.isLocked ? conf.SELECTION_LOCKED_COLOR : conf.SELECTION_COLOR;
|
|
56719
56719
|
mbr.borderColor = selectionColor;
|
|
@@ -56770,7 +56770,7 @@ class BoardSelection {
|
|
|
56770
56770
|
path2.setBackgroundColor("none");
|
|
56771
56771
|
path2.render(context);
|
|
56772
56772
|
} else {
|
|
56773
|
-
const itemRect = item.getMbr();
|
|
56773
|
+
const itemRect = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
56774
56774
|
itemRect.borderColor = CONTEXT_NODE_HIGHLIGHT_COLOR;
|
|
56775
56775
|
itemRect.strokeWidth = 2;
|
|
56776
56776
|
itemRect.render(context);
|
package/dist/esm/browser.js
CHANGED
|
@@ -21980,7 +21980,7 @@ class BaseItem extends Mbr {
|
|
|
21980
21980
|
if (!this.isHoverHighlighted) {
|
|
21981
21981
|
return;
|
|
21982
21982
|
}
|
|
21983
|
-
const mbr = this.
|
|
21983
|
+
const mbr = this.getWorldMbr();
|
|
21984
21984
|
mbr.strokeWidth = 2 / context.matrix.scaleX;
|
|
21985
21985
|
mbr.borderColor = BaseItem.HOVER_HIGHLIGHT_COLOR;
|
|
21986
21986
|
mbr.render(context);
|
|
@@ -53554,9 +53554,9 @@ class BoardSelection {
|
|
|
53554
53554
|
}
|
|
53555
53555
|
const selectedMbr = selected.reduce((acc, item) => {
|
|
53556
53556
|
if (!acc) {
|
|
53557
|
-
return item.getMbr();
|
|
53557
|
+
return item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
53558
53558
|
}
|
|
53559
|
-
return acc.combine(item.getMbr());
|
|
53559
|
+
return acc.combine(item instanceof BaseItem ? item.getWorldMbr() : item.getMbr());
|
|
53560
53560
|
}, undefined);
|
|
53561
53561
|
if (selectedMbr) {
|
|
53562
53562
|
const selectedMap = Object.fromEntries(selected.map((item) => [item.getId(), { item, nested: false }]));
|
|
@@ -53588,7 +53588,7 @@ class BoardSelection {
|
|
|
53588
53588
|
const childrenIds = val.item.getChildrenIds();
|
|
53589
53589
|
if (childrenIds) {
|
|
53590
53590
|
const currGroup = val.item;
|
|
53591
|
-
const currMbr = currGroup.
|
|
53591
|
+
const currMbr = currGroup.getWorldMbr();
|
|
53592
53592
|
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
53593
53593
|
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
53594
53594
|
const uniqueItems = new Set;
|
|
@@ -54069,7 +54069,7 @@ class BoardSelection {
|
|
|
54069
54069
|
};
|
|
54070
54070
|
}
|
|
54071
54071
|
renderItemMbr(context, item, customScale) {
|
|
54072
|
-
const mbr = item.getMbr();
|
|
54072
|
+
const mbr = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54073
54073
|
mbr.strokeWidth = !customScale ? 1 / context.matrix.scaleX : 1 / customScale;
|
|
54074
54074
|
const selectionColor = item.transformation.isLocked ? conf.SELECTION_LOCKED_COLOR : conf.SELECTION_COLOR;
|
|
54075
54075
|
mbr.borderColor = selectionColor;
|
|
@@ -54126,7 +54126,7 @@ class BoardSelection {
|
|
|
54126
54126
|
path2.setBackgroundColor("none");
|
|
54127
54127
|
path2.render(context);
|
|
54128
54128
|
} else {
|
|
54129
|
-
const itemRect = item.getMbr();
|
|
54129
|
+
const itemRect = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54130
54130
|
itemRect.borderColor = CONTEXT_NODE_HIGHLIGHT_COLOR;
|
|
54131
54131
|
itemRect.strokeWidth = 2;
|
|
54132
54132
|
itemRect.render(context);
|
package/dist/esm/index.js
CHANGED
|
@@ -21973,7 +21973,7 @@ class BaseItem extends Mbr {
|
|
|
21973
21973
|
if (!this.isHoverHighlighted) {
|
|
21974
21974
|
return;
|
|
21975
21975
|
}
|
|
21976
|
-
const mbr = this.
|
|
21976
|
+
const mbr = this.getWorldMbr();
|
|
21977
21977
|
mbr.strokeWidth = 2 / context.matrix.scaleX;
|
|
21978
21978
|
mbr.borderColor = BaseItem.HOVER_HIGHLIGHT_COLOR;
|
|
21979
21979
|
mbr.render(context);
|
|
@@ -53547,9 +53547,9 @@ class BoardSelection {
|
|
|
53547
53547
|
}
|
|
53548
53548
|
const selectedMbr = selected.reduce((acc, item) => {
|
|
53549
53549
|
if (!acc) {
|
|
53550
|
-
return item.getMbr();
|
|
53550
|
+
return item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
53551
53551
|
}
|
|
53552
|
-
return acc.combine(item.getMbr());
|
|
53552
|
+
return acc.combine(item instanceof BaseItem ? item.getWorldMbr() : item.getMbr());
|
|
53553
53553
|
}, undefined);
|
|
53554
53554
|
if (selectedMbr) {
|
|
53555
53555
|
const selectedMap = Object.fromEntries(selected.map((item) => [item.getId(), { item, nested: false }]));
|
|
@@ -53581,7 +53581,7 @@ class BoardSelection {
|
|
|
53581
53581
|
const childrenIds = val.item.getChildrenIds();
|
|
53582
53582
|
if (childrenIds) {
|
|
53583
53583
|
const currGroup = val.item;
|
|
53584
|
-
const currMbr = currGroup.
|
|
53584
|
+
const currMbr = currGroup.getWorldMbr();
|
|
53585
53585
|
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
53586
53586
|
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
53587
53587
|
const uniqueItems = new Set;
|
|
@@ -54062,7 +54062,7 @@ class BoardSelection {
|
|
|
54062
54062
|
};
|
|
54063
54063
|
}
|
|
54064
54064
|
renderItemMbr(context, item, customScale) {
|
|
54065
|
-
const mbr = item.getMbr();
|
|
54065
|
+
const mbr = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54066
54066
|
mbr.strokeWidth = !customScale ? 1 / context.matrix.scaleX : 1 / customScale;
|
|
54067
54067
|
const selectionColor = item.transformation.isLocked ? conf.SELECTION_LOCKED_COLOR : conf.SELECTION_COLOR;
|
|
54068
54068
|
mbr.borderColor = selectionColor;
|
|
@@ -54119,7 +54119,7 @@ class BoardSelection {
|
|
|
54119
54119
|
path2.setBackgroundColor("none");
|
|
54120
54120
|
path2.render(context);
|
|
54121
54121
|
} else {
|
|
54122
|
-
const itemRect = item.getMbr();
|
|
54122
|
+
const itemRect = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
54123
54123
|
itemRect.borderColor = CONTEXT_NODE_HIGHLIGHT_COLOR;
|
|
54124
54124
|
itemRect.strokeWidth = 2;
|
|
54125
54125
|
itemRect.render(context);
|
package/dist/esm/node.js
CHANGED
|
@@ -24440,7 +24440,7 @@ class BaseItem extends Mbr {
|
|
|
24440
24440
|
if (!this.isHoverHighlighted) {
|
|
24441
24441
|
return;
|
|
24442
24442
|
}
|
|
24443
|
-
const mbr = this.
|
|
24443
|
+
const mbr = this.getWorldMbr();
|
|
24444
24444
|
mbr.strokeWidth = 2 / context.matrix.scaleX;
|
|
24445
24445
|
mbr.borderColor = BaseItem.HOVER_HIGHLIGHT_COLOR;
|
|
24446
24446
|
mbr.render(context);
|
|
@@ -56015,9 +56015,9 @@ class BoardSelection {
|
|
|
56015
56015
|
}
|
|
56016
56016
|
const selectedMbr = selected.reduce((acc, item) => {
|
|
56017
56017
|
if (!acc) {
|
|
56018
|
-
return item.getMbr();
|
|
56018
|
+
return item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
56019
56019
|
}
|
|
56020
|
-
return acc.combine(item.getMbr());
|
|
56020
|
+
return acc.combine(item instanceof BaseItem ? item.getWorldMbr() : item.getMbr());
|
|
56021
56021
|
}, undefined);
|
|
56022
56022
|
if (selectedMbr) {
|
|
56023
56023
|
const selectedMap = Object.fromEntries(selected.map((item) => [item.getId(), { item, nested: false }]));
|
|
@@ -56049,7 +56049,7 @@ class BoardSelection {
|
|
|
56049
56049
|
const childrenIds = val.item.getChildrenIds();
|
|
56050
56050
|
if (childrenIds) {
|
|
56051
56051
|
const currGroup = val.item;
|
|
56052
|
-
const currMbr = currGroup.
|
|
56052
|
+
const currMbr = currGroup.getWorldMbr();
|
|
56053
56053
|
const children = childrenIds.map((childId) => this.board.items.getById(childId)).filter((item) => !!item);
|
|
56054
56054
|
const underGroup = this.board.items.getEnclosedOrCrossed(currMbr.left, currMbr.top, currMbr.right, currMbr.bottom).filter((item) => item.parent === "Board" || item.parent === currGroup.getId());
|
|
56055
56055
|
const uniqueItems = new Set;
|
|
@@ -56530,7 +56530,7 @@ class BoardSelection {
|
|
|
56530
56530
|
};
|
|
56531
56531
|
}
|
|
56532
56532
|
renderItemMbr(context, item, customScale) {
|
|
56533
|
-
const mbr = item.getMbr();
|
|
56533
|
+
const mbr = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
56534
56534
|
mbr.strokeWidth = !customScale ? 1 / context.matrix.scaleX : 1 / customScale;
|
|
56535
56535
|
const selectionColor = item.transformation.isLocked ? conf.SELECTION_LOCKED_COLOR : conf.SELECTION_COLOR;
|
|
56536
56536
|
mbr.borderColor = selectionColor;
|
|
@@ -56587,7 +56587,7 @@ class BoardSelection {
|
|
|
56587
56587
|
path2.setBackgroundColor("none");
|
|
56588
56588
|
path2.render(context);
|
|
56589
56589
|
} else {
|
|
56590
|
-
const itemRect = item.getMbr();
|
|
56590
|
+
const itemRect = item instanceof BaseItem ? item.getWorldMbr() : item.getMbr();
|
|
56591
56591
|
itemRect.borderColor = CONTEXT_NODE_HIGHLIGHT_COLOR;
|
|
56592
56592
|
itemRect.strokeWidth = 2;
|
|
56593
56593
|
itemRect.render(context);
|