forge-svf-utils
Version:
Utilities for working with Autodesk Forge SVF file format.
30 lines • 1.12 kB
TypeScript
/// <reference types="node" />
/**
* Helper class for parsing and querying property database
* stored in various 'objects_*.json.gz' assets in an SVF.
*/
export declare class PropDbReader {
protected _ids: number[];
protected _offsets: number[];
protected _avs: number[];
protected _attrs: any[];
protected _vals: any[];
/**
* Initializes the property database reader.
* @param {Buffer} ids Content of objects_ids.json.gz file.
* @param {Buffer} offsets Content of objects_offs.json.gz file.
* @param {Buffer} avs Content of objects_avs.json.gz file.
* @param {Buffer} attrs Content of objects_attrs.json.gz file.
* @param {Buffer} vals Content of objects_vals.json.gz file.
*/
constructor(ids: Buffer, offsets: Buffer, avs: Buffer, attrs: Buffer, vals: Buffer);
/**
* Finds properties of given object.
* @param {number} id Object ID.
* @returns {{ [name: string]: any }} Dictionary of property names and values.
*/
findProperties(id: number): {
[name: string]: any;
};
}
//# sourceMappingURL=propdb-reader.d.ts.map