@antv/ 组件
AntV的可视化组件,基于 G级 它是一个可视化的灵活渲染引擎.
* 特性
- 富有 - 包含20+可视化组件,用于AntV G2型, (中文(简体) ), 6国集团, (中文(简体) ), L7 数据。 。 。 .
- 强大的 - 每个部分都有强大的能力和灵活的可扩展性.
- 设计 ——持续优化和迭代.
- 强大的渲染器 - 根据强大的渲染器 G级,我们可以使用
Canvas, (中文(简体) ),SVG或者说WebGL同样的代码.
* 安装
$ npm install @antv/component
$ yarn add @antv/component
开始
import { Canvas } from '@antv/g';
import { Renderer } from '@antv/g-canvas';
import { Button } from '@antv/component';
// 1. New a canvas.
const canvas = new Canvas({
container: 'container',
width: 600,
height: 600,
renderer: new Renderer(),
});
// 2. Create a button with configure.
const button = new Button({
/* ... */
});
// 3. Append into G canvas.
canvas.appendChild(button);
// 4. Render.
canvas.render();
页:1
捐款
$ git clone [email protected]:antvis/component.git
$ cd component
$ npm install
$ npm run dev
然后向GitHub发出拉取请求.
许可证
麻省理工学院@蚂蚁V。 。 。 .