Skip to content

layout: use batched Edge values for margin/padding#625

Merged
simonklee merged 2 commits intoanomalyco:mainfrom
simonklee:yoga-setters
Feb 4, 2026
Merged

layout: use batched Edge values for margin/padding#625
simonklee merged 2 commits intoanomalyco:mainfrom
simonklee:yoga-setters

Conversation

@simonklee
Copy link
Collaborator

I noticed when reviewing #619 that Yoga supports Edge.All, Edge.Horizontal, and Edge.Vertical to set multiple edges in a single call. Use these instead of calling setMargin or setPadding four times for uniform values or twice for axis values.

I noticed when reviewing anomalyco#619
that Yoga supports Edge.All, Edge.Horizontal, and Edge.Vertical to set
multiple edges in a single call. Use these instead of calling setMargin
or setPadding four times for uniform values or twice for axis values.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 4, 2026

@opentui/core

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core@cc55967

@opentui/react

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/react@cc55967

@opentui/solid

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/solid@cc55967

@opentui/core-darwin-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@cc55967

@opentui/core-darwin-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@cc55967

@opentui/core-linux-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@cc55967

@opentui/core-linux-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@cc55967

@opentui/core-win32-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@cc55967

@opentui/core-win32-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@cc55967

commit: cc55967

@simonklee simonklee merged commit 95a78a3 into anomalyco:main Feb 4, 2026
6 checks passed
@simonklee simonklee deleted the yoga-setters branch February 4, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants