# Floor Plan: Drawn From the Data: Diagram element for AI agents

> Draws the floor plan from room rectangles in metres (from property.json), wall by wall, labels each room with its size, then fills one room in the highlight colour.

Canonical page: https://agentframes.ai/elements/signboard/floor-plan/
Markdown: https://agentframes.ai/elements/signboard/floor-plan.md

## Overview

- Name: Floor Plan: Drawn From the Data (`floorPlan`), an element: one HyperFrames block per size
- Part of: the [Signboard](https://agentframes.ai/packs/signboard.md) pack (22 of 50). Available only through the All-access subscription.
- Category: Diagram
- Purpose: Draws the floor plan from room rectangles in metres (from property.json), wall by wall, labels each room with its size, then fills one room in the highlight colour.
- Pack: [Signboard](https://agentframes.ai/packs/signboard.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly); this pack is Coming soon
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on Teal and coral (`teal`), Navy and gold (`navy`), Charcoal and lime (`charcoal`); avoid none
- Typical duration: 6s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/signboard/floor-plan.mp4
- Poster: https://agentframes.ai/media/signboard/floor-plan.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Signboard pack. Add a `floorPlan` beat to plan.json on a `teal` canvas with slots `title`, `total`, `rooms` and `highlight` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `title` | string | title | {"type":"string","minLength":1,"maxLength":30} | Ground floor |
| `total` | string | total | {"type":"string","minLength":0,"maxLength":40} | 112 m² across three floors |
| `rooms` | string | rooms | JSON string. {"type":"array","minItems":2,"maxItems":8,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":18},"x":{"type":"number","minimum":0,"maximum":40},"y":{"type":"number","minimum":0,"maximum":40},"w":{"type":"number","minimum":1,"maximum":30},"h":{"type":"number","minimum":1,"maximum":30}},"required":["name","x","y","w","h"]}} | [{"name":"Living room","x":0,"y":0,"w":4.4,"h":4.6},{"name":"Kitchen / diner","x":4.4,"y":0,"w":4.2,"h":4.6},{"name":"Hall","x":0,"y":4.6,"w":2.6,"h":2.4},{"name":"Snug","x":2.6,"y":4.6,"w":3.2,"h":2.4},{"name":"WC","x":5.8,"y":4.6,"w":2.8,"h":2.4}] |
| `highlight` | number | highlight | {"type":"integer","minimum":-1,"maximum":7} | 1 |

## What your agent can change

**Floor Plan: Drawn From the Data**. Native 1920×1080, 6s at 30fps.

Draws the floor plan from room rectangles in metres (from property.json), wall by wall, labels each room with its size, then fills one room in the highlight colour.

**Motion.** The white slab fades in; each room's walls draw on (ease in-out, 0.08 s apart); room names and areas rise; the highlighted room floods with the board colour.
**Why it moves.** change: drawing the walls builds the house in front of the viewer, and the flood picks out the room the agent is talking about.

### Mount

Copy every manifest file into your project (plus `af-signboard-runtime`). Mount with a unique host id, `data-composition-id="af-signboard-floor-plan-16x9"`,
`data-composition-src="compositions/af-signboard-floor-plan-16x9.html"`, `data-duration="6"` and `data-variable-values`.
Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.

### Content slots

Nested slots are JSON strings. Every slot is checked against `constraints.json` and measured against the layout before anything
draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).

- `title` (required): {"type":"string","minLength":1,"maxLength":30}
- `total`: {"type":"string","minLength":0,"maxLength":40}
- `rooms` (required): {"type":"array","minItems":2,"maxItems":8,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":18},"x":{"type":"number","minimum":0,"maximum":40},"y":{"type":"number","minimum":0,"maximum":40},"w":{"type":"number","minimum":1,"maximum":30},"h":{"type":"number","minimum":1,"maximum":30}},"required":["name","x","y","w","h"]}}
- `highlight`: {"type":"integer","minimum":-1,"maximum":7}

- Rooms are rectangles in metres from the top-left corner; the plan is scaled to fit each size. Each room shows its area (w × h). `highlight` is the 0-based room to fill; -1 for none.
- A room too small to label in a size is refused with a message (merge it into its neighbour or label it on another floor).

Style: `colourway` (teal, navy, charcoal), `brandColour` and `accent` (optional hex), `agency`, `footer`, `exit` (lift or cut).

### Timing

6s. Everything has landed by 3.6s (60%), then the scene holds still for reading and the graphics lift away over the last 0.4 s, leaving the photo or your footage.

### Example

```json
{
  "title": "Ground floor",
  "total": "112 m² across three floors",
  "rooms": "[{\"name\":\"Living room\",\"x\":0,\"y\":0,\"w\":4.4,\"h\":4.6},{\"name\":\"Kitchen / diner\",\"x\":4.4,\"y\":0,\"w\":4.2,\"h\":4.6},{\"name\":\"Hall\",\"x\":0,\"y\":4.6,\"w\":2.6,\"h\":2.4},{\"name\":\"Snug\",\"x\":2.6,\"y\":4.6,\"w\":3.2,\"h\":2.4},{\"name\":\"WC\",\"x\":5.8,\"y\":4.6,\"w\":2.8,\"h\":2.4}]",
  "highlight": 1
}
```

## FAQ

### What can my AI agent change in Floor Plan: Drawn From the Data?

Your agent fills the `title`, `total`, `rooms` and `highlight` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Signboard look.

### Which aspect ratios does Floor Plan: Drawn From the Data support?

Floor Plan: Drawn From the Data is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 6s.

### How do I get Floor Plan: Drawn From the Data?

Floor Plan: Drawn From the Data is included in the Signboard pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

## More in Signboard

- [Room Pop-Out From the Plan](https://agentframes.ai/elements/signboard/room-pop-out.md): A small floor plan draws, one room is filled, and that room grows out of the plan into its photo with its name and size.
- [Area Map: Pin and Distances](https://agentframes.ai/elements/signboard/area-map.md): The neighbourhood: a stylised street map (drawn in code, not a real map) fades on, the pin drops on the area with its name, and two to five nearby places arrive as chips with walking or driving times.
- [Distance Chips](https://agentframes.ai/elements/signboard/distance-chips.md): A title and up to five travel-time chips over a photo, each led by its icon.
- [Neighbourhood Highlights](https://agentframes.ai/elements/signboard/area-highlights.md): Three photo tiles of the area rise into place under a title, each with its label.

## Community

Coming soon.
