Dominevo
ReferenceDevice capabilities

camera-grid-layout

camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own page.

camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own page.

At a glance

Capabilitycamera-grid-layout
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typescamera
Sourcepackages/types/src/capabilities/camera-grid-layout.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
getLayoutqueryyesadmin
saveLayoutmutationyesadmin

getLayout

query

The grid behind this device.

null means ANSWERED and this camera is not a grid — not "not yet known". The widget renders its "this is not a grid camera" state only from this answer, never from an unresolved query.

Input

No fields besides deviceId.

Output

FieldTypeRequiredDescription
blockIdstringyes
deviceIdnumberyes
namestringyes
fpsnumberyes
cells({ deviceId: number; source: { x: number; y: number; width: number; height: number }; cell: { x: number; y: number; width: number; height: number } })[]yes
profiles({ profile: "high" | "mid" | "low"; offered: boolean; missingSources: number[]; canvas: string; published: boolean })[]yes

saveLayout

mutation

Write the geometry back. Returns the grid as it now stands, profiles included.

Input

FieldTypeRequiredDescription
fpsnumberno
publishedProfiles("high" | "mid" | "low")[]noWhich profiles to publish. See GridProfileOffer.published.
cells({ deviceId: number; source: { x: number; y: number; width: number; height: number }; cell: { x: number; y: number; width: number; height: number } })[]yesThe whole cell list at once. A per-cell patch would need an ordering the editor does not have, and a half-applied layout is a picture nobody asked for.

Output

FieldTypeRequiredDescription
blockIdstringyesThe grid block (planning#580) whose camera this is.
deviceIdnumberyes
namestringyesThe device row's name — the only name a grid has; it is renamed on the block or the device.
fpsnumberyesNO canvas size. A grid's resolution is not authored: each profile derives its own from the cells and its sources' dimensions.
cells({ deviceId: number; source: { x: number; y: number; width: number; height: number }; cell: { x: number; y: number; width: number; height: number } })[]yes
profiles({ profile: "high" | "mid" | "low"; offered: boolean; missingSources: number[]; canvas: string; published: boolean })[]yesWhat the catalog will publish, and what it refuses to. Read-only.