GitShow/react/yoga
react

yoga

Yoga is an embeddable layout engine targeting web standards.

by react
Star on GitHubForkWebsite

C++

18.9k stars1.6k forks338 contributorsActive · 19h agoSince 2014v3.2.1MIT

Meet the team

See all 338 on GitHub →
NickGerleman
NickGerleman292 contributions
vjeux
vjeux247 contributions
davidaurelio
davidaurelio212 contributions
joevilches
joevilches138 contributions
SidharthGuglani-zz
SidharthGuglani-zz136 contributions
priteshrnandgaonkar
priteshrnandgaonkar117 contributions
woehrl01
woehrl0179 contributions
splhack
splhack68 contributions

Languages

View on GitHub →
C++48.3%
Java23.1%
TypeScript22.3%
HTML2.6%
Kotlin1.8%
C0.6%
Other1.2%

Commit activity

Last 12 weeks · 23 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
62
✓README✓License✓Contributing✓Code of Conduct✓Issue Template○PR Template

Recent PRs & issues

Active · Last activity 19h ago
See all on GitHub →
Unmesh100
Add clip-path support to Yoga stylesOpenPR

Summary: This commit introduces support for the CSS property in Yoga. The implementation includes the ability to set and get the value on Yoga nodes, which is preserved for host renderers but does not affect layout calculations. Changes include: New methods for setting and getting in C++, Java, and JavaScript emitters. Updates to the YogaNode and Style classes to handle the property. Tests to ensure correct functionality and serialization of values. Documentation updates to reflect the new property.

Unmesh100 · 1d ago
Hashim1999164
Avoid vector insert in mixed shared children persistence testOpenPR

Fixes facebook/yoga#1934 YGPersistenceTest mixed_shared_and_owned_children used vector insert at begin plus one. GCC 16 with O2 or O3 reports a false array bounds warning, and the tests are built with warnings as errors. The test now builds the three child pointers explicitly and passes that list to setChildren, which is the same layout without insert.

Hashim1999164 · 5d ago
matthieugicquel
Fix layout bug caused by floating point rounding errorOpenPR

Closes #749 and possibly #1574 The current layout algorithm sometimes rounds down by a small value the size of text nodes, which makes the renderer (at least iOS) skip a line of text, resulting in buggy layout like this: I don't have a deep enough understanding of the algorithm to know if this fix is "correct", but what I can say is that: it didn't break existing tests we didn't get any bug reports while using it in a production app I only applied the change to the height calculation as I only encountered the issue on height, but I suppose width could benefit from a similar change.

matthieugicquel · 6d ago

Recent fixes

View closed PRs →
XuweiQT
flexBasis+flexShrink+borderWidth result in an wrong value ClosedIssue

Report [x] I have searched existing issues and this is not a duplicate flexBasis+flexShrink+borderWidth result in an wrong value Expected Behavior is an correct value !截屏2024-06-21 17 01 46 Actual Behavior is an incorrect value !截屏2024-06-21 17 06 57

XuweiQT · 1w ago
Structured data for AI agents

Repository: react/yoga. Description: Yoga is an embeddable layout engine targeting web standards. Stars: 18888, Forks: 1554. Primary language: C++. Languages: C++ (48.3%), Java (23.1%), TypeScript (22.3%), HTML (2.6%), Kotlin (1.8%). License: MIT. Homepage: https://yogalayout.dev/ Latest release: v3.2.1 (1y ago). Open PRs: 63, open issues: 103. Last activity: 19h ago. Community health: 62%. Top contributors: NickGerleman, vjeux, davidaurelio, joevilches, SidharthGuglani-zz, priteshrnandgaonkar, woehrl01, splhack, passy, d16r and others.

·@ofershap

Replace github.com with gitshow.dev