@teachinglab/omd 0.7.6 → 0.7.7
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.
|
@@ -127,6 +127,11 @@ export class SelectTool extends Tool {
|
|
|
127
127
|
this.draggedOMDElement = omdElement; // Primary drag target
|
|
128
128
|
this.startPoint = { x: event.x, y: event.y };
|
|
129
129
|
|
|
130
|
+
// Show resize handles if this is the only selected element
|
|
131
|
+
if (this.selectedOMDElements.size === 1) {
|
|
132
|
+
this.resizeHandleManager.selectElement(omdElement);
|
|
133
|
+
}
|
|
134
|
+
|
|
130
135
|
if (this.canvas.eventManager) {
|
|
131
136
|
this.canvas.eventManager.isDrawing = true;
|
|
132
137
|
}
|
|
@@ -903,11 +908,7 @@ export class SelectTool extends Tool {
|
|
|
903
908
|
}
|
|
904
909
|
|
|
905
910
|
// Update resize handles
|
|
906
|
-
|
|
907
|
-
this.resizeHandleManager.selectElement(this.selectedOMDElements.values().next().value);
|
|
908
|
-
} else {
|
|
909
|
-
this.resizeHandleManager.clearSelection();
|
|
910
|
-
}
|
|
911
|
+
this.resizeHandleManager.clearSelection();
|
|
911
912
|
|
|
912
913
|
this._updateSegmentSelectionVisuals();
|
|
913
914
|
}
|