@antv/g-plugin-svg-renderer
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

@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());

/@antv/g-plugin-svg-renderer/

    Package Sidebar

    Install

    npm i @antv/g-plugin-svg-renderer

    Weekly Downloads

    1,253

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    483 kB

    Total Files

    28

    Last publish

    Collaborators

    • xuying1027
    • lvisei
    • yisi.wang
    • basketduck
    • biupiubiupiu
    • flash1
    • dreammy23
    • laixingui.lxg
    • zhangjunjie-loki
    • rainy25ghz
    • zeyuwang
    • yanxiong
    • susiwen8
    • 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