fix: lint

This commit is contained in:
thinkinggis 2021-04-25 16:24:33 +08:00
parent 2cc1b753c1
commit 8428ab8980
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,5 @@
# L7
.
[![travis ci](https://travis-ci.com/antvis/L7.svg?branch=master)](https://travis-ci.com/antvis/L7) [![](https://flat.badgen.net/npm/v/@antv/l7?icon=npm)](https://www.npmjs.com/package/@antv/l7) ![最近提交](https://badgen.net/github/last-commit/antvis/L7)

View File

@ -11,11 +11,7 @@ import {
lazyInject,
TYPES,
} from '@antv/l7-core';
import {
bBoxToBounds,
extent,
padBounds,
} from '@antv/l7-utils';
import { bBoxToBounds, extent, padBounds } from '@antv/l7-utils';
import {
BBox,
Feature,
@ -181,7 +177,6 @@ export default class Source extends EventEmitter {
];
if (!this.invalidExtent) {
newBounds = padBounds(bBoxToBounds(this.extent), bufferRatio);
}
return newBounds[0].concat(newBounds[1]);
@ -214,8 +209,8 @@ export default class Source extends EventEmitter {
this.data = sourceParser(this.originData, parser);
// 计算范围
this.extent = extent(this.data.dataArray);
this.invalidExtent = this.extent[0]===this.extent[2] || this.extent[1]===this.extent[3]
this.invalidExtent =
this.extent[0] === this.extent[2] || this.extent[1] === this.extent[3];
}
/**
*