@libraz/formulon 0.15.1 → 0.16.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 +2 -2
- package/dist/common.js +59 -0
- package/dist/formulon.d.ts +598 -23
- package/dist/formulon.wasm +0 -0
- package/dist/formulon_core.js +1 -1
- package/dist/formulon_threads.wasm +0 -0
- package/dist/formulon_threads_core.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Known differences from Excel are listed case by case in [`tests/divergence.yaml`
|
|
|
15
15
|
## What's inside
|
|
16
16
|
|
|
17
17
|
- **Formula engine** — 526 Excel function names, 511 implemented locally; dynamic arrays, `LET` / `LAMBDA`, and `REGEX*`. [Coverage](https://formulon.libraz.net/compatibility/formula-coverage)
|
|
18
|
-
- **Workbook I/O** — read, recalculate and write `.xlsx` and `.xlsb`, including styles, conditional formatting, tables, pivot tables and print layout. [File formats](https://formulon.libraz.net/compatibility/file-format-support)
|
|
18
|
+
- **Workbook I/O** — read, recalculate and write `.xlsx` and `.xlsb`, including styles, conditional formatting, tables, pivot tables, charts and print layout. [File formats](https://formulon.libraz.net/compatibility/file-format-support)
|
|
19
19
|
- **Locale profiles** — 28 Excel behavior profiles across fourteen locales on Mac and Windows hosts. [Locale profiles](https://formulon.libraz.net/compatibility/locale-profiles)
|
|
20
20
|
- **Excel oracle** — formula results are compared bit for bit against goldens captured from Mac Excel 365 in fourteen locales. [Oracle testing](https://formulon.libraz.net/compatibility/oracle-testing)
|
|
21
21
|
- **Two builds** — a single-threaded default that loads anywhere, and `@libraz/formulon/threads` for parallel recalculation. [Choosing a build](#choosing-a-build)
|
|
@@ -86,7 +86,7 @@ try {
|
|
|
86
86
|
// mac-365-de_DE [ '2', '1,5', 'WAHR' ]
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
The ids are `{mac,win}-365-{ja_JP,en_US,de_DE,fr_FR,zh_CN,ko_KR,th_TH,es_ES,es_MX,pt_BR,ru_RU,zh_TW,it_IT,nl_NL}`. Every `mac-*` profile and `win-365-ja_JP` is measured against Excel; the other `win-*` profiles are estimated from the Mac measurements. On a `mac-*` profile, text comparison, sorting, lookups and grouping follow that locale's measured Mac Excel collation; `win-*` profiles
|
|
89
|
+
The ids are `{mac,win}-365-{ja_JP,en_US,de_DE,fr_FR,zh_CN,ko_KR,th_TH,es_ES,es_MX,pt_BR,ru_RU,zh_TW,it_IT,nl_NL}`. Every `mac-*` profile and `win-365-ja_JP` is measured against Excel; the other `win-*` profiles are estimated from the Mac measurements. On a `mac-*` profile, text comparison, sorting, lookups and grouping follow that locale's measured Mac Excel collation; `win-*` profiles add the Windows word-sort rules measured on Windows Excel 365 ja-JP to that locale's collation. The profile is not saved into the file, so store the id your application targets and apply it again after loading.
|
|
90
90
|
|
|
91
91
|
For a new workbook that matches what Excel creates in a locale, use `Workbook.createForProfile(id)` instead of `createDefault`: it selects the profile and also sets the body and phonetic fonts, the localized Normal style and first sheet names, and the page margins Excel uses there.
|
|
92
92
|
|
package/dist/common.js
CHANGED
|
@@ -49,6 +49,10 @@ export const PivotShowValuesAs = Object.freeze({
|
|
|
49
49
|
PercentOfParentRow: 9,
|
|
50
50
|
PercentOfParentCol: 10,
|
|
51
51
|
PercentOfParent: 11,
|
|
52
|
+
PercentOf: 12,
|
|
53
|
+
PercentOfRunningTotal: 13,
|
|
54
|
+
RankAscending: 14,
|
|
55
|
+
RankDescending: 15,
|
|
52
56
|
});
|
|
53
57
|
export const PIVOT_SHOW_AS_BASE_PREVIOUS = 1048828;
|
|
54
58
|
export const PIVOT_SHOW_AS_BASE_NEXT = 1048829;
|
|
@@ -71,6 +75,7 @@ export const PivotDateGrouping = Object.freeze({
|
|
|
71
75
|
Second: 7,
|
|
72
76
|
});
|
|
73
77
|
export const PivotCalendar = Object.freeze({ Gregorian: 0, Japanese: 1 });
|
|
78
|
+
export const PivotSortOrder = Object.freeze({ Descending: 0, Ascending: 1, Manual: 2 });
|
|
74
79
|
export const PivotReportLayout = Object.freeze({ Compact: 0, Tabular: 1, Outline: 2 });
|
|
75
80
|
export const PivotFilterValueKind = Object.freeze({ None: -1, Int: 0, Double: 1, Text: 2 });
|
|
76
81
|
export const CfMatchKind = Object.freeze({ DifferentialFormat: 0, ColorScale: 1, DataBar: 2, IconSet: 3 });
|
|
@@ -167,6 +172,60 @@ export const DrawingObjectKind = Object.freeze({
|
|
|
167
172
|
});
|
|
168
173
|
export const AnchorKind = Object.freeze({ OneCell: 0, TwoCell: 1, Absolute: 2 });
|
|
169
174
|
export const AnchorEditAs = Object.freeze({ TwoCell: 0, OneCell: 1, Absolute: 2 });
|
|
175
|
+
export const ChartPlotType = Object.freeze({
|
|
176
|
+
Bar: 0,
|
|
177
|
+
Bar3D: 1,
|
|
178
|
+
Line: 2,
|
|
179
|
+
Line3D: 3,
|
|
180
|
+
Area: 4,
|
|
181
|
+
Area3D: 5,
|
|
182
|
+
Pie: 6,
|
|
183
|
+
Pie3D: 7,
|
|
184
|
+
Doughnut: 8,
|
|
185
|
+
OfPie: 9,
|
|
186
|
+
Scatter: 10,
|
|
187
|
+
Bubble: 11,
|
|
188
|
+
Radar: 12,
|
|
189
|
+
Stock: 13,
|
|
190
|
+
Surface: 14,
|
|
191
|
+
Surface3D: 15,
|
|
192
|
+
Chartex: 16,
|
|
193
|
+
});
|
|
194
|
+
export const ChartInsertKind = Object.freeze({ Column: 0, Bar: 1, Line: 2, Area: 3, Pie: 4, Scatter: 5, Doughnut: 6 });
|
|
195
|
+
export const ChartGrouping = Object.freeze({ Clustered: 0, Stacked: 1, PercentStacked: 2, Standard: 3 });
|
|
196
|
+
export const ChartBlanksAs = Object.freeze({ Absent: 0, Gap: 1, Zero: 2, Span: 3 });
|
|
197
|
+
export const ChartPointState = Object.freeze({ Value: 0, Gap: 1, Connect: 2 });
|
|
198
|
+
export const ChartAxisKind = Object.freeze({ Category: 0, Value: 1, Date: 2, Series: 3 });
|
|
199
|
+
export const ChartAxisCrosses = Object.freeze({ Absent: 0, AutoZero: 1, Min: 2, Max: 3, At: 4 });
|
|
200
|
+
export const ChartTitleKind = Object.freeze({ None: 0, Text: 1, Ref: 2, Auto: 3 });
|
|
201
|
+
export const ChartSeriesDirection = Object.freeze({ Auto: 0, Columns: 1, Rows: 2 });
|
|
202
|
+
export const ChartLegendPosition = Object.freeze({ None: 0, Bottom: 1, Top: 2, Left: 3, Right: 4, TopRight: 5 });
|
|
203
|
+
export const ChartLineDash = Object.freeze({ Solid: 0, Dash: 1, Dot: 2, DashDot: 3, Other: 4 });
|
|
204
|
+
export const ChartMarkerSymbol = Object.freeze({
|
|
205
|
+
None: 0,
|
|
206
|
+
Auto: 1,
|
|
207
|
+
Circle: 2,
|
|
208
|
+
Square: 3,
|
|
209
|
+
Diamond: 4,
|
|
210
|
+
Triangle: 5,
|
|
211
|
+
X: 6,
|
|
212
|
+
Star: 7,
|
|
213
|
+
Plus: 8,
|
|
214
|
+
Dot: 9,
|
|
215
|
+
Dash: 10,
|
|
216
|
+
Picture: 11,
|
|
217
|
+
});
|
|
218
|
+
export const ChartLabelPosition = Object.freeze({
|
|
219
|
+
BestFit: 0,
|
|
220
|
+
Center: 1,
|
|
221
|
+
InsideBase: 2,
|
|
222
|
+
InsideEnd: 3,
|
|
223
|
+
OutsideEnd: 4,
|
|
224
|
+
Above: 5,
|
|
225
|
+
Below: 6,
|
|
226
|
+
Left: 7,
|
|
227
|
+
Right: 8,
|
|
228
|
+
});
|
|
170
229
|
export const ThemeSource = Object.freeze({ Part: 0, Default: 1, Unparseable: 2 });
|
|
171
230
|
export const EffectiveStyleSource = Object.freeze({ Cell: 0, Row: 1, Column: 2, Default: 3 });
|
|
172
231
|
export const DisplayStatus = Object.freeze({ Ok: 0, Overflow: 1, InvalidFormat: 2 });
|