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

vue-pano-mobile

v1.4.4

Published

WebGL panorama component for vue.js

Readme

vue-pano

npm version

English document

基于 WebGL 的全景漫游 vue 组件,支持移动设备。

截图

扫描如下二维码或访问链接查看演示。

二维码

全景图片拍摄和准备

全景图片可使用三脚架固定的相机配合广角镜头拍摄多个角度的照片,然后通过工具后期拼接:然后经过 Microsoft ICE 或 等工具进行拼接等后期处理:《使用 Microsoft ICE 制作全景照片》

几个可用的拼接工具:

  • Microsoft ICE (免费,仅支持 Windows)
  • ppwwyyxx/OpenPano (开放源代码,跨平台)
  • PTGui (收费,支持 Mac OSX 和 Windows)
  • Hugin (开放源代码,跨平台)
  • Auto Stitch(提供免费版和专业版,支持 Mac OSX 和 Windows)

此外 Google 的 PhotoSphere 应用可以使用 Android 或 iPhone 手机拍摄全景照片并导出,官方版本的 Android 系统相机集成了这个功能。手持设备因为缺少三脚架,在室内等狭小空间拍摄后拼图效果不理想。市面上还有一些专门的全景相机可以直接拍摄。

两种纹理的区别

vue-pano 使用立方体投影的纹理。如果您的图片素材是 equirectangular 的投影,那么需要使用 PtGui 等工具进行转换。或使用我的另一个工具 glskybox。纹理图片在不同方向一共有 6 张,可参考 example/assets/pano 目录下的示例。

vue 组件

库仅导出了一个 Pano 组件。

import Pano from 'vue-pano'

属性

支持的属性有:

  • width, height:宽度和高度
  • title: 全景图标题
  • bundle:全景图纹理路径
  • format:全景图图片扩展名
  • debug:调试模式

代码示例

<script>
import Pano from 'vue-pano'
...

export default {
  components: { Pano }
}
</script>
<template>
  <pano title="茶水间" width="720" height="480" bundle="example/assets/pano/pantry/" format="jpg"></pano>
</template>

TODO

  • [ ] 将 bundle 改为 json,单独定义六面的 url
  • [ ] 渐进式载入
  • [ ] 图片进度条

许可

MIT