{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/advent-calendar/schema.json",
 "title": "Advent calendar — parameters",
 "description": "A reusable Advent calendar of numbered sliding drawers, sized to what goes inside: 24 days or any count, cut into modules that fit your print bed, with a name on top. All lengths are millimetres. Unknown keys are rejected; out-of-range values are rejected by the URL and API and clamped when a project file is opened.",
 "x-tool": "advent-calendar",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "days",
   "title": "Days"
  },
  {
   "id": "drawer",
   "title": "Drawer"
  },
  {
   "id": "cabinet",
   "title": "Cabinet"
  },
  {
   "id": "look",
   "title": "Colours and name"
  },
  {
   "id": "print",
   "title": "Printing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "advent-calendar-24",
    "title": "Advent calendar, 24 drawers",
    "description": "The classic: 24 numbered drawers in 4 rows of 6, each 32 × 32 × 40 mm for a chocolate or a note, one module on a 256 mm bed.",
    "values": {
     "days": 24,
     "cols": 6,
     "bed": "256",
     "hang": true,
     "drawerW": 32,
     "drawerH": 32,
     "drawerD": 40,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "barlow",
     "numberColor": "#b45309",
     "name": "",
     "baseColor": "#0e7490",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   },
   {
    "id": "advent-gifts-24",
    "title": "Advent calendar for small gifts",
    "description": "24 drawers of 40 × 40 × 60 mm for small toys and hair clips, in two modules that fit a 256 mm bed.",
    "values": {
     "days": 24,
     "cols": 6,
     "bed": "256",
     "hang": true,
     "drawerW": 40,
     "drawerH": 40,
     "drawerD": 60,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "barlow",
     "numberColor": "#b45309",
     "name": "",
     "baseColor": "#b45309",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   },
   {
    "id": "advent-12-days",
    "title": "12-day Advent calendar",
    "description": "Twelve numbered drawers, 4 across, for the twelve days before Christmas or a birthday count-down.",
    "values": {
     "days": 12,
     "cols": 4,
     "bed": "256",
     "hang": true,
     "drawerW": 32,
     "drawerH": 32,
     "drawerD": 40,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "barlow",
     "numberColor": "#b45309",
     "name": "",
     "baseColor": "#a21caf",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   },
   {
    "id": "advent-7-days",
    "title": "7-day countdown calendar",
    "description": "Seven drawers in a row: a week of small treats, in two modules on a 180 mm bed.",
    "values": {
     "days": 7,
     "cols": 7,
     "bed": "180",
     "hang": true,
     "drawerW": 32,
     "drawerH": 32,
     "drawerD": 40,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "barlow",
     "numberColor": "#b45309",
     "name": "",
     "baseColor": "#15803d",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   },
   {
    "id": "advent-25-days",
    "title": "Advent calendar, 25 days to Christmas",
    "description": "Twenty-five drawers, 5 across, the last one for Christmas Day.",
    "values": {
     "days": 25,
     "cols": 5,
     "bed": "256",
     "hang": true,
     "drawerW": 32,
     "drawerH": 32,
     "drawerD": 40,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "barlow",
     "numberColor": "#b45309",
     "name": "",
     "baseColor": "#1d4ed8",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   },
   {
    "id": "advent-kids-name",
    "title": "Advent calendar with a name",
    "description": "The 24-drawer calendar with a title bar and a name engraved over it, in a rounded lettering.",
    "values": {
     "days": 24,
     "cols": 6,
     "bed": "256",
     "hang": true,
     "drawerW": 32,
     "drawerH": 32,
     "drawerD": 40,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "lilita",
     "numberColor": "#a21caf",
     "name": "NOA",
     "baseColor": "#15803d",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   },
   {
    "id": "advent-sweets-24",
    "title": "Advent sweets calendar, 25 mm drawers",
    "description": "Twenty-four small drawers of 25 × 25 × 35 mm, 8 across, for a single sweet each.",
    "values": {
     "days": 24,
     "cols": 8,
     "bed": "256",
     "hang": true,
     "drawerW": 25,
     "drawerH": 25,
     "drawerD": 35,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "barlow",
     "numberColor": "#b45309",
     "name": "",
     "baseColor": "#be185d",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   },
   {
    "id": "advent-gifts-12",
    "title": "12 big gift drawers",
    "description": "Twelve drawers of 60 × 50 × 80 mm for real presents, one module on a 256 mm bed.",
    "values": {
     "days": 12,
     "cols": 3,
     "bed": "256",
     "hang": true,
     "drawerW": 60,
     "drawerH": 50,
     "drawerD": 80,
     "drawerWall": 1.6,
     "clearance": 0.25,
     "wall": 2.4,
     "frame": 6,
     "coupon": true,
     "numberFont": "barlow",
     "numberColor": "#b45309",
     "name": "",
     "baseColor": "#374151",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 15
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl"
   ],
   "default": "3mf"
  },
  "exportTol": {
   "type": "number",
   "title": "Mesh precision",
   "description": "Simplification tolerance in mm (0 = original mesh).",
   "x-group": "download",
   "x-role": "core.exportTolerance",
   "x-unit": "mm",
   "x-agentSafe": true,
   "enum": [
    0,
    0.01,
    0.02
   ],
   "default": 0.02
  },
  "units": {
   "type": "string",
   "title": "Units shown",
   "description": "Display only: mm or inches (1 in = 25.4 mm). Stored values, the API and exports are always mm.",
   "x-group": "view",
   "x-role": "core.displayUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "mm",
    "in"
   ],
   "x-enumTitles": {
    "mm": "Millimetres",
    "in": "Inches"
   },
   "default": "mm"
  }
 },
 "type": "object",
 "properties": {
  "days": {
   "type": "integer",
   "minimum": 1,
   "maximum": 31,
   "multipleOf": 1,
   "title": "Days",
   "description": "How many numbered drawers: 24 for a classic Advent, 25 to Christmas Day, 12 or 7 for a shorter one.",
   "x-group": "days",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Dienas",
   "default": 24,
   "x-resetOnPreset": true
  },
  "cols": {
   "type": "integer",
   "minimum": 1,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Drawers across",
   "description": "Drawers in a row. The rows follow from the days: 24 days in 6 across is 4 rows.",
   "x-group": "cabinet",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Atvilktnes platumā",
   "default": 6,
   "x-resetOnPreset": true
  },
  "bed": {
   "type": "string",
   "enum": [
    "180",
    "220",
    "256",
    "350"
   ],
   "x-enumTitles": {
    "180": "180 × 180 mm",
    "220": "220 × 220 mm",
    "256": "256 × 256 mm",
    "350": "350 × 350 mm"
   },
   "title": "Print bed",
   "description": "The cabinet is cut into modules that fit this bed, whole drawers each, so that they line up side by side.",
   "x-group": "cabinet",
   "x-agentSafe": true,
   "x-label-lv": "Drukāšanas galds",
   "default": "256",
   "x-resetOnPreset": true
  },
  "hang": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Hanging holes",
   "description": "A 4.5 mm hole through the back of the top modules, for a screw into the wall.",
   "x-group": "cabinet",
   "x-agentSafe": true,
   "x-label-lv": "Pakarināšanas caurumi",
   "default": 1,
   "x-resetOnPreset": true
  },
  "drawerW": {
   "type": "number",
   "minimum": 15,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Drawer width",
   "description": "Inside the drawer, across. 30 mm holds a chocolate, 50 mm a small toy.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atvilktnes platums",
   "default": 32,
   "x-resetOnPreset": true
  },
  "drawerH": {
   "type": "number",
   "minimum": 15,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Drawer height",
   "description": "Inside the drawer.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atvilktnes augstums",
   "default": 32,
   "x-resetOnPreset": true
  },
  "drawerD": {
   "type": "number",
   "minimum": 15,
   "maximum": 120,
   "multipleOf": 1,
   "title": "Drawer depth",
   "description": "Inside the drawer, front to back. The cabinet is this deep plus its walls.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atvilktnes dziļums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "drawerWall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Drawer wall",
   "description": "1.6 mm with four perimeters prints solid; a thin wall flexes over the catch that keeps the drawer in.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Atvilktnes siena",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.15,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Clearance",
   "description": "Room round the drawer in its cell, on each side. 0.25 mm slides with a light catch; 0.4 slides loose. Print the fit coupon first.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Pielaide",
   "default": 0.25,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 1.6,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Cabinet wall",
   "description": "The dividers between the drawers and the back plate. 2.4 mm is rigid in PETG.",
   "x-group": "cabinet",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Skapja siena",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "frame": {
   "type": "number",
   "minimum": 3,
   "maximum": 15,
   "multipleOf": 1,
   "title": "Frame width",
   "description": "The border round each module, at the least half a wall wider than the drawers' fronts.",
   "x-group": "cabinet",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Rāmja platums",
   "default": 6,
   "x-resetOnPreset": true
  },
  "coupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "One cell of the cabinet, to try the first drawer in before printing the whole calendar.",
   "x-group": "drawer",
   "x-agentSafe": true,
   "x-label-lv": "Pielaides kupons",
   "default": 1,
   "x-resetOnPreset": true
  },
  "numberFont": {
   "type": "string",
   "enum": [
    "lilita",
    "barlow",
    "varela",
    "pacifico"
   ],
   "x-enumTitles": {
    "lilita": "Lilita: rounded",
    "barlow": "Barlow: plain",
    "varela": "Varela: wide",
    "pacifico": "Pacifico: script"
   },
   "title": "Numbering",
   "description": "The lettering of the numbers, engraved in the drawer fronts.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Cipari",
   "default": "barlow",
   "x-resetOnPreset": true
  },
  "numberColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Number colour",
   "description": "The numbers are printed in this colour, inlaid in the engravings: a change of filament in the slicer.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Ciparu krāsa",
   "default": "#b45309",
   "x-resetOnPreset": true
  },
  "name": {
   "type": "string",
   "maxLength": 16,
   "title": "Name on top",
   "description": "Up to 16 characters, engraved in a title bar over the first module. Empty: no bar.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Vārds augšā",
   "default": "",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Calendar colour",
   "description": "The cabinet, the drawers and the name plate.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Kalendāra krāsa",
   "default": "#0e7490",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "PETG for drawers that are pulled every day; PLA for a calendar that lives indoors and is packed away.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.12,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "0.2 mm for the cabinet; 0.16 mm for the numbers to come out crisp.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Drawers and dividers print all walls: four lines make 1.6 to 2.4 mm solid.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 0,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "Only the back plate and the frames have room for infill.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 15,
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "pla-matte-filament",
   "title": "Matte PLA Filament 1.75 mm (1 kg) — smooth surface finish",
   "why": "Clean matte finish for decorative vases, ornaments and candle holders.",
   "url": "https://paramlet.com/go/pla-matte-filament?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "deburring-tool-set",
   "title": "Precision Deburring Tool with 10 HSS Blades",
   "why": "Cleans brim edges and drill-hole chamfers in seconds.",
   "url": "https://paramlet.com/go/deburring-tool-set?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}