mirror of https://gitee.com/antv-l7/antv-l7
fix: lint
This commit is contained in:
parent
2cc1b753c1
commit
8428ab8980
|
@ -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)
|
||||
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
/**
|
||||
* 数据统计
|
||||
|
|
Loading…
Reference in New Issue