Design Format
Page
Documentation for the Page type in the Polotno design JSON Schema.
Type Information
Base Type: object
Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the page. |
width | number | "auto" | Page width in pixels or 'auto'. |
height | number | "auto" | Page height in pixels or 'auto'. |
background | string | Background color or image. |
bleed | number | Bleed area in pixels for print. |
custom | unknown | No description provided |
duration | number | Page duration in milliseconds. |
children | Array<Element> | Elements on this page. |
JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the page."
},
"width": {
"default": "auto",
"description": "Page width in pixels or 'auto'.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"const": "auto"
}
]
},
"height": {
"default": "auto",
"description": "Page height in pixels or 'auto'.",
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"const": "auto"
}
]
},
"background": {
"default": "white",
"description": "Background color or image.",
"type": "string"
},
"bleed": {
"default": 0,
"description": "Bleed area in pixels for print.",
"type": "number"
},
"custom": {},
"duration": {
"default": 5000,
"description": "Page duration in milliseconds.",
"type": "number"
},
"children": {
"default": [],
"description": "Elements on this page.",
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
}
},
"required": [
"id"
]
}