$ npm install @antv/g-svg
English | 简体中文
$ npm install @antv/g-svg --save
<div id="c1"></div>
import { Canvas } from '@antv/g-svg';
const canvas = new Canvas({
container: 'c1',
width: 500,
height: 500,
});
const group = canvas.addGroup();
group.addShape('circle', {
attrs: {
x: 100,
y: 100,
r: 50,
fill: 'red',
stroke: 'blue',
lineWidth: 5,
},
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE