antvis / G

💥 A flexible rendering engine for visualization.

Home Page:https://g.antv.antgroup.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

g-plugin-yoga重构

gdnwr opened this issue · comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

1、官方示例《使用 Yoga 排版引擎》一直处于报错状态
https://g.antv.antgroup.com/examples/plugins/yoga/#yoga-container
2、底层使用的yoga-layout-prebuilt库,已经多年无人维护
https://github.com/vadimdemedes/yoga-layout-prebuilt
3、官方早就说明:“该插件使用 yoga-layout-prebuilt,包体积较大,后续我们会使用自己开发的轻量版布局引擎。”
https://g.antv.antgroup.com/plugins/yoga
4、竞品@visactor/vrender已实现flex布局插件:flex-layout-plugin.ts
https://github.dev/VisActor/VRender
5、竞品leafer-ui已实现“自动布局(流动),类似 Flex 的自动布局”:@leafer-in/flow
https://www.leaferjs.com/ui/plugin/in/flow/

What does the proposed API look like?

g-plugin-yoga重构