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
50
//! Which way a scale's output runs across its domain.
//!
//! Reversal is a property of the *mapping*, not of the domain: the domain
//! stays in its natural order (ascending numbers, user-ordered
//! categories, increasing bin edges) and [`Direction`] decides which end
//! of the output it lands on. Break generation is therefore untouched by
//! reversal — a reversed axis emits the same tick values as a forward
//! one, positioned at the mirrored fractions.
/// Which way a scale's output runs across its domain.
///
/// Applied to the normalised `[0, 1]` fraction (or the domain index)
/// *before* the output range is consulted, so one flag covers both roles
/// a scale can play: a position scale's axis runs backwards, and a
/// material scale walks its palette from the far end.