{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/wreath-hanger/schema.json",
 "title": "Wreath hanger — parameters",
 "description": "Over-the-door wreath hangers sized to your door: a thin strap over the top, a U that fits the door, a J hook at the drop you choose, long drops in bolted segments. 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": "wreath-hanger",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "door",
   "title": "The door"
  },
  {
   "id": "hook",
   "title": "The hook"
  },
  {
   "id": "strap",
   "title": "The strap"
  },
  {
   "id": "text",
   "title": "Name on the strap"
  },
  {
   "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": "interior-door-35mm",
    "title": "Interior door, 35 mm",
    "description": "A plain green hanger for a 35 mm interior door, the wreath 150 mm down the door.",
    "values": {
     "doorThickness": 35,
     "drop": 150,
     "baseColor": "#15803d"
    }
   },
   {
    "id": "front-door-welcome-44mm",
    "title": "Front door 44 mm, Welcome",
    "description": "A red hanger for a 44 mm front door with Welcome in gold down the strap, the wreath 200 mm down.",
    "values": {
     "doorThickness": 44,
     "drop": 200,
     "innerDrop": 80,
     "names": "Welcome",
     "baseColor": "#b91c1c",
     "textColor": "#f2c14e"
    }
   },
   {
    "id": "thick-composite-front-door-54mm",
    "title": "Thick front door, 54 mm",
    "description": "A wide black hanger for a 54 mm composite door, thick legs for a heavy wreath.",
    "values": {
     "doorThickness": 54,
     "drop": 120,
     "width": 30,
     "strapLeg": 4,
     "reach": 35,
     "tipHeight": 40,
     "baseColor": "#1f2937",
     "textColor": "#ffffff"
    }
   },
   {
    "id": "double-sided-noel",
    "title": "Double-sided with Noel",
    "description": "A hook outside for the wreath and one inside for a decoration, Noel on the strap.",
    "values": {
     "doorThickness": 40,
     "drop": 180,
     "innerDrop": 120,
     "doubleSided": true,
     "names": "NOEL",
     "baseColor": "#15803d",
     "textColor": "#b91c1c"
    }
   },
   {
    "id": "long-drop-two-parts-220-bed",
    "title": "Long drop in two parts, 220 mm bed",
    "description": "A 350 mm drop printed as two segments that lap over and bolt together, for a 220 mm bed.",
    "values": {
     "doorThickness": 40,
     "drop": 350,
     "bedSize": "220",
     "names": "ZIEMA",
     "baseColor": "#1f4e8c",
     "textColor": "#ffffff"
    }
   },
   {
    "id": "mini-cabinet-door-hook",
    "title": "Mini hook for a cabinet door",
    "description": "A narrow hanger for a 20 mm cabinet or wardrobe door, a short drop for a small wreath.",
    "values": {
     "doorThickness": 20,
     "drop": 60,
     "width": 15,
     "innerDrop": 20,
     "reach": 15,
     "tipHeight": 15,
     "hookRadius": 5,
     "baseColor": "#b45309",
     "textColor": "#ffffff"
    }
   }
  ]
 },
 "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": {
  "doorThickness": {
   "type": "number",
   "minimum": 15,
   "maximum": 60,
   "x-step": 0.5,
   "title": "Door thickness",
   "description": "Of the door at its top edge, front to back, measured with calipers. The U fits it with the clearance round it.",
   "x-group": "door",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Durvju biezums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "clearance": {
   "type": "number",
   "minimum": 0.2,
   "maximum": 0.8,
   "x-step": 0.05,
   "title": "Clearance",
   "description": "Room round the door on each side. 0.3 mm drops on; 0.2 is snug. Print the fit coupon first.",
   "x-group": "door",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Pielaide",
   "default": 0.3,
   "x-resetOnPreset": true
  },
  "innerDrop": {
   "type": "number",
   "minimum": 20,
   "maximum": 200,
   "multipleOf": 5,
   "title": "Inner leg",
   "description": "How far the leg inside the room comes down the door. Longer holds the hook steadier against a swing.",
   "x-group": "door",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Iekšējais roks",
   "default": 50,
   "x-resetOnPreset": true
  },
  "bedSize": {
   "type": "string",
   "enum": [
    "180",
    "220",
    "256",
    "350"
   ],
   "x-enumTitles": {
    "180": "180 mm bed",
    "220": "220 mm bed",
    "256": "256 mm bed",
    "350": "350 mm bed"
   },
   "title": "Printer bed",
   "description": "A drop longer than the bed is printed in segments that lap over one another and bolt together; the page says how many.",
   "x-group": "door",
   "x-agentSafe": true,
   "x-label-lv": "Printera gulta",
   "default": "256",
   "x-resetOnPreset": true
  },
  "drop": {
   "type": "number",
   "minimum": 50,
   "maximum": 450,
   "multipleOf": 10,
   "title": "Drop",
   "description": "From the top of the door down to the floor of the hook, outside. Where the wreath hangs.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Nolaišanās",
   "default": 150,
   "x-resetOnPreset": true
  },
  "reach": {
   "type": "number",
   "minimum": 15,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Hook reach",
   "description": "How far the hook stands out from the door, for the wreath loop or hanger.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Āķa izliekums",
   "default": 25,
   "x-resetOnPreset": true
  },
  "tipHeight": {
   "type": "number",
   "minimum": 15,
   "maximum": 60,
   "multipleOf": 5,
   "title": "Tip height",
   "description": "How far the tip of the hook rises above its floor: a windy porch wants a taller tip.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Galciņa augstums",
   "default": 30,
   "x-resetOnPreset": true
  },
  "hookRadius": {
   "type": "number",
   "minimum": 4,
   "maximum": 15,
   "multipleOf": 1,
   "title": "Hook radius",
   "description": "The rounding of the floor of the hook, so the wreath hanger sits in a curve and not on an edge.",
   "x-group": "hook",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Āķa rādiuss",
   "default": 8,
   "x-resetOnPreset": true
  },
  "doubleSided": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Double-sided",
   "description": "A hook inside the room too, at the end of the inner leg: a wreath outside, a decoration inside.",
   "x-group": "hook",
   "x-agentSafe": true,
   "x-label-lv": "Divpusējs",
   "default": 0,
   "x-resetOnPreset": true
  },
  "feltPads": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Felt-pad recesses",
   "description": "Shallow pockets where the legs touch the door, for sticky felt pads: nothing scratches a lacquered door.",
   "x-group": "hook",
   "x-agentSafe": true,
   "x-label-lv": "Vieta filca spilventiņiem",
   "default": 0,
   "x-resetOnPreset": true
  },
  "strapTop": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Strap at the gap",
   "description": "The thickness that passes over the top of the door. Snapped to whole layers, so the gap it needs is exact: the door still shuts if its gap is this wide or wider.",
   "x-group": "strap",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Siksna spraugā",
   "default": 2,
   "x-resetOnPreset": true
  },
  "strapLeg": {
   "type": "number",
   "minimum": 2,
   "maximum": 5,
   "x-step": 0.2,
   "title": "Leg thickness",
   "description": "Of the legs and the hook: thicker than the strap at the gap, since they carry the wreath.",
   "x-group": "strap",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Roka biezums",
   "default": 3.2,
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 15,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Width",
   "description": "Across the strap, which prints lying on its edge. Wider is stronger and fits a longer name.",
   "x-group": "strap",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Platums",
   "default": 25,
   "x-resetOnPreset": true
  },
  "names": {
   "type": "string",
   "maxLength": 16,
   "title": "Name or greeting",
   "description": "Up to 16 characters on the outer face of the strap, running down it. Empty: a plain strap.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Vārds vai uzraksts",
   "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": "text",
   "x-agentSafe": true,
   "x-label-lv": "Fonts",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterStyle": {
   "type": "string",
   "enum": [
    "raised",
    "inlaid"
   ],
   "x-enumTitles": {
    "raised": "Raised, in a second colour",
    "inlaid": "Inlaid, flush (two colours)"
   },
   "title": "Letter style",
   "description": "Raised letters stand on the strap; inlaid letters lie flush in their engraving. Never cut through: the strap carries the wreath.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "raised",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 6,
   "maximum": 18,
   "x-step": 0.5,
   "title": "Letter height",
   "description": "Of a capital letter, across the strap. As tall as the width allows; a long greeting shrinks to fit.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 12,
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Hanger colour",
   "description": "The hanger and its coupon.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Turētāja krāsa",
   "default": "#15803d",
   "x-resetOnPreset": true
  },
  "textColor": {
   "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": "look",
   "x-visibleIf": {
    "letterStyle": [
     "raised",
     "inlaid"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Burtu 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 or ASA for a door: PLA creeps under a constant load and goes brittle in the cold.",
   "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 strap at the gap is snapped to whole layers, so the gap it needs is exact.",
   "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": "A short slice of the U, to try on the top of the door before printing the hanger.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Pielaides kupons",
   "default": 1,
   "x-resetOnPreset": true
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "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": "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)"
  }
 ]
}