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

iv-panorama

v1.0.2

Published

![Travis](https://img.shields.io/travis/rust-lang/rust.svg) ![license](https://img.shields.io/badge/license-APACHE-blue.svg)

Downloads

6

Readme

简介

Travis license

现在随着宽带的降费提速,用户对于需要高网速、高流量的应用适应越来越强。现在 VR 也随着设备的普及慢慢进入大众,但是一个在线的 VR 应用对流量的要求也远远超过目前的运营商能提供的网速上限,特别是一些 VR 视频大户,常常推出的视频就是 10K 的大小。

现在 Web 对 VR 支持度也不是特别友好,但是,对于全景视频来说,在机器换代更新的前提下,全景在性能方面的瓶颈慢慢消失了。所以,基于此情况,该项目专门针对 720° 全景视频而开发。

特性

  • 依赖于 Three.js,需要预先挂载到 window 对象上
  • 灵活配置,内置支持陀螺仪和 touch 控制。
  • 支持灵敏度参数的动态调整
  • 使用 ES6 语法
  • 兼容 React,jQuery

安装

腾讯内部开发者,使用 tnpm 进行下载:

tnpm install iv-panorama

外部开发者,直接通过 npm 下载:

npm install iv-panorama

使用方法

通过 import 导入模块,在实例化时,传入相关的参数定义。

import VRPlayer from 'iv-panorama';

new VRPlayer({
        player: {
            url: '/test/003.mp4'
        },
        container:document.getElementById('container')
    });

如果想预览全景图片,则直接传入 image 参数:

let panorama = new VRPlayer({
    image: {
            url: './banner.png'
        },
        container:document.getElementById('container')
    });

相关的资源,在 github 仓库的 example 文件夹里面。

demo 预览

下载:

tnpm install http-server -g

然后,直接运行:

tnpm run compile

文档

API

许可证

iv-panorama is under the Apache License. See the LICENSE file for details.