This commit is contained in:
fan 2023-08-03 14:21:25 +08:00
commit 9a303f7c2c

View File

@ -437,6 +437,7 @@ export class SectionPointEditPlugin extends GraphicInteractionPlugin<Section> {
onContextMenu(e: FederatedMouseEvent) {
const target = e.target as DisplayObject;
const section = target.getGraphic() as Section;
if (section.datas.sectionType === SectionType.TurnoutPhysical) return;
this.app.updateSelected(section);
const p = section.screenToLocalPoint(e.global);