优化子元素变换父元素辅助显示问题
This commit is contained in:
parent
558fb22de3
commit
8762ced5f8
@ -194,18 +194,17 @@ export class CommonMouseTool extends AppInteractionPlugin {
|
|||||||
const graphic = this.leftDownTarget.getGraphic();
|
const graphic = this.leftDownTarget.getGraphic();
|
||||||
if (graphic) {
|
if (graphic) {
|
||||||
const app = this.app;
|
const app = this.app;
|
||||||
|
console.log(this.leftDownTarget.isGraphic());
|
||||||
// 图形选中
|
// 图形选中
|
||||||
if (!e.ctrlKey && !graphic.selected && graphic.selectable) {
|
if (!e.ctrlKey && !graphic.selected && graphic.selectable) {
|
||||||
app.updateSelected(graphic);
|
app.updateSelected(graphic);
|
||||||
graphic.childEdit = false;
|
graphic.childEdit = false;
|
||||||
this.graphicSelect = true;
|
this.graphicSelect = true;
|
||||||
} else if (
|
} else if (!e.ctrlKey && graphic.selected && graphic.childEdit) {
|
||||||
!e.ctrlKey &&
|
if (
|
||||||
graphic.selected &&
|
this.leftDownTarget.isGraphicChild() &&
|
||||||
graphic.childEdit &&
|
this.leftDownTarget.selectable
|
||||||
this.leftDownTarget.isGraphicChild()
|
|
||||||
) {
|
) {
|
||||||
if (this.leftDownTarget.selectable) {
|
|
||||||
graphic.setChildSelected(this.leftDownTarget);
|
graphic.setChildSelected(this.leftDownTarget);
|
||||||
} else {
|
} else {
|
||||||
graphic.exitChildEdit();
|
graphic.exitChildEdit();
|
||||||
|
Loading…
Reference in New Issue
Block a user