Skip to content

Documentation / @expofp/schema / CameraSchema

Variable: CameraSchema

ts
const CameraSchema: ZodObject<{
  bearing: ZodOptional<ZodNumber>;
  floor: ZodOptional<ZodString>;
  lat: ZodOptional<ZodNumber>;
  lng: ZodOptional<ZodNumber>;
  x: ZodOptional<ZodNumber>;
  y: ZodOptional<ZodNumber>;
  zoomTime: ZodOptional<ZodNumber>;
}, $strip>;

A camera move request — the argument of FloorPlan.setCamera and the setCamera intent. Every field is optional with partial-merge semantics: only the fields present change the view, omitted ones keep their current values. x/y (floor-plan projected coordinates) and lat/lng (the GPS alternative) are pairs — a center moves only when both halves of a pair are given.