{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/cabinet-handle/schema.json",
 "title": "Cabinet handle — parameters",
 "description": "Bar pulls, edge pulls and knobs that fit the holes already in your drawers and doors, any spacing from 32 to 320 mm, for heat-set inserts or screws. 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": "cabinet-handle",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "fit",
   "title": "The holes and screws"
  },
  {
   "id": "shape",
   "title": "Shape"
  },
  {
   "id": "name",
   "title": "Name on the bar"
  },
  {
   "id": "colour",
   "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": "bar-pull-96mm",
    "title": "Modern bar pull, 96 mm",
    "description": "A slim graphite D bar on two posts 96 mm apart, M4 heat-set inserts, a 30 mm grip.",
    "values": {
     "kind": "bar",
     "spacing": 96,
     "profile": "d",
     "mount": "insert",
     "screwSize": "M4",
     "baseColor": "#1f2937"
    }
   },
   {
    "id": "kitchen-handle-128mm",
    "title": "Kitchen cabinet handle, 128 mm",
    "description": "A white bevelled bar for 128 mm holes, M4 inserts, chunky 14 mm bar.",
    "values": {
     "kind": "bar",
     "spacing": 128,
     "overhang": 24,
     "profile": "bevel",
     "barSize": 14,
     "mount": "insert",
     "screwSize": "M4",
     "baseColor": "#f1f1f1"
    }
   },
   {
    "id": "wardrobe-handle-160mm",
    "title": "Wardrobe handle, 160 mm",
    "description": "A black square bar 160 mm apart with a 36 mm grip for a heavy door, M5 inserts.",
    "values": {
     "kind": "bar",
     "spacing": 160,
     "overhang": 26,
     "profile": "square",
     "barSize": 16,
     "grip": 36,
     "mount": "insert",
     "screwSize": "M5",
     "baseColor": "#111111"
    }
   },
   {
    "id": "edge-pull-no-visible-screws",
    "title": "Edge pull, no visible screws",
    "description": "An edge pull screwed to the back of a 16 mm drawer front, its lip hooking over the top: nothing shows in front.",
    "values": {
     "kind": "edge",
     "frontThickness": 16,
     "pullWidth": 120,
     "mount": "screw",
     "screwSize": "wood4",
     "baseColor": "#334155"
    }
   },
   {
    "id": "backplate-covers-old-holes",
    "title": "Backplate pull covers old holes",
    "description": "A brass bar on a plate: new holes 128 mm apart, old ones 96 mm hidden under the plate.",
    "values": {
     "kind": "backplate",
     "spacing": 128,
     "oldSpacing": 96,
     "overhang": 22,
     "mount": "insert",
     "screwSize": "M4",
     "baseColor": "#b45309"
    }
   },
   {
    "id": "single-hole-knob",
    "title": "Single-hole knob, flat-pack style",
    "description": "A round teal knob with a 4.4 mm through hole for an M4 screw from the front.",
    "values": {
     "kind": "knob",
     "mount": "through",
     "screwSize": "M4",
     "knobSize": 32,
     "baseColor": "#0e7490"
    }
   },
   {
    "id": "kids-pull-with-name",
    "title": "Kids pull with a name",
    "description": "A pink square bar with LIA in gold on the front, M4 inserts, 64 mm apart for a small drawer.",
    "values": {
     "kind": "bar",
     "spacing": 64,
     "overhang": 30,
     "profile": "square",
     "barSize": 16,
     "names": "LIA",
     "font": "lilita",
     "baseColor": "#be185d",
     "nameColor": "#f2c14e"
    }
   }
  ]
 },
 "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": {
  "kind": {
   "type": "string",
   "enum": [
    "bar",
    "knob",
    "backplate",
    "edge"
   ],
   "x-enumTitles": {
    "bar": "Bar pull (two posts)",
    "knob": "Single-hole knob",
    "backplate": "Bar pull on a backplate (covers old holes)",
    "edge": "Edge pull (screwed from behind, no visible screws)"
   },
   "title": "Kind",
   "description": "A bar on two posts for your holes; a knob on one; the bar on a plate that covers old holes; an edge pull screwed behind a drawer front, hooking over its top.",
   "x-group": "fit",
   "x-agentSafe": true,
   "x-label-lv": "Veids",
   "default": "bar",
   "x-resetOnPreset": true
  },
  "spacing": {
   "type": "number",
   "minimum": 32,
   "maximum": 320,
   "multipleOf": 1,
   "title": "Hole spacing",
   "description": "Centre to centre of the holes already in the drawer: 96 mm on most kitchen cabinets (3 inches), 128 and 160 on wardrobes, 32 and 64 on small drawers.",
   "x-group": "fit",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Caurumu attālums",
   "default": 96,
   "x-resetOnPreset": true
  },
  "mount": {
   "type": "string",
   "enum": [
    "insert",
    "screw",
    "through"
   ],
   "x-enumTitles": {
    "insert": "Heat-set insert (screw from inside the drawer)",
    "screw": "Self-tapping screw (pilot hole)",
    "through": "Through hole (screw head in front)"
   },
   "title": "Mounting",
   "description": "Insert: a hole for a heat-set insert, screwed from inside. Screw: a pilot hole that the screw threads itself. Through: a hole right through, a counterbore in front.",
   "x-group": "fit",
   "x-visibleIf": {
    "kind": [
     "bar",
     "knob",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Piemontēšana",
   "default": "insert",
   "x-resetOnPreset": true
  },
  "screwSize": {
   "type": "string",
   "enum": [
    "M3",
    "M4",
    "M5",
    "#8-32",
    "wood4",
    "wood5"
   ],
   "x-enumTitles": {
    "M3": "M3",
    "M4": "M4",
    "M5": "M5",
    "#8-32": "#8-32 (US)",
    "wood4": "Wood screw 4 mm",
    "wood5": "Wood screw 5 mm"
   },
   "title": "Screw",
   "description": "The screw or insert the holes are made for. M4 with an insert is the kitchen standard.",
   "x-group": "fit",
   "x-visibleIf": {
    "kind": [
     "bar",
     "knob",
     "backplate",
     "edge"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūve",
   "default": "M4",
   "x-resetOnPreset": true
  },
  "grip": {
   "type": "number",
   "minimum": 20,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Grip clearance",
   "description": "How far the bar stands out from the drawer face, for your fingers. 30 mm suits most hands; 25 for a narrow drawer.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar",
     "knob",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Satveršanas atstarpe",
   "default": 30,
   "x-resetOnPreset": true
  },
  "overhang": {
   "type": "number",
   "minimum": 0,
   "maximum": 40,
   "multipleOf": 1,
   "title": "End overhang",
   "description": "How far the bar runs past each post. The bar is the hole spacing plus twice this.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Gala pārkare",
   "default": 20,
   "x-resetOnPreset": true
  },
  "barSize": {
   "type": "number",
   "minimum": 10,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Bar size",
   "description": "Across the bar. 12 mm is a slim modern pull; 16 a chunky one.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Joslas resnums",
   "default": 12,
   "x-resetOnPreset": true
  },
  "postSize": {
   "type": "number",
   "minimum": 10,
   "maximum": 18,
   "multipleOf": 1,
   "title": "Post size",
   "description": "Across the posts that take the screws. They must be wider than the insert or nut: the page says so.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "bar",
     "knob",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Stabiņa resnums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "knobSize": {
   "type": "number",
   "minimum": 24,
   "maximum": 48,
   "multipleOf": 2,
   "title": "Knob size",
   "description": "Across the knob, which prints as it hangs: flat side down, the pull along the layers.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "knob"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pogas izmērs",
   "default": 32,
   "x-resetOnPreset": true
  },
  "profile": {
   "type": "string",
   "enum": [
    "d",
    "square",
    "bevel"
   ],
   "x-enumTitles": {
    "d": "D: round with a flat bottom",
    "square": "Square, softened corners",
    "bevel": "Bevel: a chamfered top"
   },
   "title": "Profile",
   "description": "The cross-section of the bar and the posts. Every one has a flat bottom, so the handle prints as it hangs with the pull along the layers.",
   "x-group": "shape",
   "x-visibleIf": {
    "kind": [
     "bar",
     "backplate",
     "knob"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Profils",
   "default": "d",
   "x-resetOnPreset": true
  },
  "oldSpacing": {
   "type": "number",
   "minimum": 32,
   "maximum": 320,
   "multipleOf": 1,
   "title": "Old hole spacing",
   "description": "The holes the plate must cover. The plate is made long and tall enough to hide them.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Veco caurumu attālums",
   "default": 64,
   "x-resetOnPreset": true
  },
  "frontThickness": {
   "type": "number",
   "minimum": 12,
   "maximum": 25,
   "x-step": 0.5,
   "title": "Drawer front thickness",
   "description": "Of the drawer front the edge pull hooks over, measured at the top edge.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "edge"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Priekšpuses biezums",
   "default": 16,
   "x-resetOnPreset": true
  },
  "pullWidth": {
   "type": "number",
   "minimum": 60,
   "maximum": 300,
   "multipleOf": 10,
   "title": "Edge pull width",
   "description": "Along the drawer front.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "edge"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Malas turētāja platums",
   "default": 120,
   "x-resetOnPreset": true
  },
  "lipHeight": {
   "type": "number",
   "minimum": 15,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Lip height",
   "description": "How far the lip comes down the face of the drawer front, for your fingers to hook behind.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "kind": [
     "edge"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Lūpas augstums",
   "default": 20,
   "x-resetOnPreset": true
  },
  "names": {
   "type": "string",
   "maxLength": 12,
   "title": "Name",
   "description": "Up to 12 characters standing on the front of the bar in a second colour. Empty: a plain bar.",
   "x-group": "name",
   "x-visibleIf": {
    "kind": [
     "bar",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vārds",
   "default": "",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "pacifico",
    "varela",
    "barlow"
   ],
   "x-enumTitles": {
    "lilita": "Bold rounded (Lilita One)",
    "pacifico": "Script, joined letters (Pacifico)",
    "varela": "Clean rounded (Varela Round)",
    "barlow": "Narrow, for long names (Barlow Condensed)"
   },
   "title": "Font",
   "description": "All fonts are free (SIL Open Font License) and have the Latvian letters.",
   "x-group": "name",
   "x-visibleIf": {
    "kind": [
     "bar",
     "backplate"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Fonts",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Handle colour",
   "description": "The handle, its plate and its coupon.",
   "x-group": "colour",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Turētāja krāsa",
   "default": "#1f2937",
   "x-resetOnPreset": true
  },
  "nameColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Letter colour",
   "description": "The letters in the 3MF as a volume of their own: give it its filament in the slicer.",
   "x-group": "colour",
   "x-agentSafe": true,
   "x-label-lv": "Burtu krāsa",
   "default": "#f2c14e",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "pla",
    "asa"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "pla": "PLA",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "Only the pull figure the page works out. PETG layers hold a drawer that is yanked; PLA is fine indoors.",
   "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": "The letter raise is snapped to whole layers.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "print.layerHeight",
   "x-agentSafe": true,
   "x-label-lv": "Slāņa augstums",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "fitCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "One post with its hole, to try the screw or the insert before printing the handle.",
   "x-group": "print",
   "x-visibleIf": {
    "kind": [
     "bar",
     "knob",
     "backplate",
     "edge"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pielaides kupons",
   "default": 1,
   "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)"
  },
  {
   "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)"
  }
 ]
}