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 {
|
private renderTest(renderType: string | undefined): boolean {
|
||||||
const now = new Date().getTime()
|
const now = new Date().getTime();
|
||||||
const betweenPickRenderTime = now - this.lastPickRenderTime;
|
const betweenPickRenderTime = now - this.lastPickRenderTime;
|
||||||
if(renderType === 'picking') {
|
if (renderType === 'picking') {
|
||||||
this.lastPickRenderTime = new Date().getTime();
|
this.lastPickRenderTime = new Date().getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 继续渲染事件
|
// 继续渲染事件
|
||||||
if (renderType) {
|
if (renderType) {
|
||||||
switch (renderType) {
|
switch (renderType) {
|
||||||
|
@ -149,7 +149,7 @@ export default class LayerService implements ILayerService {
|
||||||
) {
|
) {
|
||||||
this.lastRenderType = 'picking';
|
this.lastRenderType = 'picking';
|
||||||
// 如果上一次触发的事件在 48 ms 以上,则这一次不放弃触发
|
// 如果上一次触发的事件在 48 ms 以上,则这一次不放弃触发
|
||||||
if(betweenPickRenderTime > 48) {
|
if (betweenPickRenderTime > 48) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -163,9 +163,9 @@ export default class PointTest extends React.Component {
|
||||||
.style({
|
.style({
|
||||||
opacity: 1.0,
|
opacity: 1.0,
|
||||||
})
|
})
|
||||||
.select(true)
|
.select(true);
|
||||||
// .animate(true)
|
// .animate(true)
|
||||||
// .active(true);
|
// .active(true);
|
||||||
|
|
||||||
scene.on('loaded', () => {
|
scene.on('loaded', () => {
|
||||||
scene.addLayer(layer);
|
scene.addLayer(layer);
|
||||||
|
|
Loading…
Reference in New Issue