{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/text-stencil/schema.json",
 "title": "Text stencil — parameters",
 "description": "Make spray, paint and dusting stencils from any text: letter counters bridged automatically, round cup stencils, big lettering split into tiles, SVG cut files. 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": "text-stencil",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "text",
   "title": "Text"
  },
  {
   "id": "plate",
   "title": "Plate"
  },
  {
   "id": "bridges",
   "title": "Bridges"
  },
  {
   "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": "crate-spray-stencil",
    "title": "Crate and box spray stencil",
    "description": "40 mm narrow letters on a rounded plate: crates, boxes, workshop signs.",
    "values": {
     "line1": "FRAGILE",
     "font": "barlow",
     "letterHeight": 40,
     "margin": 15,
     "thickness": 0.8,
     "color": "#ff5b1f"
    }
   },
   {
    "id": "kerb-number-stencil",
    "title": "Bin, kerb and parking number stencil",
    "description": "100 mm bold numbers on a stiff plate with a handle.",
    "values": {
     "line1": "42",
     "line2": "",
     "font": "lilita",
     "letterHeight": 100,
     "margin": 20,
     "thickness": 1.2,
     "handle": true,
     "shape": "rectangle",
     "color": "#2b2f36"
    }
   },
   {
    "id": "coffee-dusting-heart",
    "title": "Coffee dusting stencil (cup)",
    "description": "An 80 mm round stencil for cocoa or cinnamon on a cappuccino.",
    "values": {
     "line1": "♥",
     "shape": "circle",
     "circleDiameter": 80,
     "font": "lilita",
     "letterHeight": 50,
     "margin": 6,
     "thickness": 0.6,
     "handle": true,
     "color": "#8a5a3c"
    }
   },
   {
    "id": "cake-name-stencil",
    "title": "Cake dusting stencil with a name",
    "description": "A 200 mm circle for icing sugar on a cake; script letters.",
    "values": {
     "line1": "Anna",
     "shape": "circle",
     "circleDiameter": 200,
     "font": "pacifico",
     "letterHeight": 45,
     "margin": 10,
     "thickness": 0.8,
     "handle": false,
     "color": "#e48fb1"
    }
   },
   {
    "id": "planner-label-stencil",
    "title": "Planner and journal label stencil",
    "description": "Small 10 mm clean letters, thin and flexible for pens and markers.",
    "values": {
     "line1": "TO DO",
     "font": "varela",
     "letterHeight": 10,
     "margin": 6,
     "thickness": 0.6,
     "letterSpacing": 0.12,
     "color": "#3a6fd8"
    }
   },
   {
    "id": "big-wall-lettering",
    "title": "Large wall lettering (tiles)",
    "description": "160 mm letters that split into tiles with alignment notches.",
    "values": {
     "line1": "WELCOME",
     "font": "lilita",
     "letterHeight": 160,
     "margin": 25,
     "thickness": 1.2,
     "shape": "rectangle",
     "color": "#1f3b57"
    }
   }
  ]
 },
 "x-coreParams": {
  "exportFormat": {
   "type": "string",
   "title": "File format",
   "description": "3mf = 3MF (mm); stl = STL files in a zip (mm); 2d_template = 2D template: SVG + DXF + PDF (1:1 mm, zip)",
   "x-group": "download",
   "x-role": "core.exportFormat",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "3mf",
    "stl",
    "2d_template"
   ],
   "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": {
  "line1": {
   "type": "string",
   "maxLength": 24,
   "title": "Text",
   "description": "Up to 24 characters per line.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Teksts",
   "default": "FRAGILE"
  },
  "line2": {
   "type": "string",
   "maxLength": 24,
   "title": "Second line (optional)",
   "description": "Centred under the first line.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Otrā rinda (nav obligāta)",
   "default": "",
   "x-resetOnPreset": true
  },
  "line3": {
   "type": "string",
   "maxLength": 24,
   "title": "Third line (optional)",
   "description": "Centred under the second line.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Trešā rinda (nav obligāta)",
   "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 text (Barlow Condensed)"
   },
   "title": "Font",
   "description": "Narrow and bold fonts make the cleanest stencils.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Fonts",
   "default": "barlow",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 8,
   "maximum": 300,
   "multipleOf": 1,
   "title": "Letter height",
   "description": "Capital height. Big stencils split into tiles automatically.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "letterSpacing": {
   "type": "number",
   "minimum": -0.05,
   "maximum": 0.4,
   "x-step": 0.01,
   "title": "Letter spacing",
   "description": "More space keeps the plate strips between letters strong.",
   "x-group": "text",
   "x-unit": "ratio",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp burtiem",
   "default": 0.06,
   "x-resetOnPreset": true
  },
  "shape": {
   "type": "string",
   "enum": [
    "rounded",
    "rectangle",
    "circle"
   ],
   "x-enumTitles": {
    "rounded": "Rounded rectangle",
    "rectangle": "Rectangle",
    "circle": "Circle (cups, cakes)"
   },
   "title": "Plate shape",
   "description": "A circle sits on a cup or cake; the text shrinks to fit.",
   "x-group": "plate",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes forma",
   "default": "rounded",
   "x-resetOnPreset": true
  },
  "circleDiameter": {
   "type": "number",
   "minimum": 40,
   "maximum": 250,
   "multipleOf": 1,
   "title": "Circle diameter",
   "description": "Match the cup rim or cake top.",
   "x-group": "plate",
   "x-unit": "mm",
   "x-visibleIf": {
    "shape": "circle"
   },
   "x-agentSafe": true,
   "x-label-lv": "Apļa diametrs",
   "default": 80,
   "x-resetOnPreset": true
  },
  "margin": {
   "type": "number",
   "minimum": 4,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Margin",
   "description": "Plate round the text: a wider margin catches overspray.",
   "x-group": "plate",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Mala",
   "default": 15,
   "x-resetOnPreset": true
  },
  "thickness": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 2,
   "x-step": 0.2,
   "title": "Thickness",
   "description": "0.6–1 mm bends to curved surfaces; 1.2 mm+ stays flat for big signs.",
   "x-group": "plate",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Biezums",
   "default": 0.8,
   "x-resetOnPreset": true
  },
  "handle": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Handle tab with hole",
   "description": "A tab to hold or hang the stencil.",
   "x-group": "plate",
   "x-agentSafe": true,
   "x-label-lv": "Rokturis ar caurumu",
   "default": 0,
   "x-resetOnPreset": true
  },
  "bridgeWidth": {
   "type": "number",
   "minimum": 0,
   "maximum": 8,
   "x-step": 0.2,
   "title": "Bridge width (0 = automatic)",
   "description": "Bridges hold the middle of O, A, R …; automatic is 7 % of the letter height, at least 1.6 mm.",
   "x-group": "bridges",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Tilta platums (0 = automātiski)",
   "default": 0,
   "x-resetOnPreset": true
  },
  "bedSize": {
   "type": "number",
   "minimum": 150,
   "maximum": 400,
   "multipleOf": 5,
   "title": "Print bed size",
   "description": "Bigger stencils split into tiles with matching notches.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Drukas galda izmērs",
   "default": 250
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "petg",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (flexible, wipes clean)",
    "pla": "PLA"
   },
   "title": "Print material",
   "description": "PETG flexes without cracking and survives paint thinner wipes.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "petg"
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the preview and 3MF colour.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#ff5b1f",
   "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)"
  }
 ]
}