WG SXL Standardization 2025-01-30 #144
emiltin
announced in
Working Groups
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Participants
Toni Saviahde
Emil Tin
VMS SXL
Draft published at https://rsmp-nordic.github.io/rsmp_sxl_vms/. More will be added, e.g. illustrations.
Layouts
We need a way to read/write how visual elements are arranged.
Units
The panel a physical dimension in centimeters, e.g. 100x70cm.
Pixels: Could be used for precise position on use pixels, although this mean things jump if you ever change the pixel resolution.
Centimers: Absolute, but things would move if you change display.
Percentages: Good since you can use the same layout on different signs and it still looks right, but you need to be careful of stretching if the x-y ratio changes, e.g. from landscape to portrait mode.
Axises and directions:
x: left-right
y: up-down
0,0 is the bottom-left corner
Absolute positioning
Inspiration:
CSS absolute positioning: https://www.w3schools.com/css/css_positioning.asp
You would position elements using top, left, bottom and right coordinates. If some are left out, their are computed. If all are set you control stretching.
Only setting top,left or bottom,right is not allowed, as if does not define the size.
left, bottom, right, top => streching
left, top, right => bottom is computed
right, top, bottom => left is computed
Another way would be that to set either one corner and a size, or two corners.
Overlap? Ordering could determine what is shown at top
Outside the frame? No
Example:
How to handle y/z percentage so we avoid stretching if the display size changes?
Stacks
Inspiration:
CSS flexbox: https://www.w3schools.com/css/css3_flexbox.asp
Apple Auto-layout: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/index.html#//apple_ref/doc/uid/TP40010853-CH7-SW1
You define horizontal and vertical stacks with elements inside. Your can nest stacks, and use sizing and margins.
If you don't define sizing, elements will be scaled to fill out the stack.
Example:
Beta Was this translation helpful? Give feedback.
All reactions