MCPcopy Create free account
hub / github.com/microsoft/SandDance / layout

Function layout

docs/app/js/sanddance-app.js:137200–137204  ·  view source on GitHub ↗

* Tree layout generator. Supports both 'tidy' and 'cluster' layouts.

(method)

Source from the content-addressed store, hash-verified

137198 /**
137199 * Tree layout generator. Supports both 'tidy' and 'cluster' layouts.
137200 */ layout (method) {
137201 const m = method || "tidy";
137202 if ((0, _vegaUtil.hasOwnProperty)(Layouts, m)) return Layouts[m]();
137203 else (0, _vegaUtil.error)("Unrecognized Tree layout method: " + m);
137204 },
137205 params: [
137206 "size",
137207 "nodeSize"

Callers 1

transformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected