mirror of https://gitee.com/antv-l7/antv-l7
style: lint style
This commit is contained in:
parent
2043ea9100
commit
a397d0034a
|
@ -131,12 +131,12 @@ export default class LayerService implements ILayerService {
|
|||
|
||||
// 渲染检测
|
||||
private renderTest(renderType: string | undefined): boolean {
|
||||
const now = new Date().getTime()
|
||||
const now = new Date().getTime();
|
||||
const betweenPickRenderTime = now - this.lastPickRenderTime;
|
||||
if(renderType === 'picking') {
|
||||
if (renderType === 'picking') {
|
||||
this.lastPickRenderTime = new Date().getTime();
|
||||
}
|
||||
|
||||
|
||||
// 继续渲染事件
|
||||
if (renderType) {
|
||||
switch (renderType) {
|
||||
|
@ -149,7 +149,7 @@ export default class LayerService implements ILayerService {
|
|||
) {
|
||||
this.lastRenderType = 'picking';
|
||||
// 如果上一次触发的事件在 48 ms 以上,则这一次不放弃触发
|
||||
if(betweenPickRenderTime > 48) {
|
||||
if (betweenPickRenderTime > 48) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
@ -163,9 +163,9 @@ export default class PointTest extends React.Component {
|
|||
.style({
|
||||
opacity: 1.0,
|
||||
})
|
||||
.select(true)
|
||||
// .animate(true)
|
||||
// .active(true);
|
||||
.select(true);
|
||||
// .animate(true)
|
||||
// .active(true);
|
||||
|
||||
scene.on('loaded', () => {
|
||||
scene.addLayer(layer);
|
||||
|
|
Loading…
Reference in New Issue