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 🙏

© 2025 – Pkg Stats / Ryan Hefner

q-viewer

v1.0.32

Published

mapbox 模板

Readme

DTW 模型展示与空间分析

模块用于展示项目相关模型,实现的功能有:

  • fbx,3dtiles 模型的展示, 以及部分空间分析小工具

ChangeLogs

1.0.32(Nov 9, 2022)

  • 优化fbx相关逻辑
  • 去除无效引用

1.0.31(Nov 9, 2022)

  • 去除无效rm
  • vue中使用时cesium需要把libs从包中取出并放置到public文件夹下
  • 如果发布服务并不是以根目录的话,需要对该包进行配置
// 配置服务router为/space/时需要如下配置
window.CESIUM_BASE_URL = "/space/libs/Cesium/";

1.0.30(Nov 9, 2022)

  • 优化部分逻辑

1.0.3(Nov 9, 2022)

  • 解决调用组件与瓦片冲突的问题
  • 有关pick组件的优化
 controls: [{ name: "pick", position: "bottom-left", direction: "horizontal"}]

let modelViewer = new ModelViewer(...);
modelViewer.on("pick", data => {
    console.log(data);
    // {data: geojson}
})

1.0.2(Nov 4, 2022)

  • 添加Cesium测量工具
  • 添加Three剖切工具
 controls: [{ name: "clip", position: "bottom-left", direction: "horizontal"}]

1.0.1(Sep 22, 2022)

  • 修复浏览器不支持clipboard
let modelViewer = new ModelViewer(...);
modelViewer.on("share", data => {
  console.log(data);
  // {url: "http://.././tile.json"}
})

安装

npm i q-viewer -S

使用

加载 FBX 模型

// 采用threejs加载fbx
import { ModelViewer } from "q-viewer";
import "q-viewer/dist/model-viewer.css";
let modelViewer = new ModelViewer({
  container: "app",
});
modelViewer.load({
  type: "fbx",
  url: "http://localhost:8888/model-data/fbx/fbxBuilding.fbx",
});

加载 3DTiles 模型、Geoserver 图层服务

// 采用cesiumjs加载3dtiles
// 需要复制libs/Cesium/**文件夹到项目的静态资源目录
import { ModelViewer } from "q-viewer";
import "q-viewer/dist/model-viewer.css";

let modelViewer = new ModelViewer({
  container: "app",
});
modelViewer.load({
  type: "3dtiles",
  url: "http://localhost:8888/model-data/3dtiles/building/tileset.json",
});