{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/box-with-lid/schema.json",
 "title": "Box with lid — parameters",
 "description": "A box made to the size you measure, inside or outside, with a friction, snap, sliding, magnetic or hinged lid that fits, dividers and a name on the lid. 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": "box-with-lid",
 "x-toolVersion": "1.2.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "box",
   "title": "Box"
  },
  {
   "id": "lid",
   "title": "Lid"
  },
  {
   "id": "text",
   "title": "Text on the lid"
  },
  {
   "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": "gift-box-with-name-on-lid",
    "title": "Gift box with a name on the lid",
    "description": "A red 70 × 70 × 35 mm box with a friction lid and a cream name, in two colours.",
    "values": {
     "sizeBasis": "inside",
     "width": 70,
     "depth": 70,
     "height": 35,
     "wall": 1.6,
     "corner": 8,
     "rows": 0,
     "cols": 0,
     "lidType": "cap",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "Mum",
     "text2": "",
     "font": "lilita",
     "letterHeight": 20,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "multi",
     "boxColor": "#9b1c1c",
     "lidColor": "#9b1c1c",
     "letterColor": "#f1e9d8",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2
    }
   },
   {
    "id": "sliding-lid-box-for-small-parts",
    "title": "Sliding-lid box for small parts",
    "description": "100 × 60 × 25 mm with a sliding lid and two compartments, navy with amber letters.",
    "values": {
     "sizeBasis": "inside",
     "width": 100,
     "depth": 60,
     "height": 25,
     "wall": 1.6,
     "corner": 4,
     "rows": 0,
     "cols": 1,
     "lidType": "slide",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "Parts",
     "text2": "",
     "font": "lilita",
     "letterHeight": 14,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "multi",
     "boxColor": "#1f3a5f",
     "lidColor": "#9b1c1c",
     "letterColor": "#e8a33d",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2
    }
   },
   {
    "id": "snap-lid-jewellery-box",
    "title": "Jewellery box with a snap lid",
    "description": "A cream 60 × 60 × 30 mm box with round corners; the lid clicks shut and carries a script name in gold.",
    "values": {
     "sizeBasis": "inside",
     "width": 60,
     "depth": 60,
     "height": 30,
     "wall": 1.6,
     "corner": 12,
     "rows": 0,
     "cols": 0,
     "lidType": "snap",
     "lidTolerance": 0.2,
     "lidHeight": 10,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "Anna",
     "text2": "",
     "font": "pacifico",
     "letterHeight": 16,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "multi",
     "boxColor": "#f1ebe0",
     "lidColor": "#9b1c1c",
     "letterColor": "#b08d57",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2
    }
   },
   {
    "id": "tea-bag-box",
    "title": "Tea bag box",
    "description": "85 × 50 × 30 mm for a stack of tea bags, green, with narrow letters.",
    "values": {
     "sizeBasis": "inside",
     "width": 85,
     "depth": 50,
     "height": 30,
     "wall": 1.6,
     "corner": 3,
     "rows": 0,
     "cols": 0,
     "lidType": "cap",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "TEA",
     "text2": "",
     "font": "barlow",
     "letterHeight": 22,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "multi",
     "boxColor": "#0b5d2e",
     "lidColor": "#9b1c1c",
     "letterColor": "#f1e9d8",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2
    }
   },
   {
    "id": "screw-box-with-dividers",
    "title": "Screw and bit box with dividers",
    "description": "120 × 80 × 35 mm, twelve compartments, a sliding lid, grey, printed in one colour.",
    "values": {
     "sizeBasis": "inside",
     "width": 120,
     "depth": 80,
     "height": 35,
     "wall": 1.6,
     "corner": 4,
     "rows": 2,
     "cols": 3,
     "lidType": "slide",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "M3 M4",
     "text2": "",
     "font": "barlow",
     "letterHeight": 14,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "single",
     "boxColor": "#374151",
     "lidColor": "#9b1c1c",
     "letterColor": "#f1e9d8",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2
    }
   },
   {
    "id": "magnetic-lid-box",
    "title": "Box with a magnetic lid",
    "description": "60 × 45 × 15 mm with a flat lid held by four 6 × 3 mm magnets.",
    "values": {
     "sizeBasis": "inside",
     "width": 60,
     "depth": 45,
     "height": 15,
     "wall": 1.6,
     "corner": 5,
     "rows": 0,
     "cols": 0,
     "lidType": "magnet",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "SD",
     "text2": "",
     "font": "lilita",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "multi",
     "boxColor": "#4b5563",
     "lidColor": "#9b1c1c",
     "letterColor": "#f1e9d8",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2
    }
   },
   {
    "id": "hinged-jewellery-box",
    "title": "Hinged ring / jewellery box",
    "description": "A 60 × 50 × 24 mm clamshell in dusty pink whose lid turns on a hinge printed in place, with a cream name engraved flush in the lid and no supports.",
    "values": {
     "sizeBasis": "inside",
     "width": 60,
     "depth": 50,
     "height": 24,
     "wall": 1.6,
     "corner": 10,
     "rows": 0,
     "cols": 0,
     "lidType": "hinge",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "Anna",
     "text2": "",
     "font": "pacifico",
     "letterHeight": 14,
     "letterSpacing": 0.02,
     "letterStyle": "engraved",
     "letterDepth": 0.8,
     "colorMode": "multi",
     "boxColor": "#c2768a",
     "lidColor": "#9b1c1c",
     "letterColor": "#f1e9d8",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2,
     "hingeKnuckles": "3",
     "hingePlay": 0.4
    }
   },
   {
    "id": "aa-aaa-battery-box",
    "title": "AA and AAA battery box",
    "description": "Four AA and four AAA side by side under a sliding lid, 66 × 100 × 16 mm inside.",
    "values": {
     "sizeBasis": "inside",
     "width": 66,
     "depth": 100,
     "height": 16,
     "wall": 1.6,
     "corner": 2,
     "rows": 0,
     "cols": 1,
     "lidType": "slide",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 1.6,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "AA AAA",
     "text2": "",
     "font": "barlow",
     "letterHeight": 12,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "multi",
     "boxColor": "#1f2937",
     "lidColor": "#9b1c1c",
     "letterColor": "#f59e0b",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2
    }
   },
   {
    "id": "carved-lid-desk-tray",
    "title": "Desk tray with a carved lid",
    "description": "Inside 150 × 100 × 28 mm, four compartments: a slate blue-grey tray with a terracotta lid carved with diamonds and zigzags, in two colours.",
    "values": {
     "sizeBasis": "inside",
     "width": 150,
     "depth": 100,
     "height": 28,
     "wall": 1.6,
     "corner": 8,
     "rows": 1,
     "cols": 1,
     "lidType": "cap",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 2.4,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "",
     "text2": "",
     "font": "lilita",
     "letterHeight": 20,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "single",
     "boxColor": "#1f2a37",
     "lidColor": "#d95b26",
     "letterColor": "#f1e9d8",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2,
     "lidTexture": "ornament",
     "textureDepth": 1.6,
     "textureScale": 30
    }
   },
   {
    "id": "carved-lid-trinket-box",
    "title": "Trinket box with a carved lid",
    "description": "Inside 70 × 70 × 25 mm: a slate grey box with an old-gold lid carved with diamonds and zigzags, in two colours.",
    "values": {
     "sizeBasis": "inside",
     "width": 70,
     "depth": 70,
     "height": 25,
     "wall": 1.6,
     "corner": 8,
     "rows": 0,
     "cols": 0,
     "lidType": "cap",
     "lidTolerance": 0.2,
     "lidHeight": 12,
     "lidThickness": 2.4,
     "notch": true,
     "discLayout": "4",
     "magnetDiameter": 6,
     "magnetHeight": 3,
     "fitCoupon": true,
     "text": "",
     "text2": "",
     "font": "lilita",
     "letterHeight": 20,
     "letterSpacing": 0.02,
     "letterStyle": "raised",
     "letterDepth": 1.2,
     "colorMode": "single",
     "boxColor": "#334155",
     "lidColor": "#c9a227",
     "letterColor": "#f1e9d8",
     "material": "pla",
     "wallCount": 4,
     "infill": 15,
     "layerHeight": 0.2,
     "lidTexture": "ornament",
     "textureDepth": 1.6,
     "textureScale": 24
    }
   }
  ]
 },
 "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": {
  "sizeBasis": {
   "type": "string",
   "enum": [
    "inside",
    "outside"
   ],
   "x-enumTitles": {
    "inside": "I measured the inside",
    "outside": "I measured the outside"
   },
   "title": "My sizes are",
   "description": "Inside: the room for what goes in. Outside: the footprint the box takes.",
   "x-group": "box",
   "x-agentSafe": true,
   "x-label-lv": "Mani izmēri ir",
   "default": "inside",
   "x-resetOnPreset": true
  },
  "width": {
   "type": "number",
   "minimum": 10,
   "maximum": 240,
   "multipleOf": 1,
   "title": "Width",
   "description": "Left to right. With the inside: wall to wall.",
   "x-group": "box",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Platums",
   "default": 80,
   "x-resetOnPreset": true
  },
  "depth": {
   "type": "number",
   "minimum": 10,
   "maximum": 240,
   "multipleOf": 1,
   "title": "Depth",
   "description": "Front to back. The sliding lid goes in at the front.",
   "x-group": "box",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Dziļums",
   "default": 60,
   "x-resetOnPreset": true
  },
  "height": {
   "type": "number",
   "minimum": 5,
   "maximum": 120,
   "multipleOf": 1,
   "title": "Height",
   "description": "With the inside: floor to rim.",
   "x-group": "box",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Augstums",
   "default": 30,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Wall thickness",
   "description": "Walls and floor. 1.6 mm is four lines and holds a box of this size.",
   "x-group": "box",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Sienas biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "corner": {
   "type": "number",
   "minimum": 0,
   "maximum": 15,
   "multipleOf": 1,
   "title": "Corner radius",
   "description": "Of the box and the lid in plan. 0 for square corners. With a sliding lid the corners are no rounder than the wall is thick, so that the rabbets run straight.",
   "x-group": "box",
   "x-unit": "mm",
   "x-role": "core.fillet",
   "x-agentSafe": true,
   "x-label-lv": "Stūra rādiuss",
   "default": 6,
   "x-resetOnPreset": true
  },
  "rows": {
   "type": "integer",
   "minimum": 0,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Dividers across",
   "description": "Walls from front to back: 1 makes two compartments left and right.",
   "x-group": "box",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Starpšienas šķērsām",
   "default": 1,
   "x-resetOnPreset": true
  },
  "cols": {
   "type": "integer",
   "minimum": 0,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Dividers along",
   "description": "Walls from left to right: 1 makes two compartments front and back.",
   "x-group": "box",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Starpšienas garumā",
   "default": 0,
   "x-resetOnPreset": true
  },
  "lidType": {
   "type": "string",
   "enum": [
    "cap",
    "snap",
    "slide",
    "magnet",
    "hinge"
   ],
   "x-enumTitles": {
    "cap": "Friction cap: a rim that hugs the walls",
    "snap": "Snap cap: a bead that clicks in",
    "slide": "Sliding lid in rabbets",
    "magnet": "Flat lid held by magnets",
    "hinge": "Hinged lid that prints in place"
   },
   "title": "Lid",
   "description": "Cap and snap: a rim over the walls and a plug inside. Sliding lid: rabbets. Flat lid: a ledge with magnets. Hinged lid: a second tray on a pin, printed open beside the box.",
   "x-group": "lid",
   "x-agentSafe": true,
   "x-label-lv": "Vāks",
   "default": "cap",
   "x-resetOnPreset": true
  },
  "hingeKnuckles": {
   "type": "string",
   "enum": [
    "3",
    "5"
   ],
   "x-enumTitles": {
    "3": "Three knuckles",
    "5": "Five knuckles"
   },
   "title": "Hinge knuckles",
   "description": "Five hold a long hinge straighter; three leave more room on a narrow back. A box too narrow for five gets three.",
   "x-group": "lid",
   "x-visibleIf": {
    "lidType": "hinge"
   },
   "x-agentSafe": true,
   "x-label-lv": "Eņģes mezgli",
   "default": "3",
   "x-resetOnPreset": true
  },
  "hingePlay": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Hinge play",
   "description": "Room round the pin and between the knuckles. 0.4 mm turns on most printers; a tight one fuses, a loose one wobbles. The fit coupon shows which yours takes.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-visibleIf": {
    "lidType": "hinge"
   },
   "x-agentSafe": true,
   "x-label-lv": "Eņģes sprauga",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "lidTolerance": {
   "type": "number",
   "minimum": 0.05,
   "maximum": 0.6,
   "x-step": 0.05,
   "title": "Lid play (per side)",
   "description": "Room between the lid and the box on every side. 0.2 mm slides on most printers; print the fit coupon first and take what it shows.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Vāka sprauga (katrā pusē)",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "lidHeight": {
   "type": "number",
   "minimum": 6,
   "maximum": 30,
   "multipleOf": 1,
   "title": "Lid rim height",
   "description": "How far the rim goes down over the walls. The plug inside is 1 mm shorter.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "any": [
     {
      "lidType": "cap"
     },
     {
      "lidType": "snap"
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka malas augstums",
   "default": 10,
   "x-resetOnPreset": true
  },
  "lidThickness": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Lid thickness",
   "description": "The plate of the lid.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "not": {
     "lidType": "hinge"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "notch": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Finger notches",
   "description": "Round cut-outs to get a finger under the lid.",
   "x-group": "lid",
   "x-visibleIf": {
    "not": {
     "lidType": "hinge"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Pirksta iedobes",
   "default": 1,
   "x-resetOnPreset": true
  },
  "discLayout": {
   "type": "string",
   "enum": [
    "4",
    "8"
   ],
   "x-enumTitles": {
    "4": "Four magnets",
    "8": "Eight magnets"
   },
   "title": "Magnets",
   "description": "In the rim of the box and in the lid, pocket against pocket.",
   "x-group": "lid",
   "x-visibleIf": {
    "lidType": "magnet"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēti",
   "default": "4",
   "x-resetOnPreset": true
  },
  "magnetDiameter": {
   "type": "number",
   "minimum": 3,
   "maximum": 8,
   "x-step": 0.5,
   "title": "Magnet diameter",
   "description": "6 mm is the common size.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-role": "core.magnetDiameter",
   "x-visibleIf": {
    "lidType": "magnet"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta diametrs",
   "default": 6,
   "x-resetOnPreset": true
  },
  "magnetHeight": {
   "type": "number",
   "minimum": 1,
   "maximum": 5,
   "x-step": 0.5,
   "title": "Magnet thickness",
   "description": "The pockets are 0.1 mm deeper; the rim and the lid grow to hold them.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-role": "core.magnetHeight",
   "x-visibleIf": {
    "lidType": "magnet"
   },
   "x-agentSafe": true,
   "x-label-lv": "Magnēta biezums",
   "default": 3,
   "x-resetOnPreset": true
  },
  "fitCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Fit coupon",
   "description": "Three tiny boxes with their lids, at 0.15, 0.25 and 0.40 mm of play. Print them first; the tightest lid that goes on with a push is the play to set.",
   "x-group": "lid",
   "x-agentSafe": true,
   "x-label-lv": "Piegulēšanas paraugiņš",
   "default": 1,
   "x-resetOnPreset": true
  },
  "lidTexture": {
   "type": "string",
   "enum": [
    "none",
    "folk",
    "wood",
    "diamond",
    "hex",
    "basketweave",
    "hammered",
    "waves",
    "dots",
    "ornament"
   ],
   "x-enumTitles": {
    "none": "Smooth",
    "folk": "Latvian folk motif",
    "wood": "Woodgrain",
    "diamond": "Diamond lattice",
    "hex": "Hex honeycomb",
    "basketweave": "Basketweave",
    "hammered": "Hammered / leather",
    "waves": "Flowing waves",
    "dots": "Polka dots",
    "ornament": "Carved ornament"
   },
   "title": "Lid surface texture",
   "description": "Optional relief pattern on top of the lid; rim, rabbets, magnet pockets, finger notches and text stay flat.",
   "x-group": "lid",
   "x-visibleIf": {
    "not": {
     "lidType": "hinge"
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Vāka virsmas faktūra",
   "default": "none",
   "x-resetOnPreset": true
  },
  "textureDepth": {
   "type": "number",
   "minimum": 0.3,
   "maximum": 1.6,
   "x-step": 0.1,
   "title": "Texture depth",
   "description": "Relief height on top of the lid (kept below raised lettering). The carved ornament leaves 0.8 mm of the lid under its lines: a thicker lid takes the full depth.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "not": {
       "lidType": "hinge"
      }
     },
     {
      "lidTexture": {
       "ne": "none"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Faktūras dziļums",
   "default": 0.6,
   "x-resetOnPreset": true
  },
  "textureScale": {
   "type": "number",
   "minimum": 4,
   "maximum": 36,
   "multipleOf": 1,
   "title": "Texture scale",
   "description": "Width of one repeating pattern cell in millimetres.",
   "x-group": "lid",
   "x-unit": "mm",
   "x-visibleIf": {
    "all": [
     {
      "not": {
       "lidType": "hinge"
      }
     },
     {
      "lidTexture": {
       "ne": "none"
      }
     }
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Faktūras mērogs",
   "default": 9,
   "x-resetOnPreset": true
  },
  "text": {
   "type": "string",
   "maxLength": 12,
   "title": "Name or word",
   "description": "The large line on the lid. Empty: no text. Up to 12 characters.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Vārds",
   "default": "Mum",
   "x-resetOnPreset": true
  },
  "text2": {
   "type": "string",
   "maxLength": 16,
   "title": "Second line",
   "description": "A smaller line under the first: a date or a greeting. Empty: none.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Otrā 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 a name, script for a gift, narrow for long words.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burtu stils",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "letterHeight": {
   "type": "number",
   "minimum": 6,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Letter height",
   "description": "Height of a capital letter. The letters shrink on their own when the text does not fit the lid.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums",
   "default": 16,
   "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
  },
  "letterStyle": {
   "type": "string",
   "enum": [
    "raised",
    "engraved"
   ],
   "x-enumTitles": {
    "raised": "Raised letters",
    "engraved": "Engraved letters"
   },
   "title": "Letters",
   "description": "Raised letters stand on the lid and are printed after a filament change or in a second colour. Engraved letters are cut into the lid; in two colours the second colour is inlaid flush.",
   "x-group": "text",
   "x-agentSafe": true,
   "x-label-lv": "Burti",
   "default": "raised",
   "x-resetOnPreset": true
  },
  "letterDepth": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 1.6,
   "x-step": 0.2,
   "title": "Letter height / depth",
   "description": "Raised: how far the letters stand up. Engraved: how deep they are cut.",
   "x-group": "text",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Burtu augstums / dziļums",
   "default": 1.2,
   "x-resetOnPreset": true
  },
  "colorMode": {
   "type": "string",
   "enum": [
    "single",
    "multi"
   ],
   "x-enumTitles": {
    "single": "One colour",
    "multi": "Two colours: lid text and box"
   },
   "title": "Colours",
   "description": "Two colours gives the lid text as its own body 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
  },
  "boxColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Box colour",
   "description": "The box and its fit coupons; the lid too, until it gets a colour of its own.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Kastes krāsa",
   "default": "#9b1c1c",
   "x-resetOnPreset": true
  },
  "lidColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Lid colour",
   "description": "A colour of its own for the lid: a two-colour set from two filaments, with no nozzle change. Left at the box colour, the lid stays in it.",
   "x-group": "look",
   "x-agentSafe": true,
   "x-label-lv": "Vāka krāsa",
   "default": "#9b1c1c",
   "x-resetOnPreset": true
  },
  "letterColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Letter colour",
   "description": "The name or word on the lid.",
   "x-group": "look",
   "x-visibleIf": {
    "colorMode": "multi"
   },
   "x-agentSafe": true,
   "x-label-lv": "Burtu krāsa",
   "default": "#f1e9d8",
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg"
   ],
   "x-enumTitles": {
    "pla": "PLA (holds its size)",
    "petg": "PETG (tougher, a little more play)"
   },
   "title": "Filament",
   "description": "PETG squeezes more when it cools: with it, take the play the fit coupon shows and add 0.05 mm.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla",
   "x-resetOnPreset": true
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Four lines make a 1.6 mm wall solid.",
   "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": 5,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "15 % is enough for a box; the walls do the work.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 15,
   "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
  }
 },
 "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)"
  }
 ]
}