Socket
Socket
Sign inDemoInstall

@antv/g-plugin-svg-renderer

Package Overview
Dependencies
Maintainers
0
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-plugin-svg-renderer

A G plugin of renderer implementation with SVG


Version published
Weekly downloads
1.2K
decreased by-21.82%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 27 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc