react-svgmt:用于React的SVG加载和操纵工具

时间:2021-04-01 01:30:18
【文件属性】:
文件名称:react-svgmt:用于React的SVG加载和操纵工具
文件大小:183KB
文件格式:ZIP
更新时间:2021-04-01 01:30:18
JavaScript React-svgmt react-svgmt(React的SVG管理工具) 安装 npm install react-svgmt 用法 导入SvgLoader和SvgProxy元素 import { SvgLoader , SvgProxy } from 'react-svgmt' ; 示例:创建一个列表CSS选择器并更新每个选择器 function App ( ) { //We want to update only elements that match this selectors const selectors = [ "rect:nth-child(1)" , "rect:nth-child(4)" ] ; return ( < div xss=removed> < SvgLoader width = "100" height
【文件预览】:
react-svgmt-master
----.travis.yml(17B)
----.eslintrc(183B)
----.nvmrc(6B)
----.babelrc(45B)
----index.js(41B)
----package.json(2KB)
----__tests__()
--------image.png(1KB)
--------text.svg(2KB)
--------testapp.js(6KB)
--------index.html(339B)
--------3.svg(1KB)
--------runtests.sh(180B)
--------1.svg(806B)
--------2.svg(761B)
----cypress()
--------plugins()
--------support()
--------integration()
----webpack.test.config.js(914B)
----LICENSE(1KB)
----dist()
--------index.js(37KB)
----src()
--------svg-proxy.js(5KB)
--------index.js(215B)
--------react-svg2.js(3KB)
--------svg-loader.js(2KB)
--------svg-context.js(101B)
--------addons()
--------svg-injector.js(16KB)
----.gitignore(55B)
----webpack.config.js(1KB)
----CHANGELOG.md(877B)
----.circleci()
--------config.yml(945B)
----cypress.json(20B)
----README.md(3KB)
----yarn.lock(385KB)
----test-setup.js(123B)

网友评论