Page
Documentation for the Page schema definition in the Polotno Design JSON Schema.
Page
Type Information
Base Type: object
Properties
Property | Type | Description |
---|---|---|
background | string | Background color or image. |
bleed | number | Bleed area in pixels for print. |
children | Array<Element > | Elements on this page. |
custom | unknown | Custom data attached to the page. |
duration | number | Page duration in milliseconds for animations. |
height | number | "auto" | Page height in pixels or 'auto' to inherit from store. |
id | string | Unique identifier for the page. |
width | number | "auto" | Page width in pixels or 'auto' to inherit from store. |
JSON Schema
{
"additionalProperties": false,
"properties": {
"background": {
"description": "Background color or image.",
"type": "string"
},
"bleed": {
"description": "Bleed area in pixels for print.",
"type": "number"
},
"children": {
"description": "Elements on this page.",
"items": {
"$ref": "#/definitions/Element"
},
"type": "array"
},
"custom": {
"description": "Custom data attached to the page."
},
"duration": {
"description": "Page duration in milliseconds for animations.",
"type": "number"
},
"height": {
"anyOf": [
{
"type": "number"
},
{
"const": "auto",
"type": "string"
}
],
"description": "Page height in pixels or 'auto' to inherit from store."
},
"id": {
"description": "Unique identifier for the page.",
"type": "string"
},
"width": {
"anyOf": [
{
"type": "number"
},
{
"const": "auto",
"type": "string"
}
],
"description": "Page width in pixels or 'auto' to inherit from store."
}
},
"required": [
"id",
"width",
"height",
"background",
"bleed",
"duration",
"children"
],
"type": "object"
}