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
| Capability | camera-grid-layout |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | camera |
| Source | packages/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.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
getLayout | query | yes | admin |
saveLayout | mutation | yes | admin |
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
| Field | Type | Required | Description |
|---|---|---|---|
blockId | string | yes | |
deviceId | number | yes | |
name | string | yes | |
fps | number | yes | |
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
| Field | Type | Required | Description |
|---|---|---|---|
fps | number | no | |
publishedProfiles | ("high" | "mid" | "low")[] | no | Which 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 } })[] | yes | The 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
| Field | Type | Required | Description |
|---|---|---|---|
blockId | string | yes | The grid block (planning#580) whose camera this is. |
deviceId | number | yes | |
name | string | yes | The device row's name — the only name a grid has; it is renamed on the block or the device. |
fps | number | yes | NO 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 })[] | yes | What the catalog will publish, and what it refuses to. Read-only. |
camera-credentials
camera-credentials — device-scoped cap exposing the camera's network + auth surface in a vendor-neutral shape.
camera-pipeline-config
camera-pipeline-config — device-scoped wrapper that carries the pipeline-orchestrator's PER-DEVICE settings contribution into the binding-driven device-detail aggregate.