| 29 |
29 |
|
//! | **reposition** | **6%** | **20%** | **this crate** |
|
| 30 |
30 |
|
//! | **appearance** | **1%** | **17%** | **this crate** |
|
| 31 |
31 |
|
//!
|
| 32 |
|
- |
//! The bottom three are the roughly 43% that no spacing scale can retire, and
|
| 33 |
|
- |
//! trying is the mistake this whole family already made once. `display: none`
|
| 34 |
|
- |
//! on a keyboard hint says *the affordance does not exist on touch*. No amount
|
| 35 |
|
- |
//! of gap retuning expresses that, and a scale that tried would be smuggling a
|
| 36 |
|
- |
//! product claim onto a measurement axis — which is exactly what the 2026-07-29
|
| 37 |
|
- |
//! Touch demolition was for.
|
|
32 |
+ |
//! The bottom three are the roughly 43% that no spacing scale can retire.
|
|
33 |
+ |
//! `display: none` on a keyboard hint says *the affordance does not exist on
|
|
34 |
+ |
//! touch*. No amount of gap retuning expresses that, and a scale that tried
|
|
35 |
+ |
//! would be smuggling a product claim onto a measurement axis.
|
| 38 |
36 |
|
//!
|
| 39 |
37 |
|
//! Two of the eight members are not in that census at all, and the exception is
|
| 40 |
38 |
|
//! worth stating rather than leaving to be noticed. [`Affordance::Gesture`] and
|
| 68 |
66 |
|
//!
|
| 69 |
67 |
|
//! That separation is asserted, not merely intended, by
|
| 70 |
68 |
|
//! `density_gates_only_what_the_contact_patch_touches`. Putting a screen-budget
|
| 71 |
|
- |
//! claim on the input device is the specific failure that produced this crate,
|
| 72 |
|
- |
//! and re-introducing it should have to come to the test and say so.
|
|
69 |
+ |
//! claim on the input device is the failure this crate exists to prevent, and
|
|
70 |
+ |
//! re-introducing it has to come to the test and say so.
|
| 73 |
71 |
|
//!
|
| 74 |
|
- |
//! # Both densities gain something (0.3.0)
|
|
72 |
+ |
//! # Both densities gain something
|
| 75 |
73 |
|
//!
|
| 76 |
|
- |
//! Until 0.3.0 this crate asserted that touch is pointer minus what a fingertip
|
| 77 |
|
- |
//! cannot do — availability only ever subtracted as you moved from
|
| 78 |
|
- |
//! [`Density::Pointer`] to [`Density::Touch`], and a test called
|
| 79 |
|
- |
//! `touch_never_gains_an_affordance_pointer_lacks` said so. That claim is
|
| 80 |
|
- |
//! withdrawn, deliberately, because it left a hole the crate could not name:
|
|
74 |
+ |
//! Touch is not pointer minus what a fingertip cannot do.
|
| 81 |
75 |
|
//! [`Affordance::Hover`]'s own doc says a fingertip has no hover state *and that
|
| 82 |
|
- |
//! something else has to carry the same actions*, and nothing here was allowed
|
| 83 |
|
- |
//! to be that something. [`Affordance::Anchored`] and [`Affordance::Overflow`]
|
| 84 |
|
- |
//! compensate on the size axis; nothing compensated on the density axis.
|
|
76 |
+ |
//! something else has to carry the same actions*, so something here has to be
|
|
77 |
+ |
//! that something. [`Affordance::Anchored`] and [`Affordance::Overflow`]
|
|
78 |
+ |
//! compensate on the size axis; [`Affordance::Gesture`] and
|
|
79 |
+ |
//! [`Affordance::Haptic`] compensate on the density axis, and both are gained
|
|
80 |
+ |
//! by touch rather than lost to it.
|
| 85 |
81 |
|
//!
|
| 86 |
|
- |
//! [`Affordance::Gesture`] and [`Affordance::Haptic`] are that compensation, and
|
| 87 |
|
- |
//! both are gained by touch rather than lost to it.
|
| 88 |
|
- |
//!
|
| 89 |
|
- |
//! The claim is replaced rather than dropped. [`Affordance::gained_by`] makes
|
| 90 |
|
- |
//! each member declare which density it belongs to, and
|
|
82 |
+ |
//! [`Affordance::gained_by`] makes each member declare which density it belongs
|
|
83 |
+ |
//! to, and
|
| 91 |
84 |
|
//! `a_density_member_is_available_on_exactly_the_density_it_declares` checks the
|
| 92 |
85 |
|
//! declaration against the rule. So a new member still cannot quietly invert:
|
| 93 |
86 |
|
//! it has to say which way it goes, in code, and the test is where a wrong
|
| 248 |
241 |
|
/// Which [`Density`] this affordance belongs to, or `None` when it reads the
|
| 249 |
242 |
|
/// screen budget instead.
|
| 250 |
243 |
|
///
|
| 251 |
|
- |
/// The replacement for the withdrawn one-directional rule (see the crate
|
| 252 |
|
- |
/// doc). Until 0.3.0 the direction was a property of the whole crate and a
|
| 253 |
|
- |
/// test enforced it globally; now each member declares its own, and
|
|
244 |
+ |
/// Each member declares its own direction, and
|
| 254 |
245 |
|
/// `a_density_member_is_available_on_exactly_the_density_it_declares` holds
|
| 255 |
|
- |
/// the declaration to the rule.
|
|
246 |
+ |
/// the declaration to the rule. There is no crate-wide one-directional
|
|
247 |
+ |
/// rule: see the crate doc.
|
| 256 |
248 |
|
///
|
| 257 |
249 |
|
/// Exposed rather than kept private for the same reason [`Self::reads_density`]
|
| 258 |
250 |
|
/// is: it is the crate's claim about itself, and a renderer that has one
|