{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://paramlet.com/tools/canard-glider/schema.json",
 "title": "Canard glider — parameters",
 "description": "Hand-launch gliders, canard darts and classic gliders, printed flat without supports: the span, the sweep, the balance point and the nose weight worked out. 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": "canard-glider",
 "x-toolVersion": "1.0.0",
 "x-specVersion": "1.0",
 "x-apiVersion": "1",
 "x-groups": [
  {
   "id": "kind",
   "title": "The glider"
  },
  {
   "id": "wing",
   "title": "Wings and body"
  },
  {
   "id": "weight",
   "title": "Balance"
  },
  {
   "id": "name",
   "title": "Name on the wing"
  },
  {
   "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": "canard-dart-6g",
    "title": "6 g canard dart, fast",
    "description": "A red LW-PLA canard dart, 180 mm span, 32 mm chord, that darts straight across a hall.",
    "values": {
     "foam": true,
     "span": 180,
     "chord": 32,
     "bodyLen": 150,
     "baseColor": "#b91c1c",
     "wingColor": "#f3efe6"
    }
   },
   {
    "id": "classroom-glider-200mm",
    "title": "Classroom glider 200 mm",
    "description": "A blue classic glider for a class set: 200 mm span, a 44 mm wing and a 70 mm tail, in plain PLA.",
    "values": {
     "kind": "classic",
     "span": 200,
     "chord": 44,
     "bodyLen": 160,
     "baseColor": "#1f4e8c",
     "wingColor": "#f2c14e"
    }
   },
   {
    "id": "long-glide-250mm-lwpla",
    "title": "Long-glide glider 250 mm, LW-PLA",
    "description": "An orange 250 mm classic glider in LW-PLA with a 4 degree dihedral, bent up at the crease over the body.",
    "values": {
     "kind": "classic",
     "span": 250,
     "chord": 50,
     "bodyLen": 200,
     "foam": true,
     "dihedral": 4,
     "baseColor": "#c2410c",
     "wingColor": "#f3efe6"
    }
   },
   {
    "id": "catapult-canard",
    "title": "Catapult canard with a launch hook",
    "description": "A graphite canard with a hook under the nose for a rubber band: 200 mm span, 25 degrees of sweep, M4 nuts.",
    "values": {
     "launch": true,
     "span": 200,
     "chord": 36,
     "bodyLen": 170,
     "sweep": 25,
     "weight": "M4nut",
     "baseColor": "#1f2937",
     "wingColor": "#c2410c"
    }
   },
   {
    "id": "name-on-the-wing",
    "title": "Glider with a name on the wing",
    "description": "A teal 240 mm canard with a name cut through the wing, a gift that flies.",
    "values": {
     "names": "ANNA",
     "span": 240,
     "chord": 44,
     "baseColor": "#0e7490",
     "wingColor": "#f3efe6"
    }
   },
   {
    "id": "classic-dart-220mm",
    "title": "Classic glider 220 mm",
    "description": "A green classic: the 220 mm wing in front, a small tail behind, a 170 mm body, in plain PLA.",
    "values": {
     "kind": "classic",
     "span": 220,
     "chord": 40,
     "bodyLen": 170,
     "baseColor": "#3f6212",
     "wingColor": "#fbbf24"
    }
   },
   {
    "id": "mini-canard-120mm",
    "title": "Mini canard 120 mm",
    "description": "A sand-coloured 120 mm canard that fits an envelope, for a desk and a book.",
    "values": {
     "span": 120,
     "chord": 20,
     "tailSpan": 40,
     "tailChord": 10,
     "bodyLen": 120,
     "bodyH": 10,
     "baseColor": "#a16207",
     "wingColor": "#1f2937"
    }
   },
   {
    "id": "big-dart-260mm-m5",
    "title": "Big dart 260 mm, M5 nuts",
    "description": "A white 260 mm canard with a 50 mm wing and M5 nuts in the nose, for outdoors.",
    "values": {
     "span": 260,
     "chord": 50,
     "bodyLen": 200,
     "weight": "M5nut",
     "baseColor": "#f1f1f1",
     "wingColor": "#b91c1c"
    }
   }
  ]
 },
 "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": {
  "kind": {
   "type": "string",
   "enum": [
    "canard",
    "classic"
   ],
   "x-enumTitles": {
    "canard": "Canard: a small wing in front, the big wing behind",
    "classic": "Classic: the big wing in front, a small tail behind"
   },
   "title": "Layout",
   "description": "A canard dart flies fast and straight; a classic glider floats slower and turns more gently.",
   "x-group": "kind",
   "x-agentSafe": true,
   "x-label-lv": "Izkārtojums",
   "default": "canard",
   "x-resetOnPreset": true
  },
  "span": {
   "type": "number",
   "minimum": 120,
   "maximum": 400,
   "multipleOf": 10,
   "title": "Main wing span",
   "description": "Tip to tip. Up to 400 mm prints in halves on a 256 mm bed.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Lielā spārna izpleste",
   "default": 220,
   "x-resetOnPreset": true
  },
  "chord": {
   "type": "number",
   "minimum": 20,
   "maximum": 80,
   "multipleOf": 2,
   "title": "Main wing chord",
   "description": "Front to back of the main wing at the body.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Lielā spārna dziļums",
   "default": 40,
   "x-resetOnPreset": true
  },
  "sweep": {
   "type": "number",
   "minimum": 0,
   "maximum": 35,
   "multipleOf": 5,
   "title": "Wing sweep",
   "description": "How far back the tips lie. A dart has 20 to 30 degrees.",
   "x-group": "wing",
   "x-unit": "deg",
   "x-agentSafe": true,
   "x-label-lv": "Spārna atgāzienis",
   "default": 15,
   "x-resetOnPreset": true
  },
  "tailSpan": {
   "type": "number",
   "minimum": 40,
   "maximum": 160,
   "multipleOf": 10,
   "title": "Small wing span",
   "description": "The canard in front, or the tail behind.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Mazā spārna izpleste",
   "default": 70,
   "x-resetOnPreset": true
  },
  "tailChord": {
   "type": "number",
   "minimum": 10,
   "maximum": 40,
   "multipleOf": 1,
   "title": "Small wing chord",
   "description": "Front to back of the small wing at the body.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Mazā spārna dziļums",
   "default": 16,
   "x-resetOnPreset": true
  },
  "bodyLen": {
   "type": "number",
   "minimum": 120,
   "maximum": 300,
   "multipleOf": 10,
   "title": "Body length",
   "description": "Nose to tail, without the nose weight.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa garums",
   "default": 170,
   "x-resetOnPreset": true
  },
  "bodyH": {
   "type": "number",
   "minimum": 10,
   "maximum": 24,
   "multipleOf": 1,
   "title": "Body depth",
   "description": "How tall the body stands on edge. A tall body flies straighter.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa augstums",
   "default": 14,
   "x-resetOnPreset": true
  },
  "dihedral": {
   "type": "number",
   "minimum": 0,
   "maximum": 10,
   "multipleOf": 1,
   "title": "Dihedral",
   "description": "How far to bend each wing half up at the crease over the body. A crease needs LW-PLA; with plain PLA leave it flat.",
   "x-group": "wing",
   "x-unit": "deg",
   "x-agentSafe": true,
   "x-label-lv": "V veida leņķis",
   "default": 0,
   "x-resetOnPreset": true
  },
  "camber": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Camber crease",
   "description": "A crease a third of the way back on the main wing: bend the back part down a little and the wing lifts more.",
   "x-group": "wing",
   "x-agentSafe": true,
   "x-label-lv": "Locījums izliekumam",
   "default": 1,
   "x-resetOnPreset": true
  },
  "wingT": {
   "type": "number",
   "minimum": 0.6,
   "maximum": 1.2,
   "x-step": 0.2,
   "title": "Wing thickness",
   "description": "Two or three layers of a 0.2 mm layer height.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Spārna biezums",
   "default": 0.8,
   "x-resetOnPreset": true
  },
  "bodyT": {
   "type": "number",
   "minimum": 1.2,
   "maximum": 2.4,
   "x-step": 0.2,
   "title": "Body thickness",
   "description": "The body is a plate standing on edge; the wings slot through it.",
   "x-group": "wing",
   "x-unit": "mm",
   "x-role": "core.wallThickness",
   "x-agentSafe": true,
   "x-label-lv": "Korpusa biezums",
   "default": 1.6,
   "x-resetOnPreset": true
  },
  "weight": {
   "type": "string",
   "enum": [
    "M3nut",
    "M4nut",
    "M5nut"
   ],
   "x-enumTitles": {
    "M3nut": "M3 nuts (1.2 g each)",
    "M4nut": "M4 nuts (2.6 g each)",
    "M5nut": "M5 nuts (3.9 g each)"
   },
   "title": "Nose weight",
   "description": "What drops into the nose block. The page says how many bring the glider to its balance point.",
   "x-group": "weight",
   "x-agentSafe": true,
   "x-label-lv": "Deguna svars",
   "default": "M3nut",
   "x-resetOnPreset": true
  },
  "launch": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "Launch hook",
   "description": "A hook under the nose for a rubber band.",
   "x-group": "weight",
   "x-agentSafe": true,
   "x-label-lv": "Palaišanas āķis",
   "default": 0,
   "x-resetOnPreset": true
  },
  "names": {
   "type": "string",
   "maxLength": 10,
   "title": "Name",
   "description": "Up to 10 characters cut through the main wing. Empty: a plain wing.",
   "x-group": "name",
   "x-agentSafe": true,
   "x-label-lv": "Vārds",
   "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 names (Barlow Condensed)"
   },
   "title": "Font",
   "description": "All fonts are free (SIL Open Font License) and have the Latvian letters.",
   "x-group": "name",
   "x-agentSafe": true,
   "x-label-lv": "Fonts",
   "default": "lilita",
   "x-resetOnPreset": true
  },
  "baseColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Colour",
   "description": "The glider.",
   "x-group": "name",
   "x-role": "core.previewColor",
   "x-agentSafe": true,
   "x-label-lv": "Krāsa",
   "default": "#1f4e8c",
   "x-resetOnPreset": true
  },
  "wingColor": {
   "type": "string",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "title": "Wing colour",
   "description": "The wing and tail follow the main colour until you pick another one here: then a two-colour glider from two filaments, with no nozzle change.",
   "x-group": "name",
   "x-agentSafe": true,
   "x-label-lv": "Spārna krāsa",
   "default": "#1f4e8c",
   "x-resetOnPreset": true
  },
  "foam": {
   "type": "integer",
   "enum": [
    0,
    1
   ],
   "title": "LW-PLA foam filament",
   "description": "Lightweight PLA at 0.6 g/cm³ halves the mass. The creases only bend in foam; plain PLA snaps.",
   "x-group": "print",
   "x-agentSafe": true,
   "x-label-lv": "LW-PLA putuplastmasas filaments",
   "default": 0,
   "x-resetOnPreset": true
  },
  "material": {
   "type": "string",
   "enum": [
    "pla",
    "petg",
    "asa"
   ],
   "x-enumTitles": {
    "pla": "PLA",
    "petg": "PETG",
    "asa": "ASA"
   },
   "title": "Filament",
   "description": "PLA is the stiffest for a thin wing. PETG bends more for the same weight.",
   "x-group": "print",
   "x-role": "core.printMaterial",
   "x-agentSafe": true,
   "x-label-lv": "Filaments",
   "default": "pla",
   "x-resetOnPreset": true
  }
 },
 "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",
   "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)"
  }
 ]
}