@univerjs/engine-formula 0.21.1 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,29 +1,38 @@
1
1
  # @univerjs/engine-formula
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs/engine-formula?style=flat-square)](https://npmjs.com/package/@univerjs/engine-formula)
4
+ [![license](https://img.shields.io/npm/l/@univerjs/engine-formula?style=flat-square)](https://npmjs.com/package/@univerjs/engine-formula)
5
+ [![downloads](https://img.shields.io/npm/dm/@univerjs/engine-formula?style=flat-square)](https://npmjs.com/package/@univerjs/engine-formula)
6
+
7
+ `@univerjs/engine-formula` is Univer's formula engine. It parses formulas, manages dependencies, calculates results, and exposes services used by sheet formula packages.
8
+
3
9
  ## Package Overview
4
10
 
5
- | Package Name | UMD Namespace | Version | License | Downloads | Contains CSS | Contains i18n locales |
6
- | --- | --- | --- | --- | --- | :---: | :---: |
7
- | `@univerjs/engine-formula` | `UniverEngineFormula` | [![][npm-version-shield]][npm-version-link] | ![][npm-license-shield] | ![][npm-downloads-shield] | ❌ | ❌ |
11
+ | Package | UMD global | CSS | Locales | Facade entry |
12
+ | --- | --- | :---: | :---: | :---: |
13
+ | `@univerjs/engine-formula` | `UniverEngineFormula` | No | No | Yes |
8
14
 
9
- ## Introduction
15
+ ## Installation
10
16
 
11
- The `@univerjs/engine-formula` is a formula engine that provides fundamental capabilities for formula computation, including but not limited to: formula string parsing, formula calculation, and formula dependency analysis.
17
+ ```sh
18
+ pnpm add @univerjs/engine-formula
19
+ # or
20
+ npm install @univerjs/engine-formula
21
+ ```
12
22
 
13
- ## Usage
23
+ Keep all `@univerjs/*` packages on the same version.
14
24
 
15
- ### Installation
25
+ ## Usage
16
26
 
17
- ```shell
18
- # Using npm
19
- npm install @univerjs/engine-formula
27
+ ```ts
28
+ import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
20
29
 
21
- # Using pnpm
22
- pnpm add @univerjs/engine-formula
30
+ univer.registerPlugin(UniverFormulaEnginePlugin);
23
31
  ```
24
32
 
25
- <!-- Links -->
26
- [npm-version-shield]: https://img.shields.io/npm/v/@univerjs/engine-formula?style=flat-square
27
- [npm-version-link]: https://npmjs.com/package/@univerjs/engine-formula
28
- [npm-license-shield]: https://img.shields.io/npm/l/@univerjs/engine-formula?style=flat-square
29
- [npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs/engine-formula?style=flat-square
33
+ ## Resources
34
+
35
+ - [Documentation](https://docs.univer.ai)
36
+ - [NPM package](https://npmjs.com/package/@univerjs/engine-formula)
37
+ - [GitHub repository](https://github.com/dream-num/univer)
38
+
package/lib/cjs/facade.js CHANGED
@@ -4,7 +4,7 @@ let _univerjs_core = require("@univerjs/core");
4
4
  let _univerjs_engine_formula = require("@univerjs/engine-formula");
5
5
  let rxjs = require("rxjs");
6
6
 
7
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorateParam.js
7
+ //#region \0@oxc-project+runtime@0.129.0/helpers/decorateParam.js
8
8
  function __decorateParam(paramIndex, decorator) {
9
9
  return function(target, key) {
10
10
  decorator(target, key, paramIndex);
@@ -12,7 +12,7 @@ function __decorateParam(paramIndex, decorator) {
12
12
  }
13
13
 
14
14
  //#endregion
15
- //#region \0@oxc-project+runtime@0.124.0/helpers/decorate.js
15
+ //#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
16
16
  function __decorate(decorators, target, key, desc) {
17
17
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
18
18
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);