Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YGEdge -> yoga::Edge #1461

Closed
wants to merge 3 commits into from
Closed

Conversation

NickGerleman
Copy link
Contributor

Summary:
Converts usages of YGEdge within internal APIs to yoga::Edge scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Differential Revision: D51152779

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 9, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Differential Revision: D51152779

fbshipit-source-id: adb8fecf7f653d9f816e1eaef615498cdf6de055
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 9, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Differential Revision: D51152779

fbshipit-source-id: 25a6436f50bec4f3bdde157b535ed1815fac85cc
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 10, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: d76b850375c3d2c791ba8bd1dcf2c0b961a45738
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 10, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 57bc135d97ebd62a899f533e593a8d9b3251246e
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 5958bbbb9fbb65e7ea16e2fe3dd824e4f369fa9f
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: b8447fc07fc4ca32e591e9aa4640fdb1806995a9
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 7870a11a01ef224068341fb84afec82341f5d80f
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 31fa8969badd3dbb175d79a4b8b0319eea68807f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 6717ed59fcb6479e8b7973e10bcd2dfc5a50847b
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 8da1fe209b1930af0b70f5c23aadb61a35587bfc
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391

Pull Request resolved: facebook#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: f9471715fc9bb5f7ec11b3579d7f570cddc3174f
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 14, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 17378a8710afa2b22c63ae5098be51a3391a6019
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 14, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 25, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 3a7f77b200d23d9f3619ce20fcb2331c7d067a8e
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 25, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 8af126d6078f3ea50f6d80f79852eb5954413e19
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Nov 25, 2023
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

Summary:
X-link: facebook/react-native#41392


We're moving `CompactValue` to be an internal detail of `yoga::Style`, where users outside of the style will be dealing with a resolved/non-compact representation.

This change renames usages of `CompactValue` to `Style::Length`, which will be Yoga's representation for CSS input lengths. Right now one is just a type alias of the other, but this will let us change the internals of CompactValue with the rest of the world looking the same.

A few factory functions are added to `yoga::value` for creating CSS values. There are some shenanigans around how we want to represent CSS pixels (one YGUnitPoint), when we also end up adding CSS points (slightly larger than one YGUnitPoint). For now, I reused `point` until making other changes.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D51000389
Summary:
X-link: facebook/react-native#41390


Yoga passes `MeasureMode`/`YGMeasureMode` to express constraints in how a box should be measured, given definite or indefinite available space.

This is modeled after Android [MeasureSpec](https://developer.android.com/reference/android/view/View.MeasureSpec), with a table above `calculateLayoutImpl()` explaining the CSS terms they map to. This can be confusing when flipping between the spec, and code.

This switches internal usages to the CSS terms, but leaves around `YGMeasureMode` since it is the public API passed to measure functions.

Reviewed By: joevilches

Differential Revision: D51068417
Summary:
X-link: facebook/react-native#41391


Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51152779

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Nov 25, 2023
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: e9293b6215a8f4a3c65852d583a29693ae34f8aa
facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Nov 26, 2023
Summary:
X-link: facebook/react-native#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 06554f67bfd7709cbc24fdd9a5474e897e9e95d8
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Nov 26, 2023
Summary:
Pull Request resolved: #41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 06554f67bfd7709cbc24fdd9a5474e897e9e95d8
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 325ccea.

Othinn pushed a commit to Othinn/react-native that referenced this pull request Jan 9, 2024
Summary:
Pull Request resolved: facebook#41391

X-link: facebook/yoga#1461

Converts usages of `YGEdge` within internal APIs to `yoga::Edge` scoped enum.

With the exception of YGUnit which is in its own state of transition, this is the last public yoga enum to need to be moved to scoped enum form for usages internal to the Yoga public API.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51152779

fbshipit-source-id: 06554f67bfd7709cbc24fdd9a5474e897e9e95d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants