Preview drawing a tile shape
tiled_preview_shapeRasterize a deterministic geometric shape (line, rectangle, ellipse) into tile cells and return a mapEdit change set for preview.
Instructions
Rasterizes one deterministic geometric shape — a Bresenham line, a rectangle outline or fill, or a midpoint ellipse inscribed in its bounding rectangle — into exact tile cells and returns an ordinary mapEdit change set carrying the setTiles writes. Pure bounded computation: no randomness, no clipping (a shape that leaves the map fails closed), at most 10,000 cells, and a null tile erases along the shape. Every preview, revision-pin, and transaction rule applies unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draw | Yes | ||
| tile | Yes | ||
| layerId | Yes | ||
| mapPath | Yes | Canonical project-relative POSIX path; absolute paths and .. are forbidden | |
| expectedMapRevision | Yes | SHA-256 revision returned by a read or preview | |
| expectedDependencyRevisions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |