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

cesium-windy-canvas

v1.1.1

Published

Cesium上建立风场动态粒子效果,可根据风速自定义颜色等功能

Downloads

19

Readme

cesium-windy-canvas

Cesium上建立风场动态粒子效果,自己封装可使用的API

已经发布插件咯 https://www.npmjs.com/package/cesium-windy-canvas npm i cesium-windy-canvas -S

效果图如下

效果杠杠的

参数讲解

| 参数名 | 参数解释 | 类型 | 默认值 | | --------------- | ------------------------------------------- | ------ | ------------------------------ | | viewer | Cesium初始化后赋值变量 | Object | null | | canvas | 风场画布 | DOM | null | | canvasContext | canvas上下文 | DOM | params.canvas.getContext('2d') | | canvasWidth | 画布宽度 | Number | 300 | | canvasHeight | 画布高度 | Number | 180 | | speedRate | 风前进速度 | Number | 100 | | extent | 风场绘制地图范围 | Array | [] | | particlesNumber | 粒子总数 | Number | 20000 | | maxAge | 每个粒子的最大生存周期 | Number | 120 | | frameTime | 每秒刷新次数 | Number | 100 | | lineWidth | 粒子线条宽度 | Number | 1 | | initExtent | 风场初始范围 | Array | [] | | calc_speedRate | 根据speedRate参数计算经纬度步进长度 | Array | [0, 0] | | windField | 风场网格 | Object | null | | particles | 风场粒子存储 | Array | [] | | animateFrame | requestAnimationFrame事件句柄,用来清除操作 | Object | null | | isdistory | 是否进行销毁 | bool | false | | windyColor | 风场颜色集合(根据风速不同设置不同颜色) | class | new WindyColor() |

教程讲解-个人博客

vue3.0+vite+Cesium使用记录

Cesium上建立风场动态粒子效果