You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
|
4 months ago
|
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)
|