@graphty/graphty-element / index / registerCameraView
Function: registerCameraView() ​
registerCameraView(
registration,options?):void
Defined in: graphty-element/src/catalog/cameraRegistry.ts:39
Register a camera view so it can be named wherever a built-in view can.
Parameters ​
registration ​
The descriptor and the pure function that computes the state.
options? ​
Whether a collision with an existing registration throws instead of replacing.
Returns ​
void
Throws ​
A GraphtyError with E_BAD_COMMAND when the registration is malformed, naming the field, or with E_DUPLICATE_PLUGIN when the id is one the element ships.