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 (all sides; base value for per-side overrides).
bleedTopnumberPer-side bleed override (top), in pixels. Inherits bleed when omitted.
bleedRightnumberPer-side bleed override (right), in pixels. Inherits bleed when omitted.
bleedBottomnumberPer-side bleed override (bottom), in pixels. Inherits bleed when omitted.
bleedLeftnumberPer-side bleed override (left), in pixels. Inherits bleed when omitted.
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 (all sides; base value for per-side overrides).",
      "type": "number"
    },
    "bleedTop": {
      "description": "Per-side bleed override (top), in pixels. Inherits `bleed` when omitted.",
      "type": "number"
    },
    "bleedRight": {
      "description": "Per-side bleed override (right), in pixels. Inherits `bleed` when omitted.",
      "type": "number"
    },
    "bleedBottom": {
      "description": "Per-side bleed override (bottom), in pixels. Inherits `bleed` when omitted.",
      "type": "number"
    },
    "bleedLeft": {
      "description": "Per-side bleed override (left), in pixels. Inherits `bleed` when omitted.",
      "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