g-plugin-yoga重构
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 230
- PR merge metrics
- No merged PRs in 30d
Description
- [x] I have searched the [issues](https://github.com/antvis/g/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重构
Contributor guide
Research direction
Start by reproducing the error in the official “Using the Yoga layout engine” example and inspect the current yoga-layout-prebuilt integration. Review the competitor reference flex-layout-plugin.ts for possible layout behavior. Done should mean the example works and g-plugin-yoga no longer depends on the unmaintained package, with the replacement scope and API agreed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100