FEngine 是 AntV F 系列可视化引擎的底层渲染引擎,为移动端提供了一套完整的渲染、事件、动画能力,能方便的构建可视化 UI
const { props } = (
<Canvas context={context}>
<rect style={{ width: 10, height: 10, fill: 'red' }} />
</Canvas>
);
const canvas = new Canvas(props);
await canvas.render();
# 安装依赖 (推荐用 yarn)
$ yarn
# 先执行下 build
$ npm run build
# 通过单测调试
$ npm run test-watch 'packages/f-engine/test/canvas/index.test.tsx'