@plait/core 0.87.0-next.0 → 0.87.0-next.1
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/fesm2022/plait-core.mjs
CHANGED
|
@@ -6213,6 +6213,9 @@ function withMoving(board) {
|
|
|
6213
6213
|
if (isKeyHotkey('option', event)) {
|
|
6214
6214
|
event.preventDefault();
|
|
6215
6215
|
if (startPoint && activeElements.length && !PlaitBoard.hasBeenTextEditing(board)) {
|
|
6216
|
+
if (pendingNodesG) {
|
|
6217
|
+
PlaitBoard.getElementTopHost(board).removeChild(pendingNodesG);
|
|
6218
|
+
}
|
|
6216
6219
|
pendingNodesG = drawPendingNodesG(board, activeElements, offsetX, offsetY);
|
|
6217
6220
|
pendingNodesG && PlaitBoard.getElementTopHost(board).append(pendingNodesG);
|
|
6218
6221
|
}
|
|
@@ -6434,7 +6437,9 @@ function drawPendingNodesG(board, activeElements, offsetX, offsetY) {
|
|
|
6434
6437
|
elements.push(node);
|
|
6435
6438
|
}, () => true);
|
|
6436
6439
|
});
|
|
6437
|
-
elements
|
|
6440
|
+
elements
|
|
6441
|
+
.filter((value) => PlaitElement.hasMounted(value))
|
|
6442
|
+
.forEach((item) => {
|
|
6438
6443
|
let rectangle = board.getRectangle(item);
|
|
6439
6444
|
if (rectangle) {
|
|
6440
6445
|
rectangle = {
|