Skip to content

包文档

Scientific Expression Engine 由 10 个 npm 包 组成,可按需安装。

总览

包名版本用途依赖
@sciexpr/core0.1.0AST 类型、Schema、工具函数零依赖
@sciexpr/parser0.1.1LaTeX / 化学式解析器core
@sciexpr/renderer0.1.1KaTeX / Unicode / MathML / LaTeX 渲染core, katex (peer)
@sciexpr/ai0.1.0AI Provider SPI + 内置回退core
@sciexpr/markdown0.1.1markdown-it 公式插件renderer
@sciexpr/vue0.2.1Vue 3 公式编辑器组件renderer, ai, vue (peer)
@sciexpr/chemistry0.1.0元素周期表、化学验证、反应平衡core
@sciexpr/math0.1.0符号库、希腊字母、矩阵工具core
@sciexpr/presets0.1.1常用模板(数学/化学/希腊字母/离子)core, math
@sciexpr/physics0.1.0物理常量、SI 单位、向量运算、Bra-Ketcore

依赖关系

@sciexpr/core (零依赖)
 ├── @sciexpr/parser
 ├── @sciexpr/renderer → katex (peer)
 │    ├── @sciexpr/markdown
 │    └── @sciexpr/vue → vue (peer)
 ├── @sciexpr/ai (SPI only)
 ├── @sciexpr/chemistry
 ├── @sciexpr/math
 │    └── @sciexpr/presets
 └── @sciexpr/physics

包文档

统计 (v0.5.1)

  • 10 个 npm 包
  • 313 个 单元测试
  • 26 个 Vue 组件测试
  • 22 个 性能基准测试
  • 9/9 TypeScript 编译零错误

基于 MIT 协议发布