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

@ino-cesium/presets

v0.0.27-beta.8

Published

集中管理 ino-cesium 所有默认值(颜色、动画、效果参数、材质图片)的纯数据包。

Readme

@ino-cesium/presets

集中管理 ino-cesium 所有默认值(颜色、动画、效果参数、材质图片)的纯数据包。

定位

  • 第 0 层(与 @ino-cesium/common 同级),零 @ino-cesium/* 依赖
  • 纯 TypeScript 数据常量 + 预设管理,无 Cesium 依赖
  • 作为 material / html-label / draw 三个包的单一数据源

模块组织

src/
├── palette.ts              公共色板(basePalette,所有默认色的单一源头)
├── material/               材质预设(MATERIAL_DEFAULTS + MaterialImage)
├── html-label/             标签预设(DEFAULT_LABEL_CONFIG + DEFAULT_POINT_CONFIGS)
├── draw/                   绘制预设(DEFAULT_STYLE + 8 个内置主题预设)
├── types.ts                公共类型(InoPreset, InoThemePreset, DeepPartial)
├── merge.ts                deepMergePreset 工具
├── registry.ts             注册表 + getInoPreset / setInoPreset
├── default-preset.ts       完整默认预设
└── index.ts                主入口

色系统一

所有默认色从 basePalette 派生:

  • 主色系primary / surface / depthFail / outline / material / materialFrom / materialTo):绿色系,随主题切换变化
  • 雷达类独立色radarScan / radarBg / radarSector):不随主色系变化
  • 纹理色 / 标签色:独立黑白配色,不经色板

改色板即改全部默认色。

主题切换

import { setInoPreset, getInoPreset } from '@ino-cesium/presets'

// 切换到内置主题(只影响之后新建的图元)
setInoPreset('builtin:ocean-blue')

// 获取当前生效的完整预设(defaultPreset + 当前主题覆盖)
const preset = getInoPreset()

第一阶段 setInoPreset() 只影响之后新建的图元,已创建的图元不会自动更新。