Polotno
Design Format

Page

Documentation for the Page type in the Polotno design JSON Schema.

Type Information

Base Type: object

Properties

PropertyTypeDescription
idstringUnique identifier for the page.
widthnumber | "auto"Page width in pixels or 'auto'.
heightnumber | "auto"Page height in pixels or 'auto'.
backgroundstringBackground color or image.
bleednumberBleed area in pixels for print.
customunknownNo description provided
durationnumberPage duration in milliseconds.
childrenArray<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"
  ]
}

On this page