UNPKG

@parametricos/bcf-js

Version:

BCF.js is a BIM Collaboration Format (BCF) reader & parser.

42 lines 1.49 kB
import { IViewPoint, ITopic, VisualizationInfo, IHeader } from "./schema"; import { IHelpers } from "./IHelpers"; import { Unzipped } from "fflate"; import { IProject } from "./schema/project"; export default class BcfReader { version: string; bcf_archive: Unzipped | undefined; project: IProject | undefined; markups: Markup[]; helpers: IHelpers; constructor(version: string, helpers: IHelpers); read: (src: string | ArrayBuffer | Uint8Array | Blob) => Promise<void>; getEntry: (name: string) => Uint8Array | undefined; } export declare class Markup { readonly reader: BcfReader; readonly markup_name: string; header: IHeader | undefined; topic: ITopic | undefined; viewpoints: VisualizationInfo[]; constructor(reader: BcfReader, markupName: string); read: () => Promise<void>; private parseMarkup; private parseViewpoints; /** * Parses the png snapshot. * * @returns {string} The image in base64String format. * * @deprecated This function is deprecated and will be removed in the next version.<br> * Please use viewpoint.getSnapshot() instead.<br> * */ getViewpointSnapshot: (viewpoint: VisualizationInfo | IViewPoint) => Promise<string | undefined>; /** * Parses the png snapshot. * * @returns {string} The image in base64String format. */ getSnapshot: (guid: string) => Promise<string | undefined>; } //# sourceMappingURL=BcfReader.d.ts.map