修改代码

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: case orders.DELETE:
oldShape = this.$shapeFactory.removeShape(shape); oldShape = this.$shapeFactory.removeShape(shape);
deps.forEach(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); this.$painter.remove(shape);
}); });
break; break;

View File

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