# @antv/g

> A core module for rendering engine implements DOM API.

Latest version **6.3.1** (published 2025-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @antv/g
pnpm add @antv/g
yarn add @antv/g
bun add @antv/g
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.3.1 |
| Published | 2025-12-24 |
| First published | 2017-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 2.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1215 |
| Author | https://github.com/orgs/antvis/people |
| Maintainers | lvisei, freestyle21, soundquiet, elaine.q.10, sturuby, sakuya223, serializedowen, xdzhao, yangzhanmei, wjgogogo, leungwensen, dori, iaaron, yard, simaq, dxq613, intchous, susan_ann, jinke.li, lzxue, army8735, atool, baizn, dengfuping, neoddish, jeffy2012, zqlu, afc163, pomelo-nwu, kopiluwaky, ccnuzindex, panyuqi, bubkoo, zengyue, kasmine, boyu.zlj, l1ud0ngq1, newbyvector, winniexing, chenluli, kn9117, xdddst, semious2020, esora, nadia_liu, bbsqq, mxz96102, openwayne, pearmini, pddpd, yiqianyao, zhanba, cxxxxxn, laixingui.lxg, susiwen8, yanxiong, zeyuwang, rainy25ghz, zhangjunjie-loki, flash1, yisi.wang, dreammy23, biupiubiupiu, basketduck, xuying1027, banxuan, bqxbqxbqx, alex_zjt, duxinyue023, wang1212, leondt1, gaofuhong, xcf(-_-), boyyangzai, siqishen, interstellarmt, moayuisuda |
| Keywords | antv, g, rendering engine |

## Links

- npm: https://www.npmjs.com/package/@antv/g
- Repository: https://github.com/antvis/g
- Homepage: https://github.com/antvis/g#readme
- Issues: https://github.com/antvis/g/issues
- npm.io page: https://npm.io/package/@antv/g

## Dependencies (5)

- [gl-matrix](https://npm.io/package/gl-matrix.md) ^3.4.3
- [@antv/util](https://npm.io/package/@antv/util.md) ^3.3.5
- [html2canvas](https://npm.io/package/html2canvas.md) ^1.4.1
- [@antv/g-lite](https://npm.io/package/@antv/g-lite.md) 2.7.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.25.6

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 6.3.1 (latest) — 2025-12-24
- 6.1.29-beta.0 (beta) — 2025-12-15
- 6.0.15-alpha.0 (alpha) — 2024-10-21
- 6.0.14 (next) — 2024-09-29
- 6.3.0 — 2025-12-22
- 6.2.1 — 2025-12-12
- 6.2.0 — 2025-12-10
- 6.1.30 — 2025-10-13
- 6.1.29 — 2025-10-13
- 6.1.28 — 2025-07-30
- 6.1.27 — 2025-07-18
- 6.1.26 — 2025-06-27
- 6.1.25 — 2025-05-23
- 6.1.24 — 2025-05-09
- 6.1.23 — 2025-04-14
- … 372 more at https://npm.io/package/@antv/g/versions

## README

English | [简体中文](./README-zh_CN.md)

The graphics and event system is compatible with the DOM Element & Event API, and the animation system is compatible with the Web Animations API, so it can be adapted to existing Web-side ecologies such as D3, Hammer.js gesture library, etc. at a very low cost.

The usage is as follows, providing the following core objects and APIs.

```js
import { Canvas, Circle } from '@antv/g';
```

It is necessary to work with [Renderer](https://g-next.antv.vision/en/docs/api/renderer/renderer) to draw the graphics out.

### Canvas

<https://g-next.antv.vision/en/docs/api/canvas>

### Camera

<https://g-next.antv.vision/en/docs/api/camera>

### DisplayObject

<https://g-next.antv.vision/en/docs/api/basic/display-object>

### Events

<https://g-next.antv.vision/en/docs/api/event>

### Animation

<https://g-next.antv.vision/en/docs/api/animation/waapi>

## Inspired by

- [Sprite.js](https://github.com/spritejs/spritejs)
- [Theia 中的服务和扩展点](https://theia-ide.org/docs/services_and_contributions)

---
_Source: https://npm.io/package/@antv/g · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
