From 67c5425b67e2c598c07e31c16b0ea38ed6c0a104 Mon Sep 17 00:00:00 2001 From: ival <610568032@qq.com> Date: Thu, 1 Apr 2021 13:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/iscs_new/map.js | 2 +- src/views/test/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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