@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
21 lines (20 loc) • 689 B
TypeScript
import { BufferGeometry } from 'three';
export interface JsonDataLoaderOptions {
dataKeysPrefix?: string;
skipEntries?: string;
doConvert?: boolean;
convertToNumeric?: string;
}
export declare class JSONDataParser {
private _json;
private _attribute_datas_by_name;
private _options;
constructor(options?: JsonDataLoaderOptions);
dataKeysPrefix(): string | undefined;
get_prefixed_json(json: any, prefixes: string[]): any[];
setJSON(json: any): any;
createObject(): BufferGeometry<import("three").NormalBufferAttributes>;
private _find_attributes;
private _attribute_values_for_name;
_value_has_subentries(value: any): boolean;
}