lini 0.18.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
// The drawing layout [SPEC 15]: children place their origins on one shared
// datum — symmetric primitives stack concentric with no positioning at all —
// and the view's `scale:` multiplies geometry while text, stroke, and the
// centre-mark chrome stay sheet-space. The smart label is the title, under
// the view.

|drawing#washer| "WASHER  ⌀36" { scale: 3 } [
  |oval#rim|  { width: 36; height: 36 }
  |oval#land| { width: 22; height: 22; fill: none }
  |hole#bore| { width: 12 }
]