优化子元素变换父元素辅助显示问题

This commit is contained in:
walker 2023-06-15 14:55:01 +08:00
parent 558fb22de3
commit 8762ced5f8

View File

@ -194,18 +194,17 @@ export class CommonMouseTool extends AppInteractionPlugin {
const graphic = this.leftDownTarget.getGraphic();
if (graphic) {
const app = this.app;
console.log(this.leftDownTarget.isGraphic());
// 图形选中
if (!e.ctrlKey && !graphic.selected && graphic.selectable) {
app.updateSelected(graphic);
graphic.childEdit = false;
this.graphicSelect = true;
} else if (
!e.ctrlKey &&
graphic.selected &&
graphic.childEdit &&
this.leftDownTarget.isGraphicChild()
} else if (!e.ctrlKey && graphic.selected && graphic.childEdit) {
if (
this.leftDownTarget.isGraphicChild() &&
this.leftDownTarget.selectable
) {
if (this.leftDownTarget.selectable) {
graphic.setChildSelected(this.leftDownTarget);
} else {
graphic.exitChildEdit();