{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/christmas-village-house/schema.json",
 "title": "Christmas Village House — parameters",
 "description": "Make a light-up village house sized to your LED tea light or strip, with arched windows, a church tower and a name on the sign: printed, or as a flat kit card. 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": "christmas-village-house",
 "x-toolVersion": "1.0.2",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "house",
   "title": "House"
  },
  {
   "id": "openings",
   "title": "Windows and door"
  },
  {
   "id": "sign",
   "title": "Name sign"
  },
  {
   "id": "light",
   "title": "Lights"
  },
  {
   "id": "kit",
   "title": "Kit card"
  },
  {
   "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": "tealight-cottage",
    "title": "Tea light cottage",
    "description": "A 60 mm cottage over an LED tea light, with a door, arched windows and a red roof.",
    "values": {
     "houseWidth": 60,
     "houseDepth": 50,
     "eavesHeight": 40,
     "roofAngle": 50,
     "roofOverhang": 4,
     "tower": false,
     "villageSet": 1,
     "windowShape": "arch",
     "windowScale": 100,
     "windowsFront": 1,
     "windowsSides": 1,
     "windowsBack": 2,
     "door": true,
     "signText": "",
     "lightType": "tealight",
     "teaLightDia": 39.5,
     "wallColor": "#f4efe6",
     "roofColor": "#9b1c1c"
    }
   },
   {
    "id": "church-with-tower",
    "title": "Church with a tower",
    "description": "A church for the village: a square tower through the back wall, higher than the ridge, with a pointed roof.",
    "values": {
     "houseWidth": 70,
     "houseDepth": 60,
     "eavesHeight": 48,
     "roofAngle": 55,
     "roofOverhang": 3,
     "tower": true,
     "windowShape": "rect",
     "windowsFront": 0,
     "windowsSides": 1,
     "windowsBack": 2,
     "wallColor": "#e8dfd1",
     "roofColor": "#1e3a5f"
    }
   },
   {
    "id": "bakery-with-name-sign",
    "title": "Bakery with a name sign",
    "description": "A shop with its name raised on a sign over the door. Type your own: up to 20 characters.",
    "values": {
     "signText": "Bakery",
     "signFont": "lilita",
     "houseWidth": 66,
     "houseDepth": 52,
     "eavesHeight": 42,
     "windowShape": "rect",
     "windowScale": 110,
     "windowsFront": 2,
     "wallColor": "#dbeafe",
     "roofColor": "#14532d"
    }
   },
   {
    "id": "village-of-three-on-led-strip",
    "title": "Village of three on an LED strip",
    "description": "Three sizes of the same house on one street of a base, with round windows, lit by an LED strip in a channel.",
    "values": {
     "villageSet": 3,
     "lightType": "strip",
     "roofAngle": 42,
     "roofOverhang": 8,
     "windowShape": "round",
     "windowsFront": 2,
     "windowsSides": 2,
     "windowsBack": 2,
     "door": false,
     "wallColor": "#fce7f3",
     "roofColor": "#7c2d12"
    }
   },
   {
    "id": "kit-card-house",
    "title": "Kit card house",
    "description": "All six pieces flat on one card: snap them out and slot them together. A gift that posts flat.",
    "values": {
     "kitCard": true,
     "wallColor": "#ecfccb",
     "roofColor": "#581c87"
    }
   },
   {
    "id": "latvian-wooden-house",
    "title": "Timber house, Latvian style",
    "description": "A low, wide wooden house with a shallow roof, long eaves and a green roof: the Latvian look.",
    "values": {
     "houseWidth": 72,
     "houseDepth": 52,
     "eavesHeight": 34,
     "roofAngle": 40,
     "roofOverhang": 10,
     "windowShape": "rect",
     "windowsFront": 2,
     "windowsSides": 1,
     "windowsBack": 2,
     "wallColor": "#fef3c7",
     "roofColor": "#0f766e"
    }
   },
   {
    "id": "tall-townhouse",
    "title": "Tall townhouse",
    "description": "A narrow, tall house for the back row of the village, lit by an 8 mm LED strip under the floor.",
    "values": {
     "houseWidth": 44,
     "houseDepth": 46,
     "eavesHeight": 78,
     "roofAngle": 58,
     "roofOverhang": 3,
     "lightType": "strip",
     "ledStripWidth": 8,
     "windowsFront": 0,
     "windowsSides": 1,
     "windowsBack": 1,
     "wallColor": "#e0e7ff",
     "roofColor": "#b45309"
    }
   },
   {
    "id": "gingerbread-house",
    "title": "Gingerbread house",
    "description": "Brown walls, a white roof and big round windows: a gingerbread house that lights up.",
    "values": {
     "houseWidth": 66,
     "houseDepth": 54,
     "eavesHeight": 38,
     "roofAngle": 48,
     "roofOverhang": 6,
     "windowShape": "round",
     "windowScale": 120,
     "windowsFront": 2,
     "windowsSides": 1,
     "windowsBack": 2,
     "teaLightDia": 38,
     "wallColor": "#f3e8ff",
     "roofColor": "#334155"
    }
   }
  ]
 },
 "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": {
  "houseWidth": {
   "type": "number",
   "minimum": 30,
   "maximum": 120,
   "multipleOf": 1,
   "title": "House width",
   "description": "Across the front, wall to wall. 60 mm takes a tea light with room to spare.",
   "x-group": "house",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Mājiņas platums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "houseDepth": {
   "type": "number",
   "minimum": 30,
   "maximum": 120,
   "multipleOf": 1,
   "title": "House depth",
   "description": "Front to back. With a tea light, keep the width and the depth about 10 mm more than the tea light.",
   "x-group": "house",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Mājiņas dziļums",
   "default": 50,
   "x-resetOnPreset": true
  },
  "eavesHeight": {
   "type": "number",
   "minimum": 20,
   "maximum": 100,
   "multipleOf": 1,
   "title": "Wall height (to the eaves)",
   "description": "From the floor to the base of the gable. 30 to 45 mm suits a tea light inside.",
   "x-group": "house",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Sienu augstums (līdz karnīzei)",
   "default": 40,
   "x-resetOnPreset": true
  },
  "roofAngle": {
   "type": "number",
   "minimum": 35,
   "maximum": 65,
   "multipleOf": 1,
   "title": "Roof angle",
   "description": "Steeper looks alpine, flatter looks Nordic. The roof is two flat panels, so every angle prints without supports.",
   "x-group": "house",
   "x-unit": "deg",
   "x-agentSafe": true,
   "x-label-lv": "Jumta leņķis",
   "default": 50,
   "x-resetOnPreset": true
  },
  "roofOverhang": {
   "type": "number",
   "minimum": 2,
   "maximum": 15,
   "multipleOf": 1,
   "title": "Roof overhang",
   "description": "How far the roof sticks out past the walls.",
   "x-group": "house",
   "x-unit": "mm",
   "x-visibleIf": {
    "kitCard": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Jumta pārkare",
   "default": 4,
   "x-resetOnPreset": true
  },
  "tower": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Church tower at the back",
   "description": "A square tower grown onto the back wall, higher than the ridge, with a pointed roof and an arched opening on three sides: a church.",
   "x-group": "house",
   "x-visibleIf": {
    "kitCard": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Baznīcas tornis pie aizmugures",
   "default": 0,
   "x-resetOnPreset": true
  },
  "villageSet": {
   "type": "integer",
   "minimum": 1,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Houses on the base",
   "description": "Three sizes of the same house side by side on one street of a base: a village in one go.",
   "x-group": "house",
   "x-unit": "count",
   "x-visibleIf": {
    "kitCard": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Mājiņas uz pamatnes",
   "default": 1,
   "x-resetOnPreset": true
  },
  "tabClearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Tab clearance",
   "description": "Room around a tab in its slot: the roof panels in the gables, and every joint of the kit card. Loose slots are easy to join and wobble; tight ones hold. Print one panel and try.",
   "x-group": "house",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Mēlītes pielaide",
   "default": 0.3
  },
  "facadeTexture": {
   "type": "string",
   "enum": [
    "none",
    "brick",
    "stone",
    "wood",
    "folk",
    "basketweave",
    "hammered"
   ],
   "x-enumTitles": {
    "none": "Smooth",
    "brick": "Masonry brick",
    "stone": "Cottage stone",
    "wood": "Wood siding",
    "folk": "Latvian folk band",
    "basketweave": "Timber weave",
    "hammered": "Plaster / stucco"
   },
   "title": "Facade texture",
   "description": "Optional support-free relief on the four outer walls; openings, base rim, roof slots and sign stay clean.",
   "x-group": "house",
   "x-visibleIf": {
    "kitCard": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Fasādes faktūra",
   "default": "none",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 0.9,
   "x-step": 0.1,
   "title": "Texture depth",
   "description": "Relief height on the outer walls (kept <= 0.9 mm so vertical walls print cleanly without supports).",
   "x-group": "house",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "kitCard": false
     },
     {
      "facadeTexture": {
       "ne": "none"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Faktūras dziļums",
   "default": 0.6,
   "x-resetOnPreset": true
  },
  "textureScale": {
   "type": "number",
   "minimum": 4,
   "maximum": 18,
   "multipleOf": 1,
   "title": "Texture scale",
   "description": "Width of one brick, stone or folk motif repeat in millimetres.",
   "x-group": "house",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "kitCard": false
     },
     {
      "facadeTexture": {
       "ne": "none"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Faktūras mērogs",
   "default": 8,
   "x-resetOnPreset": true
  },
  "windowShape": {
   "type": "string",
   "enum": [
    "rect",
    "arch",
    "round"
   ],
   "x-enumTitles": {
    "rect": "Rectangle",
    "arch": "Arched",
    "round": "Round"
   },
   "title": "Window shape",
   "description": "Arched for a village, round for a workshop or a gingerbread house.",
   "x-group": "openings",
   "x-agentSafe": true,
   "x-label-lv": "Logu forma",
   "default": "arch",
   "x-resetOnPreset": true
  },
  "windowScale": {
   "type": "number",
   "minimum": 60,
   "maximum": 140,
   "multipleOf": 5,
   "title": "Window size",
   "description": "As a share of the usual size for the wall. Bigger windows let more light out.",
   "x-group": "openings",
   "x-unit": "pct",
   "x-agentSafe": true,
   "x-label-lv": "Logu izmērs",
   "default": 100,
   "x-resetOnPreset": true
  },
  "windowsFront": {
   "type": "integer",
   "minimum": 0,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Windows on the front",
   "description": "Beside the door. With a door, two fit; without one, three.",
   "x-group": "openings",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Logi priekšā",
   "default": 1,
   "x-resetOnPreset": true
  },
  "windowsSides": {
   "type": "integer",
   "minimum": 0,
   "maximum": 2,
   "multipleOf": 1,
   "title": "Windows on each side",
   "description": "Same number left and right.",
   "x-group": "openings",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Logi katrā sānā",
   "default": 1,
   "x-resetOnPreset": true
  },
  "windowsBack": {
   "type": "integer",
   "minimum": 0,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Windows on the back",
   "description": "With a tower, at most two fit beside it.",
   "x-group": "openings",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Logi aizmugurē",
   "default": 2,
   "x-resetOnPreset": true
  },
  "door": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Door on the front",
   "description": "An arched doorway the light shines through.",
   "x-group": "openings",
   "x-agentSafe": true,
   "x-label-lv": "Durvis priekšā",
   "default": 1,
   "x-resetOnPreset": true
  },
  "signText": {
   "type": "string",
   "maxLength": 20,
   "title": "Name on the sign",
   "description": "A shop, a family or a house number, up to 20 characters. Empty: no sign.",
   "x-group": "sign",
   "x-agentSafe": true,
   "x-label-lv": "Nosaukums uz dēļa",
   "default": "",
   "x-resetOnPreset": true
  },
  "signFont": {
   "type": "string",
   "enum": [
    "barlow",
    "lilita",
    "varela"
   ],
   "x-enumTitles": {
    "barlow": "Narrow, for long names (Barlow Condensed)",
    "lilita": "Bold rounded (Lilita One)",
    "varela": "Clean rounded (Varela Round)"
   },
   "title": "Letter style",
   "description": "The narrow one fits the most on a small sign.",
   "x-group": "sign",
   "x-visibleIf": {
    "signText": {
     "ne": ""
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "barlow",
   "x-resetOnPreset": true
  },
  "lightType": {
   "type": "string",
   "enum": [
    "tealight",
    "strip",
    "none"
   ],
   "x-enumTitles": {
    "tealight": "LED tea light in the base",
    "strip": "LED strip under the floor",
    "none": "None (just the house)"
   },
   "title": "Light",
   "description": "A tea light slides into a ring on the base and the house goes over it. A strip lies in a channel in the base. LED only.",
   "x-group": "light",
   "x-agentSafe": true,
   "x-label-lv": "Gaisma",
   "default": "tealight",
   "x-resetOnPreset": true
  },
  "teaLightDia": {
   "type": "number",
   "minimum": 30,
   "maximum": 45,
   "x-step": 0.5,
   "title": "Tea light diameter (measure)",
   "description": "Most LED tea lights are 38 to 40 mm across the foot. Measure yours.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "lightType": "tealight"
   },
   "x-agentSafe": true,
   "x-label-lv": "Tējas svecītes diametrs (izmēri)",
   "default": 39.5,
   "x-resetOnPreset": true
  },
  "ledStripWidth": {
   "type": "number",
   "minimum": 5,
   "maximum": 20,
   "x-step": 0.5,
   "title": "LED strip width",
   "description": "Most strips are 8 or 10 mm wide.",
   "x-group": "light",
   "x-unit": "mm",
   "x-visibleIf": {
    "lightType": "strip"
   },
   "x-agentSafe": true,
   "x-label-lv": "LED lentes platums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "kitCard": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Kit card instead of a printed house",
   "description": "All the parts on one flat card: snap them out and slot them together. A gift that folds flat.",
   "x-group": "kit",
   "x-agentSafe": true,
   "x-label-lv": "Komplekta karte vietā izdrukātai mājiņai",
   "default": 0,
   "x-resetOnPreset": true
  },
  "cardThickness": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Card thickness",
   "description": "Thin bends for the snap tabs, thick is stiffer once built. 1.6 mm (four lines) does both.",
   "x-group": "kit",
   "x-unit": "mm",
   "x-visibleIf": {
    "kitCard": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Kartes biezums",
   "default": 1.6
  },
  "wall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Wall thickness",
   "description": "Also the roof thickness. Thin walls glow a little; 2.4 mm keeps the light in the windows.",
   "x-group": "print",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-visibleIf": {
    "kitCard": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 2.4
  },
  "wallColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Wall colour",
   "description": "White or natural lets a tea light glow through the walls.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Sienu krāsa",
   "default": "#f1e9d8",
   "x-resetOnPreset": true
  },
  "roofColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Roof colour",
   "description": "The roof is its own part: print it in another colour without a multi-material printer.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "Jumta krāsa",
   "default": "#8a2f2b",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg"
   ],
   "x-enumTitles": {
    "pla": "PLA (indoors)",
    "petg": "PETG"
   },
   "title": "Filament",
   "description": "White PLA for the glow; PETG if the house goes out under a roof.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla"
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Four lines make the walls and the tabs solid.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4
  },
  "infill": {
   "type": "integer",
   "minimum": 5,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "10 to 15 % is plenty.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 15
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "led-tealight-candles",
   "title": "Flameless Warm-White LED Tealight Candles with Timer (24 pack)",
   "why": "Safe 38 mm flameless LED tealights sized for 3D-printed lanterns and trees.",
   "url": "https://paramlet.com/go/led-tealight-candles?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)"
  }
 ]
}