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

jjavideo3d

v1.1.3

Published

cesium地图视频投射

Readme

Cesium视频投射示例

用法

import { VideoLayer } from 'jjavideo3d'

const video3d = new VideoLayer(viewer, {
    position: { x: 117.21, y: 31.36, z: 500, },//视锥顶点坐标
    rotation: { x: -90, y: 20, },//x:视锥俯仰角(0度视锥水平,-90垂直于地面);y:视锥偏航角
    far: 1000,//视锥顶点到底面的长度
    near: 0.01,//视锥顶点到近面的长度
    url: videoHTMLDom,//video标签/图片url
    FrustumShow: true,//是否展示视锥
    aspectRatio: e.aspectRatio,//视锥底面长宽比
    fov: e.fov,//aspectRatio>=1,视锥水平视场角;aspectRatio<1,视锥垂直视场角
    lineColor: '#28e1cb',//视锥棱线的颜色
    type: 1,//type:1视频投射,type:2图片投射
    debug: true,//是否展示gui界面调试
    wallCorrect: 10,//视频墙离视锥底面距离(大于0视频墙逐渐靠近视锥中心)

})

更新位置,角度,颜色等等参数

video3d.DoChange({
    rotation: { x: this.options_gui.x, y: this.options_gui.y },
    position: { x: this.options_gui.cX, y: this.options_gui.cY, z: this.options_gui.cH },
    fov: this.options_gui.fov,
    aspectRatio: this.options_gui.aspectRatio,
    near: this.options_gui.near,
    far: this.options_gui.far,
    lineColor: this.options_gui.lineColor,
    wallCorrect: this.options_gui.wallCorrect,
})

展示,隐藏,销毁

video3d.Show()
video3d.Hide()
video3d.Destory()

效果

视锥底面在天空时 视锥底面在地形上时