本文へ移動

@eightkk/vue-weave / core / parseGraphLayoutMessage

Function: parseGraphLayoutMessage() ​

parseGraphLayoutMessage(value): GraphLayoutWorkerMessage

Defined in: src/core/graphLayoutRequests.ts:490

Checks a layout Worker message received by structured clone (as postMessage delivers it, with Maps) and returns it. Throws Error for an unknown type, a missing requestId or inputKey, entry arrays where Maps are expected, or malformed layout data.

Parameters ​

value ​

unknown

Returns ​

GraphLayoutWorkerMessage

MIT ライセンスで公開しています。