@graphty/graphty-element / index / registerSnapshotLayout
Function: registerSnapshotLayout() ​
registerSnapshotLayout(
registration):void
Defined in: graphty-element/src/layout/SnapshotLayoutEngine.ts:406
Register a layout on the snapshot contract: the element builds its engine from the registration, publishes the descriptor to the catalogue and answers setLayout(descriptor.id).
Parameters ​
registration ​
the descriptor and the compute function
Returns ​
void
Throws ​
what LayoutEngine.register throws for a missing, mismatched or taken name