Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get width(): number | undefined {
assert(this.checkSetUp(), "RoIndexedBufferedGeometryLineAccessor not setup");
if (this.geometryType === GeometryType.ExtrudedLine) {
const start = this.start + this.startCapSize;
const positionArray = this.position.array as Float32Array;
return reconstructLineWidth(positionArray, start);
}
return undefined;
}