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 🙏

© 2026 – Pkg Stats / Ryan Hefner

datav-particle

v1.0.4

Published

![datav-particle logo][logo]

Downloads

9

Readme

![datav-particle logo][logo]

[datav-particle - 一个][vjs]

[![Build Status][travis-icon]][travis-link] [![Coverage Status][coveralls-icon]][coveralls-link] Greenkeeper badge [![Slack Status][slack-icon]][slack-link]

[![NPM][npm-icon]][npm-link]

datav-particle 是一个粒子特效插件库.

Table of Contents

快速上手

<script src="******************/datav-partice.umd.js"></script>

或者

<script >
import * as DatavParticle from 'datav-partice'
</script>

获取最新的项目代码请查看datav-particle Github.

接下来,使用datav-partice就像创建一个<div>元素一样简单 只需要引入datav-partice

全局引入【不建议】

<div id="rise" ref="rise" style="width: 1920px;height: 1080px;"></div>
<script >
import * as DatavParticle from 'datav-partice'

new DatavParticle.textLine({
  el:document.getElementById("datav-partice"),
  textColor:"#adcf12",
  textSize:200,
  speed: 0.2
})
</script>

按需引入【建议】

<div id="rise" ref="rise" style="width: 1920px;height: 1080px;"></div>
<script >
import {textLine} from 'datav-partice'
new textLine({
  el:document.getElementById("datav-partice"),
  textColor:"#adcf12",
  textSize:200,
  speed: 0.2
})
</script>

datav-partice粒子特效方法:

rise 配置项

image

  • el - 必传 document.getElementById("datavPartice")
  • size- 气泡数量 默认为 100
  • background - canvas 背景色支持渐变 默认为 linear-gradient(to right, #0cebeb, #20e3b2, #29ffc6)
  • speed - 气泡上升速度 默认为 0.2
  • min - 气泡最小半径 默认为 1
  • max - 气泡最大半径 默认为 10
{
    el:document.getElementById("datavPartice"),
    size:90,
    speed:0.2,
    min:1,
    max:10,
    background: 'linear-gradient(to right, #0cebeb, #20e3b2, #29ffc6)'
}

textLine 配置项

image

  • el - 必传 document.getElementById("datavPartice")
  • text - 文字 默认为 DatavPartice
  • background - canvas 背景色支持渐变 默认为 linear-gradient(to right, #0cebeb, #20e3b2, #29ffc6)
  • speed - 气泡上升速度 默认为 0.2
  • min - 气泡最小半径 默认为 1
  • max - 气泡最大半径 默认为 10
{
    el:document.getElementById("datavPartice"),
    size:90,
    speed:0.2,
    min:1,
    max:10,
    background: 'linear-gradient(to right, #0cebeb, #20e3b2, #29ffc6)'
}