{
  "$defs": {
    "Guide": {
      "additionalProperties": false,
      "description": "A line of the canvas across the whole world, along an axis: at `at` on the other axis.",
      "properties": {
        "at": {
          "description": "Where it is, in units of the world.",
          "format": "float",
          "type": "number"
        },
        "axis": {
          "$ref": "#/$defs/GuideAxis",
          "description": "`x`: a vertical line, where x is `at`; `y`: a horizontal line, where y is `at`."
        }
      },
      "required": [
        "axis",
        "at"
      ],
      "type": "object"
    },
    "GuideAxis": {
      "description": "Which way a guide goes.",
      "oneOf": [
        {
          "const": "x",
          "description": "Up and down, at an x.",
          "type": "string"
        },
        {
          "const": "y",
          "description": "Across, at a y.",
          "type": "string"
        }
      ]
    },
    "Id": {
      "description": "An identifier that never changes: a ULID, 26 letters and digits.",
      "pattern": "^[0-7][0-9A-HJKMNP-TV-Z]{25}$",
      "type": "string"
    },
    "LightSettings": {
      "additionalProperties": false,
      "description": "How the normal maps of a project are made from its images: what the Light workspace sets\nand `pantin light` uses. The way they are made is said in `docs/format/atlas.md`.",
      "properties": {
        "softness": {
          "description": "How wide the rounding of the edges is, in pixels of the images.",
          "format": "float",
          "type": "number"
        },
        "strength": {
          "description": "How steep the slopes are: 0 is flat, 1 is the default.",
          "format": "float",
          "type": "number"
        }
      },
      "type": "object"
    },
    "PackSettings": {
      "additionalProperties": false,
      "description": "How the images of a project are packed into its atlas: what the Pack workspace sets and\n`pantin pack` uses.",
      "properties": {
        "padding": {
          "description": "How many empty pixels are left around each image, so that a neighbour does not show at\nits edge when the atlas is drawn scaled.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "page": {
          "description": "The largest side of a page, in pixels. One that is not a power of two is taken down to\nthe one under it.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "per_skin": {
          "description": "One atlas for each skin, of the images its attachments show, beside the one of all\nthe images. Since 0.28.",
          "type": "boolean"
        },
        "rotate": {
          "description": "An image turned a quarter when that takes less room. Since 0.28.",
          "type": "boolean"
        },
        "scale": {
          "description": "Every image packed at this share of its pixels, in hundredths: 50 is half, 100 as they\nare. Since 0.28.",
          "format": "uint32",
          "minimum": 0,
          "type": "integer"
        },
        "skip": {
          "description": "The images the rig shows that are left out of the atlas, by identifier.",
          "items": {
            "$ref": "#/$defs/Id"
          },
          "type": "array"
        },
        "tight": {
          "description": "A slower packing that leaves less room between the images. Since 0.28.",
          "type": "boolean"
        },
        "trim": {
          "description": "The transparent border of each image taken off, the atlas saying what it was. Since 0.28.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "ProjectVersion": {
      "description": "The versions of the project format.",
      "oneOf": [
        {
          "const": "0.37",
          "description": "A folder, identifiers, what the format 0.3 of one file had (that was 0.4), springs\n(that was 0.5), slot timelines (that was 0.6), paths (that was 0.7, as a list of their\nown), paths as attachments of slots (that was 0.8), timelines of the vertices of\nmeshes (that was 0.9), timelines of the draw order (that was 0.10), the settings of\nthe atlas (that was 0.11), transform constraints (that was 0.12), the blend mode\nand the dark colour of slots (that was 0.13), points (that was 0.14), sequences (that\nwas 0.15), clips (that was 0.16), gravity and inertia for springs (that was 0.17), animations\nsaid to loop (that was 0.18), markers (that was 0.19), offsets along chains of bones\n(that was 0.20), the guides of the canvas (that was 0.21), the settings of the normal\nmaps (that was 0.22), bones that inherit neither scale nor reflection (that was 0.23),\nbones flipped in an animation (that was 0.24), the PSD files a project remembers (that\nwas 0.25), constraints switched off and solved in an order chosen (that was 0.26), bones\nand constraints that only some skins have (that was 0.27), the settings of a packer\nthat trims, turns and scales (that was 0.28), folders of pieces and constraints (that was\n0.29), clips inverse, convex or carried by bones (that was 0.30), IK constraints\nsoftened, stretching, compressing and keyed (that was 0.31), springs with a mass\nand a mix, keyed (that was 0.32), transform constraints local, relative or driven\n(that was 0.33), sliders (that was 0.34), and path constraints placed by lengths, shares\nor proportions, turned by tangent or with scale, on paths carried by several bones.\n(that was 0.35), meshes linked to others (that was 0.36), and events with a sound.",
          "type": "string"
        }
      ]
    },
    "PsdSource": {
      "additionalProperties": false,
      "description": "A PSD file the project imported: where it is, where its layers were written, and which\nlayer each of its images is, so that reading it again replaces them.",
      "properties": {
        "file": {
          "description": "The PSD file, relative to the folder of the project when it is in it, with `/` between\nits parts.",
          "type": "string"
        },
        "folder": {
          "description": "The folder its layers are written to as PNG files, named as `file` is.",
          "type": "string"
        },
        "hidden": {
          "description": "Whether the layers that are hidden are imported too.",
          "type": "boolean"
        },
        "layers": {
          "additionalProperties": false,
          "description": "Each image made of a layer, by its identifier in `images`, with the name of the layer\nafter those of its groups, tags taken out: `head/eye`.",
          "patternProperties": {
            "^[0-7][0-9A-HJKMNP-TV-Z]{25}$": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "required": [
        "file",
        "folder"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "`pantin.toml`: what a project is, and where its images are.",
  "properties": {
    "format_version": {
      "$ref": "#/$defs/ProjectVersion",
      "description": "The version of the format every file of the project is written in."
    },
    "guides": {
      "description": "The guides of the canvas, lines that a drag snaps to. They are for the one who draws:\nnothing exported has them. Since 0.21.",
      "items": {
        "$ref": "#/$defs/Guide"
      },
      "type": "array"
    },
    "images": {
      "additionalProperties": false,
      "description": "The images of the project: for each identifier, the file, relative to the folder of\nthe project, with `/` between its parts.",
      "patternProperties": {
        "^[0-7][0-9A-HJKMNP-TV-Z]{25}$": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "light": {
      "$ref": "#/$defs/LightSettings",
      "description": "How the normal maps of the project are made. Since 0.22."
    },
    "name": {
      "description": "The name of the character.",
      "type": "string"
    },
    "pack": {
      "$ref": "#/$defs/PackSettings",
      "description": "How the atlas of the project is packed. Since 0.11."
    },
    "psd": {
      "description": "The PSD files whose layers are images of the project, to be read again. Since 0.25.",
      "items": {
        "$ref": "#/$defs/PsdSource"
      },
      "type": "array"
    }
  },
  "required": [
    "format_version",
    "name"
  ],
  "title": "pantin manifest, format 0.37",
  "type": "object"
}
