base-svg-element:SVG元素的基础元素层

时间:2021-05-21 22:40:36
【文件属性】:
文件名称:base-svg-element:SVG元素的基础元素层
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-21 22:40:36
JavaScript 基本SVG元素 SVG元素的上的一层。 例子 创建一个SVG元素: var BaseElement = require ( 'base-svg-element' ) var inherits = require ( 'inherits' ) function Square ( attach ) { if ( ! ( this instanceof Square ) ) return new Square ( attach ) BaseElement . call ( this , attach ) this . tagName = 'svg' this . className = 'square' this . viewBox = '0 0 100 100' } inherits ( Square , BaseElement ) Square . prototype
【文件预览】:
base-svg-element-master
----README.md(954B)
----.gitignore(13B)
----index.js(596B)
----package.json(672B)

网友评论