{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/led-profile-parts/schema.json",
 "title": "LED aluminium profile parts — parameters",
 "description": "Generate 3D-printable end caps (open or closed), mounting clips and 90° corner joiners for U and 45° V LED aluminium profiles, with a fit coupon. 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": "led-profile-parts",
 "x-toolVersion": "1.1.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "prof",
   "title": "Profile cross-section (measure)"
  },
  {
   "id": "part",
   "title": "Part & clearance"
  },
  {
   "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": "measure-your-own",
    "title": "Measure your own LED profile",
    "description": "Generic LED aluminium channel clip, end cap, or 90° corner: measure cross-section and test fit coupon first.",
    "values": {
     "profileShape": "u",
     "profileWidth": 17,
     "profileHeight": 7,
     "stripMaxWidth": 12,
     "partType": "clip",
     "partColor": "#e85d22"
    }
   },
   {
    "id": "fits-v-profile-12mm-strip",
    "title": "Fits Chesbung V-Shape LED Profile (12 mm)",
    "description": "45° V-shape corner LED channel end cap for strips up to 12 mm; verify outer extrusion size with the fit coupon. Not affiliated with or endorsed by Chesbung.",
    "values": {
     "profileShape": "v",
     "profileWidth": 16,
     "profileHeight": 16,
     "stripMaxWidth": 12,
     "partType": "end-cap",
     "partColor": "#2563eb"
    }
   },
   {
    "id": "fits-u-profile-12mm-strip",
    "title": "Fits Chesbung U-Shape LED Profile (12 mm)",
    "description": "Flat U-shape aluminium LED channel clip for strips up to 12 mm; verify outer extrusion size with the fit coupon. Not affiliated with or endorsed by Chesbung.",
    "values": {
     "profileShape": "u",
     "profileWidth": 17,
     "profileHeight": 7,
     "stripMaxWidth": 12,
     "partType": "clip",
     "partColor": "#15803d"
    }
   },
   {
    "id": "under-cabinet-end-cap",
    "title": "Under-cabinet end cap with cable exit, 17 × 7 mm",
    "description": "The part that runs out first when a 1 m profile is cut into short pieces: a cap for a 17 × 7 mm U profile with a 4.4 mm cable exit. Measure your profile and check the fit coupon first.",
    "values": {
     "profileShape": "u",
     "profileWidth": 17,
     "profileHeight": 7,
     "stripMaxWidth": 12,
     "partType": "end-cap",
     "partColor": "#d97706"
    }
   },
   {
    "id": "closed-end-cap-steps",
    "title": "Closed end cap for a stair or step light, 17 × 7 mm",
    "description": "The same cap as for under-cabinet lighting, without the cable exit: for the end of a run where no cable leaves.",
    "values": {
     "profileShape": "u",
     "profileWidth": 17,
     "profileHeight": 7,
     "stripMaxWidth": 12,
     "partType": "end-cap",
     "cableExit": false,
     "partColor": "#0f766e"
    }
   },
   {
    "id": "cove-corner-90",
    "title": "90° corner for a ceiling cove or shelf, V 16 × 16 mm",
    "description": "Joiner that holds two 45° V profile ends at a right angle, for a ceiling cove or a shelf corner. The channel is 16 × 16 mm; check it with the fit coupon.",
    "values": {
     "profileShape": "v",
     "profileWidth": 16,
     "profileHeight": 16,
     "stripMaxWidth": 12,
     "partType": "corner-90",
     "partColor": "#b91c1c"
    }
   },
   {
    "id": "adhesive-backlight-clip",
    "title": "Adhesive clip for a desk or monitor backlight, 17 × 7 mm",
    "description": "Mounting clip without a screw hole, for a profile fixed with double-sided tape under a shelf, desk or monitor.",
    "values": {
     "profileShape": "u",
     "profileWidth": 17,
     "profileHeight": 7,
     "stripMaxWidth": 12,
     "partType": "clip",
     "screwHole": false,
     "partColor": "#7c3aed"
    }
   }
  ]
 },
 "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": {
  "profileShape": {
   "type": "string",
   "enum": [
    "u",
    "v"
   ],
   "x-enumTitles": {
    "u": "U-shape channel",
    "v": "45° V-shape corner profile"
   },
   "title": "Profile shape",
   "description": "A U channel lies flat under a cabinet; a 45° V profile is made for corners. Both take the same width and height.",
   "x-group": "prof",
   "x-agentSafe": true,
   "x-label-lv": "Profila forma",
   "default": "u"
  },
  "profileWidth": {
   "type": "number",
   "minimum": 10,
   "maximum": 35,
   "x-step": 0.2,
   "title": "Profile outer width (measure)",
   "description": "Outside width of the aluminium profile. The slot is cut this wide plus twice the clearance.",
   "x-group": "prof",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Profila ārējais platums",
   "default": 17
  },
  "profileHeight": {
   "type": "number",
   "minimum": 5,
   "maximum": 30,
   "x-step": 0.2,
   "title": "Profile outer height (measure)",
   "description": "Outside height of the aluminium profile. The slot is cut this deep plus the clearance.",
   "x-group": "prof",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Profila ārējais augstums",
   "default": 7
  },
  "stripMaxWidth": {
   "type": "number",
   "minimum": 6,
   "maximum": 20,
   "multipleOf": 1,
   "title": "LED strip width (reference)",
   "description": "Only for your notes: the parts follow the outside of the profile, not the strip.",
   "x-group": "prof",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "LED lentes platums",
   "default": 12
  },
  "partType": {
   "type": "string",
   "enum": [
    "clip",
    "end-cap",
    "corner-90"
   ],
   "x-enumTitles": {
    "clip": "Snap-on mounting clip",
    "end-cap": "End cap",
    "corner-90": "90° corner joiner"
   },
   "title": "Part type",
   "description": "A mounting clip holds the profile to a surface, an end cap closes a cut end, a corner joiner turns a run by 90°.",
   "x-group": "part",
   "x-agentSafe": true,
   "x-label-lv": "Detaļas veids",
   "default": "clip"
  },
  "cableExit": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Cable exit in the end cap",
   "description": "On: a 4.4 mm hole in the wall behind the profile for the cable. Off: a closed cap for the end of a run where no cable leaves.",
   "x-group": "part",
   "x-visibleIf": {
    "partType": "end-cap"
   },
   "x-agentSafe": true,
   "x-label-lv": "Kabeļa izeja vāciņā",
   "default": 1
  },
  "screwHole": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Screw hole in the clip",
   "description": "On: a 3.6 mm hole through the floor of the clip. Off: a solid floor for fixing the profile with double-sided tape.",
   "x-group": "part",
   "x-visibleIf": {
    "partType": "clip"
   },
   "x-agentSafe": true,
   "x-label-lv": "Skrūves caurums klipī",
   "default": 1
  },
  "capOverlap": {
   "type": "number",
   "minimum": 4,
   "maximum": 16,
   "multipleOf": 1,
   "title": "End-cap overlap (keep <=10 mm)",
   "description": "How far the end cap reaches over the aluminium. The aluminium cools the LEDs, so keep it short: 10 mm or less.",
   "x-group": "part",
   "x-unit": "mm",
   "x-visibleIf": {
    "partType": "end-cap"
   },
   "x-agentSafe": true,
   "x-label-lv": "Gala vāciņa pārklājums",
   "default": 7
  },
  "clearance": {
   "type": "number",
   "minimum": 0.1,
   "maximum": 1,
   "x-step": 0.05,
   "title": "Fit clearance (tune via coupon)",
   "description": "Gap on each side between the profile and the printed part. Print the fit coupon and change it in 0.05 mm steps until the profile slides in by hand.",
   "x-group": "part",
   "x-unit": "mm",
   "x-role": "core.clearance",
   "x-agentSafe": true,
   "x-label-lv": "Pielaides atstarpe",
   "default": 0.25
  },
  "includeCoupon": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Include profile fit-test coupon",
   "description": "Adds a short clip to check the fit before you print the parts.",
   "x-group": "part",
   "x-agentSafe": true,
   "x-label-lv": "Iekļaut pielaides testa paraugu",
   "default": 1
  },
  "partColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Part colour",
   "description": "White, black or silver-grey to match the profile. It changes the preview and the material named in the 3MF, not the shape.",
   "x-group": "look",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Detaļas krāsa",
   "default": "#c5c9cc"
  },
  "material": {
   "type": "string",
   "enum": [
    "petg",
    "pla"
   ],
   "x-enumTitles": {
    "petg": "PETG (recommended)",
    "pla": "PLA (caution)"
   },
   "title": "Filament",
   "description": "PETG for strips that stay on for long: it holds to about 68 °C, PLA only to about 55 °C.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "petg"
  },
  "wallCount": {
   "type": "integer",
   "minimum": 2,
   "maximum": 6,
   "multipleOf": 1,
   "title": "Perimeter walls",
   "description": "Perimeters you print with. It only names your setting: the walls of the part are 2.2 mm.",
   "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": "Infill you print with. The mass estimate assumes a solid print.",
   "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": "deburring-tool-set",
   "title": "Precision Deburring Tool with 10 HSS Blades",
   "why": "Cleans brim edges and drill-hole chamfers in seconds.",
   "url": "https://paramlet.com/go/deburring-tool-set?src=agent",
   "relation": "material",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}