English
@eightkk/vue-weave / core / fromDrawioAsync
Function: fromDrawioAsync()
fromDrawioAsync(
xml,options?):Promise<GraphInterchangeImport>
Defined in: src/core/interchangeDrawio.ts:554
fromDrawio that also reads compressed pages (the default of draw.io files): the page text is base64, raw deflate and URI encoding, inflated with the standard DecompressionStream('deflate-raw') of browsers, workers and Node.js (an Error where the runtime has none). options.maxInflatedLength (default 20,000,000 characters) bounds the inflated text; beyond it the promise rejects with a RangeError. Rejects with the Errors of fromDrawio otherwise, and with an Error for text that is not base64, deflate or URI-encoded XML of an mxGraphModel.
Parameters
xml
string
options?
Returns
Promise<GraphInterchangeImport>