lini 0.16.0

Pretty diagrams, charts, and technical drawings from plain text, with fine-grained control. Compiles to clean, themeable SVG.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// `pattern:` [SPEC 15.4]: grid copies locate by their seed hole, radial copies
// by their ring centre — each copy repeats the full lowering (every hole
// punches and centre-marks), and a radial pattern draws its `|pitch-circle|`
// through the copies.

|row| { gap: 40 } [
  |drawing#plate-view| "COVER PLATE" [
    |rect#plate| { width: 120; height: 70 }
    |hole#pin| { width: 10; translate: -35 -20; pattern: grid(2, 2, 70, 40) }
  ]

  |drawing#flange-view| "FLANGE" [
    |oval#flange| { width: 80; height: 80 }
    |hole#hub|   { width: 24 }
    |hole#bolt|  { width: 8; pattern: radial(6, 28) }
  ]
]