# antvis-g **Repository Path**: juant/antvis-g ## Basic Information - **Project Name**: antvis-g - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: next - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-02-25 - **Last Updated**: 2022-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README English | [简体中文](./README-zh_CN.md) # G [![](https://img.shields.io/travis/antvis/g.svg)](https://travis-ci.org/antvis/g) ![](https://img.shields.io/badge/language-javascript-red.svg) ![](https://img.shields.io/badge/license-MIT-000000.svg) [![npm package](https://img.shields.io/npm/v/@antv/g-canvas.svg)](https://www.npmjs.com/package/@antv/g-canvas) [![npm downloads](http://img.shields.io/npm/dm/@antv/g-canvas.svg)](https://npmjs.org/package/@antv/g-canvas) [![npm package](https://img.shields.io/npm/v/@antv/g-svg.svg)](https://www.npmjs.com/package/@antv/g-svg) [![npm downloads](http://img.shields.io/npm/dm/@antv/g-svg.svg)](https://npmjs.org/package/@antv/g-svg) [![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g.svg)](http://isitmaintained.com/project/antvis/g 'Percentage of issues still open') - A powerful rendering engine for AntV implemented with Canvas2D / SVG / WebGL / WebGPU. ## ✨ 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 # Install Core $ npm install @antv/g --save # Canvas Renderer $ npm install @antv/g-canvas --save # SVG Renderer $ npm install @antv/g-svg --save # WebGL Renderer $ npm install @antv/g-webgl --save ``` ## 🔨 Usage ```html
``` ```js import { Circle, Canvas } from '@antv/g'; import { Renderer as CanvasRenderer } from '@antv/g-canvas'; // or // import { Renderer as WebGLRenderer } from '@antv/g-webgl'; // import { Renderer as SVGRenderer } from '@antv/g-svg'; // create a canvas const canvas = new Canvas({ container: 'container', width: 500, height: 500, renderer: new CanvasRenderer(), // select a renderer }); // create a circle const circle = new Circle({ style: { x: 100, y: 100, r: 50, fill: 'red', stroke: 'blue', lineWidth: 5, }, }); // append to canvas canvas.appendChild(circle); ``` ## ⌨️ Development Start previewing site: ```bash $ git clone git@github.com:antvis/g.git $ cd g $ yarn install $ yarn start ``` ### API Spec Start a dev-server on root dir, eg. `http-server`: ```bash $ http-server -p 9090 ``` Open api.html on `localhost:9090/dev-docs/api.html`. ### Run test cases Build and run test cases: ```bash $ yarn build $ yarn test ``` ## Contributors | [
dengfuping](https://github.com/dengfuping)
| [
xiaoiver](https://github.com/xiaoiver)
| [
dxq613](https://github.com/dxq613)
| [
dependabot-preview[bot]](https://github.com/apps/dependabot-preview)
| [
afc163](https://github.com/afc163)
| [
zhanba](https://github.com/zhanba)
| | :-: | :-: | :-: | :-: | :-: | :-: | | [
limichange](https://github.com/limichange)
| [
entronad](https://github.com/entronad)
| [
hustcc](https://github.com/hustcc)
| [
simaQ](https://github.com/simaQ)
| [
zqlu](https://github.com/zqlu)
| [
Deturium](https://github.com/Deturium)
| | [
Yanyan-Wang](https://github.com/Yanyan-Wang)
| [
elaine1234](https://github.com/elaine1234)
| [
visiky](https://github.com/visiky)
| [
baizn](https://github.com/baizn)
| [
terence55](https://github.com/terence55)
| [
budlion](https://github.com/budlion)
| | [
luoxupan](https://github.com/luoxupan)
| [
Leannechn](https://github.com/Leannechn)
| This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Tue Dec 07 2021 10:00:16 GMT+0800`.