Package Exports
- @antv/g
- @antv/g/es/index.js
- @antv/g/lib
- @antv/g/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@antv/g) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
English | 简体中文
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.
import { Canvas, Circle } from '@antv/g';It is necessary to work with 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