@bryntum/chronograph

中文文档
2.0.3发布于 2021/11/01MITES Module近 30 天下载 2856

Reactive computational engine, with novel and unique properties

原始使用文档

ChronoGraph

Chronograph is an open-source reactive state management system, implemented in TypeScript and developed at Bryntum. It powers the business logic of the Bryntum Gantt.

ChronoGraph has the following features:

  • Cancelable transactions
  • O(1) undo/redo
  • Lazy/strict, sync/async computations
  • Data branching
  • Mixed computational unit (user input/calculated value)
  • Unlimited stack depth
  • Disciplined approach to cyclic computations
  • Entity/Relation framework

And the following features are very feasible:

  • Possibility to split the whole computation into chunks (think requestAnimationFrame)
  • Possibility for breadth-first computation (think network latency)
  • Mapping to SQL
  • Mapping to GraphQL

Reactive computations has become a popular trend recently, popularized by the React, Vue and Angular triade. However, all of the latter are user interface frameworks.

ChronoGraph, in contrast, focuses on reactive computations, describing generic data graphs (such as Gantt project plans). It is designed to handle extremely large graphs - up to several hundred thousands "atoms". It also includes a small Entity/Relation framework, which maps to regular ES6 classes.

Installation

npm install @bryntum/chronograph --save 

Documentation

You should be able to quickly pick up the base concept of reactivity from the Basic features guide.

To find out about the remaining (and most interesting) features of ChronoGraph, continue to the Advanced features guide.

The guides contain extensive references to the API docs

The API surface is currently intentionally small and some features are not documented. Please reach out if you need something specific.

Benchmarks

ChronoGraph aims to have excellent performance. To reason about it objectively, we wrote a benchmark suite. More details in the Benchmarks guide.

Connect

We welcome all feedback. Please tell us what works well in ChronoGraph, what causes trouble and any other features you would like to see implemented.

Please report any found bugs in the issues tracker

Ask questions in the forum

Chat live at Discord

Follow the development blog

COPYRIGHT AND LICENSE

MIT License

Copyright (c) 2018-2020 Bryntum, Nickolay Platonov

版本与发布记录

@bryntum/chronograph 共发布 9 个版本,首次发布于 2020/03/18;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.0.3latest2021/11/015 年前
2.0.22021/10/285 年前
2.0.12021/07/015 年前
1.0.32021/06/105 年前
1.0.22020/05/286 年前
1.0.12020/04/086 年前

关于 @bryntum/chronograph 的常见问题

@bryntum/chronograph 是什么?

Reactive computational engine, with novel and unique properties

如何安装 @bryntum/chronograph?

在项目目录运行 npm install @bryntum/chronograph,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typescript-mixin-class(^0.0.3)、typescript-serializable-mixin(^0.0.3)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@bryntum/chronograph 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bryntum__chronograph 是否存在。

@bryntum/chronograph 支持 ESM 还是 CommonJS?

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

@bryntum/chronograph 可以商用吗?

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

@bryntum/chronograph 的下载量有多少?

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

@bryntum/chronograph 还在维护吗?

最新版本 2.0.3 发布于 2021/11/01(5 年前);至今共发布 9 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/03/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。