{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/cable-clip/schema.json",
 "title": "Cable clip — parameters",
 "description": "Make cable clips that fit the cable you have: set its diameter and count, then stick, screw or hang them. Also a cable comb and a protector for the plug. 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": "cable-clip",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "clip",
   "title": "Cable and mount"
  },
  {
   "id": "protector",
   "title": "Cable protector"
  },
  {
   "id": "look",
   "title": "Colour"
  },
  {
   "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": "under-desk-adhesive-clip-2-cables",
    "title": "Under-desk clip for 2 cables (adhesive)",
    "description": "Sticks under a desk or shelf with double-sided tape and holds two cables of about 4 mm, such as USB-C charging cables.",
    "values": {
     "mountType": "adhesive",
     "cableDia": 4,
     "cableCount": 2,
     "color": "#c85a32"
    }
   },
   {
    "id": "desk-edge-3-charging-cables",
    "title": "Desk-edge clip for 3 charging cables",
    "description": "Hangs over a desk top or shelf 18 to 25 mm thick and holds three thin charging cables of 3 to 4 mm. Measure the cable and the desk.",
    "values": {
     "mountType": "deskEdge",
     "cableDia": 3.5,
     "cableCount": 3,
     "deskThickness": 19,
     "color": "#2a7f76"
    }
   },
   {
    "id": "ethernet-screw-clip",
    "title": "Ethernet cable clip for a baseboard (screw)",
    "description": "Screws to a baseboard or a wall with two countersunk screws and holds one Ethernet cable of about 6 mm. Measure your cable.",
    "values": {
     "mountType": "screw",
     "cableDia": 6,
     "cableCount": 1,
     "color": "#d4a024"
    }
   },
   {
    "id": "single-power-cable-clip",
    "title": "Power cable clip, Ø 7 mm",
    "description": "One clip for a round power cable of 6 to 8 mm, stuck where the cable should stay. For a warm place, print it in PETG.",
    "values": {
     "mountType": "adhesive",
     "cableDia": 7,
     "cableCount": 1,
     "color": "#3b5b8c"
    }
   },
   {
    "id": "led-strip-thin-wire-clip",
    "title": "Thin wire clip, Ø 2.5 mm (LED strip wires)",
    "description": "Small clips for the thin wires of an LED strip or any other 2 to 3 mm wire, with thin walls so that they snap shut.",
    "values": {
     "mountType": "adhesive",
     "cableDia": 2.5,
     "cableCount": 3,
     "wall": 1.4,
     "color": "#5b7f4b"
    }
   },
   {
    "id": "pc-cable-comb-8",
    "title": "Cable comb for 8 cables (PC build)",
    "description": "A flat comb that keeps eight cables of one thickness in a neat row inside a computer. Slide it over the bundle; nothing to fix.",
    "values": {
     "mountType": "comb",
     "cableDia": 4,
     "cableCount": 8,
     "color": "#8c3b5c"
    }
   },
   {
    "id": "usb-c-cable-protector-spiral",
    "title": "USB-C cable protector, spiral",
    "description": "A spring that is wound onto a USB-C cable where it leaves the plug. Plug body about 9.5 × 4.5 mm: measure yours. Print it in TPU.",
    "values": {
     "mountType": "protector",
     "cableDia": 3.5,
     "plugWidth": 9.5,
     "plugHeight": 4.5,
     "material": "tpu",
     "color": "#d97742"
    }
   },
   {
    "id": "usb-a-cable-protector-sleeve",
    "title": "USB-A cable protector, split sleeve",
    "description": "A sleeve with a slot that is pressed onto a USB-A cable at the plug and takes the sharp bend. Plug body about 12.5 × 6 mm: measure yours.",
    "values": {
     "mountType": "protector",
     "protectorStyle": "sleeve",
     "cableDia": 4,
     "plugWidth": 12.5,
     "plugHeight": 6,
     "protectorLength": 40,
     "material": "tpu",
     "color": "#1f6f8b"
    }
   }
  ]
 },
 "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"
  },
  "massUnits": {
   "type": "string",
   "title": "Weight shown in",
   "description": "Display only: grams or ounces (1 oz = 28.3495 g). Stored values, the API and exports are always grams.",
   "x-group": "view",
   "x-role": "core.displayMassUnits",
   "x-unit": "none",
   "x-agentSafe": true,
   "enum": [
    "g",
    "oz"
   ],
   "x-enumTitles": {
    "g": "Grams",
    "oz": "Ounces"
   },
   "default": "g"
  }
 },
 "type": "object",
 "properties": {
  "mountType": {
   "type": "string",
   "enum": [
    "adhesive",
    "screw",
    "deskEdge",
    "comb",
    "protector"
   ],
   "x-enumTitles": {
    "adhesive": "Adhesive pad",
    "screw": "Screw mount (countersunk)",
    "deskEdge": "Desk-edge hook",
    "comb": "Cable comb",
    "protector": "Cable protector at the plug"
   },
   "title": "Mount type",
   "description": "Clips hold cables on a surface. The comb keeps a bundle in order without a surface. The protector is a spring or a sleeve that saves the cable where it leaves the plug.",
   "x-group": "clip",
   "x-agentSafe": true,
   "x-label-lv": "Stiprinājuma veids",
   "default": "adhesive",
   "x-resetOnPreset": true
  },
  "cableDia": {
   "type": "number",
   "minimum": 2,
   "maximum": 15,
   "x-step": 0.1,
   "title": "Cable diameter (measure)",
   "description": "Across the thickest part of the cable. The clip is made a little larger; the fit coupon shows which size snaps in.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Kabeļa diametrs (izmēri)",
   "default": 4,
   "x-resetOnPreset": true
  },
  "cableCount": {
   "type": "integer",
   "minimum": 1,
   "maximum": 12,
   "multipleOf": 1,
   "title": "Cables",
   "description": "Cables side by side in one part.",
   "x-group": "clip",
   "x-unit": "count",
   "x-visibleIf": {
    "mountType": [
     "adhesive",
     "screw",
     "deskEdge",
     "comb"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Kabeļu skaits",
   "default": 2,
   "x-resetOnPreset": true
  },
  "spacing": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 10,
   "x-step": 0.1,
   "title": "Space between cables",
   "description": "Air between two neighbouring clips, or the wall between two holes of a comb.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": [
     "adhesive",
     "screw",
     "deskEdge",
     "comb"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe starp kabeļiem",
   "default": 2,
   "x-resetOnPreset": true
  },
  "snapOpening": {
   "type": "number",
   "minimum": 50,
   "maximum": 90,
   "multipleOf": 1,
   "title": "Snap opening (% of cable Ø)",
   "description": "Width of the mouth the cable is pushed through. Narrow holds better and wide goes in easier; 75 % suits most cables.",
   "x-group": "clip",
   "x-unit": "pct",
   "x-agentSafe": true,
   "x-label-lv": "Aizdaušanas atvere (% no kabeļa Ø)",
   "default": 75,
   "x-resetOnPreset": true
  },
  "wall": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3,
   "x-step": 0.2,
   "title": "Clip wall thickness",
   "description": "Thin walls flex more, so a thick cable snaps in easier; thick walls keep their shape. The protector uses it as the wire or sleeve thickness.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Turētāja sienas biezums",
   "default": 2,
   "x-resetOnPreset": true
  },
  "cableClearance": {
   "type": "number",
   "minimum": 0,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Cable clearance",
   "description": "Room around the cable inside the clip, on each side.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Atstarpe ap kabeli",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "screwDia": {
   "type": "number",
   "minimum": 3,
   "maximum": 4.5,
   "x-step": 0.5,
   "title": "Screw Ø (shaft)",
   "description": "A countersunk M3 or M4 screw, or a wood screw of the same shaft. In plaster or brick, use a wall plug.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-role": "core.screwDiameter",
   "x-visibleIf": {
    "mountType": "screw"
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūves Ø (kāts)",
   "default": 3.5,
   "x-resetOnPreset": true
  },
  "deskThickness": {
   "type": "number",
   "minimum": 10,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Desk thickness (measure)",
   "description": "Thickness of the desk top or shelf the hook hangs on.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "deskEdge"
   },
   "x-agentSafe": true,
   "x-label-lv": "Galda biezums (izmēri)",
   "default": 19,
   "x-resetOnPreset": true
  },
  "clampClearance": {
   "type": "number",
   "minimum": 0,
   "maximum": 0.6,
   "x-step": 0.1,
   "title": "Fit on the desk",
   "description": "Room between hook and desk. Less grips more; 0.2 mm slides on and holds by a small rib.",
   "x-group": "clip",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-visibleIf": {
    "mountType": "deskEdge"
   },
   "x-agentSafe": true,
   "x-label-lv": "Pielaide pie galda",
   "default": 0.2,
   "x-resetOnPreset": true
  },
  "protectorStyle": {
   "type": "string",
   "enum": [
    "spiral",
    "sleeve"
   ],
   "x-enumTitles": {
    "spiral": "Spiral spring (screw it on)",
    "sleeve": "Split sleeve (snap it on)"
   },
   "title": "Protector style",
   "description": "The spiral is wound onto the cable like a spring. The sleeve has a slot along one side and is pressed on.",
   "x-group": "protector",
   "x-visibleIf": {
    "mountType": "protector"
   },
   "x-agentSafe": true,
   "x-label-lv": "Aizsarga veids",
   "default": "spiral",
   "x-resetOnPreset": true
  },
  "plugWidth": {
   "type": "number",
   "minimum": 4,
   "maximum": 20,
   "x-step": 0.5,
   "title": "Plug body width",
   "description": "Width of the plug where the cable leaves it. The protector starts this wide and narrows to the cable.",
   "x-group": "protector",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "protector"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spraudņa korpusa platums",
   "default": 9.5,
   "x-resetOnPreset": true
  },
  "plugHeight": {
   "type": "number",
   "minimum": 2,
   "maximum": 12,
   "x-step": 0.5,
   "title": "Plug body height",
   "description": "Thickness of the plug where the cable leaves it. Measure it: it differs between cable makers.",
   "x-group": "protector",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "protector"
   },
   "x-agentSafe": true,
   "x-label-lv": "Spraudņa korpusa augstums",
   "default": 4.5,
   "x-resetOnPreset": true
  },
  "protectorLength": {
   "type": "number",
   "minimum": 15,
   "maximum": 60,
   "multipleOf": 1,
   "title": "Protector length",
   "description": "How far along the cable it reaches. 30 to 40 mm takes the bend off the plug.",
   "x-group": "protector",
   "x-unit": "mm",
   "x-visibleIf": {
    "mountType": "protector"
   },
   "x-agentSafe": true,
   "x-label-lv": "Aizsarga garums",
   "default": 35,
   "x-resetOnPreset": true
  },
  "includeCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Include fit coupon",
   "description": "Three single clips beside the part, at −0.3, 0 and +0.3 mm around the cable. Print it first and use the smallest one the cable clicks into.",
   "x-group": "clip",
   "x-visibleIf": {
    "mountType": [
     "adhesive",
     "screw",
     "deskEdge",
     "comb"
    ]
   },
   "x-agentSafe": true,
   "x-label-lv": "Iekļaut pielaides paraugu",
   "default": 1,
   "x-resetOnPreset": true
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "Black disappears under a desk; take the colour of the wall for a screw clip.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#23252b"
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "tpu"
   ],
   "x-enumTitles": {
    "pla": "PLA (indoors)",
    "petg": "PETG (warm desk, outdoors)",
    "tpu": "TPU (flexible)"
   },
   "title": "Filament",
   "description": "PLA indoors. PETG under a desk in the sun. TPU for a protector: it flexes without cracking.",
   "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": "Perimeter lines. The mouth of a clip flexes: three or four lines make it solid.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "print.wallCount",
   "x-agentSafe": true,
   "x-label-lv": "Sienu skaits",
   "default": 3
  },
  "infill": {
   "type": "integer",
   "minimum": 5,
   "maximum": 100,
   "multipleOf": 5,
   "title": "Infill",
   "description": "15 to 25 % is enough; the spring of a protector is solid anyway.",
   "x-group": "print",
   "x-unit": "pct",
   "x-role": "print.infill",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums",
   "default": 20
  }
 },
 "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)"
  }
 ]
}