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
51
52
53
54
55
56
57
58
//! The resizable panel sizes on [`AppModel`] (DESIGN §4.1 `panels`, §11).
//!
//! Two calls carry the whole feature: the size a panel **opens** at, and the
//! size a released boundary **settles** on. The document is the authority and
//! the egui context is its projection — the same ruling the §4.1 `zoom` is held
//! under: the shell hands each panel its size every frame and reports back what
//! egui measured, so no second copy of the fact exists to drift or to be lost
//! at exit.
//!
//! A child module of `app` purely for the 300-line budget (§12), like
//! [`super::knobs`] and [`super::focus`].
use AppModel;
use cratePanel;
/// The smallest boundary move worth recording: one logical point. Below it a
/// change is either the operator's hand shaking or a layout rounding wobble,
/// and writing it would churn the document every frame a window sat still.
const SETTLE_EPSILON: f32 = 1.0;