Fix linter errors

This commit is contained in:
Fuhrmann 2025-03-07 10:20:23 +01:00
parent 635d9b6292
commit 69666137ed
6 changed files with 9 additions and 204 deletions

View file

@ -74,7 +74,7 @@ export function buildClippingplanes(
const edgeMeshMap = {} as Partial<EdgeMashMap>;
// Create plane meshes
for (let p of planesData) {
for (const p of planesData) {
let name;
let planeCenter;
let width;
@ -461,7 +461,7 @@ function generateCapMeshes(
const capMeshes: Mesh[] = [];
// Iterate over the list of geologic meshes
for (let mesh of meshes) {
for (const mesh of meshes) {
// Slice visible meshes only
if (mesh.visible) {
const position = mesh.geometry.attributes.position.array;
@ -611,7 +611,7 @@ function triangulatePolygon(vertices: Vector3[], plane: Plane) {
// Construct the local 2D coordinate system
const N = plane.normal.clone().normalize(); // Plane normal
let T = new Vector3(1, 0, 0); // Temporary vector for tangent
const T = new Vector3(1, 0, 0); // Temporary vector for tangent
// Ensure T is not parallel to N
if (Math.abs(N.dot(T)) > 0.9) {

View file

@ -50,7 +50,7 @@ export function buildCoordinateGrid(extent: Extent) {
}
const annotations = [];
for (let point of startingPointsHorizontal) {
for (const point of startingPointsHorizontal) {
const label = createLabel(
`${point.x.toFixed(2)}`,
point,
@ -59,7 +59,7 @@ export function buildCoordinateGrid(extent: Extent) {
annotations.push(label);
}
for (let point of startingPointsVertical) {
for (const point of startingPointsVertical) {
const label = createLabel(
`${point.y.toFixed(2)}`,
point,

View file

@ -32,7 +32,7 @@ export function unpackVertices(arrayBuffer: ArrayBuffer) {
ptr += FOURBYTE;
significantBits = readSignificantBits(dataView, ptr, bytesCount);
let value = 0.0;
for (var j = dim, i = 0; i < pointsCount; j += DIMENSIONS, i++) {
for (let j = dim, i = 0; i < pointsCount; j += DIMENSIONS, i++) {
value = significantBits.readBits(significantBitsCount, 0) | commonBits;
if (dim === 2) {
value = value / 100; // z values in pc_patch from DB are multiplied by 100