{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/coaster/schema.json",
 "title": "Coaster — parameters",
 "description": "Round, square or hex coasters with a name or monogram, honeycomb, ring or snowflake patterns, a drip rim, a cork recess and a holder for the set. 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": "coaster",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "shape",
   "title": "Shape"
  },
  {
   "id": "face",
   "title": "Pattern and text"
  },
  {
   "id": "rim",
   "title": "Drip rim"
  },
  {
   "id": "under",
   "title": "Underside"
  },
  {
   "id": "set",
   "title": "Set and holder"
  },
  {
   "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": "round-name-coaster-two-colours",
    "title": "Round name coaster, two colours",
    "description": "A name in amber on a navy honeycomb coaster with a drip rim.",
    "values": {
     "shape": "round",
     "size": 98,
     "corner": 4,
     "thickness": 4,
     "pattern": "honeycomb",
     "patternStyle": "raised",
     "patternDepth": 0.8,
     "patternWidth": 1.2,
     "cellSize": 12,
     "ringPitch": 9,
     "flakeSize": 40,
     "flakeVariant": 1,
     "text": "Dad",
     "subtext": "",
     "font": "lilita",
     "letterHeight": 24,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "rim": true,
     "rimHeight": 1.5,
     "rimWidth": 2.5,
     "pad": "none",
     "padThickness": 3,
     "padInset": 6,
     "setCount": 1,
     "holder": false,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "multi",
     "baseColor": "#c85a32",
     "letterColor": "#f4efe6",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "infill": 100
    }
   },
   {
    "id": "honeycomb-coaster-set-with-holder",
    "title": "Honeycomb coaster set with holder",
    "description": "Six honeycomb coasters, the stand that holds them and the fit coupon.",
    "values": {
     "shape": "round",
     "size": 98,
     "corner": 4,
     "thickness": 4,
     "pattern": "honeycomb",
     "patternStyle": "raised",
     "patternDepth": 0.8,
     "patternWidth": 1.2,
     "cellSize": 12,
     "ringPitch": 9,
     "flakeSize": 40,
     "flakeVariant": 1,
     "text": "",
     "subtext": "",
     "font": "lilita",
     "letterHeight": 24,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "rim": true,
     "rimHeight": 1.5,
     "rimWidth": 2.5,
     "pad": "none",
     "padThickness": 3,
     "padInset": 6,
     "setCount": 6,
     "holder": true,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "single",
     "baseColor": "#2a7f76",
     "letterColor": "#f2c14e",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "infill": 100
    }
   },
   {
    "id": "snowflake-coaster-set",
    "title": "Christmas snowflake coaster set",
    "description": "Four blue coasters with a snowflake, in a holder for the table.",
    "values": {
     "shape": "round",
     "size": 98,
     "corner": 4,
     "thickness": 4,
     "pattern": "snowflake",
     "patternStyle": "raised",
     "patternDepth": 0.8,
     "patternWidth": 1.2,
     "cellSize": 12,
     "ringPitch": 9,
     "flakeSize": 44,
     "flakeVariant": 1,
     "text": "",
     "subtext": "",
     "font": "lilita",
     "letterHeight": 24,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "rim": true,
     "rimHeight": 1.5,
     "rimWidth": 2.5,
     "pad": "none",
     "padThickness": 3,
     "padInset": 6,
     "setCount": 4,
     "holder": true,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "single",
     "baseColor": "#d4a024",
     "letterColor": "#ffffff",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "infill": 100
    }
   },
   {
    "id": "hex-coaster-set",
    "title": "Hexagon coaster set",
    "description": "Four hexagons with engraved rings that follow the outline, no rim.",
    "values": {
     "shape": "hex",
     "size": 98,
     "corner": 4,
     "thickness": 4,
     "pattern": "rings",
     "patternStyle": "engraved",
     "patternDepth": 0.8,
     "patternWidth": 1.2,
     "cellSize": 12,
     "ringPitch": 10,
     "flakeSize": 40,
     "flakeVariant": 1,
     "text": "",
     "subtext": "",
     "font": "lilita",
     "letterHeight": 24,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "rim": false,
     "rimHeight": 1.5,
     "rimWidth": 2.5,
     "pad": "none",
     "padThickness": 3,
     "padInset": 6,
     "setCount": 4,
     "holder": false,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "single",
     "baseColor": "#3b5b8c",
     "letterColor": "#fbbf24",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "infill": 100
    }
   },
   {
    "id": "wedding-monogram-coaster",
    "title": "Wedding monogram coaster",
    "description": "Initials in script, gold inlaid flush in a cream coaster with fine rings.",
    "values": {
     "shape": "round",
     "size": 98,
     "corner": 4,
     "thickness": 4,
     "pattern": "rings",
     "patternStyle": "engraved",
     "patternDepth": 0.8,
     "patternWidth": 1.2,
     "cellSize": 12,
     "ringPitch": 8,
     "flakeSize": 40,
     "flakeVariant": 1,
     "text": "A & S",
     "subtext": "",
     "font": "pacifico",
     "letterHeight": 20,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1.2,
     "rim": false,
     "rimHeight": 1.5,
     "rimWidth": 2.5,
     "pad": "none",
     "padThickness": 3,
     "padInset": 6,
     "setCount": 1,
     "holder": false,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "multi",
     "baseColor": "#5b7f4b",
     "letterColor": "#bae6fd",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "infill": 100
    }
   },
   {
    "id": "coaster-with-cork-recess",
    "title": "Coasters with a cork recess",
    "description": "Four ring-pattern coasters with a recess underneath for a 3 mm cork pad.",
    "values": {
     "shape": "round",
     "size": 98,
     "corner": 4,
     "thickness": 5,
     "pattern": "rings",
     "patternStyle": "raised",
     "patternDepth": 0.6,
     "patternWidth": 1.2,
     "cellSize": 12,
     "ringPitch": 9,
     "flakeSize": 40,
     "flakeVariant": 1,
     "text": "",
     "subtext": "",
     "font": "lilita",
     "letterHeight": 24,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "rim": true,
     "rimHeight": 1.5,
     "rimWidth": 2.5,
     "pad": "recess",
     "padThickness": 3,
     "padInset": 6,
     "setCount": 4,
     "holder": false,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "single",
     "baseColor": "#8c3b5c",
     "letterColor": "#fde68a",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "infill": 100
    }
   },
   {
    "id": "beer-coaster-with-drip-rim",
    "title": "Beer coaster with drip rim",
    "description": "A 107 mm coaster, the size of a beer mat, with a tall rim and an engraved word.",
    "values": {
     "shape": "round",
     "size": 107,
     "corner": 4,
     "thickness": 4,
     "pattern": "honeycomb",
     "patternStyle": "raised",
     "patternDepth": 0.8,
     "patternWidth": 1.2,
     "cellSize": 12,
     "ringPitch": 9,
     "flakeSize": 40,
     "flakeVariant": 1,
     "text": "BEER",
     "subtext": "",
     "font": "barlow",
     "letterHeight": 26,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 1.2,
     "rim": true,
     "rimHeight": 2.5,
     "rimWidth": 3,
     "pad": "none",
     "padThickness": 3,
     "padInset": 6,
     "setCount": 1,
     "holder": false,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "single",
     "baseColor": "#d97742",
     "letterColor": "#fed7aa",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "infill": 100
    }
   },
   {
    "id": "non-slip-coasters-with-tpu-pads",
    "title": "Non-slip coasters with TPU pads",
    "description": "Four coasters, each with a printed flexible pad that clips into the recess.",
    "values": {
     "shape": "round",
     "size": 98,
     "corner": 4,
     "thickness": 4,
     "pattern": "honeycomb",
     "patternStyle": "raised",
     "patternDepth": 0.8,
     "patternWidth": 1.2,
     "cellSize": 14,
     "ringPitch": 9,
     "flakeSize": 40,
     "flakeVariant": 1,
     "text": "Home",
     "subtext": "",
     "font": "lilita",
     "letterHeight": 24,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "rim": true,
     "rimHeight": 1.5,
     "rimWidth": 2.5,
     "pad": "tpu",
     "padThickness": 1.6,
     "padInset": 5,
     "setCount": 4,
     "holder": false,
     "holderClearance": 0.25,
     "coupon": true,
     "colorMode": "single",
     "baseColor": "#1f6f8b",
     "letterColor": "#d9f99d",
     "material": "pla",
     "layerHeight": 0.2,
     "wallCount": 3,
     "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",
    "square",
    "hex"
   ],
   "x-enumTitles": {
    "round": "Round",
    "square": "Square",
    "hex": "Hexagon"
   },
   "title": "Shape",
   "description": "Round suits mugs and glasses, square and hexagon pack tightly in a cupboard.",
   "x-group": "shape",
   "x-agentSafe": true,
   "x-label-lv": "Forma",
   "default": "round",
   "x-resetOnPreset": true
  },
  "size": {
   "type": "number",
   "minimum": 80,
   "maximum": 120,
   "multipleOf": 1,
   "title": "Diameter / side",
   "description": "Round: the diameter. Square: the side. Hexagon: the width across the flats. A mug foot is 65 to 85 mm, a beer mat 107 mm.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Diametrs / mala",
   "default": 98,
   "x-resetOnPreset": true
  },
  "corner": {
   "type": "number",
   "minimum": 0,
   "maximum": 10,
   "x-step": 0.5,
   "title": "Corner radius",
   "description": "0 for sharp corners. Round corners do not lift from the plate.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-visibleIf": {
    "shape": "square"
   },
   "x-agentSafe": true,
   "x-label-lv": "Stūra rādiuss",
   "default": 4,
   "x-resetOnPreset": true
  },
  "thickness": {
   "type": "number",
   "minimum": 3,
   "maximum": 6,
   "x-step": 0.2,
   "title": "Thickness",
   "description": "The plate under the pattern, without the rim and the letters. 4 mm lies flat and does not bend in use.",
   "x-group": "shape",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Biezums",
   "default": 4,
   "x-resetOnPreset": true
  },
  "pattern": {
   "type": "string",
   "enum": [
    "none",
    "honeycomb",
    "rings",
    "snowflake"
   ],
   "x-enumTitles": {
    "none": "None",
    "honeycomb": "Honeycomb",
    "rings": "Geometric rings",
    "snowflake": "Snowflake"
   },
   "title": "Pattern",
   "description": "The pattern keeps its distance from the letters and from the rim.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Raksts",
   "default": "honeycomb",
   "x-resetOnPreset": true
  },
  "patternStyle": {
   "type": "string",
   "enum": [
    "raised",
    "engraved"
   ],
   "x-enumTitles": {
    "raised": "Raised lines, lowered field",
    "engraved": "Engraved lines"
   },
   "title": "Pattern style",
   "description": "Raised: the mug stands on the lines and drips run into the lowered field. Engraved: lines cut into a flat top.",
   "x-group": "face",
   "x-visibleIf": {
    "any": [
     {
      "pattern": "honeycomb"
     },
     {
      "pattern": "rings"
     },
     {
      "pattern": "snowflake"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Raksta veids",
   "default": "raised",
   "x-resetOnPreset": true
  },
  "patternDepth": {
   "type": "number",
   "minimum": 0.4,
   "maximum": 1.5,
   "x-step": 0.1,
   "title": "Pattern depth",
   "description": "How far the lowered field or the engraved lines go down. 0.8 mm is four layers at 0.2 mm.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "any": [
     {
      "pattern": "honeycomb"
     },
     {
      "pattern": "rings"
     },
     {
      "pattern": "snowflake"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Raksta dziļums",
   "default": 0.8,
   "x-resetOnPreset": true
  },
  "patternWidth": {
   "type": "number",
   "minimum": 0.8,
   "maximum": 2,
   "x-step": 0.2,
   "title": "Line width",
   "description": "The width of the pattern lines. 1.2 mm is three extrusion lines.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "any": [
     {
      "pattern": "honeycomb"
     },
     {
      "pattern": "rings"
     },
     {
      "pattern": "snowflake"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Līniju platums",
   "default": 1.2,
   "x-resetOnPreset": true
  },
  "cellSize": {
   "type": "number",
   "minimum": 8,
   "maximum": 20,
   "multipleOf": 1,
   "title": "Honeycomb cell",
   "description": "The width of one cell, wall to wall.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "pattern": "honeycomb"
   },
   "x-agentSafe": true,
   "x-label-lv": "Šūnas izmērs",
   "default": 12,
   "x-resetOnPreset": true
  },
  "ringPitch": {
   "type": "number",
   "minimum": 6,
   "maximum": 16,
   "multipleOf": 1,
   "title": "Ring spacing",
   "description": "From one ring to the next. The rings follow the outline of the coaster.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "pattern": "rings"
   },
   "x-agentSafe": true,
   "x-label-lv": "Attālums starp gredzeniem",
   "default": 9,
   "x-resetOnPreset": true
  },
  "flakeSize": {
   "type": "number",
   "minimum": 25,
   "maximum": 45,
   "multipleOf": 1,
   "title": "Snowflake size",
   "description": "Point to point. The snowflake sits in the middle, behind the letters.",
   "x-group": "face",
   "x-unit": "mm",
   "x-visibleIf": {
    "pattern": "snowflake"
   },
   "x-agentSafe": true,
   "x-label-lv": "Sniepārses izmērs",
   "default": 40,
   "x-resetOnPreset": true
  },
  "flakeVariant": {
   "type": "integer",
   "minimum": 1,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Snowflake shape",
   "description": "Twelve flakes with their branches in different places.",
   "x-group": "face",
   "x-unit": "count",
   "x-visibleIf": {
    "pattern": "snowflake"
   },
   "x-agentSafe": true,
   "x-label-lv": "Sniepārses veids",
   "default": 1,
   "x-resetOnPreset": true
  },
  "text": {
   "type": "string",
   "maxLength": 14,
   "title": "Name or monogram",
   "description": "The large line in the middle: a name, initials or a word. Empty: pattern only. Up to 14 characters.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Vārds vai monogramma",
   "default": "Dad",
   "x-resetOnPreset": true
  },
  "subtext": {
   "type": "string",
   "maxLength": 18,
   "title": "Small line under it",
   "description": "A date, a year or a greeting in half-size letters under the name. Empty: none.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Maza rinda zem tās",
   "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 a first coaster, script for weddings, narrow for long names.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 10,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Letter height",
   "description": "Height of a capital letter. The letters shrink on their own when the text does not fit.",
   "x-group": "face",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 24,
   "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": "face",
   "x-unit": "ratio",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp burtiem",
   "default": 0.02,
   "x-resetOnPreset": true
  },
  "letterStyle": {
   "type": "string",
   "enum": [
    "raised",
    "engraved"
   ],
   "x-enumTitles": {
    "raised": "Raised letters",
    "engraved": "Engraved letters"
   },
   "title": "Letters",
   "description": "Raised letters stand on the face and are printed after a filament change or in a second colour. Engraved letters are cut into the face; in two colours the second colour is inlaid flush.",
   "x-group": "face",
   "x-agentSafe": true,
   "x-label-lv": "Burti",
   "default": "raised",
   "x-resetOnPreset": true
  },
  "letterDepth": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 2,
   "x-step": 0.2,
   "title": "Letter height / depth",
   "description": "Raised: how far the letters stand up. Engraved: how deep they are cut.",
   "x-group": "face",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums / dziļums",
   "default": 1.2,
   "x-resetOnPreset": true
  },
  "rim": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Drip rim",
   "description": "A low wall all round keeps a drip or a puddle on the coaster.",
   "x-group": "rim",
   "x-agentSafe": true,
   "x-label-lv": "Pilieniem mala",
   "default": 1,
   "x-resetOnPreset": true
  },
  "rimHeight": {
   "type": "number",
   "minimum": 1,
   "maximum": 3,
   "x-step": 0.25,
   "title": "Rim height",
   "description": "How far the rim stands above the face. 2.5 mm for a beer glass that sweats.",
   "x-group": "rim",
   "x-unit": "mm",
   "x-visibleIf": {
    "rim": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Malas augstums",
   "default": 1.5,
   "x-resetOnPreset": true
  },
  "rimWidth": {
   "type": "number",
   "minimum": 2,
   "maximum": 4,
   "x-step": 0.5,
   "title": "Rim width",
   "description": "The wall of the rim. 2.5 mm prints without a seam gap.",
   "x-group": "rim",
   "x-unit": "mm",
   "x-visibleIf": {
    "rim": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Malas platums",
   "default": 2.5,
   "x-resetOnPreset": true
  },
  "pad": {
   "type": "string",
   "enum": [
    "none",
    "recess",
    "tpu"
   ],
   "x-enumTitles": {
    "none": "Flat underside",
    "recess": "Recess for a cork or felt pad",
    "tpu": "Printed TPU pad (recess and pad)"
   },
   "title": "Underside",
   "description": "A pad keeps the coaster from sliding and from scratching the table. The recess is printed as a bridge. With TPU the page adds the pad as a part: print it in flexible filament.",
   "x-group": "under",
   "x-agentSafe": true,
   "x-label-lv": "Apakšpuse",
   "default": "none",
   "x-resetOnPreset": true
  },
  "padThickness": {
   "type": "number",
   "minimum": 1,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Pad thickness",
   "description": "Cork sheets are 2 to 4 mm, self-adhesive felt 1.5 to 2 mm, a TPU pad 1.2 to 2 mm. The recess is 0.3 mm shallower, so the pad stands proud.",
   "x-group": "under",
   "x-unit": "mm",
   "x-visibleIf": {
    "any": [
     {
      "pad": "recess"
     },
     {
      "pad": "tpu"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Pamatiņa biezums",
   "default": 3,
   "x-resetOnPreset": true
  },
  "padInset": {
   "type": "number",
   "minimum": 4,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Recess margin",
   "description": "From the edge of the coaster to the recess.",
   "x-group": "under",
   "x-unit": "mm",
   "x-visibleIf": {
    "any": [
     {
      "pad": "recess"
     },
     {
      "pad": "tpu"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Iedobetes atkāpe",
   "default": 6,
   "x-resetOnPreset": true
  },
  "setCount": {
   "type": "integer",
   "minimum": 1,
   "maximum": 8,
   "multipleOf": 1,
   "title": "Coasters on the plate",
   "description": "The same coaster more than once: a set in one print, or in two when it does not fit one plate.",
   "x-group": "set",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Podiņi uz plātnes",
   "default": 1,
   "x-resetOnPreset": true
  },
  "holder": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Holder for the set",
   "description": "A stand that takes the whole set on edge. Print the coupon first when you are not sure of the fit.",
   "x-group": "set",
   "x-agentSafe": true,
   "x-label-lv": "Turētājs komplektam",
   "default": 0,
   "x-resetOnPreset": true
  },
  "holderClearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 0.5,
   "x-step": 0.05,
   "title": "Play per coaster",
   "description": "Extra slot width for every coaster. 0.25 mm slides smoothly on most printers; take what the coupon shows you.",
   "x-group": "set",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-visibleIf": {
    "holder": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Sprauga uz vienu podiņu",
   "default": 0.25,
   "x-resetOnPreset": true
  },
  "coupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "A small block with three slots, 0.1, 0.25 and 0.5 mm wider than a coaster, left to right. Print it first and try a coaster in each.",
   "x-group": "set",
   "x-visibleIf": {
    "holder": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Piegulēšanas paraugiņš",
   "default": 1,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: letters and coaster"
   },
   "title": "Colours",
   "description": "Two colours gives two bodies in the 3MF, for a multi-material printer. One colour with raised letters: change the filament at the height the page gives.",
   "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": "Coaster colour",
   "description": "The coaster with its pattern and rim.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Podiņa krāsa",
   "default": "#1f3a5f",
   "x-resetOnPreset": true
  },
  "letterColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Letter colour",
   "description": "The name or monogram.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Burtu krāsa",
   "default": "#e8a33d",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA (cold and warm drinks)",
    "petg": "PETG (hot drinks)",
    "asa": "ASA (hot drinks, UV)"
   },
   "title": "Filament",
   "description": "PLA softens under a very hot mug. For coffee, tea or a pot straight from the stove take PETG or ASA.",
   "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": "Only for the layer number of the filament change.",
   "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": 2,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Three lines make every pattern line solid.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 3,
   "x-resetOnPreset": true
  },
  "infill": {
   "type": "integer",
   "minimum": 20,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "100 %: the coaster is a thin plate that has to stay flat.",
   "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": "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)"
  },
  {
   "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)"
  }
 ]
}