-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Description
Proposal: Centralize Layout Mapping Logic
Reason
Mapping A2UI layout enums (like spaceBetween) to framework-specific values (like space-between in CSS or MainAxisAlignment.spaceBetween in Flutter) is currently handled inconsistently inside each renderer.
Design
- Shared Constants: Create
renderers/web_core/src/v0_9/common/layout.tsto host standard mapping functions for Web/CSS-based renderers. - Normalization: Provide
mapJustify(val)andmapAlign(val)functions that return standard CSS values. - Refactor: Remove the redundant mapping logic from
react_prototypeand any future Angular/Lit renderers, importing from the centralizedweb_corelocation instead.
Key Files
renderers/web_core/src/v0_9/common/layout.ts(New)renderers/react_prototype/src/basic_catalog/utils.ts
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo