style: lint style

This commit is contained in:
2912401452 2021-09-18 17:00:25 +08:00
parent 2043ea9100
commit a397d0034a
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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);