@truecalc/core 6.1.0 → 7.0.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/package.json +1 -1
- package/truecalc_wasm.d.ts +23 -1
- package/truecalc_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@truecalc/core",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Spreadsheet formula engine for the browser — Google Sheets–compatible formula evaluator compiled to WebAssembly",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/truecalc_wasm.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* A parsed sparkline render spec on the WASM surface. `data` points and
|
|
5
|
+
* option values are ordinary [`EvalResult`] cells (a blank cell inside the
|
|
6
|
+
* source range is `empty`).
|
|
7
|
+
*/
|
|
8
|
+
export interface SparklineSpecResult {
|
|
9
|
+
/**
|
|
10
|
+
* `line` (the default), `bar`, `column` or `winloss`.
|
|
11
|
+
*/
|
|
12
|
+
charttype: string;
|
|
13
|
+
/**
|
|
14
|
+
* The points to plot, row-major.
|
|
15
|
+
*/
|
|
16
|
+
data: EvalResult[];
|
|
17
|
+
/**
|
|
18
|
+
* The remaining option key/value pairs, in the order given, keys
|
|
19
|
+
* lower-cased. Keys the engine does not recognise are kept, not rejected:
|
|
20
|
+
* Sheets ignores an unknown option key rather than erroring.
|
|
21
|
+
*/
|
|
22
|
+
options: [string, EvalResult][];
|
|
23
|
+
}
|
|
24
|
+
|
|
3
25
|
/**
|
|
4
26
|
* The result of evaluating a formula on the WASM surface.
|
|
5
27
|
*
|
|
@@ -25,7 +47,7 @@
|
|
|
25
47
|
* - `{ type: \"array\", value: [ EvalResult, ... ] }` -- recursive; a 2-D result is
|
|
26
48
|
* `{ type: \"array\", value: [ { type: \"array\", value: [ <cells> ] }, ... ] }`
|
|
27
49
|
*/
|
|
28
|
-
export type EvalResult = { type: "number"; value: number } | { type: "text"; value: string } | { type: "bool"; value: boolean } | { type: "date"; value: number } | { type: "zoned"; value: string } | { type: "error"; error: string; message?: string } | { type: "empty" } | { type: "array"; value: EvalResult[] };
|
|
50
|
+
export type EvalResult = { type: "number"; value: number } | { type: "text"; value: string } | { type: "bool"; value: boolean } | { type: "date"; value: number } | { type: "zoned"; value: string } | { type: "error"; error: string; message?: string } | { type: "empty" } | { type: "array"; value: EvalResult[] } | { type: "sparkline"; value: SparklineSpecResult };
|
|
29
51
|
|
|
30
52
|
export interface FunctionInfo {
|
|
31
53
|
name: string;
|
package/truecalc_wasm_bg.wasm
CHANGED
|
Binary file
|