diff --git a/src/iscs_new/map.js b/src/iscs_new/map.js index 1cd106212..8998899bf 100644 --- a/src/iscs_new/map.js +++ b/src/iscs_new/map.js @@ -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; diff --git a/src/views/test/index.vue b/src/views/test/index.vue index 6db3a4ce5..339484a4b 100644 --- a/src/views/test/index.vue +++ b/src/views/test/index.vue @@ -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