From 8864ecbf7b291725fbc343fab9a075e47796e712 Mon Sep 17 00:00:00 2001 From: lzxue Date: Mon, 16 Aug 2021 14:38:11 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BF=BB=E8=BD=AC&=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modes/draw_polygon.ts | 2 +- src/modes/draw_ruler.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 34d795b..70e9398 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-draw", - "version": "2.4.12", + "version": "2.4.13", "scripts": { "start": "dumi dev", "docs:build": "dumi build", diff --git a/src/modes/draw_polygon.ts b/src/modes/draw_polygon.ts index 2712445..0e0cad4 100644 --- a/src/modes/draw_polygon.ts +++ b/src/modes/draw_polygon.ts @@ -87,7 +87,7 @@ export default class DrawPolygon extends DrawFeature implements IMeasureable { public drawFinish(e?: any) { // debugger - this.points = this.points.reverse(); + // this.points = this.points.reverse(); const feature = this.createFeature([...this.points]); const properties = feature.properties as { pointFeatures: Feature[] }; this.drawLayer.update(featureCollection([feature])); diff --git a/src/modes/draw_ruler.ts b/src/modes/draw_ruler.ts index 03009f7..1136650 100644 --- a/src/modes/draw_ruler.ts +++ b/src/modes/draw_ruler.ts @@ -75,7 +75,7 @@ export default class DrawRuler extends DrawPolygon { } } - this.points = this.points.reverse(); + // this.points = this.points.reverse(); const feature = this.createFeature([...this.points]); const properties = feature.properties as { pointFeatures: Feature[] }; this.drawLayer.update(featureCollection([feature]));