# antvis-g **Repository Path**: githubprojects/antvis-g ## Basic Information - **Project Name**: antvis-g - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-12-15 - **Last Updated**: 2023-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README English | [简体中文](./README-zh_CN.md) # G [](https://travis-ci.org/antvis/g)   [](https://www.npmjs.com/package/@antv/g-canvas) [](https://npmjs.org/package/@antv/g-canvas) [](https://www.npmjs.com/package/@antv/g-svg) [](https://npmjs.org/package/@antv/g-svg) [](http://isitmaintained.com/project/antvis/g 'Percentage of issues still open') - A powerful rendering engine for AntV providing canvas and svg draw. ## ✨ Features - Powerful and scalable rendering capability with built-in basic Graphics. - Excellent rendering performance and supports visualization scenarios with large amounts of data. - Complete simulation of browser DOM events, and no difference from native events. - Smooth animation implementation and rich configuration interfaces. - While providing Canvas and SVG version of implementation, and both of API basic consistent. ## 📦 Install ```bash # Canvas version $ npm install @antv/g-canvas --save # SVG version $ npm install @antv/g-svg --save ``` ## 🔨 Usage ```html
``` ```js import { Canvas } from '@antv/g-canvas'; // or use SVG version // 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, }, }); ``` ## ⌨️ Development ```bash $ git clone git@github.com:antvis/g.git $ cd g $ npm install $ npm run bootstrap $ npm run build ```