@graphty/graphty-element / extend / CameraViewRegistration
Interface: CameraViewRegistration ​
Defined in: graphty-element/src/camera/types.ts:130
A camera view as it is registered: what the catalogue publishes about it, and the one pure function that decides where the viewer stands.
compute is synchronous and total. The element calls it inside an operation it may animate, queue or cancel, and all of that belongs to the apply rather than to the view -- so a view that wanted to be asynchronous would be asking for a second animation model beside the one the element already has.
Properties ​
compute ​
readonlycompute: (input) =>CameraState
Defined in: graphty-element/src/camera/types.ts:132
Parameters ​
input ​
Returns ​
descriptor ​
readonlydescriptor:CameraDescriptor
Defined in: graphty-element/src/camera/types.ts:131