UNPKG

@xeokit/xeokit-convert

Version:

JavaScript utilities to create .XKT files

14 lines (13 loc) 565 B
/** * Writes an {@link XKTModel} to an {@link ArrayBuffer}. * * @param {XKTModel} xktModel The {@link XKTModel}. * @param {String} metaModelJSON The metamodel JSON in a string. * @param {Object} [stats] Collects statistics. * @param {Object} options Options for how the XKT is written. * @param {Boolean} [options.zip=true] ZIP the contents? * @returns {ArrayBuffer} The {@link ArrayBuffer}. */ export function writeXKTModelToArrayBuffer(xktModel: XKTModel, metaModelJSON: string, stats?: Object, options: { zip?: boolean | undefined; }): ArrayBuffer;