Layout¶
Purpose¶
Owns preview-panel layout helpers for aspect-ratio calculation and preview rectangle sizing.
This territory computes how the central preview area should fit within the available editor panel space.
Owns¶
- Preview rect calculation
- Aspect-ratio fitting helpers
- Letterbox/pillarbox layout decisions
- Preview layout utility logic
Does NOT Own¶
- Rendering implementation
- Preview scene lifecycle
- Capture execution
- Export workflows
- Overlay drawing implementation
Allowed Dependencies¶
Layout may depend on:
- Capture settings models
- Aspect mode enums
- Unity Rect/Vector primitives
Layout should avoid depending on:
- preview lifecycle systems
- rendering systems
- export systems
- panel orchestration systems beyond layout consumers
Notes¶
Layout helpers are pure preview UI support.
They decide where the preview should be drawn, not what gets rendered.
Future Candidates¶
- Keep layout helpers deterministic and side-effect free.
- Avoid adding rendering or export behaviour to layout utilities.