Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/g-plugin-svg-renderer

Package Overview
Dependencies
Maintainers
53
Versions
257
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

  • 1.0.0-alpha.26
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
860
decreased by-53.41%
Maintainers
53
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 08 Nov 2021

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