@fnndsc/orrery

中文文档
0.7.0发布于 2026/10/25MITTypeScriptES Module构建来源已验证近 30 天下载 2158

The model of the heavens a surface draws: layouts, drawers and controls for a space of molecules, knowing nothing of what the molecules are

原始使用文档

@fnndsc/orrery

The model of the heavens a surface draws. An orrery is the geared model of the sky on a desk: gearing computes where each body stands, brass spheres show it, a crank sets it turning. This package is that instrument for ARGUS's universe and DAG views, in three layers kept strictly apart, and a scene that composes them:

  • layout/ — the gearing. Pure engines (graph in, positions out), no renderer, run in a worker and tested in jest.
  • draw/ — the spheres. Draws positions with an encoding; knows nothing of layouts or the camera.
  • controls/ — the crank. Camera rig and flights, pointer gestures, picking.
  • scene/ — the instrument assembled: Orrery<N>, one three.js space a surface mounts, handed nodes with a look (state, a named paint, ember, waved), a palette and optionally a layout worker; every pick hands the surface its own node back. The scene is composed of parts beside it, each behind a small port: the settle (settle.ts), the pulse wave (wave.ts), the replay track (replayTrack.ts), the grab (grab.ts), the hover tip (hover.ts), the hierarchy settle in the worker (hierarchySettle.ts), one draw's bodies and edges (bodies.ts), where a drawn node stands (drawn.ts) and the flights a surface asks for as one word each — frame, relight, unfold, descent (flights.ts).

orrery knows nothing of ChRIS: a surface translates its own domain into orrery's encoding (ARGUS does it once, in apps/argus/src/scene/chrisLook.ts and chrisSpace.ts). The layers' imports are enforced in CI (npm run lint:orrery), which also holds every function under 150 lines (one tall screen, whole) and names a file past 1,200 as a warning. Design and journal: docs/orrery.adoc.

Private to the mise workspace until something besides ARGUS uses it.

版本与发布记录

@fnndsc/orrery 共发布 12 个版本,首次发布于 2026/09/27;过去 12 个月发布了 12 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.7.0latest2026/10/2522 天前
0.6.22026/10/151 个月前
0.6.12026/10/151 个月前
0.6.02026/10/081 个月前
0.5.02026/10/081 个月前
0.4.12026/10/071 个月前

关于 @fnndsc/orrery 的常见问题

@fnndsc/orrery 是什么?

The model of the heavens a surface draws: layouts, drawers and controls for a space of molecules, knowing nothing of what the molecules are

如何安装 @fnndsc/orrery?

在项目目录运行 npm install @fnndsc/orrery,或使用 pnpm add / yarn add / bun add。

@fnndsc/orrery 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fnndsc/orrery 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@fnndsc/orrery 可以商用吗?

@fnndsc/orrery 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fnndsc/orrery 的下载量有多少?

根据 npm 官方下载统计,@fnndsc/orrery 在 2026/10/15 – 2026/11/13 这 30 天内被下载 2,158 次,日均约 72 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fnndsc/orrery 还在维护吗?

最新版本 0.7.0 发布于 2026/10/25(22 天前);至今共发布 12 个版本,其中过去 12 个月发布了 12 个;首次发布于 2026/09/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。