@@ -201,8 +201,8 @@ export function rebuildGeometry(
201
201
const newNumericProps : NumericProps = { } ;
202
202
const numericPropKeys = Object . keys ( numericProps ) ;
203
203
for ( const prop of numericPropKeys ) {
204
- const size = numericProps [ prop ] . size || 1 ;
205
- newNumericProps [ prop ] = { value : new Float32Array ( newN ) , size} ;
204
+ const propSize = numericProps [ prop ] . size || 1 ;
205
+ newNumericProps [ prop ] = { value : new Float32Array ( newN ) , size : propSize } ;
206
206
}
207
207
208
208
// Properties are per-line.
@@ -224,9 +224,12 @@ export function rebuildGeometry(
224
224
225
225
for ( const prop of numericPropKeys ) {
226
226
const { value : originalValue } = originalGeometry . numericProps [ prop ] ;
227
- const { value, size} = newNumericProps [ prop ] ;
228
- const dataSlice = originalValue . subarray ( srcIndex * size , ( srcIndex + numVertices ) * size ) ;
229
- value . set ( dataSlice , dst * size ) ;
227
+ const { value, size : propSize } = newNumericProps [ prop ] ;
228
+ const dataSlice = originalValue . subarray (
229
+ srcIndex * propSize ,
230
+ ( srcIndex + numVertices ) * propSize
231
+ ) ;
232
+ value . set ( dataSlice , dst * propSize ) ;
230
233
}
231
234
dst += numVertices ;
232
235
}
@@ -266,7 +269,7 @@ export function transformTrajectoryData(
266
269
}
267
270
268
271
// Step 1: Extract trajectory and timestamp data
269
- const { tripIds, timestamps, properties } = extractTrajectoryData (
272
+ const { tripIds, timestamps} = extractTrajectoryData (
270
273
geometry ,
271
274
trajectoryIdColumn ,
272
275
timestampColumn ,
0 commit comments