[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-75862":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":9,"createdAt":9,"pushedAt":9,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":16,"starSnapshotCount":16,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},75862,"yoga","facebook\u002Fyoga","facebook","Yoga is an embeddable layout engine targeting web standards.",null,"https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fyoga","C++",18766,1542,383,101,0,5,33,72.37,false,"main","2026-06-12 04:01:19","# Yoga [![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fyoga-layout.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fyoga-layout) [![Maven Central](https:\u002F\u002Fimg.shields.io\u002Fmaven-central\u002Fv\u002Fcom.facebook.yoga\u002Fyoga)](https:\u002F\u002Fsearch.maven.org\u002Fartifact\u002Fcom.facebook.yoga\u002Fyoga) ![SPM](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSPM-Supported-blue.svg)\n\nYoga is an embeddable and performant flexbox layout engine with bindings for multiple languages.\n\n## Building\n\nYoga's main implementation targets C++ 20 with accompanying build logic in CMake. A wrapper is provided to build the main library and run unit tests.\n\n```sh\n.\u002Funit_tests \u003CDebug|Release>\n```\n\nWhile not required, this script will use [ninja](https:\u002F\u002Fninja-build.org\u002F) if it is installed for faster builds.\n\nYoga is additionally part of the [vcpkg](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fvcpkg\u002F) collection of ports maintained by Microsoft and community contributors. If the version is out of date, please [create an issue or pull request](https:\u002F\u002Fgithub.com\u002FMicrosoft\u002Fvcpkg) on the vcpkg repository.\n\n## Adding Tests\n\nMany of Yoga's tests are automatically generated, using HTML fixtures describing node structure. These are rendered in Chrome to generate an expected layout result for the tree. New fixtures can be added to `gentest\u002Ffixtures`.\n\n```html\n\u003Cdiv id=\"my_test\" style=\"width: 100px; height: 100px; align-items: center;\">\n  \u003Cdiv style=\"width: 50px; height: 50px;\">\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\nTo generate new tests from added fixtures:\n\n1. Ensure you have [yarn classic](https:\u002F\u002Fclassic.yarnpkg.com) installed.\n2. Run `yarn install` to install dependencies for the test generator.\n3. Run `yarn gentest` in the `yoga` directory.\n\n## Debugging\n\nYoga provides a VSCode \"launch.json\" configuration which allows debugging unit tests. Simply add your breakpoints, and run \"Debug C++ Unit tests (lldb)\" (or \"Debug C++ Unit tests (vsdbg)\" on Windows).\n","Yoga 是一个可嵌入的高性能 Flexbox 布局引擎，支持多种语言绑定。它主要使用 C++ 20 实现，并通过 CMake 进行构建，同时提供了对其他语言的支持。Yoga 的核心功能包括高效地计算布局、支持 Web 标准的 Flexbox 规范以及跨平台兼容性。该项目适合需要灵活且高效的布局解决方案的应用场景，如移动应用、桌面应用以及任何需要自定义 UI 布局的开发项目。此外，Yoga 提供了自动化的测试生成工具和调试配置，方便开发者进行测试与调试。",2,"2026-06-06 03:54:40","trending"]