Skip to content

@graphty/graphty-element / index / SnapshotLayoutRegistration

Interface: SnapshotLayoutRegistration ​

Defined in: graphty-element/src/layout/SnapshotLayoutEngine.ts:90

A layout on the snapshot contract: a descriptor, and a function from the graph to coordinates.

Properties ​

compute ​

readonly compute: (input) => SnapshotLayoutAnswer

Defined in: graphty-element/src/layout/SnapshotLayoutEngine.ts:97

Arrange the graph.

Parameters ​

input ​

SnapshotLayoutInput

Returns ​

SnapshotLayoutAnswer


descriptor ​

readonly descriptor: AuthoredLayoutDescriptor & object

Defined in: graphty-element/src/layout/SnapshotLayoutEngine.ts:95

What the catalogue publishes. honoursWeights and scoped are declared here, since there is no class to carry them as statics.

Type Declaration ​

honoursWeights? ​

readonly optional honoursWeights?: boolean

scoped? ​

readonly optional scoped?: boolean