F2
F2 copied to clipboard
feat(@antv/f2-vue): 增强对自定义图形及自定义图表组件的JSX编译支持
Checklist
- [x]
npm test
passes - [x] tests and/or benchmarks are included
- [x] commit message follows commit guidelines
Description of change
解决Vue3项目中编译包含自定义View及自定义Shape时需要使用@babel/plugin-transform-react-jsx的问题。 备注:自定义View时,需高阶组件需从@antv/f2-vue中的导入。例如: import { withLegend } from "@antv/f2-vue"。
@zengyue 重构了Canvas,以便能够通过测试用例(graphic/createImage)中
expect(createImageCallback.mock.calls.length).toBe(1)
。