Skip to content

Interface: GraphCalc ​

Experimental

Properties ​

PropertyModifierTypeDescription
area?readonlyPlotAreaExperimental The plot area the graph was laid out for, in px (an estimate: see plotAreaOf).
arrangementreadonly| "radial" | "preset" | "force" | "layered" | "tree" | "dendrogram" | "circular" | "grid" | "arc" | "hive" | "custom"Experimental The arrangement that placed the nodes ('circular' when the one asked for is missing).
bundle?readonlyGraphBundleExperimental The bundling of the links (link.bundle), when some are bundled.
clustersreadonlyreadonly LayoutCluster[] | undefinedExperimental
equal?readonlybooleanExperimental The two axes are locked to one scale (units, but for a tidy tree and a dendrogram, which fill the plot area along each axis). Curves and loops are then known in linear coordinates. Unset: as for any computed arrangement.
force?readonlyGraphForceExperimental Set when a force layout placed the nodes.
guides?readonlyGraphGuidesExperimental
hiddenreadonlyUint8ArrayExperimental 1 where the node is not drawn (see the module comment).
hiddenGroupsreadonlyReadonlySet<number>Experimental Group indices hidden through the legend.
labelRule?readonlyLabelRuleExperimental Where the labels of the arrangement have room (node.textposition: 'auto').
layoutKey?readonlystringExperimental A fingerprint of everything the layout read (the graph, its sizes, the given positions and the options): two calcs with the same key have the same positions, whatever else changed.
lengthreadonlynumberExperimental Node count (model.nodes).
modelreadonlyGraphModelExperimental
omitted?readonlyUint8Array<ArrayBufferLike>Experimental 1 for the links that are not drawn at all (both ends on one axis of a hive plot).
pending?readonlyGraphPendingExperimental What this calc waits for (pending.ts): its layout, which runs off the main thread (the nodes are at a cheap placement until it arrives), or the routes of its bundled links (which are straight until then). The view asks for it, and calc runs again when it is there.
presetreadonlybooleanExperimental Positions are the figure's data on the axes (arrangement: 'preset').
real?readonlyRealAxisExperimental The axis that is a real scale under a computed arrangement, if one is.
reversedreadonlyUint8Array<ArrayBufferLike> | undefinedExperimental
routesreadonlyreadonly (LinkRoute | undefined)[] | undefinedExperimental From the layout, by link (see LayoutResult): routed links, reversed links, group frames.
secondary?readonlyUint8Array<ArrayBufferLike>Experimental 1 for the links drawn in the link.secondary style: the links a layered layout turned around to break cycles (reversed), or under a tree arrangement the links that are not tree edges.
tree?readonlyGraphTreeExperimental The tree of a tree arrangement.
units?readonlybooleanExperimental Positions are layout units on both axes (a computed arrangement without a real axis): a unit is a px at the size the graph was laid out for. Unset: as for any computed arrangement.
xreadonlyFloat64ArrayExperimental Node centers in linear coordinates; finite for every node that is drawn.
yreadonlyFloat64ArrayExperimental

Released under the MIT License.