fix(render): convert Trace::width through the UI scale, and fold the controller's tolerance conversion into Style::device()
This commit is contained in:
1 parent
7500fc90d2
commit
69495a3799
7 files changed
+158
-24
No files matched your search
@@ -24,8 +24,13 @@ namespace plot::render {
|
||||
/// chosen LOD level depend on the display and not on the data. It is used raw.
|
||||
///
|
||||
/// The same rule classifies the metrics that live outside this struct, which are
|
||||
/// logical too and converted by the same call: `Legend`'s pad, swatch, gap and
|
||||
/// margin, and the renderer's marker arm lengths and text offsets.
|
||||
/// logical too and converted by the same call:
|
||||
///
|
||||
/// * `Legend`'s pad, swatch, gap and margin;
|
||||
/// * `Trace`'s (and `TraceDesc`'s) `width` -- a stroke like `line_width_px`, and
|
||||
/// the one a plot draws most of, so leaving it raw would invert the
|
||||
/// trace/axis stroke hierarchy at any scale above 1;
|
||||
/// * the renderer's marker arm lengths and text offsets.
|
||||
struct Style {
|
||||
// --- colours: neither logical nor device, so nothing to scale ------------
|
||||
|
||||
|
||||
Reference in new issue
Block a user