style: lint style

This commit is contained in:
2912401452 2022-01-13 15:28:38 +08:00
parent 1cfefa4b89
commit 2a20cd4c23
3 changed files with 5 additions and 8 deletions

View File

@ -95,7 +95,6 @@ export default class SimpleLineModel extends BaseModel {
}
public buildModels(): IModel[] {
return [
this.layer.buildLayerModel({
moduleName: 'line',
@ -109,7 +108,7 @@ export default class SimpleLineModel extends BaseModel {
];
}
protected registerBuiltinAttributes() {
let c = 0
const c = 0;
this.styleAttributeService.registerStyleAttribute({
name: 'distance',
type: AttributeType.Attribute,

View File

@ -514,7 +514,7 @@ export default class ExtrudePolyline {
this.started = true;
// if the end cap is type square, we can just push the verts out a bit
this.extrusions(
positions,
normals,
@ -523,14 +523,13 @@ export default class ExtrudePolyline {
this.thickness,
this.totalDistance - segmentDistance,
);
}
indices.push(index + 0, index + 1, index + 2);
if (!next) {
computeNormal(this.normal, lineA);
this.extrusions(
positions,
normals,
@ -539,7 +538,6 @@ export default class ExtrudePolyline {
this.thickness,
this.totalDistance,
);
// this.extrusions(positions, normals, cur, this.normal, this.thickness);
indices.push(
@ -591,7 +589,7 @@ export default class ExtrudePolyline {
// the miter is now the normal for our next join
vec2.copy(this.normal, miter);
count += 2;
this.lastFlip = flip;
}
return count;

View File

@ -301,7 +301,7 @@ export default class GridTile2 extends React.Component {
vertexHeightScale: 2000,
// opacity: 0.4,
sourceColor: '#f00',
targetColor: '#0f0',
targetColor: '#0f0',
});
scene.addLayer(layer);
};