优化子元素变换父元素辅助显示问题
This commit is contained in:
parent
558fb22de3
commit
8762ced5f8
@ -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()
|
||||
) {
|
||||
if (this.leftDownTarget.selectable) {
|
||||
} else if (!e.ctrlKey && graphic.selected && graphic.childEdit) {
|
||||
if (
|
||||
this.leftDownTarget.isGraphicChild() &&
|
||||
this.leftDownTarget.selectable
|
||||
) {
|
||||
graphic.setChildSelected(this.leftDownTarget);
|
||||
} else {
|
||||
graphic.exitChildEdit();
|
||||
|
Loading…
Reference in New Issue
Block a user