修改代码

This commit is contained in:
ival 2021-04-01 13:05:46 +08:00
parent a56598888d
commit 67c5425b67
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ class JMap {
case orders.DELETE:
oldShape = this.$shapeFactory.removeShape(shape);
deps.forEach(shape => {
this.$shapeFactory.updateSource(shape.model, {...action, shapeType: shapeType.Element});
this.$shapeFactory.updateSource(shape.model, {...action, shapeType: shape.option.shapeType});
this.$painter.remove(shape);
});
break;

View File

@ -79,8 +79,8 @@ export default {
this.$iscs = new Iscs({
dom: document.getElementById(this.iscsId),
draw: true,
config: {
draw: true,
renderer: 'canvas',
width: this.width,
height: this.height