Skip to content

Commit

Permalink
chore: 移除数据翻转&更新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Aug 16, 2021
1 parent fa29817 commit 8864ecb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/l7-draw",
"version": "2.4.12",
"version": "2.4.13",
"scripts": {
"start": "dumi dev",
"docs:build": "dumi build",
Expand Down
2 changes: 1 addition & 1 deletion src/modes/draw_polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down
2 changes: 1 addition & 1 deletion src/modes/draw_ruler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down

0 comments on commit 8864ecb

Please sign in to comment.