Expand description
Round 2 (docs/round-2-contract.md §7): the shared layout NUMBERS
(catalog/layout.json, generated as LAYOUT_CONSTANT_NAMES/VALUES):
one place for the core and every painter.
Constants§
- FIELD_
INTRINSIC_ WIDTH - The max-content width of a text field (px).
- MEDIA_
ASPECT_ RATIO - Width / height of an Image without
aspectRatioor a height; Video’s default. - MEDIA_
INTRINSIC_ WIDTH - The max-content width of an Image/Video without a width (px).
- PANEL_
MIN - A panel’s min (percent) when unset.
- PENDING_
DELAY_ MS - EXP-1259: how long a
loadingButton waits before it shows its pending state (ms). - RESIZE_
HANDLE_ HIT - A Resizable handle’s hit area across its hairline (px).
- RESIZE_
STEP - Percentage points per arrow key on a Resizable handle.
- SEARCH_
LIST_ FADE - The bottom fade over a SearchList’s rows while more sit below (px).
- SKELETON_
OPACITY_ HIGH - SKELETON_
OPACITY_ LOW - SKELETON_
PULSE_ MS - The Skeleton’s ONE opacity pulse (ms, low → high → low, ease-in-out).
- SKELETON_
REDUCED_ OPACITY - The Skeleton’s static opacity under reduce motion.
- TABLE_
COLUMN_ MIN - EXP-1548: the narrowest a Table column without a
widthgets (px); a table whose columns need more than its box scrolls horizontally. - TREE_
GUIDE_ BRIDGE - How far a TreeGuides vertical overshoots its row’s TOP to bridge a Section divider (px; paint only, never layout).
- TREE_
GUIDE_ COLUMN - One TreeGuides gutter column (px).
- TREE_
GUIDE_ RADIUS - The radius of a TreeGuides elbow’s corner (px).
- WINDOW_
OVERSCAN - Items rendered beyond each viewport edge.
- WINDOW_
THRESHOLD - Items past which List and Table window.
Functions§
- layout_
constant - A layout constant by name (
windowThreshold,mediaAspectRatio, …).