import GLTFBufferView from "./Schema/GLTFBufferView"; import GLTFAccessor from "./Schema/GLTFAccessor"; /** * Base class of ParserModule. * Provides utility for parsing glTF files. */ export default class ParserModuleBase { protected __convertBufferView(ctor: new (buffer: ArrayBuffer, offset: number, count: number) => T, bufferView: ArrayBufferView, bufferViewInfo: GLTFBufferView, accessor: GLTFAccessor): T; protected __fetchBuffer(url: string): Promise; protected __fetchImage(url: string): Promise; protected __asAbsoluteURL(baseDirURL: string, path: string): string; /** * Check provided string being data uri or not. * @param {string} target [description] * @return {boolean} [description] */ protected __isDataUri(target: string): boolean; /** * Get directiory location from specified url * @param {string} url [description] * @return {string} [description] */ protected __getBaseDir(url: string): string; /** * Convert dataURI text to raw text * @param {string} dataUrl [description] * @return {string} [description] */ protected __dataUriToText(dataUrl: string): string; /** * Convert data url string into array buffer * @param {string} dataUri [description] * @return {ArrayBuffer} [description] */ protected __dataUriToArrayBuffer(dataUri: string): ArrayBuffer; /** * Convert data uri into image element * @param {string} dataUrl [description] * @return {Promise} [description] */ protected __dataUriToImage(dataUrl: string): Promise; protected __bufferToString(arr: ArrayBuffer): string; protected __getBufferReader(arr: ArrayBufferView, type?: number, offset?: number, stride?: number): (i: number) => number; private _smallBufferToString(arr); }