{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/fishing-float/schema.json",
 "title": "Fishing float generator — parameters",
 "description": "Design 3D-printable fishing floats with real Archimedes buoyancy, waterline, metacentric stability and lead-free internal ballast (LW-PLA, PETG, PLA). 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": "fishing-float",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "type",
   "title": "Float type & rigging"
  },
  {
   "id": "body",
   "title": "Body dimensions"
  },
  {
   "id": "antenna",
   "title": "Antenna & sight tip"
  },
  {
   "id": "keel",
   "title": "Keel & line eye"
  },
  {
   "id": "ballast",
   "title": "Buoyancy & internal ballast"
  },
  {
   "id": "print",
   "title": "Printing & waterproofing"
  }
 ],
 "x-presets": {
  "note": "Choosing a preset resets every key marked x-resetOnPreset to its default and then applies the preset values.",
  "items": [
   {
    "id": "stillwater-teardrop-2g",
    "title": "Stillwater teardrop — 2 g",
    "description": "Classic all-round teardrop float in LW-PLA with thin hi-vis bristle and stabilizing keel (~2 g shot capacity).",
    "values": {
     "bodyShape": "teardrop",
     "rigMode": "stem-eye",
     "bodyLength": 44,
     "bodyDiameter": 13.5,
     "antennaType": "standard",
     "antennaLength": 36,
     "antennaDiameter": 2.4,
     "keelLength": 52,
     "keelDiameter": 2.4,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "river-chubber-4g",
    "title": "River inverted teardrop — 4 g",
    "description": "Top-heavy Bolognese / river float with broad upper shoulder to resist current drag and hold steady.",
    "values": {
     "bodyShape": "inverted-teardrop",
     "rigMode": "stem-eye",
     "bodyLength": 48,
     "bodyDiameter": 17.5,
     "antennaType": "standard",
     "antennaLength": 38,
     "antennaDiameter": 3,
     "keelLength": 62,
     "keelDiameter": 2.8,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "crucian-quill-1g",
    "title": "Sensitive quill pencil — 1 g",
    "description": "Slender stillwater quill with high-visibility lift-bite bulb tip for crucian carp, tench and roach.",
    "values": {
     "bodyShape": "pencil",
     "rigMode": "stem-eye",
     "bodyLength": 56,
     "bodyDiameter": 9,
     "antennaType": "bulb-tip",
     "antennaLength": 42,
     "antennaDiameter": 2,
     "keelLength": 44,
     "keelDiameter": 2.2,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 1,
     "infill": 5
    }
   },
   {
    "id": "bodied-waggler-3plus2",
    "title": "Self-cocking waggler — 3+2 g",
    "description": "Bodied distance waggler with 3 g sealed lead-free lower ballast and single bottom attachment eye.",
    "values": {
     "bodyShape": "bodied-waggler",
     "rigMode": "waggler",
     "bodyLength": 58,
     "bodyDiameter": 17.5,
     "antennaType": "standard",
     "antennaLength": 78,
     "antennaDiameter": 3.2,
     "keelLength": 16,
     "keelDiameter": 3.4,
     "preWeightG": 3,
     "insertMaterial": "brass",
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "night-starlight-3g",
    "title": "Night glow-stick float — 3 g",
    "description": "Dusk & night teardrop float with integrated 4.5 × 37 mm chemical glow-stick socket on top.",
    "values": {
     "bodyShape": "teardrop",
     "rigMode": "sliding",
     "bodyLength": 50,
     "bodyDiameter": 16.5,
     "antennaType": "starlight-45",
     "antennaLength": 28,
     "antennaDiameter": 5.8,
     "keelLength": 42,
     "keelDiameter": 2.8,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "pike-predator-18g",
    "title": "Predator live-bait bulb — 18 g",
    "description": "High-buoyancy bulbous predator sliding float for suspending deadbaits or livebaits for pike and zander.",
    "values": {
     "bodyShape": "pike-bulb",
     "rigMode": "sliding",
     "bodyLength": 68,
     "bodyDiameter": 32,
     "antennaType": "bulb-tip",
     "antennaLength": 40,
     "antennaDiameter": 5,
     "keelLength": 36,
     "keelDiameter": 4.2,
     "preWeightG": 0,
     "printMaterial": "petg",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "inline-carp-2g",
    "title": "Inline carp dibber — 2 g",
    "description": "Snag-free commercial carp float with central 1.8 mm line channel right through the body.",
    "values": {
     "bodyShape": "teardrop",
     "rigMode": "inline",
     "bodyLength": 38,
     "bodyDiameter": 14.5,
     "antennaType": "standard",
     "antennaLength": 26,
     "antennaDiameter": 3.2,
     "keelLength": 32,
     "keelDiameter": 3.4,
     "lineBore": 1.8,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "river-lollipop-6g",
    "title": "Exp: Flat river disc — 6 g",
    "description": "Experimental flattened hydrodynamic lollipop disc that slices fast river flow with minimal drag.",
    "values": {
     "bodyShape": "lollipop",
     "rigMode": "stem-eye",
     "bodyLength": 48,
     "bodyDiameter": 34,
     "discFlatness": 0.4,
     "antennaType": "standard",
     "antennaLength": 42,
     "antennaDiameter": 3.2,
     "keelLength": 68,
     "keelDiameter": 3,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "hydro-ribbed-3g",
    "title": "Exp: Hydro-ribbed anti-roll — 3 g",
    "description": "Experimental 6-rib longitudinal stabilizer body that damps rolling and wave bobbing in windy chop.",
    "values": {
     "bodyShape": "ribbed-hydro",
     "rigMode": "stem-eye",
     "bodyLength": 48,
     "bodyDiameter": 16,
     "hydroRibs": 6,
     "antennaType": "standard",
     "antennaLength": 40,
     "antennaDiameter": 2.8,
     "keelLength": 56,
     "keelDiameter": 2.8,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "dart-waggler-5plus3",
    "title": "Exp: Flighted dart waggler — 5+3 g",
    "description": "Experimental 3-vane flighted aerodynamic dart waggler with 5 g tungsten/steel internal ballast for 50 m+ casts.",
    "values": {
     "bodyShape": "torpedo-flight",
     "rigMode": "waggler",
     "bodyLength": 64,
     "bodyDiameter": 20.5,
     "antennaType": "flighted-dart",
     "antennaLength": 62,
     "antennaDiameter": 4,
     "keelLength": 18,
     "keelDiameter": 3.6,
     "preWeightG": 5,
     "insertMaterial": "tungsten",
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "pellet-waggler-4g",
    "title": "Shallow pellet waggler — 4 g",
    "description": "Stubby self-cocking surface splash waggler with flighted dart tip that resists diving too deep on impact.",
    "values": {
     "bodyShape": "bodied-waggler",
     "rigMode": "waggler",
     "bodyLength": 52,
     "bodyDiameter": 21,
     "antennaType": "flighted-dart",
     "antennaLength": 44,
     "antennaDiameter": 4.4,
     "keelLength": 12,
     "keelDiameter": 3.6,
     "preWeightG": 2.5,
     "insertMaterial": "steel",
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "body-only-carbon-2mm",
    "title": "Body only — 2 mm carbon/wood rod",
    "description": "Lightweight LW-PLA float body with a 2.0 mm center through-hole for gluing a carbon rod, fiberglass stem or bamboo skewer.",
    "values": {
     "bodyShape": "teardrop",
     "rigMode": "stem-eye",
     "bodyOnly": true,
     "stemHoleDiameter": 2,
     "bodyLength": 48,
     "bodyDiameter": 16,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 2,
     "infill": 5
    }
   },
   {
    "id": "ultralight-micro-05g",
    "title": "Ultralight micro quill — 0.5 g",
    "description": "Featherweight LW-PLA finesse float for winter roach and shy stillwater bites.",
    "values": {
     "bodyShape": "pencil",
     "rigMode": "stem-eye",
     "bodyLength": 36,
     "bodyDiameter": 7.5,
     "antennaType": "standard",
     "antennaLength": 28,
     "antennaDiameter": 1.8,
     "keelLength": 38,
     "keelDiameter": 2,
     "preWeightG": 0,
     "printMaterial": "lw-pla",
     "wallCount": 1,
     "infill": 0
    }
   }
  ]
 },
 "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": {
  "bodyShape": {
   "type": "string",
   "enum": [
    "teardrop",
    "inverted-teardrop",
    "pencil",
    "bodied-waggler",
    "pike-bulb",
    "lollipop",
    "ribbed-hydro",
    "torpedo-flight"
   ],
   "x-enumTitles": {
    "teardrop": "Teardrop (stillwater / Bolognese)",
    "inverted-teardrop": "Inverted teardrop (river / chubber)",
    "pencil": "Pencil / quill (sensitive)",
    "bodied-waggler": "Bodied waggler (long cast)",
    "pike-bulb": "Predator bulb (live bait)",
    "lollipop": "Experimental: Flat river disc",
    "ribbed-hydro": "Experimental: Hydro-ribbed anti-roll",
    "torpedo-flight": "Experimental: Finned dart waggler"
   },
   "title": "Body silhouette",
   "description": "Hydrodynamic float body shape; experimental profiles add flat current-slicing discs, anti-roll ribs or dart fins.",
   "x-group": "type",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa forma",
   "default": "teardrop",
   "x-resetOnPreset": true
  },
  "rigMode": {
   "type": "string",
   "enum": [
    "stem-eye",
    "waggler",
    "inline",
    "sliding"
   ],
   "x-enumTitles": {
    "stem-eye": "Fixed stem + side eye",
    "waggler": "Bottom-eye waggler",
    "inline": "Inline center bore (snag-free)",
    "sliding": "Sliding bottom eye"
   },
   "title": "Rigging style",
   "description": "How the mainline attaches: classic side eye + silicone sleeves, single bottom waggler eye, or center through-bore inline.",
   "x-group": "type",
   "x-agentSafe": true,
   "x-label-lv": "Stiprinājuma veids",
   "default": "stem-eye",
   "x-resetOnPreset": true
  },
  "bodyOnly": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Body only (for carbon / wood rod)",
   "description": "Prints only the buoyant center body with a straight through-hole so you can glue in a carbon rod, fiberglass stem or bamboo skewer.",
   "x-group": "type",
   "x-agentSafe": true,
   "x-label-lv": "Tikai viducis (karbona / kociņa stienītim)",
   "default": 0,
   "x-resetOnPreset": true
  },
  "stemHoleDiameter": {
   "type": "number",
   "minimum": 1,
   "maximum": 6,
   "x-step": 0.1,
   "title": "Center rod hole diameter",
   "description": "Through-hole diameter for your carbon rod, fiberglass stem or wooden skewer (include ~0.2 mm glue clearance).",
   "x-group": "type",
   "x-unit": "mm",
   "x-visibleIf": {
    "bodyOnly": true
   },
   "x-agentSafe": true,
   "x-label-lv": "Stienīša cauruma diametrs",
   "default": 2,
   "x-resetOnPreset": true
  },
  "bodyLength": {
   "type": "number",
   "minimum": 18,
   "maximum": 120,
   "multipleOf": 1,
   "title": "Body length",
   "description": "Length of the buoyant main float body (excluding antenna and keel).",
   "x-group": "body",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa garums",
   "default": 44,
   "x-resetOnPreset": true
  },
  "bodyDiameter": {
   "type": "number",
   "minimum": 6,
   "maximum": 42,
   "x-step": 0.5,
   "title": "Body diameter",
   "description": "Maximum outer diameter of the float body; strongly controls total buoyancy lift.",
   "x-group": "body",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa diametrs",
   "default": 13.5,
   "x-resetOnPreset": true
  },
  "discFlatness": {
   "type": "number",
   "minimum": 0.25,
   "maximum": 0.75,
   "x-step": 0.05,
   "title": "Disc thickness ratio",
   "description": "Thickness-to-width ratio of the flat river disc; thinner slices fast current with less drag.",
   "x-group": "body",
   "x-unit": "ratio",
   "x-visibleIf": {
    "bodyShape": "lollipop"
   },
   "x-agentSafe": true,
   "x-label-lv": "Diska plakanums",
   "default": 0.4,
   "x-resetOnPreset": true
  },
  "hydroRibs": {
   "type": "integer",
   "minimum": 4,
   "maximum": 12,
   "multipleOf": 2,
   "title": "Stabilizer ribs",
   "description": "Number of longitudinal anti-roll ribs around the float body.",
   "x-group": "body",
   "x-unit": "count",
   "x-visibleIf": {
    "bodyShape": "ribbed-hydro"
   },
   "x-agentSafe": true,
   "x-label-lv": "Stabilizatora ribas",
   "default": 6,
   "x-resetOnPreset": true
  },
  "antennaType": {
   "type": "string",
   "enum": [
    "standard",
    "bulb-tip",
    "starlight-45",
    "flighted-dart"
   ],
   "x-enumTitles": {
    "standard": "Hi-vis tapered bristle",
    "bulb-tip": "Sight bulb tip (lift bites)",
    "starlight-45": "4.5 mm night glow-stick socket",
    "flighted-dart": "3-vane flighted dart tip"
   },
   "title": "Antenna type",
   "description": "Printed bristle, lift-bite sight bulb, 4.5 × 37 mm night starlight holder, or aerodynamic 3-vane dart.",
   "x-group": "antenna",
   "x-visibleIf": {
    "bodyOnly": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Antenas veids",
   "default": "standard",
   "x-resetOnPreset": true
  },
  "antennaLength": {
   "type": "number",
   "minimum": 14,
   "maximum": 110,
   "multipleOf": 2,
   "title": "Antenna length",
   "description": "Length of the visible sight antenna above the float shoulder.",
   "x-group": "antenna",
   "x-unit": "mm",
   "x-visibleIf": {
    "bodyOnly": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Antenas garums",
   "default": 36,
   "x-resetOnPreset": true
  },
  "antennaDiameter": {
   "type": "number",
   "minimum": 1.6,
   "maximum": 7,
   "x-step": 0.2,
   "title": "Antenna diameter",
   "description": "Thinner antennas sink further on delicate bites (higher sensitivity); thicker antennas are easier to see at range.",
   "x-group": "antenna",
   "x-unit": "mm",
   "x-visibleIf": {
    "bodyOnly": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Antenas diametrs",
   "default": 2.6,
   "x-resetOnPreset": true
  },
  "keelLength": {
   "type": "number",
   "minimum": 8,
   "maximum": 110,
   "multipleOf": 2,
   "title": "Keel / stem length",
   "description": "Length of the lower stabilizing stem below the float body.",
   "x-group": "keel",
   "x-unit": "mm",
   "x-visibleIf": {
    "bodyOnly": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Ķīļa garums",
   "default": 48,
   "x-resetOnPreset": true
  },
  "keelDiameter": {
   "type": "number",
   "minimum": 1.8,
   "maximum": 6,
   "x-step": 0.2,
   "title": "Keel diameter",
   "description": "Outer diameter of the printed stem; keep at least 2.0 mm for FDM durability.",
   "x-group": "keel",
   "x-unit": "mm",
   "x-visibleIf": {
    "bodyOnly": false
   },
   "x-agentSafe": true,
   "x-label-lv": "Ķīļa diametrs",
   "default": 2.6,
   "x-resetOnPreset": true
  },
  "lineBore": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 3.5,
   "x-step": 0.1,
   "title": "Inline center bore",
   "description": "Diameter of the straight central line channel through the float body.",
   "x-group": "keel",
   "x-unit": "mm",
   "x-visibleIf": {
    "rigMode": "inline"
   },
   "x-agentSafe": true,
   "x-label-lv": "Caururbuma diametrs",
   "default": 1.8,
   "x-resetOnPreset": true
  },
  "preWeightG": {
   "type": "number",
   "minimum": 0,
   "maximum": 15,
   "x-step": 0.5,
   "title": "Internal self-cocking ballast",
   "description": "Lead-free steel/brass/tungsten BBs sealed inside the lower body (e.g. 3 g internal + 2 g line shot = 3+2 g waggler).",
   "x-group": "ballast",
   "x-unit": "g",
   "x-agentSafe": true,
   "x-label-lv": "Iebūvētais pašizsvarošanas atsvars",
   "default": 0,
   "x-resetOnPreset": true
  },
  "insertMaterial": {
   "type": "string",
   "enum": [
    "steel",
    "stainless",
    "brass",
    "tungsten"
   ],
   "x-enumTitles": {
    "steel": "Steel BBs (7.85 g/cm³)",
    "stainless": "Stainless BBs (rust-proof)",
    "brass": "Brass BBs (8.5 g/cm³)",
    "tungsten": "Tungsten BBs (19.25 g/cm³)"
   },
   "title": "Ballast material (lead-free)",
   "description": "100% lead-free ballast materials compliant with EU Regulation 2026/2501.",
   "x-group": "ballast",
   "x-visibleIf": {
    "preWeightG": {
     "gt": 0
    }
   },
   "x-agentSafe": true,
   "x-label-lv": "Atsvara materiāls (bez svina)",
   "default": "steel"
  },
  "waterType": {
   "type": "string",
   "enum": [
    "fresh",
    "sea"
   ],
   "x-enumTitles": {
    "fresh": "Freshwater (1.00 g/cm³)",
    "sea": "Saltwater (1.025 g/cm³)"
   },
   "title": "Water density",
   "description": "Saltwater adds +2.5% buoyancy lift compared to freshwater.",
   "x-group": "ballast",
   "x-agentSafe": true,
   "x-label-lv": "Ūdens blīvums",
   "default": "fresh"
  },
  "printMaterial": {
   "type": "string",
   "enum": [
    "lw-pla",
    "asa",
    "pla",
    "petg"
   ],
   "x-enumTitles": {
    "lw-pla": "LW-PLA foaming (0.65 g/cm³, best lift)",
    "asa": "ASA (1.07 g/cm³)",
    "pla": "PLA (1.24 g/cm³)",
    "petg": "PETG (1.27 g/cm³)"
   },
   "title": "Filament material",
   "description": "LW-PLA mimics balsa density; standard PLA/PETG work well with 1–2 thin walls and low infill.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Drukas materiāls",
   "default": "lw-pla"
  },
  "wallCount": {
   "type": "integer",
   "minimum": 1,
   "maximum": 4,
   "multipleOf": 1,
   "title": "Slicer wall loops",
   "description": "Number of perimeters in your slicer; used to compute realistic plastic mass and shotting capacity.",
   "x-group": "print",
   "x-unit": "count",
   "x-agentSafe": true,
   "x-label-lv": "Sienu slāņu skaits",
   "default": 2
  },
  "infill": {
   "type": "integer",
   "minimum": 0,
   "maximum": 40,
   "multipleOf": 5,
   "title": "Slicer infill",
   "description": "Internal infill percentage (0–10% gyroid or lightning recommended for maximum buoyancy).",
   "x-group": "print",
   "x-unit": "pct",
   "x-agentSafe": true,
   "x-label-lv": "Aizpildījums (infill)",
   "default": 5
  },
  "coatingThickness": {
   "type": "number",
   "minimum": 0,
   "maximum": 0.4,
   "x-step": 0.05,
   "title": "Epoxy / varnish coat",
   "description": "Estimated thickness of waterproof epoxy or varnish coat added to the mass calculation.",
   "x-group": "print",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Epoksīda / lakas kārta",
   "default": 0.1
  },
  "resolution": {
   "type": "integer",
   "minimum": 20,
   "maximum": 64,
   "multipleOf": 4,
   "title": "Resolution",
   "description": "Segments around the float body; higher is smoother.",
   "x-group": "print",
   "x-unit": "count",
   "x-role": "core.resolution",
   "x-advanced": true,
   "x-agentSafe": true,
   "x-label-lv": "Izšķirtspēja",
   "default": 36
  },
  "color": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Preview colour",
   "description": "Only changes the 3D preview.",
   "x-group": "print",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Priekšskata krāsa",
   "default": "#e04f26"
  }
 },
 "additionalProperties": false,
 "recommended_materials": [
  {
   "id": "lw-pla-float-filament",
   "title": "LW-PLA Foaming Lightweight Filament 1.75 mm (750 g)",
   "why": "Ultra-low density (~0.65 g/cm³) for maximum buoyancy in printed floats.",
   "url": "https://paramlet.com/go/lw-pla-float-filament?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  },
  {
   "id": "carbon-rods-2mm",
   "title": "Carbon Fiber Rods 2.0 mm × 300 mm (10 pack)",
   "why": "Stiff, lightweight stems for body-only printed fishing floats.",
   "url": "https://paramlet.com/go/carbon-rods-2mm?src=agent",
   "disclosure": "Affiliate link (Amazon Associates, tag paramlet-21)"
  }
 ]
}