@antv/g-plugin-svg-renderer
A G plugin of renderer implementation with SVG
Last updated 3 years ago by panyuqi .
MIT · Repository · Bugs · Original npm
$ cnpm install @antv/g-plugin-svg-renderer 
SYNC missed versions from official npm registry.

@antv/g-plugin-svg-renderer

使用 SVG 绘制各类图形。

  • mounted 使用 DOM API 创建 SVGElement
  • unmounted 移除 SVGElement
  • renderFrame 对于每一个图形,应用变换,设置 SVGElement 属性
  • attributeChanged 更新 SVGElement 属性。如果是 z-index 改变,需要对 SVGElement 重新排序

使用方式

import { Plugin } from '@antv/g-plugin-svg-renderer';

// create a renderer
const svgRenderer = new SVGRenderer();
svgRenderer.registerPlugin(new Plugin());

Current Tags

  • 1.8.39                                ...           latest (3 years ago)

5 Versions

  • 1.8.39                                ...           3 years ago
  • 1.1.8-alpha.1                                ...           3 years ago
  • 1.8.5                                ...           3 years ago
  • 1.0.0-alpha.38                                ...           4 years ago
  • 1.0.5                                ...           4 years ago

Copyright 2013 - present © cnpmjs.org