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

@zwm233/ktw3d

v2.9.12

Published

KtwEarth (KtwEarth for Cesium)三维地球平台,使用前需要先安装@ktw/cesium和@turf/turf

Readme

ktw3d

基于 cesium 封装的 js 库

首次运行前安装依赖

npm installcnpm install

相关依赖

核心依赖库: Cesium
部分依赖库(非必须): turf(仅部分功能中使用以下 6 个方法: area 求面积, rhumbBearing 求角度, bezierSpline 计算曲线,buffer 缓冲分析,centerOfMass 计算中心点, booleanPointInPolygon 判断点在面内, booleanClockwise 判断是否是顺时针, lineString 将坐标集合转为线段

版本说明

2.4.0

初始版本

2.9.11

相较于上个版本作了一些功能升级,其中破坏式更新包含:

  • 根据 polygon 生成淹没分析的卡顿得到了解决,getHeightRange改成了回调方式
  • Video2D进行了重构

202209

右键菜单栏,“场景设置”新增“开启抗锯齿”效果

202210

  • 优化雷电效果、下雨效果
  • 新增毛玻璃材质,详情见示例“毛玻璃”
  • 3dtiles 新增自定义灯光(目前还不适用于部分模型)

202211

  • 视频空间投射类Video2D重构,支持参数更友好,兼容Video2D类参数
  • 默认内置一套加载 3dtiles 的最优参数

202212

  • 添加反射水面类 WaterReflect
  • 添加对象泛光类 BloomEffect

202301

  • 添加模型后处理类 ModelPostProcess。支持模型点光源,支持给模型后期贴图(适用于白模)
  • 修改 DrawControl 类的 circle 和 rectangle 绘制方式,兼容二维交互模式,即把拖动事件改成鼠标左键后拖动事件。

202302

  • 添加影像、矢量图层主题修改类,用于修改图层颜色

202303

  • 解决可视域清除后,内存不销毁的问题
  • 解决可视域和模型压平,GPU负载过高的问题
  • 增加前端缓存
  • 解决大数据下模型压平无效的问题

202304

  • 解决大数据下淹没分析、裁剪分析(clip)无效的问题
  • 优化大数据下裁剪、淹没、压平的高度显示问题
  • 优化淹没分析(polygon模拟)的显示效果
  • 模型后处理类增加模型积雪效果
  • 优化雷电倾斜视角的边缘展示效果
  • createLayer方法增加supermap_rest服务类型加载

202306

  • 优化建筑点光源效果
  • 集成建筑聚光灯效果
  • 更改内部地形外网地址
  • 集成阴影率分析

202307

  • supermap_rest,兼容带token的url
  • 添加通过tween的方式来实现漫游效果
  • 添加视椎体实体

202308

  • 添加对象描边效果
  • 添加后处理灯光效果
  • 完善后处理积雪效果
  • 优化后处理的倒影效果