|
@@ -206,8 +206,14 @@ export class SPolylineItem extends SGraphItem {
|
|
onDoubleClick(event: SMouseEvent): boolean {
|
|
onDoubleClick(event: SMouseEvent): boolean {
|
|
if (this.status == SItemStatus.Normal) {
|
|
if (this.status == SItemStatus.Normal) {
|
|
this.status = SItemStatus.Edit;
|
|
this.status = SItemStatus.Edit;
|
|
|
|
+ if (this.scene) {
|
|
|
|
+ this.scene.grabItem = this;
|
|
|
|
+ }
|
|
} else if (this.status == SItemStatus.Edit) {
|
|
} else if (this.status == SItemStatus.Edit) {
|
|
this.status = SItemStatus.Normal;
|
|
this.status = SItemStatus.Normal;
|
|
|
|
+ if (this.scene) {
|
|
|
|
+ this.scene.grabItem = null;
|
|
|
|
+ }
|
|
} else if (this.status == SItemStatus.Create) {
|
|
} else if (this.status == SItemStatus.Create) {
|
|
this.status = SItemStatus.Edit;
|
|
this.status = SItemStatus.Edit;
|
|
}
|
|
}
|