Skip to content

@graphty/graphty-element / catalog / CameraDescriptor

Interface: CameraDescriptor ​

Defined in: graphty-element/src/catalog/types.ts:818

One camera view: a named way of deciding where the viewer stands and what they look at.

modes is how a view says where it can be used. The five built-in views used to express that by throwing from inside a switch, and a picker cannot read a throw -- so a view unusable in 2D was offered in 2D and failed when chosen. With the modes declared, the element refuses before calling with E_UNSUPPORTED and a picker offers only what will work.

Properties ​

description ​

description: string

Defined in: graphty-element/src/catalog/types.ts:821


id ​

id: CameraId

Defined in: graphty-element/src/catalog/types.ts:819


modes ​

modes: readonly DrawingMode[]

Defined in: graphty-element/src/catalog/types.ts:823

The drawing modes this view can be computed in. The element refuses the others.


options ​

options: readonly OptionDescriptor[]

Defined in: graphty-element/src/catalog/types.ts:824


plainName ​

plainName: string

Defined in: graphty-element/src/catalog/types.ts:820