UNPKG

@itwin/core-frontend

Version:
20 lines 949 B
/** @packageDocumentation * @module Tiles */ import { RenderSchedule } from "@itwin/core-common"; import { ImdlModel } from "../../common/imdl/ImdlModel"; import { ImdlParseError, ImdlParserOptions } from "../../common/imdl/ParseImdlDocument"; /** Parses binary iMdl content into an [[ImdlModel.Document]]. * @internal */ export interface ParseImdlWorker { /** The [[ImdlTimeline]] to be applied to the document's nodes. This must be called no more than once. It should be called before * any call to [[parse]]. */ setTimeline(timeline: RenderSchedule.ScriptProps | RenderSchedule.ModelTimelineProps): void; /** Parse the binary content into a document. * @note The [[Uint8Array]] containing the binary data is transferred from the caller to the worker - it will become unusable for the caller. */ parse(options: ImdlParserOptions): ImdlModel.Document | ImdlParseError; } //# sourceMappingURL=Worker.d.ts.map