{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/drawer-organizer/schema.json",
 "title": "Drawer organizer — parameters",
 "description": "Drawer inserts cut to your drawer: type its inside size and the compartments, get flat-printing walls that lap and key together, split to fit any bed. 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": "drawer-organizer",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "drawer",
   "title": "The drawer"
  },
  {
   "id": "layout",
   "title": "Compartments"
  },
  {
   "id": "build",
   "title": "Walls and floor"
  },
  {
   "id": "look",
   "title": "Colours"
  },
  {
   "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": "cutlery-drawer-5-slots",
    "title": "Cutlery drawer, 5 slots",
    "description": "A 400 × 300 mm kitchen drawer with five long slots for knives, forks and spoons, 60 mm walls, no floor.",
    "values": {
     "color": "#1f4e8c"
    }
   },
   {
    "id": "desk-drawer-pens-notes-cables",
    "title": "Desk drawer: pens, notes, cables",
    "description": "A teal 350 × 250 mm desk drawer in a 3 × 2 grid with typed divider positions: two pens, notes, two cables.",
    "values": {
     "layout": "custom",
     "width": 350,
     "depth": 250,
     "height": 50,
     "splitsX": "80, 180",
     "splitsY": "120",
     "color": "#0e7490"
    }
   },
   {
    "id": "bathroom-drawer-cups-floor",
    "title": "Bathroom drawer, six cups, with a floor",
    "description": "A cream 300 × 250 mm bathroom drawer with a floor in tiles: three cups in front of three more, 50 mm walls.",
    "values": {
     "layout": "custom",
     "width": 300,
     "depth": 250,
     "height": 50,
     "splitsX": "100, 200",
     "splitsY": "150",
     "base": "floor",
     "color": "#f1e9d8"
    }
   },
   {
    "id": "junk-drawer-3x3-floor",
    "title": "Junk drawer 3 × 3, two colours",
    "description": "An orange and cream 450 × 350 mm junk drawer in a 3 × 3 grid with a floor, walls 40 mm so things stay in view.",
    "values": {
     "width": 450,
     "depth": 350,
     "height": 40,
     "cols": 3,
     "rows": 3,
     "base": "floor",
     "colors": "2",
     "color": "#c2410c",
     "color2": "#f1e9d8"
    }
   },
   {
    "id": "wide-drawer-600-ikea-alex-style",
    "title": "Wide drawer 600 × 400, IKEA Alex style",
    "description": "A 600 × 400 mm desk drawer in a 3 × 2 grid with 80 mm walls: the long sides print as two segments with keys. Measure yours first.",
    "values": {
     "color": "#1d4ed8",
     "width": 600,
     "depth": 400,
     "height": 80,
     "wall": 2,
     "cols": 3,
     "rows": 2
    }
   },
   {
    "id": "tool-drawer-long-slots",
    "title": "Tool drawer, long slots",
    "description": "A graphite 500 × 350 mm tool drawer with four long slots for screwdrivers, pliers and wrenches, walls 50 mm.",
    "values": {
     "layout": "custom",
     "width": 500,
     "depth": 350,
     "height": 50,
     "splitsX": "60, 120, 200",
     "wall": 2,
     "color": "#1f2937"
    }
   },
   {
    "id": "cutlery-on-a-180-bed",
    "title": "Cutlery drawer for a 180 mm bed",
    "description": "The same 400 × 300 mm five-slot drawer, laid out for a 180 mm printer: every wall comes in segments that keys lock together.",
    "values": {
     "color": "#0f766e",
     "bed": "180"
    }
   },
   {
    "id": "tall-craft-drawer-4x2",
    "title": "Tall craft drawer 4 × 2, three colours",
    "description": "A 500 × 400 mm drawer with 100 mm walls in 2.4 mm, eight compartments in blue, cream and orange.",
    "values": {
     "color": "#7c3aed",
     "width": 500,
     "depth": 400,
     "height": 100,
     "wall": 2.4,
     "cols": 4,
     "rows": 2,
     "colors": "3",
     "color2": "#f1e9d8",
     "color3": "#c2410c"
    }
   }
  ]
 },
 "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": {
  "width": {
   "type": "number",
   "minimum": 80,
   "maximum": 700,
   "multipleOf": 1,
   "title": "Drawer inside width",
   "description": "Measure the drawer inside, side to side. The insert comes out this wide less the clearance.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atvilktnes iekšējais platums",
   "default": 400,
   "x-resetOnPreset": true
  },
  "depth": {
   "type": "number",
   "minimum": 80,
   "maximum": 700,
   "multipleOf": 1,
   "title": "Drawer inside depth",
   "description": "Front to back, inside. Measure both near the top and near the bottom: drawers taper.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Atvilktnes iekšējais dziļums",
   "default": 300,
   "x-resetOnPreset": true
  },
  "height": {
   "type": "number",
   "minimum": 20,
   "maximum": 150,
   "multipleOf": 1,
   "title": "Insert height",
   "description": "The insert's height. A fraction under the drawer's inside height, so it still closes; with a floor the walls stand on it.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Ieliktņa augstums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0,
   "maximum": 3,
   "x-step": 0.5,
   "title": "Clearance per side",
   "description": "The gap between the insert and the drawer on each side. 0.5 mm drops in; 1.5 mm lifts out easily.",
   "x-group": "drawer",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe katrai pusei",
   "default": 0.5,
   "x-resetOnPreset": true
  },
  "layout": {
   "type": "string",
   "enum": [
    "grid",
    "custom"
   ],
   "x-enumTitles": {
    "grid": "Grid: so many columns and rows",
    "custom": "Custom: type the divider positions"
   },
   "title": "Layout",
   "description": "A grid spaces the dividers evenly. Custom takes positions in mm, comma separated.",
   "x-group": "layout",
   "x-agentSafe": true,
   "x-label-lv": "Izkārtojums",
   "default": "grid",
   "x-resetOnPreset": true
  },
  "cols": {
   "type": "number",
   "minimum": 1,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Columns",
   "description": "Compartments across the drawer, side to side.",
   "x-group": "layout",
   "x-unit": "count",
   "x-visibleIf": {
    "layout": "grid"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kolonnas",
   "default": 5,
   "x-resetOnPreset": true
  },
  "rows": {
   "type": "number",
   "minimum": 1,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Rows",
   "description": "Compartments front to back.",
   "x-group": "layout",
   "x-unit": "count",
   "x-visibleIf": {
    "layout": "grid"
   },
   "x-agentSafe": true,
   "x-label-lv": "Rindas",
   "default": 1,
   "x-resetOnPreset": true
  },
  "splitsX": {
   "type": "string",
   "maxLength": 40,
   "title": "Column dividers, mm from the left",
   "description": "Where the dividers running front to back stand: their centres in mm from the inside of the left side, comma separated, e.g. 80, 180.",
   "x-group": "layout",
   "x-visibleIf": {
    "layout": "custom"
   },
   "x-agentSafe": true,
   "x-label-lv": "Vertikālās starpsienas, mm no kreisās",
   "default": "",
   "x-resetOnPreset": true
  },
  "splitsY": {
   "type": "string",
   "maxLength": 40,
   "title": "Row dividers, mm from the front",
   "description": "Where the dividers running side to side stand: their centres in mm from the inside of the front, comma separated.",
   "x-group": "layout",
   "x-visibleIf": {
    "layout": "custom"
   },
   "x-agentSafe": true,
   "x-label-lv": "Horizontālās starpsienas, mm no priekšas",
   "default": "",
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Wall thickness",
   "description": "1.6 mm prints solid in four lines. 2 mm or more for walls over 70 mm tall.",
   "x-group": "build",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "base": {
   "type": "string",
   "enum": [
    "none",
    "floor"
   ],
   "x-enumTitles": {
    "none": "Walls only: the drawer is the floor",
    "floor": "With a floor, in tiles"
   },
   "title": "Floor",
   "description": "A floor of tiles under the walls keeps in the smallest things and lets the insert lift out whole. It adds parts and filament.",
   "x-group": "build",
   "x-agentSafe": true,
   "x-label-lv": "Grīda",
   "default": "none",
   "x-resetOnPreset": true
  },
  "floorT": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 2.4,
   "x-step": 0.2,
   "title": "Floor thickness",
   "description": "The tiles' thickness. 1.6 mm holds a drawer's worth; 2 mm for tools.",
   "x-group": "build",
   "x-unit": "mm",
   "x-visibleIf": {
    "base": "floor"
   },
   "x-agentSafe": true,
   "x-label-lv": "Grīdas biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "scoops": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Finger scoops",
   "description": "A dip in the top edge of every divider and of the front and back, to get fingers under things.",
   "x-group": "build",
   "x-agentSafe": true,
   "x-label-lv": "Pirkstu iedobumi",
   "default": 1,
   "x-resetOnPreset": true
  },
  "bed": {
   "type": "string",
   "enum": [
    "180",
    "220",
    "256"
   ],
   "x-enumTitles": {
    "180": "180 mm bed",
    "220": "220 mm bed",
    "256": "256 mm bed"
   },
   "title": "Printer bed",
   "description": "Walls longer than this less 20 mm print as segments that a key locks together.",
   "x-group": "build",
   "x-agentSafe": true,
   "x-label-lv": "Printera gultne",
   "default": "256",
   "x-resetOnPreset": true
  },
  "colors": {
   "type": "string",
   "enum": [
    "1",
    "2",
    "3",
    "4"
   ],
   "x-enumTitles": {
    "1": "One colour",
    "2": "Two colours",
    "3": "Three colours",
    "4": "Four colours"
   },
   "title": "Colours",
   "description": "The sides take the first colour, the dividers and the floor the rest in turn: for a printer with more than one filament.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "1",
   "x-resetOnPreset": true
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour 1",
   "description": "The four sides.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "1. krāsa",
   "default": "#1f4e8c",
   "x-resetOnPreset": true
  },
  "color2": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour 2",
   "description": "The first dividers and floor tiles to take another colour.",
   "x-group": "look",
   "x-visibleIf": {
    "colors": {
     "ne": "1"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "2. krāsa",
   "default": "#f1e9d8",
   "x-resetOnPreset": true
  },
  "color3": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour 3",
   "description": "Every third divider and tile.",
   "x-group": "look",
   "x-visibleIf": {
    "colors": [
     "3",
     "4"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "3. krāsa",
   "default": "#c2410c",
   "x-resetOnPreset": true
  },
  "color4": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour 4",
   "description": "Every fourth divider and tile.",
   "x-group": "look",
   "x-visibleIf": {
    "colors": "4"
   },
   "x-agentSafe": true,
   "x-label-lv": "4. krāsa",
   "default": "#3f6212",
   "x-resetOnPreset": true
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PLA for a drawer at home. PETG where it is warm or damp; ASA for a hot car or garage. Only the mass on the page changes with it.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla",
   "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": "petg-filament-1kg",
   "title": "PETG Filament 1.75 mm (1 kg) — heat-resistant & durable",
   "why": "Stronger and more heat-resistant than PLA for molds, jigs and outdoor parts.",
   "url": "https://paramlet.com/go/petg-filament-1kg?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}