@antv/g-plugin-zdog-svg-renderer
v2.0.22
Published
A G plugin of renderer implementation with Zdog
Downloads
992
Maintainers
Readme
@antv/g-plugin-zdog-svg-renderer
Use Zdog(Canvas version) to render pseudo-3D shapes.
Getting started
Use g-svg
and register this plugin.
The dirty-rectangle rendering won't work in this scenario, any change on display objects will cause fullscreen re-rendering.
import { Canvas } from '@antv/g';
import { Renderer } from '@antv/g-svg';
import { Plugin as PluginZdogSvgRenderer } from '@antv/g-plugin-zdog-svg-renderer';
// create a renderer
const renderer = new Renderer();
renderer.registerPlugin(new PluginZdogSvgRenderer());
// create a canvas & use `g-canvas`
const canvas = new Canvas({
container: 'container',
width: 600,
height: 500,
renderer,
});