Polotno Docs

Store

Documentation for the Store schema definition in the Polotno Design JSON Schema.

Store

Type Information

Base Type: object

Properties

PropertyTypeDescription
audiosArray<Audio>Audio tracks in the design.
customunknownCustom data attached to the design.
dpinumberDots per inch for print calculations.
fontsArray<Font>Fonts used in the design.
heightnumberCanvas height in pixels.
pagesArray<Page>Pages in the design.
schemaVersionnumberSchema version for compatibility checking.
unit"px" | "pt" | "mm" | "in"Unit type for measurements.
widthnumberCanvas width in pixels.

JSON Schema

{
  "additionalProperties": false,
  "properties": {
    "audios": {
      "description": "Audio tracks in the design.",
      "items": {
        "$ref": "#/definitions/Audio"
      },
      "type": "array"
    },
    "custom": {
      "description": "Custom data attached to the design."
    },
    "dpi": {
      "description": "Dots per inch for print calculations.",
      "type": "number"
    },
    "fonts": {
      "description": "Fonts used in the design.",
      "items": {
        "$ref": "#/definitions/Font"
      },
      "type": "array"
    },
    "height": {
      "description": "Canvas height in pixels.",
      "type": "number"
    },
    "pages": {
      "description": "Pages in the design.",
      "items": {
        "$ref": "#/definitions/Page"
      },
      "type": "array"
    },
    "schemaVersion": {
      "description": "Schema version for compatibility checking.",
      "type": "number"
    },
    "unit": {
      "description": "Unit type for measurements.",
      "enum": [
        "px",
        "pt",
        "mm",
        "in"
      ],
      "type": "string"
    },
    "width": {
      "description": "Canvas width in pixels.",
      "type": "number"
    }
  },
  "required": [
    "schemaVersion",
    "width",
    "height",
    "unit",
    "dpi",
    "fonts",
    "pages",
    "audios"
  ],
  "type": "object"
}