{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://opencalque.com/schema/document.schema.json",
  "title": "OpenCalque drawing (.opencalque)",
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "const": "opencalque"
    },
    "version": {
      "type": "number",
      "const": 4
    },
    "id": {
      "type": "string",
      "minLength": 1
    },
    "name": {
      "type": "string"
    },
    "unit": {
      "type": "string",
      "const": "mm"
    },
    "layers": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string"
          },
          "order": {
            "type": "string",
            "description": "Fractional index such as \"a0\"; layers sort by plain string comparison of this key."
          },
          "visible": {
            "description": "Defaults to true.",
            "type": "boolean"
          },
          "locked": {
            "description": "Defaults to false.",
            "type": "boolean"
          },
          "color": {
            "description": "Default stroke color of nodes on this layer.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "order"
        ],
        "additionalProperties": false,
        "description": "A drawing layer: a named set of nodes that can be hidden, locked and colored together."
      },
      "description": "Layers by id."
    },
    "colors": {
      "description": "Shared colours by id, referred to from colour properties as \"var(--<id>)\".",
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string",
            "description": "A CSS color, e.g. \"#2563eb\"."
          }
        },
        "required": [
          "id",
          "name",
          "value"
        ],
        "additionalProperties": false,
        "description": "A named colour that belongs to the drawing. A stroke, a fill or a layer colour refers to it by writing \"var(--<id>)\" in place of a colour; changing the value here then changes everything that refers to it."
      }
    },
    "materials": {
      "description": "Materials by id, referred to from walls and the floors of rooms by \"material\".",
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string"
          },
          "fill": {
            "description": "The colour it is drawn in where it is cut, in a wall or a floor. A CSS colour or a shared colour reference. White when not given.",
            "type": "string"
          },
          "pattern": {
            "description": "The pattern drawn over that colour: the hatching that tells the material.",
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
              },
              "spacing": {
                "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "angle": {
                "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                "type": "number"
              },
              "stroke": {
                "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                "type": "string"
              },
              "strokeWidth": {
                "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "opacity": {
                "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "A material the drawing is built of: concrete, brick, insulation, plaster, a floor finish. It belongs to the drawing, as a shared colour does: walls and the floors of rooms refer to it by its id, are drawn in its colour and pattern, and are counted under its name. The material of id \"default\" is what walls are made of until given another: walls of no material take its fill and pattern, unless they give their own; it cannot be removed."
      }
    },
    "dimensionStyles": {
      "description": "Dimension styles by id, referred to from dimensions by \"dimensionStyle\".",
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string"
          },
          "style": {
            "description": "The dimension line and its end markers, as the \"style\" of a dimension.",
            "type": "object",
            "properties": {
              "stroke": {
                "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                "type": "string"
              },
              "strokeWidth": {
                "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "dash": {
                "description": "Dash pattern in screen pixels.",
                "type": "array",
                "items": {
                  "type": "number",
                  "exclusiveMinimum": 0
                }
              }
            },
            "additionalProperties": false
          },
          "startMarker": {
            "description": "Symbol at this end of the dimension line. Defaults to 'tick'.",
            "type": "string",
            "enum": [
              "tick",
              "arrow",
              "open-arrow",
              "dot",
              "none"
            ]
          },
          "endMarker": {
            "description": "Symbol at this end of the dimension line. Defaults to 'tick'.",
            "type": "string",
            "enum": [
              "tick",
              "arrow",
              "open-arrow",
              "dot",
              "none"
            ]
          },
          "markerSize": {
            "description": "Length of the end markers in mm. Defaults to 100.",
            "type": "number",
            "exclusiveMinimum": 0
          },
          "extension": {
            "description": "Look of the two extension lines. Unset values follow the dimension line.",
            "type": "object",
            "properties": {
              "stroke": {
                "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                "type": "string"
              },
              "strokeWidth": {
                "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "dash": {
                "description": "Dash pattern in screen pixels.",
                "type": "array",
                "items": {
                  "type": "number",
                  "exclusiveMinimum": 0
                }
              }
            },
            "additionalProperties": false
          },
          "extensionGap": {
            "description": "Gap in mm between a measured point and its extension line. Defaults to 0.",
            "type": "number",
            "minimum": 0
          },
          "size": {
            "description": "Text size in mm. Defaults to 150.",
            "type": "number",
            "exclusiveMinimum": 0
          },
          "font": {
            "description": "CSS font family, e.g. 'serif'. Defaults to the system sans-serif.",
            "type": "string"
          },
          "textColor": {
            "description": "Defaults to the color of the dimension line.",
            "type": "string"
          },
          "textPosition": {
            "description": "Where the text sits relative to the dimension line. Defaults to 'above'.",
            "type": "string",
            "enum": [
              "above",
              "center",
              "below"
            ]
          },
          "textRotation": {
            "description": "Defaults to 'aligned' (along the dimension line).",
            "type": "string",
            "enum": [
              "aligned",
              "horizontal"
            ]
          },
          "verticalText": {
            "description": "Which way text along a vertical dimension line reads: 'up', from bottom to top, read with the head turned to the left or from the right-hand side of the sheet (as ISO 129 asks); 'down' (the default), from top to bottom, read with the head turned to the right. A line within a degree of vertical counts as vertical; text along any other line reads from below.",
            "type": "string",
            "enum": [
              "up",
              "down"
            ]
          },
          "unit": {
            "description": "Unit the measured value is shown in. Defaults to 'mm'. 'ft-in' writes feet and inches with a fraction, as 7' 6 1/2\". Coordinates stay in mm whatever this is.",
            "type": "string",
            "enum": [
              "mm",
              "cm",
              "m",
              "in",
              "ft",
              "ft-in"
            ]
          },
          "fraction": {
            "description": "With unit 'ft-in': the fraction of an inch the value is rounded to, as its lower number (2, 4, 8, 16, 32). Defaults to 16.",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "decimals": {
            "description": "Decimal places. Defaults to 0 for mm, 1 for cm and in, 2 for m and ft.",
            "type": "integer",
            "minimum": 0,
            "maximum": 6
          },
          "showUnit": {
            "description": "Append the unit to the value.",
            "type": "boolean"
          },
          "decimal": {
            "description": "The decimal separator of the value, in place of the drawing's (\"settings\"). Left out, the drawing's.",
            "type": "string",
            "enum": [
              ".",
              ","
            ]
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "A way of drawing dimensions that belongs to the drawing. It holds the properties of a dimension that it gives a value to, under the same names, and only those. A dimension refers to it by \"dimensionStyle\" and takes what it defines; a value the dimension gives itself wins, and what the style leaves out stays the dimension's own."
      }
    },
    "assets": {
      "description": "Embedded files by id. Large; tools that only need the drawing can ignore it.",
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "mime": {
            "type": "string",
            "description": "Media type, e.g. 'image/jpeg'."
          },
          "data": {
            "type": "string",
            "description": "The file contents, base64-encoded."
          },
          "width": {
            "description": "Width of the picture in pixels.",
            "type": "number",
            "exclusiveMinimum": 0
          },
          "height": {
            "description": "Height of the picture in pixels.",
            "type": "number",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "id",
          "mime",
          "data"
        ],
        "additionalProperties": false,
        "description": "A binary file embedded in the document, referenced by image nodes."
      }
    },
    "nodes": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1
      },
      "additionalProperties": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "page"
              },
              "wallHeight": {
                "description": "How high the walls of this page stand, in mm, unless a wall gives its own. Used to measure wall faces; nothing is drawn with it.",
                "type": "number",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type"
            ],
            "additionalProperties": false,
            "description": "A drawing sheet. Top-level container."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "component"
              },
              "description": {
                "type": "string"
              },
              "height": {
                "description": "How tall what it holds stands on the floor, in mm: a bed, a wardrobe. Elevations draw its placements in front of the face they look at as boxes this tall; without it, they leave them out.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "sheet": {
                "description": "Makes the component what is on every sheet of the drawing: a title, a logo, a north arrow. It is the size, in millimetres of real paper, of the sheet its children are drawn on (297 × 210 for an A4 lying), from that sheet's top-left corner. Every paper draws them over itself at its own scale, each kept at its distance from the corner of the sheet it is nearest to, so a sheet of another size has them in its own corners. In their texts, {sheet}, {scale}, {format}, {page}, {project} and the other fields are filled in for each sheet. A drawing has one such component; a paper that is \"plain\" leaves it out.",
                "type": "object",
                "properties": {
                  "width": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "height": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  }
                },
                "required": [
                  "width",
                  "height"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type"
            ],
            "additionalProperties": false,
            "description": "A reusable definition. Its children are drawn wherever an instance references it."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "group"
              },
              "opacity": {
                "description": "How opaque everything in the group is drawn, from 0 (not at all) to 1, on top of the opacity of each thing and of the groups around it. Defaults to 1.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type"
            ],
            "additionalProperties": false,
            "description": "Several nodes treated as one object: selected, moved and stacked together. It has no geometry; the nodes whose parent is this group keep their own coordinates. Groups can be nested."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "line"
              },
              "a": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "b": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "startMarker": {
                "description": "Symbol at a. Defaults to 'none'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "endMarker": {
                "description": "Symbol at b. Defaults to 'none'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "markerSize": {
                "description": "Length of the end symbols in mm. Defaults to 150.",
                "type": "number",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "a",
              "b"
            ],
            "additionalProperties": false,
            "description": "A straight line from a to b, optionally with an arrow or another symbol at either end."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "polyline"
              },
              "points": {
                "minItems": 2,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ],
                  "additionalProperties": false
                }
              },
              "closed": {
                "type": "boolean"
              },
              "smooth": {
                "description": "Drawn as a curve flowing through the points instead of straight segments.",
                "type": "boolean"
              },
              "startMarker": {
                "description": "Symbol at the first point of an open polyline. Defaults to 'none'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "endMarker": {
                "description": "Symbol at its last point. Defaults to 'none'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "markerSize": {
                "description": "Length of the end symbols in mm. Defaults to 150.",
                "type": "number",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "points"
            ],
            "additionalProperties": false,
            "description": "A line through several points; closed, it is a polygon."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "rect"
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "width": {
                "type": "number",
                "minimum": 0
              },
              "height": {
                "type": "number",
                "minimum": 0
              },
              "rotation": {
                "description": "Degrees, clockwise on screen.",
                "type": "number"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "x",
              "y",
              "width",
              "height"
            ],
            "additionalProperties": false,
            "description": "Rectangle with its top-left corner at (x, y), rotated around that corner."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "room"
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "size": {
                "description": "Size of the name and area written at (x, y), in mm. Defaults to 250.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "showArea": {
                "description": "Whether the floor area is written under the name. Defaults to true.",
                "type": "boolean"
              },
              "showPerimeter": {
                "description": "Whether how far it is round the floor (along the faces of its walls, doors included) is written under the name and area, in m or ft as the drawing settings say. Defaults to false.",
                "type": "boolean"
              },
              "system": {
                "description": "'imperial' writes the floor area in square feet, 'metric' in square metres, in place of the drawing's \"settings\". Left out (as it should be), the drawing's.",
                "type": "string",
                "enum": [
                  "metric",
                  "imperial"
                ]
              },
              "decimal": {
                "description": "The decimal separator of the area, in place of the drawing's \"settings\". Left out (as it should be), the drawing's.",
                "type": "string",
                "enum": [
                  ".",
                  ","
                ]
              },
              "material": {
                "description": "The id of the material its floor is made of, among the document's \"materials\": the floor takes its colour and pattern, unless the room gives its own in \"style\", and is counted under it.",
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "x",
              "y"
            ],
            "additionalProperties": false,
            "description": "A room: the space enclosed by the walls and dividers around the point (x, y), which is also where its name and area are written. Its outline is not stored: it is found from the walls each time, so it follows them. Give it a \"name\". style.fill colours the floor and style.pattern covers it (tiles, planks); style.stroke is the colour of the name and area. If the walls around the point do not close, only the name is drawn."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "table"
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "schedule": {
                "type": "string",
                "description": "What it counts, which is worked out again each time it is drawn: 'objects' (each component and each kind of parametric object, with how many are placed), 'floors' (the floor area of each material), 'rooms' (each room and its area), 'walls' (the walls by material and thickness: how many, length, face and volume), 'openings' (doors and windows by kind and size) or 'controls' (each switch, dimmer, push button, detector or thermostat with what its control links say it controls). An unknown one draws an empty table."
              },
              "title": {
                "description": "Written above the table.",
                "type": "string"
              },
              "columns": {
                "description": "The fields shown, in order. Left out, the schedule's usual ones. Fields: objects: symbol (each drawn as it is on the plan), name, count; floors: material, rooms, area; rooms: name, material, area; walls: material, thickness, count, length, area, volume; openings: kind, width, height, count; controls: symbol, name, controls.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "labels": {
                "description": "The words the table is written with, by field (the heading of its column), and 'total' (the last row) and 'none' (what stands for no material or no type). Left out, English ones.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "size": {
                "description": "Text size in mm. Defaults to 200.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "source": {
                "description": "The id of the page whose contents it counts. Defaults to the page it is on.",
                "type": "string",
                "minLength": 1
              },
              "totals": {
                "description": "Whether a last row adds up the columns that can be added up. Defaults to true.",
                "type": "boolean"
              },
              "rowsPerBlock": {
                "description": "At most this many rows of things counted one under the other: the next ones go into a block beside it, with the headings again, and so on, the total at the end of the last. Left out, all in one block.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "only": {
                "description": "The rows shown, by their keys; the others are left out of the table and its total, and what comes on the plan later is not shown. Keys: objects 'component:<id>', or for a parametric object 'parametric:' then its kind and every one of its parameters, defaults filled in, as JSON with its keys in order ('parametric:arch.radiator {\"length\":800,...}': a model with other parameters is another row); floors 'material:<id>' ('material:' for the floors of no material); rooms 'room:<id>'; walls 'material:<id>' and the thickness in mm, as 'material:brick 200' ('material: 200' for the default material); openings the kind, then width and height in metres, as 'arch.door 0.9 2.1', whatever the table's units; controls 'control:<id>' of the switch. Left out, every row.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "decimal": {
                "description": "The decimal separator of its numbers, in place of the drawing's \"settings\". Left out (as it should be), the drawing's.",
                "type": "string",
                "enum": [
                  ".",
                  ","
                ]
              },
              "system": {
                "description": "'imperial' gives lengths in feet, areas in square feet, volumes in cubic feet and thicknesses in inches, in place of the drawing's \"settings\". Left out (as it should be), the drawing's.",
                "type": "string",
                "enum": [
                  "metric",
                  "imperial"
                ]
              },
              "language": {
                "description": "The language code its rows are named in where they take a name from an extension, as \"fr\".",
                "type": "string"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "x",
              "y",
              "schedule"
            ],
            "additionalProperties": false,
            "description": "A table of quantities placed on the drawing, its top-left corner at (x, y): what is on a page, counted and measured, and kept up to date as the drawing changes."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "viewline"
              },
              "a": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "description": "Where the line starts on the plan: the left end of the views taken from it."
              },
              "b": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "description": "Where it ends: the right end of those views."
              },
              "depth": {
                "description": "How far beyond the line its views see, in mm: their far side, which lies on the face of the wall for an elevation of it. Defaults to 6000.",
                "type": "number",
                "minimum": 0
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "a",
              "b"
            ],
            "additionalProperties": false,
            "description": "The line on the plan an elevation or a section is taken from, drawn on the plan as a reference line with an arrow at each end, the way it looks: a cut along the line from a to b, seen from the right of that line (as it runs from a to b, which is below a line drawn from left to right, since Y grows downward), so that a is on the left of its views, looking beyond it up to depth. What the line crosses is drawn cut through (walls, above and below the doors and windows they are cut at); beyond it, up to depth, the faces turned towards it with their doors, windows and what is fixed on them at its height, the furniture, and the walls in the way. A line whose far side (depth beyond it) lies on the face of a wall makes elevations of that wall, and follows the wall when the wall changes: usually 1000 in front of the face, with depth 1000. One across the plan makes sections. What it sees is drawn by the elevation nodes that refer to it, any number, anywhere; removing the line removes them."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "elevation"
              },
              "line": {
                "type": "string",
                "minLength": 1,
                "description": "The id of the viewline it is the view of: what it sees, and from where."
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "walls": {
                "description": "false leaves out the walls in front of the faces it sees, to see all of them: those its line cuts, and those in the way (a wall at an angle within what it sees). Shown when left out, all plain grey.",
                "type": "boolean"
              },
              "dimensions": {
                "description": "false leaves out the dimensions it draws by itself: along the floor from its start to each object fixed on the face, and the height of each above the floor. Shown when left out.",
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "line",
              "x",
              "y"
            ],
            "additionalProperties": false,
            "description": "An elevation or a section: the view of what its viewline sees, drawn from the plan each time it is drawn, on any page, with (x, y) the point of the floor under the start of its line (a); heights go up from there. Moving it moves only where it is drawn; what it shows is set by its line."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "link"
              },
              "from": {
                "type": "string",
                "minLength": 1,
                "description": "The id of the object it starts from: for a control link, what controls (a switch, a dimmer, a push button)."
              },
              "to": {
                "type": "string",
                "minLength": 1,
                "description": "The id of the object it goes to: for a control link, what is controlled (a light, a socket)."
              },
              "fromPort": {
                "description": "Which connection of \"from\" it starts from, by its key among the ports its kind declares: \"out2\" for the second button of a double switch. Left out, the first port of its kind that fits.",
                "type": "string"
              },
              "toPort": {
                "description": "Which connection of \"to\" it goes to, by its key. Left out, the first port of its kind that fits.",
                "type": "string"
              },
              "role": {
                "description": "'control' (the default): \"from\" controls \"to\", whatever carries the order (a wire, a radio, a bus): drawn as a dashed curve, as on an electrical plan. 'run': a cable or a pipe goes from one to the other, drawn as a plain line; nothing is worked out from it yet.",
                "type": "string",
                "enum": [
                  "control",
                  "run"
                ]
              },
              "bend": {
                "description": "How much a control link bows, as a fraction of its length: 0 is straight, positive bows to the left of the way from \"from\" to \"to\" as seen on screen, negative to the right. Left out, 0.25 towards the middle of the page, so that a link between two things on a wall bows into the room.",
                "type": "number"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "from",
              "to"
            ],
            "additionalProperties": false,
            "description": "Joins two objects of the same page: a switch and a light it controls, a dimmer and its spotlights, a push button and a switched socket. It has no position of its own: it is drawn between the two objects, from the edge of one to the edge of the other, and follows them when they move. Removing either object removes the link. Version 4."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "divider"
              },
              "a": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "b": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "a",
              "b"
            ],
            "additionalProperties": false,
            "description": "A line that separates two rooms where there is no wall, for example between a kitchen and a living room in one open space. It bounds rooms as a wall does and takes no space."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "paper"
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "width": {
                "type": "number",
                "minimum": 0
              },
              "height": {
                "type": "number",
                "minimum": 0
              },
              "scale": {
                "description": "The drawing scale of the sheet, as the N of 1:N. Default 100. An A3 sheet (420 × 297 mm of paper) at 1:100 is 42000 × 29700 here.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "plain": {
                "description": "When true, this sheet leaves out what the drawing puts on every sheet (the component that has a \"sheet\" size).",
                "type": "boolean"
              },
              "titleBlock": {
                "description": "When present (even empty), the sheet gets a border and a title block in its bottom right corner. The block is made of the entries that have something to say and are not hidden: the project, client and address (from the document's \"info\"; the project falls back on the document name), the name of the paper and of its page, the author, the scale and format, and the date and sheet number given here. An entry with nothing in it takes no room. Texts may hold fields such as {date} or {page-number}.",
                "type": "object",
                "properties": {
                  "project": {
                    "description": "Overrides the project of the drawing on this sheet.",
                    "type": "string"
                  },
                  "author": {
                    "description": "Overrides the author of the drawing on this sheet.",
                    "type": "string"
                  },
                  "date": {
                    "type": "string"
                  },
                  "number": {
                    "type": "string"
                  },
                  "hide": {
                    "description": "Entries this sheet leaves out, among project, client, address, sheet, page, author, scale, format, date and number. Defaults to ['page'].",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "x",
              "y",
              "width",
              "height"
            ],
            "additionalProperties": false,
            "description": "A sheet of paper laid on the drawing, with its top-left corner at (x, y): it frames the part of the drawing meant for one printed sheet. Width and height are in drawing millimetres like everything else. It has no children: whatever lies entirely inside its rectangle is on it, and is moved and copied with it in the editor."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "ellipse"
              },
              "cx": {
                "type": "number"
              },
              "cy": {
                "type": "number"
              },
              "rx": {
                "type": "number",
                "minimum": 0
              },
              "ry": {
                "type": "number",
                "minimum": 0
              },
              "rotation": {
                "description": "Degrees, clockwise on screen.",
                "type": "number"
              },
              "from": {
                "description": "With `to`, makes it an arc: the angle in degrees where the arc starts, measured clockwise on screen from the X axis.",
                "type": "number"
              },
              "to": {
                "description": "The angle where the arc ends, going clockwise from `from`.",
                "type": "number"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "cx",
              "cy",
              "rx",
              "ry"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "text"
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "text": {
                "type": "string"
              },
              "size": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "rotation": {
                "description": "Degrees, clockwise on screen.",
                "type": "number"
              },
              "font": {
                "description": "CSS font family, e.g. 'serif'. Defaults to the system sans-serif.",
                "type": "string"
              },
              "bold": {
                "type": "boolean"
              },
              "align": {
                "description": "Which part of each line is at x: its left end (the default), its middle, or its right end.",
                "type": "string",
                "enum": [
                  "left",
                  "center",
                  "right"
                ]
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "x",
              "y",
              "text",
              "size"
            ],
            "additionalProperties": false,
            "description": "Text anchored at the left end of the baseline of its first line; a line break in the text starts a new line below. Size is the font size in mm. These fields are filled in when it is drawn: {date}, {page} (name of the page it is on), {page-number}, {pages} (how many pages there are), {document}."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "annotation"
              },
              "a": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "description": "The tip: the point the note is about."
              },
              "b": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "description": "Where the leader ends and the text sits. The text runs away from the tip: to the right of b when b is right of a, otherwise ending at b."
              },
              "text": {
                "type": "string",
                "description": "The note. May be empty, which leaves an arrow."
              },
              "size": {
                "description": "Text size in mm. Defaults to 200.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "font": {
                "description": "CSS font family, e.g. 'serif'. Defaults to the system sans-serif.",
                "type": "string"
              },
              "startMarker": {
                "description": "Symbol at the tip (a). Defaults to 'arrow'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "endMarker": {
                "description": "Symbol at the text end (b). Defaults to 'none'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "markerSize": {
                "description": "Length of the end symbols in mm. Defaults to three quarters of the text size.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "shape": {
                "description": "The path of the leader: 'curve' (the default, see bend), 'straight', or 'elbow', which leaves the text level and then turns square to reach the tip.",
                "type": "string",
                "enum": [
                  "curve",
                  "straight",
                  "elbow"
                ]
              },
              "bend": {
                "description": "How much a curved leader bows, as a fraction of its length: 0 is straight, positive bows one way and negative the other. Defaults to 0.2.",
                "type": "number"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "a",
              "b",
              "text"
            ],
            "additionalProperties": false,
            "description": "A note pointing at something: a leader line from the tip a to the point b, with text beside b."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "gridline"
              },
              "a": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "b": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "label": {
                "type": "string",
                "description": "What its bubble says, as \"A\" or \"1\"."
              },
              "bubbles": {
                "description": "Which ends carry the bubble: 'start' (at a, the default), 'end' (at b), 'both' or 'none'.",
                "type": "string",
                "enum": [
                  "start",
                  "end",
                  "both",
                  "none"
                ]
              },
              "size": {
                "description": "The diameter of the bubble in mm. Defaults to 800; the label is half as tall.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "font": {
                "description": "CSS font family, e.g. 'serif'. Defaults to the system sans-serif.",
                "type": "string"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "a",
              "b",
              "label"
            ],
            "additionalProperties": false,
            "description": "A grid line: a line of the building's grid from a to b, with a circle (its bubble) past one end or both, the label written upright inside; a label too wide for the circle stretches it level into a pill. Its \"style\" is the line, usually dashed; the bubble and the label take its colour and weight but are never dashed."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "wall"
              },
              "a": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "b": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "thickness": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "In mm."
              },
              "material": {
                "description": "The id of the material it is made of, among the drawing's \"materials\": it is drawn in its colour and pattern unless its style gives its own, and counted under it. Left out, it is of the default material. Walls of one material that meet are drawn as one; between walls of different materials that touch, a line is drawn. A wall built of several materials (brick lined with insulation, then plaster) is several walls side by side, each of one.",
                "type": "string",
                "minLength": 1
              },
              "justify": {
                "description": "Which line of the wall a and b are: absent or \"center\", its middle; \"left\" or \"right\", that face, as the wall runs from a to b, the whole thickness then lying on the other side. Corners are where these lines meet, so walls drawn by the same face keep that face flush whatever their thicknesses, and a change of thickness grows away from the line.",
                "type": "string",
                "enum": [
                  "left",
                  "center",
                  "right"
                ]
              },
              "bulge": {
                "description": "Makes the wall curved: how far, in mm, the middle of its line (see \"justify\") stands off the straight line from a to b, the wall then following the arc of a circle through a, that point and b. Positive bows to the right of the direction a to b as seen on screen, negative to the left. At most half the distance from a to b, which is a half circle. Absent or 0 is a straight wall.",
                "type": "number"
              },
              "height": {
                "description": "How high it stands, in mm, when that differs from its page. Used to measure its face; nothing is drawn with it.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "edges": {
                "description": "The lines of its outline one by one, each with a look of its own over the wall's style. \"left\" and \"right\" are its two faces, as it runs from a to b; \"a\" and \"b\" are the lines across its ends. \"show\": false hides a line. Across an end, left out, the line is drawn when the end is free or stops against another wall, and not where two walls are joined into one; \"show\": true draws the line between two joined walls (what cutting a wall in two gives).",
                "type": "object",
                "properties": {
                  "left": {
                    "type": "object",
                    "properties": {
                      "show": {
                        "type": "boolean"
                      },
                      "stroke": {
                        "description": "A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "In screen pixels, as in a style.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "dash": {
                        "description": "Dash pattern in screen pixels, as in a style.",
                        "type": "array",
                        "items": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "right": {
                    "type": "object",
                    "properties": {
                      "show": {
                        "type": "boolean"
                      },
                      "stroke": {
                        "description": "A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "In screen pixels, as in a style.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "dash": {
                        "description": "Dash pattern in screen pixels, as in a style.",
                        "type": "array",
                        "items": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "a": {
                    "type": "object",
                    "properties": {
                      "show": {
                        "type": "boolean"
                      },
                      "stroke": {
                        "description": "A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "In screen pixels, as in a style.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "dash": {
                        "description": "Dash pattern in screen pixels, as in a style.",
                        "type": "array",
                        "items": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "b": {
                    "type": "object",
                    "properties": {
                      "show": {
                        "type": "boolean"
                      },
                      "stroke": {
                        "description": "A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "In screen pixels, as in a style.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "dash": {
                        "description": "Dash pattern in screen pixels, as in a style.",
                        "type": "array",
                        "items": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "joins": {
                "description": "How each end is finished where it meets exactly one other wall. Left out (the default), the corner is automatic: a sharp point, cut off when the walls meet at less than 60° and the point would stick out. 'miter' keeps the sharp point at any angle, 'round' and 'bevel' round or cut that corner off, and 'through' with 'butt' on the other wall's end lets this wall run past while the other stops against it. Give both ends of a corner the same value, or the through/butt pair. 'free' joins this end to nothing, even where other walls end at the same point: it ends square, or cut along the side of a wall it stops against, and moving those walls leaves it where it is.",
                "type": "object",
                "properties": {
                  "a": {
                    "type": "string",
                    "enum": [
                      "miter",
                      "round",
                      "bevel",
                      "through",
                      "butt",
                      "free"
                    ]
                  },
                  "b": {
                    "type": "string",
                    "enum": [
                      "miter",
                      "round",
                      "bevel",
                      "through",
                      "butt",
                      "free"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "a",
              "b",
              "thickness"
            ],
            "additionalProperties": false,
            "description": "A wall along the line a-b (its middle, or one of its faces with \"justify\"), straight or, with \"bulge\", an arc. Walls sharing an endpoint are drawn joined."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "dimension"
              },
              "a": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "b": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "offset": {
                "type": "number",
                "description": "Signed distance from the measured points to the dimension line."
              },
              "text": {
                "description": "Replaces the measured value when set.",
                "type": "string"
              },
              "dimensionStyle": {
                "description": "The id of the dimension style it is drawn in, among the document's \"dimensionStyles\". It takes what the style defines, except where it gives itself a value.",
                "type": "string",
                "minLength": 1
              },
              "startMarker": {
                "description": "Symbol at this end of the dimension line. Defaults to 'tick'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "endMarker": {
                "description": "Symbol at this end of the dimension line. Defaults to 'tick'.",
                "type": "string",
                "enum": [
                  "tick",
                  "arrow",
                  "open-arrow",
                  "dot",
                  "none"
                ]
              },
              "markerSize": {
                "description": "Length of the end markers in mm. Defaults to 100.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "extension": {
                "description": "Look of the two extension lines. Unset values follow the dimension line.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "extensionGap": {
                "description": "Gap in mm between a measured point and its extension line. Defaults to 0.",
                "type": "number",
                "minimum": 0
              },
              "size": {
                "description": "Text size in mm. Defaults to 150.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "font": {
                "description": "CSS font family, e.g. 'serif'. Defaults to the system sans-serif.",
                "type": "string"
              },
              "textColor": {
                "description": "Defaults to the color of the dimension line.",
                "type": "string"
              },
              "textPosition": {
                "description": "Where the text sits relative to the dimension line. Defaults to 'above'.",
                "type": "string",
                "enum": [
                  "above",
                  "center",
                  "below"
                ]
              },
              "textRotation": {
                "description": "Defaults to 'aligned' (along the dimension line).",
                "type": "string",
                "enum": [
                  "aligned",
                  "horizontal"
                ]
              },
              "verticalText": {
                "description": "Which way text along a vertical dimension line reads: 'up', from bottom to top, read with the head turned to the left or from the right-hand side of the sheet (as ISO 129 asks); 'down' (the default), from top to bottom, read with the head turned to the right. A line within a degree of vertical counts as vertical; text along any other line reads from below.",
                "type": "string",
                "enum": [
                  "up",
                  "down"
                ]
              },
              "unit": {
                "description": "Unit the measured value is shown in. Defaults to 'mm'. 'ft-in' writes feet and inches with a fraction, as 7' 6 1/2\". Coordinates stay in mm whatever this is.",
                "type": "string",
                "enum": [
                  "mm",
                  "cm",
                  "m",
                  "in",
                  "ft",
                  "ft-in"
                ]
              },
              "fraction": {
                "description": "With unit 'ft-in': the fraction of an inch the value is rounded to, as its lower number (2, 4, 8, 16, 32). Defaults to 16.",
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "decimals": {
                "description": "Decimal places. Defaults to 0 for mm, 1 for cm and in, 2 for m and ft.",
                "type": "integer",
                "minimum": 0,
                "maximum": 6
              },
              "showUnit": {
                "description": "Append the unit to the value.",
                "type": "boolean"
              },
              "decimal": {
                "description": "The decimal separator of the value, in place of the drawing's (\"settings\"). Left out, the drawing's.",
                "type": "string",
                "enum": [
                  ".",
                  ","
                ]
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "a",
              "b",
              "offset"
            ],
            "additionalProperties": false,
            "description": "A linear dimension: an annotation showing the distance between a and b. The node \"style\" styles the dimension line and its end markers."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "image"
              },
              "asset": {
                "type": "string",
                "minLength": 1,
                "description": "Id of the asset holding the picture."
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "width": {
                "type": "number",
                "exclusiveMinimum": 0,
                "description": "Width the picture covers, in mm. Together with height this sets its scale."
              },
              "height": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "rotation": {
                "description": "Degrees, clockwise on screen.",
                "type": "number"
              },
              "opacity": {
                "description": "Defaults to 1.",
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "asset",
              "x",
              "y",
              "width",
              "height"
            ],
            "additionalProperties": false,
            "description": "A picture placed with its top-left corner at (x, y), typically a scanned plan to trace over."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "instance"
              },
              "component": {
                "type": "string",
                "minLength": 1,
                "description": "Id of the component node being placed."
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "rotation": {
                "description": "Degrees, clockwise on screen.",
                "type": "number"
              },
              "flipX": {
                "type": "boolean"
              },
              "scale": {
                "description": "Size multiplier of this placement. Defaults to 1.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "scaleX": {
                "description": "Stretch of this placement along the component's own X axis, on top of \"scale\": wider than it is drawn. Defaults to 1.",
                "type": "number",
                "exclusiveMinimum": 0
              },
              "scaleY": {
                "description": "Stretch of this placement along the component's own Y axis, on top of \"scale\": taller than it is drawn. Defaults to 1.",
                "type": "number",
                "exclusiveMinimum": 0
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "component",
              "x",
              "y"
            ],
            "additionalProperties": false,
            "description": "A placement of a component. Editing the component updates every instance."
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string"
              },
              "parent": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Id of the page, component or group this node is directly inside. Null for pages and components."
              },
              "order": {
                "type": "string",
                "description": "Fractional index giving the z-order among siblings (plain string comparison, later = on top). A key of the fractional-indexing package, such as \"a0\", \"a1\" or \"a0V\"; leave it out when adding a node to put it on top."
              },
              "layer": {
                "description": "Id of the layer the node is on. A node inside a component has none: what a component holds is drawn on the layer of each of its instances.",
                "type": "string",
                "minLength": 1
              },
              "visible": {
                "description": "Defaults to true.",
                "type": "boolean"
              },
              "locked": {
                "description": "Defaults to false.",
                "type": "boolean"
              },
              "style": {
                "description": "Overrides the look of a node. Unset values fall back to the node kind, then the layer color. An instance has none: it looks as its component is drawn.",
                "type": "object",
                "properties": {
                  "stroke": {
                    "description": "CSS color of lines and text, or 'none'. Any colour property may instead be a shared colour, \"var(--<id>)\", or \"var(--layer)\": the colour of the node's layer.",
                    "type": "string"
                  },
                  "strokeWidth": {
                    "description": "Line weight in screen pixels (does not scale with zoom). On paper one pixel prints as 0.25 mm, so 2 is a 0.5 mm line.",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "fill": {
                    "description": "CSS fill color, or 'none', a shared colour \"var(--<id>)\", or \"var(--layer)\" to fill with the colour of the node's layer.",
                    "type": "string"
                  },
                  "pattern": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "description": "Which pattern: 'Lines', 'Cross', 'Planks', 'Tiles', 'Dots' or 'Zigzag'; 'None' for no pattern where one would otherwise be taken from a material."
                      },
                      "spacing": {
                        "description": "Distance between its strokes, in mm. Each pattern has its own when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "angle": {
                        "description": "Degrees its strokes are turned by. Each pattern has its own when not given.",
                        "type": "number"
                      },
                      "stroke": {
                        "description": "The colour of its strokes. A CSS colour or a shared colour reference.",
                        "type": "string"
                      },
                      "strokeWidth": {
                        "description": "The weight of its strokes, in screen pixels as in a style. 0.6 when not given.",
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "opacity": {
                        "description": "How opaque its strokes are, from 0 (not at all) to 1 (the default), on top of the opacity of their colour.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "A pattern of strokes drawn over a fill, inside each closed shape: the hatching that tells a material, or a floor."
                  },
                  "dash": {
                    "description": "Dash pattern in screen pixels.",
                    "type": "array",
                    "items": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    }
                  }
                },
                "additionalProperties": false
              },
              "modifiers": {
                "description": "Modifiers applied to what this node draws, one after the other in this order. On a group or an instance they apply to everything it holds.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The kind of modifier: 'crop', or one registered by an extension. Unknown kinds are kept and skipped."
                    },
                    "enabled": {
                      "description": "Defaults to true. A modifier that is switched off stays in the list.",
                      "type": "boolean"
                    },
                    "params": {
                      "description": "Parameters of the kind. Missing ones use the kind defaults.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "frame": {
                      "description": "Where the modifier sits on the drawing: positions among its parameters are relative to it. It follows the node when the node is moved, turned or scaled.",
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        },
                        "rotation": {
                          "type": "number"
                        },
                        "flipX": {
                          "type": "boolean"
                        },
                        "scale": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "description": "A non-destructive change to how a node is drawn; the node itself is not altered. 'crop' shows only what is inside the rectangle that starts at its frame and has params.width and params.height."
                }
              },
              "meta": {
                "description": "Free-form data for extensions and tools.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "type": {
                "type": "string",
                "const": "parametric"
              },
              "kind": {
                "type": "string",
                "description": "Parametric kind registered by an extension, e.g. 'arch.stair'."
              },
              "props": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {},
                "description": "Parameters of the kind. Missing ones use the kind defaults."
              },
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              },
              "rotation": {
                "description": "Degrees, clockwise on screen.",
                "type": "number"
              },
              "flipX": {
                "type": "boolean"
              },
              "z": {
                "description": "How high above the floor it is, in mm, to its centre: a socket's or a switch's height. Left out, its kind's usual height for an object fixed on a wall, else none. The plan writes it only with showHeight.",
                "type": "number",
                "minimum": 0
              },
              "showHeight": {
                "description": "For an object fixed on a wall: its height above the floor is written beside it on the plan, as electrical plans do.",
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "parent",
              "order",
              "type",
              "kind",
              "props",
              "x",
              "y"
            ],
            "additionalProperties": false,
            "description": "An object generated from parameters by an extension. Unknown kinds are preserved and drawn as a placeholder."
          }
        ],
        "description": "All coordinates and lengths are millimetres. X grows to the right, Y grows downward."
      },
      "description": "Every node by id, as a flat map. The tree is expressed by each node's \"parent\" and \"order\"."
    },
    "info": {
      "description": "What the drawing says about itself, shown in the title block of every sheet: the project (the document name when not given), the client, the address of the site (lines separated by a line break), the author.",
      "type": "object",
      "properties": {
        "project": {
          "type": "string"
        },
        "client": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "author": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "settings": {
      "description": "How the drawing writes its numbers: the floor areas of its rooms, its tables of quantities, its dimensions. Left out, in metric with a decimal point.",
      "type": "object",
      "properties": {
        "system": {
          "description": "'imperial': areas in square feet, and the lengths, volumes and thicknesses of tables of quantities in feet and inches. Defaults to 'metric' (square metres, metres).",
          "type": "string",
          "enum": [
            "metric",
            "imperial"
          ]
        },
        "decimal": {
          "description": "The decimal separator of the areas, tables and dimensions. Defaults to '.'.",
          "type": "string",
          "enum": [
            ".",
            ","
          ]
        }
      },
      "additionalProperties": false
    },
    "meta": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "format",
    "version",
    "id",
    "name",
    "unit",
    "layers",
    "nodes"
  ],
  "additionalProperties": false,
  "description": "An OpenCalque document (.opencalque file)."
}
