1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! `AnchorStyle`: the core an anchor is grabbed by, plus the orbit geometry
//! cables wrap it on.
//!
//! A flat, concrete struct the renderer consumes directly, following the
//! override-via-struct-update pattern over
//! [`default_anchor_style`](super::default_anchor_style) that every other
//! style type uses. Color fields are [`ColorQuad`]s; a plain `Color` coerces
//! to a solid quad. Border on/off is the `core_border_width` sentinel (0 = no
//! border).
//!
//! `orbit_offset`/`orbit_spacing` are GEOMETRY, not paint: they are the radii
//! a cable is laid tangent to, resolved once per frame before the path is
//! built, so changing them moves the cable rather than recoloring it. Orbit
//! `k` has radius `orbit_offset + k * orbit_spacing`.
use ColorQuad;
/// Visual style of an anchor and the radii of its orbits.