@libraz/formulon 0.18.0 → 0.19.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.
@@ -4,7 +4,133 @@
4
4
  // workers load formulon_threads_core.js directly, not this shim (see
5
5
  // scripts/stage.mjs).
6
6
 
7
- import createFormulon from './formulon_threads_core.js';
7
+ import * as common from './common.js';
8
+ import createModule from './formulon_threads_core.js';
8
9
 
10
+ // A workbook dropped without `dispose()` frees its engine object once collected (best-effort). The held
11
+ // value is the raw object alone, which holds no reference back to its facade.
12
+ const registry = new FinalizationRegistry((raw) => raw.delete());
13
+
14
+ /**
15
+ * Loads the engine and resolves to the frozen `Formulon` object.
16
+ *
17
+ * @param {object} [options] `FormulonOptions`: `locateFile`, `print`, `printErr`, `wasm`; any other key, or a
18
+ * key of the wrong type, rejects with a `TypeError`.
19
+ * @returns {Promise<object>}
20
+ */
21
+ export function createFormulon(options) {
22
+ return common.loadFormulon(createModule, options, common, registry);
23
+ }
9
24
  export default createFormulon;
10
- export * from './common.js';
25
+
26
+ // The value tables, the error classes, `enumName`, `toNative` and `mergeFunctionMetadata`;
27
+ // everything else is a member of the `Formulon` object.
28
+ export {
29
+ AnchorEditAs,
30
+ AnchorKind,
31
+ BlanksAs,
32
+ BorderStyle,
33
+ CalcMode,
34
+ CellShift,
35
+ CfDataBarAxisPosition,
36
+ CfDataBarDirection,
37
+ CfMatchKind,
38
+ CfRuleType,
39
+ CfValueObjectType,
40
+ ChartAxisCrosses,
41
+ ChartAxisKind,
42
+ ChartAxisPosition,
43
+ ChartBarDirection,
44
+ ChartDomain,
45
+ ChartExtendedLayout,
46
+ ChartGrouping,
47
+ ChartLabelPosition,
48
+ ChartLegendPosition,
49
+ ChartLineDash,
50
+ ChartLineEndSize,
51
+ ChartLineEndType,
52
+ ChartMarkerSymbol,
53
+ ChartPlotType,
54
+ ChartPointState,
55
+ ChartRole,
56
+ ChartSeriesDirection,
57
+ ChartSourceKind,
58
+ ChartTickLabelPosition,
59
+ ChartTitleKind,
60
+ CollationStrength,
61
+ ColorContext,
62
+ ColorKind,
63
+ ColorResolution,
64
+ ComparisonOperator,
65
+ CompatibilityVersion,
66
+ DatePeriod,
67
+ DateTimeGrouping,
68
+ DisplayStatus,
69
+ DrawingObjectKind,
70
+ DynamicFilterType,
71
+ EffectiveStyleSource,
72
+ ErrorCode,
73
+ ErrorDisplayName,
74
+ ExcelError,
75
+ ExcelPicture,
76
+ ExternalLinkKind,
77
+ enumName,
78
+ FillPattern,
79
+ FilterKind,
80
+ FontFamily,
81
+ FontScheme,
82
+ FontVerticalAlign,
83
+ FormulonError,
84
+ FunctionAvailability,
85
+ GeometryMode,
86
+ GradientType,
87
+ HorizontalAlign,
88
+ IconSetName,
89
+ ImageFormat,
90
+ LocaleDateOrder,
91
+ LogLevel,
92
+ mergeFunctionMetadata,
93
+ PageOrder,
94
+ PageOrientation,
95
+ PaperSize,
96
+ ParseErrorCode,
97
+ PhoneticAlignment,
98
+ PhoneticType,
99
+ PIVOT_VALUES_FIELD,
100
+ PivotAggregation,
101
+ PivotAxis,
102
+ PivotCalendar,
103
+ PivotCellExpansion,
104
+ PivotCellKind,
105
+ PivotDatePeriod,
106
+ PivotFilterKind,
107
+ PivotReportLayout,
108
+ PivotShowAsBase,
109
+ PivotShowValuesAs,
110
+ PivotSortOrder,
111
+ ReadingOrder,
112
+ RefMode,
113
+ ShapeTextVert,
114
+ SheetKind,
115
+ SheetViewMode,
116
+ SheetVisibility,
117
+ SlicerCrossFilter,
118
+ SlicerSortOrder,
119
+ SortBy,
120
+ SortMethod,
121
+ SparklineAxisType,
122
+ SparklineType,
123
+ SpillCause,
124
+ StatusCode,
125
+ TableStyleElementType,
126
+ TableTotalsRowFunction,
127
+ ThemeSource,
128
+ toNative,
129
+ UnderlineStyle,
130
+ ValidationErrorStyle,
131
+ ValidationType,
132
+ ValueKind,
133
+ VerticalAlign,
134
+ WidthPlatform,
135
+ WorkbookFormat,
136
+ } from './common.js';
Binary file