@sequent-org/moodboard 1.0.14 → 1.0.15
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/package.json
CHANGED
|
@@ -524,7 +524,7 @@ export class SelectTool extends BaseTool {
|
|
|
524
524
|
const point = new PIXI.Point(x, y);
|
|
525
525
|
|
|
526
526
|
// Сначала ищем в контейнере ручек (приоритет)
|
|
527
|
-
if (this.resizeHandles.container.visible) {
|
|
527
|
+
if (this.resizeHandles.container && this.resizeHandles.container.visible) {
|
|
528
528
|
for (let i = this.resizeHandles.container.children.length - 1; i >= 0; i--) {
|
|
529
529
|
const child = this.resizeHandles.container.children[i];
|
|
530
530
|
|
|
@@ -551,7 +551,7 @@ export class SelectTool extends BaseTool {
|
|
|
551
551
|
const stage = this.resizeHandles.app.stage;
|
|
552
552
|
for (let i = stage.children.length - 1; i >= 0; i--) {
|
|
553
553
|
const child = stage.children[i];
|
|
554
|
-
if (child !== this.resizeHandles.container && child.containsPoint && child.containsPoint(point)) {
|
|
554
|
+
if (this.resizeHandles.container && child !== this.resizeHandles.container && child.containsPoint && child.containsPoint(point)) {
|
|
555
555
|
|
|
556
556
|
return child;
|
|
557
557
|
}
|
|
@@ -1164,6 +1164,11 @@ export class SelectTool extends BaseTool {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
1166
|
clearSelection() {
|
|
1167
|
+
// Проверяем, что инструмент не уничтожен
|
|
1168
|
+
if (this.destroyed) {
|
|
1169
|
+
return;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1167
1172
|
const objects = this.selection.toArray();
|
|
1168
1173
|
this.selection.clear();
|
|
1169
1174
|
this.emit(Events.Tool.SelectionClear, { objects });
|
|
@@ -1213,6 +1218,11 @@ export class SelectTool extends BaseTool {
|
|
|
1213
1218
|
* Обновление ручек изменения размера
|
|
1214
1219
|
*/
|
|
1215
1220
|
updateResizeHandles() {
|
|
1221
|
+
// Проверяем, что инструмент не уничтожен
|
|
1222
|
+
if (this.destroyed) {
|
|
1223
|
+
return;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1216
1226
|
// Используем HTML-ручки (HtmlHandlesLayer). Прячем Pixi-ручки и групповые графики.
|
|
1217
1227
|
try {
|
|
1218
1228
|
if (this.resizeHandles && typeof this.resizeHandles.hideHandles === 'function') {
|