@@ -593,7 +593,7 @@ class Tiled3dModelBucket implements Bucket {
593593 hidden : boolean ;
594594 verticalScale : number ;
595595 } | null | undefined {
596- const candidates = [ ] ;
596+ const candidates : number [ ] = [ ] ;
597597
598598 const tmpVertex = [ 0 , 0 , 0 ] ;
599599
@@ -620,7 +620,6 @@ class Tiled3dModelBucket implements Bucket {
620620 const heightValue = mesh . heightmap [ heightmapIndex ] ;
621621 if ( heightValue < 0 && nodeInfo . node . footprint ) {
622622 // unpopulated cell. If it is in the building footprint, return undefined height
623- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
624623 nodeInfo . node . footprint . grid . query ( new Point ( x , y ) , new Point ( x , y ) , candidates ) ;
625624 if ( candidates . length > 0 ) {
626625 // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
@@ -629,8 +628,7 @@ class Tiled3dModelBucket implements Bucket {
629628 continue ;
630629 }
631630 if ( nodeInfo . hiddenByReplacement ) return ; // better luck with the next source
632- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
633- return { height : heightValue , maxHeight : nodeInfo . feature . properties [ "height" ] , hidden : false , verticalScale : nodeInfo . evaluatedScale [ 2 ] } ;
631+ return { height : heightValue , maxHeight : nodeInfo . feature . properties [ "height" ] as number , hidden : false , verticalScale : nodeInfo . evaluatedScale [ 2 ] } ;
634632 }
635633 }
636634}
@@ -669,7 +667,7 @@ function addPBRVertex(vertexArray: FeatureVertexArray, color: number, colorMix:
669667 const emissionMultiplierValueStart = clamp ( heightBasedEmissionMultiplierParams [ 2 ] , 0 , 1 ) ;
670668 const emissionMultiplierValueFinish = clamp ( heightBasedEmissionMultiplierParams [ 3 ] , 0 , 1 ) ;
671669
672- let a3 , b0 , b1 , b2 ;
670+ let a3 : number , b0 : number , b1 : number , b2 : number ;
673671
674672 if ( emissionMultiplierStart !== emissionMultiplierFinish && zMax !== zMin &&
675673 emissionMultiplierFinish !== emissionMultiplierStart ) {
@@ -687,13 +685,11 @@ function addPBRVertex(vertexArray: FeatureVertexArray, color: number, colorMix:
687685 b2 = 1 ;
688686 }
689687
690- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
691688 vertexArray . emplaceBack ( a0 , a1 , a2 , a3 , b0 , b1 , b2 ) ;
692689 if ( lightsFeatureArray ) {
693690 const size = lightsFeatureArray . length ;
694691 lightsFeatureArray . clear ( ) ;
695692 for ( let j = 0 ; j < size ; j ++ ) {
696- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
697693 lightsFeatureArray . emplaceBack ( a0 , a1 , a2 , a3 , b0 , b1 , b2 ) ;
698694 }
699695 }
@@ -708,11 +704,8 @@ function updateNodeFeatureVertices(nodeInfo: Tiled3dModelFeature, doorLightChang
708704 if ( ! mesh . featureData ) continue ;
709705 // initialize featureArray
710706 mesh . featureArray = new FeatureVertexArray ( ) ;
711- // @ts -expect-error - TS2339 - Property 'length' does not exist on type 'ArrayBufferView'.
712- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
713707 mesh . featureArray . reserve ( mesh . featureData . length ) ;
714708 let pendingDoorLightUpdate = doorLightChanged ;
715- // @ts -expect-error - TS2488 - Type 'ArrayBufferView' must have a '[Symbol.iterator]()' method that returns an iterator.
716709 for ( const feature of mesh . featureData ) {
717710 // V1 and V2 tiles have a different bit structure
718711 // In V2, meshopt compression forces to use values less than 2^24 to not lose any information
0 commit comments