{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/cake-topper/schema.json",
 "title": "Cake Topper — parameters",
 "description": "Type a name, an age or a greeting and get a cake topper that prints as one piece: letters welded together on pointed picks, in script or bold, in one or two colours. 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": "cake-topper",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "text",
   "title": "Text"
  },
  {
   "id": "look",
   "title": "Shape and colours"
  },
  {
   "id": "picks",
   "title": "Picks"
  },
  {
   "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": "happy-birthday-topper",
    "title": "Happy Birthday topper",
    "description": "Bold \"Happy Birthday\" on two 60 mm picks, printed in one colour.",
    "values": {
     "line1": "Happy Birthday",
     "line2": "",
     "line3": "",
     "font": "lilita",
     "letterHeight": 18,
     "lineScale": 70,
     "letterSpacing": 0.02,
     "maxWidth": 140,
     "style": "welded",
     "weld": 2,
     "bar": true,
     "colorMode": "single",
     "letterColor": "#c85a32",
     "weldColor": "#f4efe6",
     "thickness": 2.4,
     "pickCount": 2,
     "pickLength": 60,
     "pickWidth": 3.5,
     "pickPoint": true,
     "setCount": 1
    }
   },
   {
    "id": "happy-birthday-name",
    "title": "Happy Birthday + name",
    "description": "The greeting over a smaller name: type your own under Text.",
    "values": {
     "line1": "Happy Birthday",
     "line2": "Emma",
     "letterColor": "#d97706",
     "weldColor": "#f2c14e"
    }
   },
   {
    "id": "name-and-age",
    "title": "Name and age (kids)",
    "description": "A big name, \"is\" and the age with a bang, one pick in the middle.",
    "values": {
     "line1": "Leo",
     "line2": "is",
     "line3": "6!",
     "pickCount": 1,
     "letterColor": "#b91c1c",
     "weldColor": "#ffffff"
    }
   },
   {
    "id": "wedding-mr-and-mrs",
    "title": "Wedding: Mr & Mrs",
    "description": "Script letters in an outline plate, two colours, the surname underneath.",
    "values": {
     "font": "pacifico",
     "style": "outline",
     "colorMode": "multi",
     "line1": "Mr & Mrs",
     "line2": "Smith",
     "letterColor": "#2a7f76",
     "weldColor": "#fbbf24"
    }
   },
   {
    "id": "anniversary",
    "title": "Anniversary number and names",
    "description": "A big \"25\", \"Years\" and both names on three picks.",
    "values": {
     "font": "lilita",
     "line1": "25",
     "line2": "Years",
     "line3": "Anna & Peter",
     "pickCount": 3,
     "letterColor": "#7c3aed",
     "weldColor": "#bae6fd"
    }
   },
   {
    "id": "merry-christmas",
    "title": "Merry Christmas, script",
    "description": "Joined handwriting in two colours: red letters, a pale bar and picks.",
    "values": {
     "font": "pacifico",
     "colorMode": "multi",
     "line1": "Merry Christmas",
     "letterColor": "#2563eb",
     "weldColor": "#fde68a"
    }
   },
   {
    "id": "happy-new-year-2027",
    "title": "Happy New Year 2027",
    "description": "Three lines on three picks for the New Year cake.",
    "values": {
     "font": "pacifico",
     "line1": "Happy",
     "line2": "New Year",
     "line3": "2027",
     "pickCount": 3,
     "letterColor": "#15803d",
     "weldColor": "#fed7aa"
    }
   },
   {
    "id": "cupcake-picks-set-of-12",
    "title": "Cupcake picks, set of 12",
    "description": "Twelve small name picks 40 mm long, in one print.",
    "values": {
     "line1": "Emi",
     "letterHeight": 10,
     "pickLength": 40,
     "maxWidth": 60,
     "setCount": 12,
     "pickCount": 1,
     "pickWidth": 2.5,
     "letterColor": "#db2777",
     "weldColor": "#d9f99d"
    }
   }
  ]
 },
 "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": {
  "line1": {
   "type": "string",
   "maxLength": 18,
   "title": "Line 1 (main line)",
   "description": "The large line: a greeting, a name or an age. Up to 18 characters.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "1. rinda (galvenā)",
   "default": "Happy Birthday",
   "x-resetOnPreset": true
  },
  "line2": {
   "type": "string",
   "maxLength": 18,
   "title": "Line 2",
   "description": "A second line under the first, smaller. Empty: no line.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "2. rinda",
   "default": "",
   "x-resetOnPreset": true
  },
  "line3": {
   "type": "string",
   "maxLength": 18,
   "title": "Line 3",
   "description": "A third line at the bottom, the same size as the second. Empty: no line.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "3. 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": "Script for weddings and birthdays, bold for children's parties. Narrow fits the most.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 8,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Letter height (main line)",
   "description": "Height of a capital letter on the first line. The letters shrink when the text is wider than the topper.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums (galvenā rinda)",
   "default": 18,
   "x-resetOnPreset": true
  },
  "lineScale": {
   "type": "number",
   "minimum": 50,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Other lines, size",
   "description": "Lines 2 and 3 as a share of the main line.",
   "x-group": "text",
   "x-unit": "pct",
   "x-visibleIf": {
    "any": [
     {
      "line2": {
       "ne": ""
      }
     },
     {
      "line3": {
       "ne": ""
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pārējās rindas, izmērs",
   "default": 70,
   "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. Close letters weld into one piece more easily.",
   "x-group": "text",
   "x-unit": "ratio",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp burtiem",
   "default": 0.02,
   "x-resetOnPreset": true
  },
  "maxWidth": {
   "type": "number",
   "minimum": 60,
   "maximum": 200,
   "multipleOf": 5,
   "title": "Maximum width",
   "description": "The longest line of the topper. A wider topper needs more picks.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Maksimālais platums",
   "default": 140,
   "x-resetOnPreset": true
  },
  "style": {
   "type": "string",
   "enum": [
    "welded",
    "outline"
   ],
   "x-enumTitles": {
    "welded": "Letters only, welded where needed",
    "outline": "Letters in an outline plate"
   },
   "title": "Shape",
   "description": "Welded letters are light and elegant; letters that do not touch are joined by short bars. An outline plate wraps every line in a border and is the sturdier choice for two colours.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Forma",
   "default": "welded",
   "x-resetOnPreset": true
  },
  "weld": {
   "type": "number",
   "minimum": 1.5,
   "maximum": 4,
   "x-step": 0.1,
   "title": "Weld / outline width",
   "description": "Welded: gaps up to this width close, so the dot of an i joins its stem. Outline: the width of the border round the letters.",
   "x-group": "look",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Saplūšanas / kontūra platums",
   "default": 2,
   "x-resetOnPreset": true
  },
  "bar": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Bar under the bottom line",
   "description": "A bar along the bottom line holds the letters together and carries the picks.",
   "x-group": "look",
   "x-visibleIf": {
    "style": "welded"
   },
   "x-agentSafe": true,
   "x-label-lv": "Josliņa zem apakšējās rindas",
   "default": 1,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: letters and weld"
   },
   "title": "Colours",
   "description": "Two colours gives two bodies in the 3MF: the letters and everything that joins them, for a multi-material printer or a filament change.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Krāsas",
   "default": "single",
   "x-resetOnPreset": true
  },
  "letterColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Letter colour",
   "description": "The letters, or the whole topper in one colour.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Burtu krāsa",
   "default": "#e11d48",
   "x-resetOnPreset": true
  },
  "weldColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Weld colour",
   "description": "The bars, bridges and outline that join the letters.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Savienojumu krāsa",
   "default": "#f1e9d8",
   "x-resetOnPreset": true
  },
  "thickness": {
   "type": "number",
   "minimum": 1.6,
   "maximum": 4,
   "x-step": 0.2,
   "title": "Thickness",
   "description": "The topper prints flat: 2.4 mm (six layers) is stiff enough for a 60 mm pick.",
   "x-group": "look",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Biezums",
   "default": 2.4,
   "x-resetOnPreset": true
  },
  "pickCount": {
   "type": "integer",
   "minimum": 1,
   "maximum": 3,
   "multipleOf": 1,
   "title": "Picks",
   "description": "One in the middle for a small topper, two or three for a wide or tall one.",
   "x-group": "picks",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Irži",
   "default": 2,
   "x-resetOnPreset": true
  },
  "pickLength": {
   "type": "number",
   "minimum": 40,
   "maximum": 90,
   "multipleOf": 5,
   "title": "Pick length",
   "description": "How far the picks go down from the letters. At least 40 mm holds in a cake; 60 to 90 mm for a tall cake.",
   "x-group": "picks",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Irža garums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "pickWidth": {
   "type": "number",
   "minimum": 2,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Pick width",
   "description": "Wide picks stand straight in soft cream; narrow ones suit cupcakes.",
   "x-group": "picks",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Irža platums",
   "default": 3.5,
   "x-resetOnPreset": true
  },
  "pickPoint": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Pointed picks",
   "description": "A point at the end of every pick goes into the cake easily.",
   "x-group": "picks",
   "x-agentSafe": true,
   "x-label-lv": "Smaili irži",
   "default": 1,
   "x-resetOnPreset": true
  },
  "setCount": {
   "type": "integer",
   "minimum": 1,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Toppers on the plate",
   "description": "The same topper more than once: a set of cupcake picks in one print.",
   "x-group": "picks",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Rotājumi uz plātnes",
   "default": 1,
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg"
   ],
   "x-enumTitles": {
    "pla": "PLA (food-safe, Indoors)",
    "petg": "PETG"
   },
   "title": "Filament",
   "description": "Food-safe PLA or PETG. Wrap the picks before they go into the cake.",
   "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 every stroke of a letter 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": 20,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "100 %: the topper is thin, so it is printed solid.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 100
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "silk-gold-pla",
   "title": "Silk Gold PLA Filament 1.75 mm (1 kg)",
   "why": "Metallic festive sheen for tree ornaments, stars and snowflakes.",
   "url": "https://paramlet.com/go/silk-gold-pla?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)"
  }
 ]
}