Browse Source

[新增] createIcon,deleteIcon事件

develop
徐振升 4 years ago
parent
commit
0a0fdaadc7
  1. 4
      src/app/working-area/working-area.component.ts

4
src/app/working-area/working-area.component.ts

@ -85,7 +85,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
// 标记
this.canvasData.isChange = true;
});
this.emit('deleteIcon');
}
});
// // 测试代码
@ -305,6 +305,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
enterPaintEndButton
.on('mousedown', event => {
event.stopPropagation();
this.emit('createIcon');
this.backgroundImage.removeChild(event.currentTarget);
this.enterPaint();
});
@ -378,6 +379,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
} else {
this.canvasData.originaleveryStoreyData.data[singleIcon.assetData.Id] = singleIcon.assetData;
}
this.emit('createIcon');
this.canvasData.isChange = true;
break;
case PaintMode.lineIcon:

Loading…
Cancel
Save