@realsee/five
Version:
Realsee Renderer SDK
16 lines (15 loc) • 871 B
TypeScript
import { GL_TYPE, TypedArray } from './gl-type';
export declare class FeatureTable {
json: Record<string, any>;
buffer: Uint8Array;
featuresLength: number;
private cachedTypedArrays;
constructor(featureTableJson: Record<string, any>, featureTableBinary: Uint8Array);
getExtension(extensionName: string): any;
hasProperty(propertyName: string): boolean;
getGlobalProperty<T extends GL_TYPE>(propertyName: string, componentType: T, componentLength: number): TypedArray<T> | null;
getPropertyArray<T extends GL_TYPE>(propertyName: string, componentType: T, componentLength: number): TypedArray<T>;
getProperty<T extends GL_TYPE>(propertyName: string, componentType: T, componentLength: number, featureId: number, result: TypedArray<T>): TypedArray<T> | null;
private getTypedArrayFromBinary;
private getTypedArrayFromArray;
}