{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/flower-pot/schema.json",
 "title": "Flower pot generator — parameters",
 "description": "Design a printable flower pot or planter with taper, twist, ribs and an optional saucer. Drainage holes and feet are baked in and the soil volume is shown. 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": "flower-pot",
 "x-toolVersion": "0.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "shape",
   "title": "Shape and size"
  },
  {
   "id": "style",
   "title": "Rim, twist and ribs"
  },
  {
   "id": "drain",
   "title": "Drainage and feet"
  },
  {
   "id": "saucer",
   "title": "Saucer"
  },
  {
   "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": "succulent-small",
    "title": "Succulent, small",
    "description": "Tiny 50 mm round pot with three small feet and a matching saucer.",
    "values": {
     "shape": "round",
     "height": 50,
     "topSize": 60,
     "bottomSize": 50,
     "wallThickness": 1.6,
     "bottomThickness": 2,
     "drainHoles": 1,
     "drainHoleDiameter": 6,
     "feet": "three",
     "footHeight": 3,
     "saucerEnabled": 1,
     "saucerHeight": 8,
     "saucerClearance": 1,
     "printMaterial": "petg"
    }
   },
   {
    "id": "herb-pot-12cm",
    "title": "Herb pot, 12 cm",
    "description": "Round 120 mm pot for a kitchen herb, single drainage hole, no saucer.",
    "values": {
     "shape": "round",
     "height": 120,
     "topSize": 120,
     "bottomSize": 100,
     "wallThickness": 2,
     "bottomThickness": 3,
     "drainHoles": 1,
     "drainHoleDiameter": 8,
     "feet": "none",
     "saucerEnabled": 0,
     "printMaterial": "petg"
    }
   },
   {
    "id": "self-standing-18cm-saucer",
    "title": "Self-standing 18 cm with saucer",
    "description": "Self-standing 180 mm planter on a raised base, four drainage holes, matching saucer.",
    "values": {
     "shape": "round",
     "height": 180,
     "topSize": 180,
     "bottomSize": 160,
     "wallThickness": 2.4,
     "bottomThickness": 3,
     "drainHoles": 4,
     "drainHoleDiameter": 10,
     "feet": "raised-base",
     "footHeight": 5,
     "saucerEnabled": 1,
     "saucerHeight": 15,
     "saucerClearance": 1.5,
     "printMaterial": "asa"
    }
   },
   {
    "id": "twisted-hex-vase",
    "title": "Twisted hex vase",
    "description": "Hexagonal vase with a 60 degree twist and a small lip, no drainage, indoor use.",
    "values": {
     "shape": "hexagon",
     "height": 160,
     "topSize": 100,
     "bottomSize": 80,
     "wallThickness": 2,
     "bottomThickness": 3,
     "twist": 60,
     "rimStyle": "lip",
     "rimWidth": 4,
     "rimHeight": 4,
     "drainHoles": 0,
     "feet": "none",
     "saucerEnabled": 0,
     "printMaterial": "petg"
    }
   },
   {
    "id": "ribbed-modern",
    "title": "Ribbed modern",
    "description": "Square pot with eight fluted grooves and a raised base.",
    "values": {
     "shape": "square",
     "height": 100,
     "topSize": 100,
     "bottomSize": 90,
     "wallThickness": 2.4,
     "bottomThickness": 3,
     "ribs": 8,
     "ribMode": "groove",
     "ribDepth": 2,
     "ribWidth": 3,
     "drainHoles": 1,
     "drainHoleDiameter": 8,
     "feet": "raised-base",
     "footHeight": 4,
     "saucerEnabled": 0,
     "printMaterial": "petg"
    }
   }
  ]
 },
 "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": {
  "shape": {
   "type": "string",
   "enum": [
    "round",
    "square",
    "hexagon",
    "octagon",
    "polygon"
   ],
   "x-enumTitles": {
    "round": "Round",
    "square": "Square",
    "hexagon": "Hexagon",
    "octagon": "Octagon",
    "polygon": "Custom polygon"
   },
   "title": "Shape",
   "description": "Cross-section of the pot. Round uses the resolution slider; polygon lets you set the side count.",
   "x-group": "shape",
   "x-agentSafe": true,
   "x-label-lv": "Forma",
   "default": "round",
   "x-resetOnPreset": true
  },
  "sides": {
   "type": "integer",
   "minimum": 3,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Sides",
   "description": "Number of sides when shape is custom polygon (3 to 12).",
   "x-group": "shape",
   "x-unit": "count",
   "x-visibleIf": {
    "shape": "polygon"
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Malu skaits",
   "default": 5,
   "x-resetOnPreset": true
  },
  "height": {
   "type": "number",
   "minimum": 20,
   "maximum": 250,
   "multipleOf": 1,
   "title": "Height",
   "description": "Total height of the pot wall (excludes feet and rim).",
   "x-group": "shape",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Augstums",
   "default": 100
  },
  "topSize": {
   "type": "number",
   "minimum": 20,
   "maximum": 240,
   "multipleOf": 1,
   "title": "Top size",
   "description": "Outer diameter (or width across corners for polygons) at the top of the wall.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Augšas izmērs",
   "default": 100
  },
  "bottomSize": {
   "type": "number",
   "minimum": 20,
   "maximum": 240,
   "multipleOf": 1,
   "title": "Bottom size",
   "description": "Outer diameter at the bottom. Larger than top narrows upward (vase); smaller widens (overhang).",
   "x-group": "shape",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Apakšas izmērs",
   "default": 80
  },
  "wallThickness": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 6,
   "x-step": 0.2,
   "title": "Wall thickness",
   "description": "Single-wall vase mode at 0.4 mm with a 0.4 mm nozzle; 2.4 mm for sturdy multi-wall pots.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 2.4
  },
  "bottomThickness": {
   "type": "number",
   "minimum": 1,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Bottom thickness",
   "description": "Solid bottom plate that holds the soil and drainage holes.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Pamatnes biezums",
   "default": 3
  },
  "twist": {
   "type": "number",
   "minimum": -180,
   "maximum": 180,
   "multipleOf": 5,
   "title": "Twist",
   "description": "Total twist of the wall over its height. Zero is a straight prism; 60 degrees is a gentle spiral.",
   "x-group": "style",
   "x-unit": "deg",
   "x-agentSafe": true,
   "x-label-lv": "Vijums",
   "default": 0,
   "x-resetOnPreset": true
  },
  "rimStyle": {
   "type": "string",
   "enum": [
    "none",
    "lip",
    "rolled"
   ],
   "x-enumTitles": {
    "none": "None",
    "lip": "Outward lip",
    "rolled": "Rolled"
   },
   "title": "Rim",
   "description": "Lip flares outward at the top; rolled thickens the top edge.",
   "x-group": "style",
   "x-agentSafe": true,
   "x-label-lv": "Mala",
   "default": "none",
   "x-resetOnPreset": true
  },
  "rimWidth": {
   "type": "number",
   "minimum": 1,
   "maximum": 15,
   "x-step": 0.5,
   "title": "Rim width",
   "description": "How far the rim flares outward (lip) or how thick the rolled edge is.",
   "x-group": "style",
   "x-unit": "mm",
   "x-visibleIf": {
    "rimStyle": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Males platums",
   "default": 4
  },
  "rimHeight": {
   "type": "number",
   "minimum": 1,
   "maximum": 15,
   "x-step": 0.5,
   "title": "Rim height",
   "description": "Vertical extent of the rim above the wall.",
   "x-group": "style",
   "x-unit": "mm",
   "x-visibleIf": {
    "rimStyle": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Males augstums",
   "default": 4
  },
  "ribs": {
   "type": "integer",
   "minimum": 0,
   "maximum": 24,
   "multipleOf": 1,
   "title": "Ribs",
   "description": "Vertical flutes around the outside. Zero is smooth; 8 to 16 looks classical.",
   "x-group": "style",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Ribas",
   "default": 0,
   "x-resetOnPreset": true
  },
  "ribMode": {
   "type": "string",
   "enum": [
    "groove",
    "protrude"
   ],
   "x-enumTitles": {
    "groove": "Groove (fluting)",
    "protrude": "Protrude (fin)"
   },
   "title": "Rib mode",
   "description": "Groove cuts into the wall (classical fluting); protrude adds fins on the outside.",
   "x-group": "style",
   "x-visibleIf": {
    "ribs": {
     "gt": 0
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Ribas veids",
   "default": "groove"
  },
  "ribDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 6,
   "x-step": 0.1,
   "title": "Rib depth",
   "description": "How deep the groove (or how far the fin sticks out). Clamped below the wall thickness.",
   "x-group": "style",
   "x-unit": "mm",
   "x-visibleIf": {
    "ribs": {
     "gt": 0
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Ribas dziļums",
   "default": 2
  },
  "ribWidth": {
   "type": "number",
   "minimum": 1,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Rib width",
   "description": "Tangential width of each rib at the wall surface.",
   "x-group": "style",
   "x-unit": "mm",
   "x-visibleIf": {
    "ribs": {
     "gt": 0
    }
   },
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Ribas platums",
   "default": 3
  },
  "drainHoles": {
   "type": "integer",
   "minimum": 0,
   "maximum": 9,
   "multipleOf": 1,
   "title": "Drainage holes",
   "description": "Holes through the bottom plate. One is usually enough; three for bigger pots.",
   "x-group": "drain",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Noteces caurumi",
   "default": 1
  },
  "drainHoleDiameter": {
   "type": "number",
   "minimum": 2,
   "maximum": 20,
   "x-step": 0.5,
   "title": "Hole diameter",
   "description": "8 mm is a good default for soil; smaller for cactus mix.",
   "x-group": "drain",
   "x-unit": "mm",
   "x-visibleIf": {
    "drainHoles": {
     "gt": 0
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Cauruma diametrs",
   "default": 8
  },
  "centreHole": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Centre hole",
   "description": "Adds a single hole in the middle of the bottom for extra drainage.",
   "x-group": "drain",
   "x-agentSafe": true,
   "x-label-lv": "Centra caurums",
   "default": 0
  },
  "centreHoleDiameter": {
   "type": "number",
   "minimum": 2,
   "maximum": 20,
   "x-step": 0.5,
   "title": "Centre hole diameter",
   "description": "Diameter of the centre hole.",
   "x-group": "drain",
   "x-unit": "mm",
   "x-visibleIf": {
    "centreHole": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Centra cauruma diametrs",
   "default": 6
  },
  "feet": {
   "type": "string",
   "enum": [
    "none",
    "three",
    "four",
    "raised-base"
   ],
   "x-enumTitles": {
    "none": "None (flat bottom)",
    "three": "Three feet",
    "four": "Four feet",
    "raised-base": "Raised base"
   },
   "title": "Feet",
   "description": "Feet lift the pot so water drains freely; raised base is a smaller disc under the whole pot.",
   "x-group": "drain",
   "x-agentSafe": true,
   "x-label-lv": "Kājiņas",
   "default": "none",
   "x-resetOnPreset": true
  },
  "footHeight": {
   "type": "number",
   "minimum": 1,
   "maximum": 20,
   "x-step": 0.5,
   "title": "Foot height",
   "description": "How far the pot is lifted off the surface.",
   "x-group": "drain",
   "x-unit": "mm",
   "x-visibleIf": {
    "feet": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Kājiņu augstums",
   "default": 5
  },
  "saucerEnabled": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Add saucer",
   "description": "A separate drip tray that catches runoff. Exported as a second part.",
   "x-group": "saucer",
   "x-agentSafe": true,
   "x-label-lv": "Pievienot apakštasīti",
   "default": 0,
   "x-resetOnPreset": true
  },
  "saucerHeight": {
   "type": "number",
   "minimum": 5,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Saucer height",
   "description": "Outer wall height of the saucer; the inner depth is less by the bottom thickness.",
   "x-group": "saucer",
   "x-unit": "mm",
   "x-visibleIf": {
    "saucerEnabled": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Apakštasītes augstums",
   "default": 12
  },
  "saucerClearance": {
   "type": "number",
   "minimum": 0.5,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Saucer clearance",
   "description": "Gap between the pot bottom and the inside of the saucer. Small keeps the pot stable; large lifts it.",
   "x-group": "saucer",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-visibleIf": {
    "saucerEnabled": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Apakštasītes atstarpe",
   "default": 1
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "pla",
    "asa"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "pla": "PLA",
    "asa": "ASA (outdoor)"
   },
   "title": "Print material",
   "description": "Affects the estimated mass readout only; the geometry does not change.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "resolution": {
   "type": "integer",
   "minimum": 16,
   "maximum": 128,
   "multipleOf": 8,
   "title": "Resolution",
   "description": "Segments around a round pot; ignored for polygon shapes (set by the side count).",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Izšķirtspēja",
   "default": 64
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the preview.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#b5602a"
  }
 },
 "additionalProperties": false
}