{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/stocking-holder/schema.json",
 "title": "Stocking holder — parameters",
 "description": "Christmas stocking hooks that grip a mantel or shelf edge of the thickness you measure, with a ballast box behind and a name engraved on the front: one per family member. 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": "stocking-holder",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "mantel",
   "title": "The mantel"
  },
  {
   "id": "hook",
   "title": "The hook and its ballast"
  },
  {
   "id": "name",
   "title": "Name and lettering"
  },
  {
   "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": "mantel-hook-30mm",
    "title": "Mantel stocking hook, 30 mm mantel",
    "description": "A plain hook for a 30 mm mantel or shelf edge, with a ballast box behind it: fill it with sand or coins and it holds a filled stocking.",
    "values": {
     "mantel": 30,
     "clearance": 0.3,
     "gripDepth": 120,
     "backLip": 25,
     "boxHeight": 30,
     "ballastG": 300,
     "drop": 70,
     "reach": 25,
     "tipHeight": 22,
     "width": 40,
     "wall": 5,
     "fitCoupon": true,
     "name": "",
     "font": "barlow",
     "baseColor": "#b91c1c",
     "lidColor": "#f3efe6",
     "nameColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   },
   {
    "id": "name-hook-emma",
    "title": "Name stocking hook, Emma",
    "description": "The mantel hook with a name engraved on its front arm, inlaid in gold: one per family member.",
    "values": {
     "mantel": 30,
     "clearance": 0.3,
     "gripDepth": 120,
     "backLip": 25,
     "boxHeight": 30,
     "ballastG": 300,
     "drop": 70,
     "reach": 25,
     "tipHeight": 22,
     "width": 40,
     "wall": 5,
     "fitCoupon": true,
     "name": "EMMA",
     "font": "barlow",
     "baseColor": "#7c3aed",
     "lidColor": "#f3efe6",
     "nameColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   },
   {
    "id": "deep-mantel-50mm",
    "title": "Deep mantel hook, 50 mm mantel",
    "description": "For a thick stone or wood mantel: a 50 mm grip, a deeper ballast box with room for 500 g of sand.",
    "values": {
     "mantel": 50,
     "clearance": 0.3,
     "gripDepth": 150,
     "backLip": 40,
     "boxHeight": 40,
     "ballastG": 500,
     "drop": 70,
     "reach": 25,
     "tipHeight": 22,
     "width": 40,
     "wall": 5,
     "fitCoupon": true,
     "name": "",
     "font": "barlow",
     "baseColor": "#374151",
     "lidColor": "#a8b1bc",
     "nameColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   },
   {
    "id": "slim-shelf-20mm",
    "title": "Slim shelf-edge hook, 20 mm",
    "description": "For a 20 mm shelf: a narrower hook with a lower box, for light stockings and advent bags.",
    "values": {
     "mantel": 20,
     "clearance": 0.3,
     "gripDepth": 80,
     "backLip": 25,
     "boxHeight": 20,
     "ballastG": 150,
     "drop": 50,
     "reach": 25,
     "tipHeight": 22,
     "width": 30,
     "wall": 5,
     "fitCoupon": true,
     "name": "",
     "font": "barlow",
     "baseColor": "#15803d",
     "lidColor": "#f3efe6",
     "nameColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   },
   {
    "id": "heavy-stocking-hook",
    "title": "Heavy stocking hook, 1 kg",
    "description": "A wide hook with a tall box for 800 g of ballast: the page says it holds a kilogram.",
    "values": {
     "mantel": 30,
     "clearance": 0.3,
     "gripDepth": 180,
     "backLip": 25,
     "boxHeight": 45,
     "ballastG": 800,
     "drop": 90,
     "reach": 35,
     "tipHeight": 30,
     "width": 50,
     "wall": 6,
     "fitCoupon": true,
     "name": "",
     "font": "barlow",
     "baseColor": "#0e7490",
     "lidColor": "#f3efe6",
     "nameColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   },
   {
    "id": "pla-shelf-hook",
    "title": "Indoor shelf hook in PLA",
    "description": "For a bookshelf far from any heat, in PLA: a 25 mm shelf, a short drop, a plain red hook.",
    "values": {
     "mantel": 25,
     "clearance": 0.3,
     "gripDepth": 100,
     "backLip": 25,
     "boxHeight": 25,
     "ballastG": 200,
     "drop": 55,
     "reach": 25,
     "tipHeight": 22,
     "width": 40,
     "wall": 5,
     "fitCoupon": true,
     "name": "",
     "font": "barlow",
     "baseColor": "#0f766e",
     "lidColor": "#f2c230",
     "nameColor": "#f2c14e",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   },
   {
    "id": "christmas-name-hook",
    "title": "Christmas name hook, Noa",
    "description": "Green with a gold name in a rounded lettering: the children's hook under the chimney.",
    "values": {
     "mantel": 30,
     "clearance": 0.3,
     "gripDepth": 120,
     "backLip": 25,
     "boxHeight": 30,
     "ballastG": 300,
     "drop": 70,
     "reach": 25,
     "tipHeight": 22,
     "width": 40,
     "wall": 5,
     "fitCoupon": true,
     "name": "NOA",
     "font": "lilita",
     "baseColor": "#b45309",
     "lidColor": "#f3efe6",
     "nameColor": "#f2c14e",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   },
   {
    "id": "long-name-hook",
    "title": "Long name hook, Christopher",
    "description": "An eleven-letter name on a 60 mm wide hook, in a plain lettering that stays legible small.",
    "values": {
     "mantel": 30,
     "clearance": 0.3,
     "gripDepth": 120,
     "backLip": 25,
     "boxHeight": 30,
     "ballastG": 300,
     "drop": 70,
     "reach": 25,
     "tipHeight": 22,
     "width": 60,
     "wall": 5,
     "fitCoupon": true,
     "name": "CHRISTOPHER",
     "font": "barlow",
     "baseColor": "#1d4ed8",
     "lidColor": "#f3efe6",
     "nameColor": "#ffffff",
     "material": "petg",
     "layerHeight": 0.2,
     "wallCount": 5,
     "infill": 25
    }
   }
  ]
 },
 "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": {
  "mantel": {
   "type": "number",
   "minimum": 15,
   "maximum": 80,
   "multipleOf": 1,
   "title": "Mantel thickness",
   "description": "How thick the shelf or mantel edge is, front to back, measured with calipers. The hook grips it from above.",
   "x-group": "mantel",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Dzega biezums",
   "default": 30,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.8,
   "x-step": 0.05,
   "title": "Clearance",
   "description": "Room round the mantel, on each side. 0.3 mm slides on; 0.2 is snug. Print the fit coupon first.",
   "x-group": "mantel",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Pielaide",
   "default": 0.3,
   "x-resetOnPreset": true
  },
  "gripDepth": {
   "type": "number",
   "minimum": 40,
   "maximum": 200,
   "multipleOf": 5,
   "title": "Grip depth",
   "description": "How far the ballast box reaches back over the mantel. Deeper grips carry more ballast further from the edge, so a heavy stocking tips them less.",
   "x-group": "mantel",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Satveršanas dziļums",
   "default": 120,
   "x-resetOnPreset": true
  },
  "backLip": {
   "type": "number",
   "minimum": 10,
   "maximum": 60,
   "multipleOf": 5,
   "title": "Back lip",
   "description": "How far the hook comes down the back face of the mantel, so that it cannot slide off.",
   "x-group": "mantel",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Aizmugures lūpa",
   "default": 25,
   "x-resetOnPreset": true
  },
  "boxHeight": {
   "type": "number",
   "minimum": 15,
   "maximum": 50,
   "multipleOf": 5,
   "title": "Ballast box height",
   "description": "How tall the box over the mantel is. It holds sand or coins; the page says how much room there is.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Balasta kastes augstums",
   "default": 30,
   "x-resetOnPreset": true
  },
  "ballastG": {
   "type": "number",
   "minimum": 0,
   "maximum": 2000,
   "multipleOf": 10,
   "title": "Ballast weight",
   "description": "What you put in the box, weighed: dry sand is about 1.5 g a cubic centimetre, coins more. 200 g is a box of coins. The page works out how heavy a stocking the hook then holds.",
   "x-group": "hook",
   "x-unit": "g",
   "x-agentSafe": true,
   "x-label-lv": "Balasta svars",
   "default": 200,
   "x-resetOnPreset": true
  },
  "drop": {
   "type": "number",
   "minimum": 40,
   "maximum": 120,
   "multipleOf": 5,
   "title": "Hook drop",
   "description": "How far the front arm comes down the face of the mantel, to the hook itself. The name sits on it.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Āķa nokare",
   "default": 70,
   "x-resetOnPreset": true
  },
  "reach": {
   "type": "number",
   "minimum": 15,
   "maximum": 50,
   "multipleOf": 1,
   "title": "Hook reach",
   "description": "How far the hook stands out from the mantel, for the stocking's loop.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Āķa izliekums",
   "default": 25,
   "x-resetOnPreset": true
  },
  "tipHeight": {
   "type": "number",
   "minimum": 10,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Tip height",
   "description": "How far the tip of the hook rises above its bar: the stocking loop lifts over it.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Galciņa augstums",
   "default": 22,
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 20,
   "maximum": 60,
   "multipleOf": 2,
   "title": "Hook width",
   "description": "Across the hook, which prints lying flat. Wider holds more ballast and fits a longer name.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Āķa platums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 3,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Plate thickness",
   "description": "Of the hook's profile and the box's walls. 5 mm in PETG holds a filled stocking.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes biezums",
   "default": 5,
   "x-resetOnPreset": true
  },
  "fitCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "A 20 mm slice of the grip, to try on the mantel edge before printing the hook.",
   "x-group": "mantel",
   "x-agentSafe": true,
   "x-label-lv": "Pielaides kupons",
   "default": 1,
   "x-resetOnPreset": true
  },
  "name": {
   "type": "string",
   "maxLength": 12,
   "title": "Name",
   "description": "Up to 12 characters, engraved on the front arm. Empty: a plain arm.",
   "x-group": "name",
   "x-agentSafe": true,
   "x-label-lv": "Vārds",
   "default": "",
   "x-resetOnPreset": true
  },
  "font": {
   "type": "string",
   "enum": [
    "lilita",
    "barlow",
    "varela",
    "pacifico"
   ],
   "x-enumTitles": {
    "lilita": "Lilita: rounded",
    "barlow": "Barlow: plain",
    "varela": "Varela: wide",
    "pacifico": "Pacifico: script"
   },
   "title": "Lettering",
   "description": "The lettering of the name. Latvian letters render.",
   "x-group": "name",
   "x-agentSafe": true,
   "x-label-lv": "Šrifts",
   "default": "barlow",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Hook colour",
   "description": "The hook and its fit coupon; the lid too, until it gets a colour of its own.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Āķa krāsa",
   "default": "#b91c1c",
   "x-resetOnPreset": true
  },
  "lidColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Lid colour",
   "description": "A colour of its own for the lid of the ballast box: a two-colour hook from two filaments, with no nozzle change. The main colour for a one-colour hook.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Vāciņa krāsa",
   "default": "#b91c1c",
   "x-resetOnPreset": true
  },
  "nameColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Name colour",
   "description": "The name is inlaid in the engraving in this colour: a filament change in the slicer, or a second nozzle.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Vārda krāsa",
   "default": "#f2c14e",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "asa",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG",
    "asa": "ASA",
    "pla": "PLA"
   },
   "title": "Filament",
   "description": "PETG for a mantel near a fire: PLA softens at 60 °C. A mantel that gets hot to the touch needs a metal hook.",
   "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; 0.16 mm for the lettering 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": "The hook prints all walls: five lines make a 5 mm plate almost solid.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 5,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 0,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "Only the thicker parts of the plate have room for infill.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 25,
   "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)"
  }
 ]
}