npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

amazingsvg

v0.0.5

Published

修复组件props相互影响问题

Downloads

3

Readme

一、起步

(1)安装

​ npm install amazingsvg

​ 或

​ yarn add amazingsvg

(2)引入

​ import Amazingsvg from 'amazingsvg';

​ import "amazingsvg/lib/amazingsvg.css"

二、使用

基础动画示例

Image text

(1)Arrow

  • 箭头悬浮
 <Amazingsvg.Arrow  />
  • 属性

| name | 名称 | 类型 | | ----------- | -------- | ---------------- | | width | 宽度 | number | string | | height | 高度 | number | string | | itemHeight | 成员高度 | number | string | | number | 数量 | number | string | | fillColor | 填充颜色 | string | | borderColor | 边框颜色 | string | | dep | 下沉深度 | number | string |

(2) Decoration2

  • 旋转盘
 <Amazingsvg.Decoration2  />
  • 属性

| name | 名称 | 类型 | | ----------- | -------- | ---------------- | | width | 宽度 | number | string | | height | 高度 | number | string | | outColor | 外圈颜色 | string | | number | 数量 | number | string | | insideColor | 内圈颜色 | string | | lineColor | 内线颜色 | string |

(3)Decoration5

  • 标题伸缩
<Amazingsvg.Decoration5  />
  • 属性

| name | 名称 | 类型 | | ------ | ---- | ---------------- | | width | 宽度 | number | string | | height | 高度 | number | string | | color | 颜色 | string |

(4)EnergyBar

  • 能量条
<Amazingsvg.EnergyBar  />
  • 属性

| name | 名称 | 类型 | | ----------- | ------------------------ | ---------------- | | width | 宽度 | number | string | | height | 高度 | number | string | | number | 数量 | number | string | | strokeWidth | 边框宽度 | number | string | | fillColor | 填充颜色 | string | | fromColor | 渐变开始颜色 | string | | toColor | 渐变目标颜色 | string | | borderColor | 边框颜色 | string | | itemWidth | 成员宽度 | number | string | | space | 成员间隙 | number | string | | speed | 速度(字面属性,尚未完成) | number | string |

(5)Mask

  • 流光遮罩边框
<Amazingsvg.Mask  />
  • 属性

| name | 名称 | 类型 | | ---------- | ------------------- | ---------------- | | width | 宽度 | number | string | | height | 高度 | number | string | | color | 颜色 | string | | isRadius | 是否圆角(默认false) | number | string | | lightColor | 发光颜色 | string |

(6)mapPath

  • 自定义轨迹

Image text

<Amazingsvg.MapPath  />
  • 属性

| name | 名称 | 类型 | | ------------- | -------------------------- | ---------------- | | gradientColor | 渐变颜色 | string | | dur | 持续时间 | number | string | | r | 圆半径 | number | string | | color | 路径颜色 | string | | strokeWidth | 边框宽度 | number | string | | from | 虚线空白范围 | string | | to | 虚线线条范围 | string | | isPathAnimate | 是否启用路径动画(默认true) | boolean | | isMask | 是否启用遮罩(默认true) | boolean | | isPath | 是否展示路径(默认false) | boolean |