{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/text-stamp/schema.json",
 "title": "Text stamp — parameters",
 "description": "Stamps for soap, clay, leather, cookie dough and ink: your text in up to four lines, mirrored on the stamp, with an imprint tile beside it that shows what it leaves. 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-stamp",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "face",
   "title": "Stamp face"
  },
  {
   "id": "text",
   "title": "Text"
  },
  {
   "id": "handle",
   "title": "Handle"
  },
  {
   "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": "handmade-soap-stamp",
    "title": "Handmade soap stamp, 50 mm",
    "description": "A round stamp with Handmade in bold letters and a border, on a knob, with the imprint tile beside it.",
    "values": {
     "shape": "round",
     "size": 50,
     "size2": 25,
     "corner": 4,
     "plate": 4,
     "border": true,
     "text": "Handmade",
     "text2": "",
     "text3": "",
     "text4": "",
     "font": "lilita",
     "letterHeight": 6,
     "letterSpacing": 0.02,
     "relief": 1.5,
     "draft": 8,
     "mirror": true,
     "handle": "knob",
     "handleHeight": 28,
     "imprint": true,
     "colorMode": "multi",
     "baseColor": "#7c3aed",
     "letterColor": "#fde68a",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "pottery-makers-mark",
    "title": "Pottery maker's mark, 40 mm",
    "description": "A small oval mark, 40 mm, with two lines for a potter to press into wet clay, beside the imprint it leaves.",
    "values": {
     "shape": "oval",
     "size": 40,
     "size2": 25,
     "corner": 4,
     "plate": 4,
     "border": true,
     "text": "MADE",
     "text2": "ANNA",
     "text3": "",
     "text4": "",
     "font": "lilita",
     "letterHeight": 6,
     "letterSpacing": 0.02,
     "relief": 2,
     "draft": 5,
     "mirror": true,
     "handle": "none",
     "handleHeight": 28,
     "imprint": true,
     "colorMode": "multi",
     "baseColor": "#b45309",
     "letterColor": "#fde68a",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "leather-stamp",
    "title": "Leather stamp, 22 × 70 mm",
    "description": "A long rectangle with straight-walled letters and a grip block, for a name along a belt or a bag.",
    "values": {
     "shape": "rect",
     "size": 70,
     "size2": 22,
     "corner": 3,
     "plate": 4,
     "border": true,
     "text": "YOUR NAME",
     "text2": "",
     "text3": "",
     "text4": "",
     "font": "lilita",
     "letterHeight": 7,
     "letterSpacing": 0.02,
     "relief": 1.2,
     "draft": 0,
     "mirror": true,
     "handle": "grip",
     "handleHeight": 24,
     "imprint": true,
     "colorMode": "multi",
     "baseColor": "#78350f",
     "letterColor": "#fde68a",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "cookie-stamp",
    "title": "Cookie stamp, 70 mm",
    "description": "A wide round stamp with deep letters and some draft, for cookie dough. Use a food-safe filament.",
    "values": {
     "shape": "round",
     "size": 70,
     "size2": 25,
     "corner": 4,
     "plate": 4,
     "border": true,
     "text": "MERRY",
     "text2": "XMAS",
     "text3": "",
     "text4": "",
     "font": "lilita",
     "letterHeight": 10,
     "letterSpacing": 0.02,
     "relief": 2,
     "draft": 5,
     "mirror": true,
     "handle": "knob",
     "handleHeight": 32,
     "imprint": true,
     "colorMode": "multi",
     "baseColor": "#0f766e",
     "letterColor": "#fde68a",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "ink-stamp",
    "title": "Ink stamp with an address",
    "description": "Four lines on a rectangle with a shallow relief and a lot of draft, for an ink pad.",
    "values": {
     "shape": "rect",
     "size": 80,
     "size2": 45,
     "corner": 2,
     "plate": 4,
     "border": true,
     "text": "ANNA BERZINA",
     "text2": "RIGAS IELA 1",
     "text3": "RIGA",
     "text4": "LV-1001",
     "font": "lilita",
     "letterHeight": 7,
     "letterSpacing": 0.02,
     "relief": 0.8,
     "draft": 12,
     "mirror": true,
     "handle": "grip",
     "handleHeight": 26,
     "imprint": true,
     "colorMode": "multi",
     "baseColor": "#1f3a5f",
     "letterColor": "#fde68a",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   },
   {
    "id": "wax-seal",
    "title": "Wax seal with initials, 30 mm",
    "description": "A small round seal with big initials and a deep relief, pressed into warm wax.",
    "values": {
     "shape": "round",
     "size": 30,
     "size2": 25,
     "corner": 4,
     "plate": 4,
     "border": true,
     "text": "AB",
     "text2": "",
     "text3": "",
     "text4": "",
     "font": "lilita",
     "letterHeight": 10,
     "letterSpacing": 0.02,
     "relief": 1.5,
     "draft": 10,
     "mirror": true,
     "handle": "knob",
     "handleHeight": 30,
     "imprint": true,
     "colorMode": "multi",
     "baseColor": "#9d174d",
     "letterColor": "#fde68a",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 4,
     "infill": 100
    }
   }
  ]
 },
 "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",
    "rect",
    "oval"
   ],
   "x-enumTitles": {
    "round": "Round",
    "rect": "Rectangle",
    "oval": "Oval"
   },
   "title": "Shape",
   "description": "Round for soap and wax, a rectangle for leather and ink, an oval for a maker's mark.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Forma",
   "default": "round",
   "x-resetOnPreset": true
  },
  "size": {
   "type": "number",
   "minimum": 15,
   "maximum": 100,
   "multipleOf": 1,
   "title": "Size",
   "description": "Round: the diameter. Rectangle and oval: the long side.",
   "x-group": "face",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Izmērs",
   "default": 50,
   "x-resetOnPreset": true
  },
  "size2": {
   "type": "number",
   "minimum": 10,
   "maximum": 100,
   "multipleOf": 1,
   "title": "Short side",
   "description": "Of a rectangle or an oval.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "shape": {
     "ne": "round"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Īsā mala",
   "default": 25,
   "x-resetOnPreset": true
  },
  "corner": {
   "type": "number",
   "minimum": 0,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Corner radius",
   "description": "Of a rectangle. 0 for square corners.",
   "x-group": "face",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-visibleIf": {
    "shape": "rect"
   },
   "x-agentSafe": true,
   "x-label-lv": "Stūra rādiuss",
   "default": 4,
   "x-resetOnPreset": true
  },
  "plate": {
   "type": "number",
   "minimum": 3,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Plate thickness",
   "description": "The plate under the handle. 4 mm does not bend when you press.",
   "x-group": "face",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes biezums",
   "default": 4,
   "x-resetOnPreset": true
  },
  "border": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Border",
   "description": "A raised rim round the text, as deep as the letters.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Apmale",
   "default": 1,
   "x-resetOnPreset": true
  },
  "text": {
   "type": "string",
   "maxLength": 14,
   "title": "Line 1",
   "description": "The large line. Empty: no text. Up to 14 characters.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "1. rinda",
   "default": "Handmade",
   "x-resetOnPreset": true
  },
  "text2": {
   "type": "string",
   "maxLength": 16,
   "title": "Line 2",
   "description": "A smaller line under the first. Empty: none.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "2. rinda",
   "default": "",
   "x-resetOnPreset": true
  },
  "text3": {
   "type": "string",
   "maxLength": 16,
   "title": "Line 3",
   "description": "A third line. Empty: none.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "3. rinda",
   "default": "",
   "x-resetOnPreset": true
  },
  "text4": {
   "type": "string",
   "maxLength": 16,
   "title": "Line 4",
   "description": "A fourth line. Empty: none.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "4. rinda",
   "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": "Letter style",
   "description": "Bold for soap and clay, the narrow one for long lines. The script and the thin styles need letters of 8 mm and more.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 2,
   "maximum": 20,
   "x-step": 0.5,
   "title": "Letter height",
   "description": "Height of a capital letter in the first line; the other lines are smaller. The letters shrink on their own when they do not fit.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 6,
   "x-resetOnPreset": true
  },
  "letterSpacing": {
   "type": "number",
   "minimum": -0.05,
   "maximum": 0.3,
   "x-step": 0.01,
   "title": "Letter spacing",
   "description": "As a share of the letter height.",
   "x-group": "text",
   "x-unit": "ratio",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp burtiem",
   "default": 0.02,
   "x-resetOnPreset": true
  },
  "relief": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 3,
   "x-step": 0.1,
   "title": "Relief",
   "description": "How far the letters stand out. Soap and wax 1.5 mm, clay and cookie dough 2 mm, leather 1.2 mm, an ink stamp 0.8 mm.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Reljefs",
   "default": 1.5,
   "x-resetOnPreset": true
  },
  "draft": {
   "type": "number",
   "minimum": 0,
   "maximum": 15,
   "multipleOf": 1,
   "title": "Draft",
   "description": "How much the sides of the letters lean in towards the tip, so that the stamp lets go of the material. Leather 0, clay 5, soap 8, an ink stamp 12 degrees.",
   "x-group": "text",
   "x-unit": "deg",
   "x-agentSafe": true,
   "x-label-lv": "Konuss",
   "default": 8,
   "x-resetOnPreset": true
  },
  "mirror": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Mirror the stamp",
   "description": "On: the stamp is printed mirrored, and the imprint reads right. Off: the stamp reads right, and the imprint is mirrored: for a stamp that is read itself, not pressed.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Spoguļot spiedolu",
   "default": 1,
   "x-resetOnPreset": true
  },
  "handle": {
   "type": "string",
   "enum": [
    "none",
    "knob",
    "grip"
   ],
   "x-enumTitles": {
    "none": "None: a flat stamp to press by hand",
    "knob": "Knob",
    "grip": "Grip block"
   },
   "title": "Handle",
   "description": "A knob for round stamps and small ones, a grip block along a rectangle, none for a stamp pressed with the flat of the hand.",
   "x-group": "handle",
   "x-agentSafe": true,
   "x-label-lv": "Rokturis",
   "default": "knob",
   "x-resetOnPreset": true
  },
  "handleHeight": {
   "type": "number",
   "minimum": 20,
   "maximum": 45,
   "multipleOf": 1,
   "title": "Handle height",
   "description": "From the back of the plate to the top of the handle.",
   "x-group": "handle",
   "x-unit": "mm",
   "x-visibleIf": {
    "handle": {
     "ne": "none"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Roktura augstums",
   "default": 28,
   "x-resetOnPreset": true
  },
  "imprint": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Imprint tile",
   "description": "A thin tile beside the stamp with the imprint raised on it: what the stamp will leave, and a test press in the same print.",
   "x-group": "handle",
   "x-agentSafe": true,
   "x-label-lv": "Nospieduma flīze",
   "default": 1,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: plate and letters"
   },
   "title": "Colours",
   "description": "Two colours gives two bodies in the 3MF, for a multi-material printer. The stamp prints face down, so the letters are its first layers.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "multi",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Plate colour",
   "description": "The plate and the handle.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Plāksnes krāsa",
   "default": "#7c3aed",
   "x-resetOnPreset": true
  },
  "letterColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Letter colour",
   "description": "The letters and the border.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Burtu krāsa",
   "default": "#fde68a",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PLA is stiff and prints the sharpest letters; it softens in hot water, so take PETG for a stamp that is washed hot. For food such as cookie dough use a filament sold as food-safe and wash the stamp.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla",
   "x-resetOnPreset": true
  },
  "layerHeight": {
   "type": "number",
   "minimum": 0.16,
   "maximum": 0.3,
   "x-step": 0.02,
   "title": "Layer height",
   "description": "0.12 mm and less would be better for the letters; print the first layers slowly.",
   "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": 3,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Four lines: the plate has to be stiff under the hand.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 4,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 20,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "100 %: a stamp is pressed hard, and solid walls do not mark the material.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 100,
   "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)"
  }
 ]
}