PixiJS 布局 v3 来了!🎉
今天我们发布了 PixiJS Layout v3,这是对该库从头彻底重建的新版本。这个新版本提供了一种强大且符合 web 标准的方式来管理 PixiJS 项目中的布局,由 Yoga 布局引擎提供支持。
🌐 Today we are releasing PixiJS Layout v3, a complete rebuild of the library from the ground up. This new version offers a powerful, web-standard way to manage layout inside PixiJS projects, powered by the Yoga layout engine.
不仅仅是一次重写,v3 代表了一个重大飞跃:它将真正的flexbox 布局原理引入了 PixiJS 生态系统,让习惯于 CSS 风格布局的网页开发者也能使用 PixiJS。无论你是在创建游戏界面、动态画布应用,还是完整的交互式体验,现在你都可以使用你已经熟悉的布局模式——flex-grow、justify-content、align-items 等等。
🌐 More than just a rewrite, v3 represents a major leap forward: it brings true flexbox layout principles to the PixiJS ecosystem, opening up PixiJS to web developers who are used to CSS-style layouts. Whether you are creating a game UI, a dynamic canvas app, or a full interactive experience, you can now use the layout patterns you already know — flex-grow, justify-content, align-items, and more.
此外,PixiJS Layout v3 与 PixiJS React 无缝集成,使 React 开发者能够使用熟悉的声明式工作流来组合和管理 PixiJS 用户界面。无论你是在纯 PixiJS 中工作,还是将其与 React 结合使用,布局现在都更加容易、直观且功能更强大。
🌐 In addition, PixiJS Layout v3 integrates seamlessly with PixiJS React, enabling React developers to compose and manage PixiJS UIs with a familiar declarative workflow. Whether you are working in plain PixiJS or combining it with React, layout is now easier, more intuitive, and more powerful.
