You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
In the style specification, the y value of a property like fill-translate is defined as the number of pixels from the top. By contrast, offsets are normally measured from the bottom of the screen or view on macOS. In order to simplify calculations, the value exposed to the developer via the runtime styling API should be consistent with the system’s standard origin. This will become especially important once we replace the NSArray representation with a CGVector (#5947).
This only applies to macOS; the origin is at the top-left on iOS. The macOS SDK hasn't reached v1.0.0 yet, so I'm not terribly concerned about backwards compatibility there.
In the style specification, the
y
value of a property likefill-translate
is defined as the number of pixels from the top. By contrast, offsets are normally measured from the bottom of the screen or view on macOS. In order to simplify calculations, the value exposed to the developer via the runtime styling API should be consistent with the system’s standard origin. This will become especially important once we replace the NSArray representation with aCGVector
(#5947)./cc @frederoni
The text was updated successfully, but these errors were encountered: