@sheetxl/sdk 0.8.0-beta.1 → 0.8.0-beta.11
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 +1 -1
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/browser/esm/B7aUIvgUjncMMD_i.mjs +394 -0
- package/browser/esm/BFagR2JeWs74iAG3.mjs +171 -0
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +40 -0
- package/browser/esm/BLoUBId2xZpXAK_H.mjs +698 -0
- package/browser/esm/BMyDRQ716j79h_bH.mjs +86 -0
- package/browser/esm/BVDiOXGMc5_FMGfy.mjs +400 -0
- package/browser/esm/BjkCiv5Jz6WYKZeu.mjs +598 -0
- package/browser/esm/BkBhLS0l6z8sxI6D.mjs +441 -0
- package/browser/esm/BnG31I6Oj_HEtSPS.mjs +167 -0
- package/browser/esm/BoV6zPBnfqCBCqZ7.mjs +7729 -0
- package/browser/esm/BpgskG1Er_lGQ_yS.mjs +142 -0
- package/browser/esm/BtvLTTfSBdAKplVG.mjs +466 -0
- package/browser/esm/C16ycKja6zG0crV_.mjs +55580 -0
- package/browser/esm/C2VbEI_XVAoseAwa.mjs +1552 -0
- package/browser/esm/C4MqfLn9Dm-l3OIk.mjs +540 -0
- package/browser/esm/C5E6zSGAALWf61n4.mjs +199 -0
- package/browser/esm/CHU6iu_WGlm7fLET.mjs +1001 -0
- package/browser/esm/CQYjO777cmAznUzK.mjs +527 -0
- package/browser/esm/CU3DmJ-YnVVrC1_k.mjs +1123 -0
- package/browser/esm/CV5EGEjG5_-CPpP0.mjs +8212 -0
- package/browser/esm/{uyWBMSIxMlt8n5Z3.mjs → CaB7J-xgfKO2uAkG.mjs} +2 -2
- package/browser/esm/CkxWugaJFjDGZNZ-.mjs +12 -0
- package/browser/esm/ClPfI4lODvCece29.mjs +632 -0
- package/browser/esm/ClbvFbFzFzXLBKNN.mjs +193 -0
- package/browser/esm/{DlPMeIyxT9tG_WDk.mjs → Ctjb0SsxV4K4MMqG.mjs} +179 -202
- package/browser/esm/D5np__Jb1euAyaLw.mjs +7 -0
- package/browser/esm/DEiPS3Dr-s4fPbVZ.mjs +607 -0
- package/browser/esm/DLLE0FZNsKxbBzRn.mjs +128 -0
- package/browser/esm/DWNzqw7DUKwoxjri.mjs +20 -0
- package/browser/esm/{B0HS42a7lga1k1U_.mjs → Dlmig06rIo7cInRk.mjs} +2 -2
- package/browser/esm/{f2G3QRgEbvFJcoa2.mjs → DvAaxH6z_tGvrRzl.mjs} +1704 -1008
- package/browser/esm/Dyq_ivuHvlXLwPCl.mjs +12831 -0
- package/browser/esm/PcHFjNzQsE54POri.mjs +1141 -0
- package/browser/esm/S2dNNx1a5ydRnARM.mjs +367 -0
- package/browser/esm/f1IoRb7tEb0QmCSt.mjs +110 -0
- package/browser/esm/gssVX_FH1XFN-twD.mjs +210 -0
- package/browser/esm/index.mjs +1759 -1161
- package/browser/esm/nvU0ClAbf0g94YBK.mjs +1695 -0
- package/browser/esm/zlLuW405RSguy4Kn.mjs +357 -0
- package/licenses/dependencies.txt +141 -141
- package/node/esm/2Kihw_-5lVTEnwMa.mjs +1132 -0
- package/node/esm/857CIBgQgGpnqrXk.mjs +199 -0
- package/node/esm/B084DssTcdBheTp_.mjs +7966 -0
- package/node/esm/B21JjOLghRoDOrkx.mjs +134 -0
- package/node/esm/BIRq1kT7lLRzns9t.mjs +610 -0
- package/node/esm/BIwObuhTJYf0jpUa.mjs +451 -0
- package/node/esm/Bbf1Pm9Gk7YpLTvg.mjs +12 -0
- package/node/esm/BqiexuA89caYnAPz.mjs +1135 -0
- package/node/esm/BrCKGFRsX_ezFJ4B.mjs +811 -0
- package/node/esm/CCN5vD410obwdz38.mjs +405 -0
- package/node/esm/{Cku7XiUvw1xrRasi.mjs → CDHdgJXH2vS71WMc.mjs} +1 -1
- package/node/esm/CGp6VZL-gZa9Uezx.mjs +1860 -0
- package/node/esm/CNCNJNg890KdgkWh.mjs +142 -0
- package/node/esm/CZICGK_ss0HoGHCP.mjs +7 -0
- package/node/esm/CZiqiay42tFTrLI4.mjs +171 -0
- package/node/esm/CdJHUJSBRHZoryPe.mjs +360 -0
- package/node/esm/Ct3h15sCus4Tgt6M.mjs +1762 -0
- package/node/esm/CwePQwTILHHjGDkZ.mjs +1033 -0
- package/node/esm/CzXT00vrQa1_gvW9.mjs +28 -0
- package/node/esm/D1TKBVmoKGAXf37B.mjs +402 -0
- package/node/esm/D2KBymQJd1XhpeQD.mjs +540 -0
- package/node/esm/D6e2z7eZpxOJXHc7.mjs +1783 -0
- package/node/esm/D8zEN-6ZdDqDvTxM.mjs +639 -0
- package/node/esm/DNRhGK-8Tr9xcRyc.mjs +8320 -0
- package/node/esm/DOU54VsOjG-m-NyQ.mjs +210 -0
- package/node/esm/DUTskXCXref-IJnI.mjs +133 -0
- package/node/esm/D_t5AUxSm7_icjzq.mjs +638 -0
- package/node/esm/Db0v7zXNnyjBIjjI.mjs +372 -0
- package/node/esm/De2IONBxQhz-Qbyh.mjs +596 -0
- package/node/esm/Df1bL6VFvrqIdSLB.mjs +40 -0
- package/node/esm/DkwIPzKc3UwdUIfM.mjs +86 -0
- package/node/esm/DrTZbfemSLq2mseG.mjs +111 -0
- package/node/esm/OVfaSb506tNSIvbv.mjs +57107 -0
- package/node/esm/cGwrLA1RCE-WhJ7w.mjs +255 -0
- package/node/esm/index.mjs +2873 -53929
- package/node/esm/mFiBSM7XgBHV9AY7.mjs +13010 -0
- package/node/esm/yavzZOiZW_EjG9lE.mjs +15 -0
- package/package.json +15 -17
- package/resources/contents.json +184 -0
- package/resources/fonts/arial-bold-italic.hinted.json +125 -0
- package/resources/fonts/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/arial-bold-italic.rows.json +9 -0
- package/resources/fonts/arial-bold.hinted.json +125 -0
- package/resources/fonts/arial-bold.metrics.json +139 -0
- package/resources/fonts/arial-bold.rows.json +9 -0
- package/resources/fonts/arial-italic.hinted.json +125 -0
- package/resources/fonts/arial-italic.metrics.json +139 -0
- package/resources/fonts/arial-italic.rows.json +9 -0
- package/resources/fonts/arial-regular.hinted.json +125 -0
- package/resources/fonts/arial-regular.metrics.json +139 -0
- package/resources/fonts/arial-regular.rows.json +9 -0
- package/resources/fonts/calibri-bold-italic.hinted.json +122 -0
- package/resources/fonts/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/calibri-bold-italic.rows.json +9 -0
- package/resources/fonts/calibri-bold.hinted.json +122 -0
- package/resources/fonts/calibri-bold.metrics.json +137 -0
- package/resources/fonts/calibri-bold.rows.json +9 -0
- package/resources/fonts/calibri-italic.hinted.json +121 -0
- package/resources/fonts/calibri-italic.metrics.json +137 -0
- package/resources/fonts/calibri-italic.rows.json +9 -0
- package/resources/fonts/calibri-regular.hinted.json +121 -0
- package/resources/fonts/calibri-regular.metrics.json +137 -0
- package/resources/fonts/calibri-regular.rows.json +9 -0
- package/resources/fonts/cambria-bold-italic.hinted.json +105 -0
- package/resources/fonts/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/cambria-bold-italic.rows.json +9 -0
- package/resources/fonts/cambria-bold.hinted.json +108 -0
- package/resources/fonts/cambria-bold.metrics.json +66 -0
- package/resources/fonts/cambria-bold.rows.json +9 -0
- package/resources/fonts/cambria-italic.hinted.json +102 -0
- package/resources/fonts/cambria-italic.metrics.json +66 -0
- package/resources/fonts/cambria-italic.rows.json +9 -0
- package/resources/fonts/cambria-regular.hinted.json +110 -0
- package/resources/fonts/cambria-regular.metrics.json +66 -0
- package/resources/fonts/cambria-regular.rows.json +9 -0
- package/resources/fonts/contents.json +406 -0
- package/resources/fonts/courier-new-bold-italic.hinted.json +11 -0
- package/resources/fonts/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-bold-italic.rows.json +9 -0
- package/resources/fonts/courier-new-bold.hinted.json +11 -0
- package/resources/fonts/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/courier-new-bold.rows.json +9 -0
- package/resources/fonts/courier-new-italic.hinted.json +11 -0
- package/resources/fonts/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-italic.rows.json +9 -0
- package/resources/fonts/courier-new-regular.hinted.json +11 -0
- package/resources/fonts/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/courier-new-regular.rows.json +9 -0
- package/resources/fonts/times-new-roman-bold-italic.hinted.json +125 -0
- package/resources/fonts/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold-italic.rows.json +9 -0
- package/resources/fonts/times-new-roman-bold.hinted.json +125 -0
- package/resources/fonts/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold.rows.json +9 -0
- package/resources/fonts/times-new-roman-italic.hinted.json +125 -0
- package/resources/fonts/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/times-new-roman-italic.rows.json +9 -0
- package/resources/fonts/times-new-roman-regular.hinted.json +125 -0
- package/resources/fonts/times-new-roman-regular.metrics.json +141 -0
- package/resources/fonts/times-new-roman-regular.rows.json +9 -0
- package/resources/locales/de/model.msg.json +199 -21
- package/resources/locales/en/model.msg.json +207 -23
- package/types/scripting-api.json +10663 -0
- package/types/scripting-enums.json +435 -130
- package/types/scripting.d.ts +33010 -15730
- package/types/src/.generated/wasm/fonts.d.ts +161 -0
- package/types/src/.generated/wasm/fonts_bg.inline.d.ts +3 -0
- package/types/src/.generated/wasm/sdk.d.ts +122 -0
- package/types/src/.generated/wasm/sdk_bg.inline.d.ts +3 -0
- package/types/src/address/AddressUtils.d.ts +10 -1
- package/types/src/address/_StructuredAddress.d.ts +58 -0
- package/types/src/anchored/AbstractAnchored.d.ts +18 -8
- package/types/src/anchored/AnchoredMap.d.ts +2 -0
- package/types/src/anchored/IAnchoredMap.d.ts +52 -4
- package/types/src/autoFill/AutoFill.d.ts +316 -32
- package/types/src/autoFill/IAutoFill.d.ts +232 -15
- package/types/src/border/{IBorder.d.ts → IBorders.d.ts} +58 -41
- package/types/src/border/index.d.ts +1 -1
- package/types/src/calculation/Calculation.d.ts +584 -149
- package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
- package/types/src/calculation/FormulaLiterals.d.ts +2 -1
- package/types/src/calculation/FormulaText.d.ts +98 -0
- package/types/src/calculation/ICalculation.d.ts +353 -88
- package/types/src/calculation/INamedFormulasCollection.d.ts +9 -8
- package/types/src/calculation/NamedFormulaCollection.d.ts +322 -115
- package/types/src/calculation/NamedLambdaFunction.d.ts +28 -0
- package/types/src/calculation/TokenType.d.ts +9 -0
- package/types/src/calculation/Types.d.ts +83 -2
- package/types/src/calculation/_CloneBoundary.d.ts +80 -0
- package/types/src/calculation/_FormulaToolkit.d.ts +9 -0
- package/types/src/calculation/_TableExtent.d.ts +60 -0
- package/types/src/calculation/_TableRename.d.ts +13 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +71 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +152 -44
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +29 -4
- package/types/src/calculation/compiler/FormulaParser.d.ts +1 -2
- package/types/src/calculation/compiler/LiteTransform.d.ts +17 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +42 -1
- package/types/src/calculation/compiler/SRParser.d.ts +2 -1
- package/types/src/calculation/compiler/Types.d.ts +79 -9
- package/types/src/calculation/engine/CalcBackend.d.ts +855 -0
- package/types/src/calculation/engine/index.d.ts +10 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts +331 -33
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +49 -2
- package/types/src/calculation/executor/CircularReference.d.ts +2 -0
- package/types/src/calculation/formula/Formula.d.ts +67 -21
- package/types/src/calculation/formula/FormulaBlock.d.ts +131 -23
- package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
- package/types/src/calculation/formula/FunctionValues.d.ts +10 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +277 -67
- package/types/src/calculation/formula/LambdaValue.d.ts +51 -26
- package/types/src/calculation/formula/LazyValue.d.ts +96 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +25 -1
- package/types/src/calculation/formula/index.d.ts +1 -0
- package/types/src/calculation/functions/FunctionDeclarations.d.ts +35 -0
- package/types/src/calculation/functions/Operators.d.ts +8 -0
- package/types/src/calculation/functions/expandDeclaration.d.ts +15 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +3 -2
- package/types/src/calculation/grid/CalcGrid.d.ts +443 -158
- package/types/src/calculation/grid/CalcGridBackend.d.ts +523 -0
- package/types/src/calculation/grid/CalcGridProxy.d.ts +135 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +69 -12
- package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
- package/types/src/calculation/grid/FormulaHost.d.ts +284 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +528 -141
- package/types/src/calculation/grid/_CalcRequest.d.ts +299 -0
- package/types/src/calculation/grid/_CellValueRun.d.ts +21 -0
- package/types/src/calculation/grid/index.d.ts +4 -0
- package/types/src/calculation/index.d.ts +2 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +6 -2
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +364 -11
- package/types/src/calculation/spatial/SpillEntry.d.ts +20 -5
- package/types/src/calculation/spatial/TouchedWindows.d.ts +86 -0
- package/types/src/calculation/spatial/index.d.ts +1 -0
- package/types/src/calculation/state/CalcInputs.d.ts +41 -0
- package/types/src/calculation/state/CalcNode.d.ts +141 -30
- package/types/src/calculation/state/CalcScope.d.ts +46 -0
- package/types/src/calculation/state/CalcState.d.ts +32 -1
- package/types/src/calculation/state/CalculationContext.d.ts +50 -3
- package/types/src/calculation/state/IContextContainer.d.ts +141 -27
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +163 -0
- package/types/src/calculation/state/_ReadObservedGrid.d.ts +74 -8
- package/types/src/calculation/state/index.d.ts +1 -0
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +80 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +23 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +16 -2
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +63 -3
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +20 -0
- package/types/src/calculation/symbol/index.d.ts +3 -2
- package/types/src/calculation/toolkit/FormulaLiteralReader.d.ts +4 -0
- package/types/src/calculation/toolkit/FormulaTextParser.d.ts +10 -0
- package/types/src/calculation/toolkit/FunctionDeclarationTable.d.ts +4 -0
- package/types/src/calculation/toolkit/index.d.ts +12 -0
- package/types/src/cell/ICell.d.ts +357 -33
- package/types/src/cell/ICellHeader.d.ts +31 -8
- package/types/src/cell/ICellProtection.d.ts +50 -10
- package/types/src/cellRange/ICellHeaderRange.d.ts +6 -9
- package/types/src/cellRange/ICellHeaderRanges.d.ts +5 -0
- package/types/src/cellRange/ICellRange.d.ts +737 -130
- package/types/src/cellRange/ICellRanges.d.ts +31 -24
- package/types/src/chart/Chart.d.ts +246 -16
- package/types/src/chart/ChartCollection.d.ts +31 -0
- package/types/src/chart/IChart.d.ts +2058 -18
- package/types/src/chart/IChartCollection.d.ts +50 -0
- package/types/src/chart/_ChartParts.d.ts +1066 -0
- package/types/src/chart/_ChartSource.d.ts +47 -0
- package/types/src/chart/createChart.d.ts +26 -0
- package/types/src/chart/index.d.ts +5 -3
- package/types/src/chart/kinds/ChartKind.d.ts +252 -0
- package/types/src/chart/kinds/_Area.d.ts +3 -0
- package/types/src/chart/kinds/_Bar.d.ts +4 -0
- package/types/src/chart/kinds/_BoxWhisker.d.ts +4 -0
- package/types/src/chart/kinds/_Bubble.d.ts +3 -0
- package/types/src/chart/kinds/_Funnel.d.ts +4 -0
- package/types/src/chart/kinds/_Hierarchy.d.ts +31 -0
- package/types/src/chart/kinds/_Histogram.d.ts +4 -0
- package/types/src/chart/kinds/_HitKinds.d.ts +23 -0
- package/types/src/chart/kinds/_Line.d.ts +4 -0
- package/types/src/chart/kinds/_OfPie.d.ts +4 -0
- package/types/src/chart/kinds/_Pie.d.ts +4 -0
- package/types/src/chart/kinds/_Placeholder.d.ts +6 -0
- package/types/src/chart/kinds/_Radar.d.ts +4 -0
- package/types/src/chart/kinds/_Scatter.d.ts +8 -0
- package/types/src/chart/kinds/_Sunburst.d.ts +4 -0
- package/types/src/chart/kinds/_Surface.d.ts +4 -0
- package/types/src/chart/kinds/_Treemap.d.ts +4 -0
- package/types/src/chart/kinds/_Waterfall.d.ts +18 -0
- package/types/src/chart/kinds/_builtIns.d.ts +11 -0
- package/types/src/chart/layout/ChartLayout.d.ts +825 -0
- package/types/src/chart/layout/TextMeasurer.d.ts +38 -0
- package/types/src/chart/layout/_HitGeometry.d.ts +50 -0
- package/types/src/chart/layout/_HitTest.d.ts +36 -0
- package/types/src/chart/layout/_Layout.d.ts +25 -0
- package/types/src/chart/layout/_LayoutUtils.d.ts +97 -0
- package/types/src/chart/math/BoxStats.d.ts +35 -0
- package/types/src/chart/math/DateUnitCalcs.d.ts +80 -0
- package/types/src/chart/math/DisplayUnits.d.ts +53 -0
- package/types/src/chart/math/Histogram.d.ts +48 -0
- package/types/src/chart/math/OrdUnitCalcs.d.ts +166 -0
- package/types/src/chart/math/Treemap.d.ts +28 -0
- package/types/src/chart/math/Trendlines.d.ts +71 -0
- package/types/src/chart/math/UnitCalcs.d.ts +98 -0
- package/types/src/chart/model/ChartModel.d.ts +681 -0
- package/types/src/chart/model/_ChartType.d.ts +14 -0
- package/types/src/chart/model/_Edits.d.ts +489 -0
- package/types/src/chart/model/_Grouping.d.ts +83 -0
- package/types/src/chart/model/_Inference.d.ts +52 -0
- package/types/src/chart/model/_ModelFacts.d.ts +112 -0
- package/types/src/chart/model/_NewChart.d.ts +208 -0
- package/types/src/chart/model/_OfPie.d.ts +18 -0
- package/types/src/chart/resolve/_LegacyStyles.d.ts +48 -0
- package/types/src/chart/resolve/_Resolve.d.ts +51 -0
- package/types/src/chart/resolve/_ResolvedChart.d.ts +444 -0
- package/types/src/collections/ArraysGrid.d.ts +1 -1
- package/types/src/collections/IGrid.d.ts +1 -1
- package/types/src/collections/ISparseGrid.d.ts +9 -0
- package/types/src/collections/ISpatialMap.d.ts +59 -21
- package/types/src/collections/ImmutableList.d.ts +28 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +168 -108
- package/types/src/collections/RTree.d.ts +116 -36
- package/types/src/collections/RepeatingList.d.ts +7 -0
- package/types/src/collections/ScalarGrid.d.ts +50 -0
- package/types/src/collections/SparseGrid.d.ts +7 -4
- package/types/src/collections/SpatialMap.d.ts +15 -29
- package/types/src/collections/SpatialMap3D.d.ts +2 -0
- package/types/src/collections/Tuple.d.ts +128 -16
- package/types/src/collections/_GridUtils.d.ts +19 -6
- package/types/src/collections/_SpatialUtils.d.ts +20 -2
- package/types/src/collections/index.d.ts +2 -1
- package/types/src/color/_BuiltInIndexDefs.d.ts +6 -0
- package/types/src/comment/Comment.d.ts +246 -0
- package/types/src/comment/CommentCollection.d.ts +40 -0
- package/types/src/comment/IComment.d.ts +377 -50
- package/types/src/comment/ICommentCollection.d.ts +90 -0
- package/types/src/comment/NoteMovable.d.ts +26 -0
- package/types/src/comment/_CommentUtils.d.ts +50 -0
- package/types/src/comment/_NoteBox.d.ts +67 -0
- package/types/src/comment/index.d.ts +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +110 -19
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +42 -12
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +4 -1
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +5 -6
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +22 -5
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +6 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +21 -6
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +4 -5
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +20 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +7 -5
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/index.d.ts +12 -6
- package/types/src/condition/Condition.d.ts +19 -1
- package/types/src/condition/ICondition.d.ts +296 -75
- package/types/src/condition/_ConditionFormula.d.ts +152 -0
- package/types/src/condition/_ConditionUtils.d.ts +167 -13
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +3 -3
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +34 -17
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +16 -13
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
- package/types/src/dataTable/DataTable.d.ts +67 -0
- package/types/src/dataTable/DataTableCollection.d.ts +19 -0
- package/types/src/dataTable/IDataTable.d.ts +99 -0
- package/types/src/dataTable/IDataTableCollection.d.ts +18 -0
- package/types/src/dataTable/index.d.ts +6 -0
- package/types/src/dataValidation/DataValidation.d.ts +70 -4
- package/types/src/dataValidation/DataValidationCollection.d.ts +23 -9
- package/types/src/dataValidation/IDataValidation.d.ts +150 -31
- package/types/src/dataValidation/IDataValidationCollection.d.ts +34 -2
- package/types/src/date/DateUtils.d.ts +20 -0
- package/types/src/date/_DateUtils.d.ts +91 -7
- package/types/src/documentProperties/DocumentProperties.d.ts +66 -0
- package/types/src/documentProperties/ICustomProperty.d.ts +69 -0
- package/types/src/documentProperties/IDocumentProperties.d.ts +110 -0
- package/types/src/documentProperties/index.d.ts +3 -0
- package/types/src/externalBook/ExternalBookCollection.d.ts +145 -12
- package/types/src/externalBook/ExternalBookName.d.ts +96 -0
- package/types/src/externalBook/IExternalBook.d.ts +171 -19
- package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
- package/types/src/externalBook/index.d.ts +1 -0
- package/types/src/{lib/file → file}/file.browser.d.ts +22 -8
- package/types/src/{lib/file → file}/file.node.d.ts +7 -2
- package/types/src/fill/IEffect.d.ts +5 -5
- package/types/src/fill/IFill.d.ts +129 -77
- package/types/src/fill/IFillable.d.ts +47 -0
- package/types/src/fill/IStroke.d.ts +204 -64
- package/types/src/fill/PaintUtils.d.ts +22 -0
- package/types/src/fill/RectAlignment.d.ts +20 -0
- package/types/src/fill/_Fills.d.ts +187 -0
- package/types/src/fill/_Stroke.d.ts +89 -0
- package/types/src/fill/index.d.ts +3 -0
- package/types/src/filter/IFilter.d.ts +188 -5
- package/types/src/font/AdvanceBuilder.d.ts +59 -0
- package/types/src/font/AdvanceTable.d.ts +228 -0
- package/types/src/font/CanvasAdvanceBuilder.d.ts +54 -0
- package/types/src/font/FontCapture.d.ts +4 -0
- package/types/src/font/FontCollection.d.ts +108 -0
- package/types/src/font/FontPlatform.d.ts +20 -0
- package/types/src/font/FontUtils.d.ts +5 -0
- package/types/src/font/IFont.d.ts +208 -61
- package/types/src/font/IFontCollection.d.ts +126 -22
- package/types/src/font/IFontStyle.d.ts +207 -0
- package/types/src/font/TableFileAdvanceBuilder.d.ts +36 -0
- package/types/src/font/_BuiltinFontTables.d.ts +10 -0
- package/types/src/font/_FontUtils.d.ts +11 -4
- package/types/src/font/_FontsVersion.d.ts +7 -0
- package/types/src/font/index.d.ts +2 -1
- package/types/src/font/platform.browser.d.ts +15 -0
- package/types/src/font/platform.node.d.ts +5 -0
- package/types/src/group/Group.d.ts +141 -0
- package/types/src/group/GroupMovableCollection.d.ts +41 -0
- package/types/src/group/IGroup.d.ts +129 -0
- package/types/src/group/index.d.ts +2 -0
- package/types/src/history/IHistory.d.ts +21 -3
- package/types/src/hyperlink/IHyperlink.d.ts +20 -1
- package/types/src/hyperlink/_Hyperlink.d.ts +5 -1
- package/types/src/i18n/LanguagePack.d.ts +12 -4
- package/types/src/index.d.ts +8 -0
- package/types/src/io/AbstractBackingStore.d.ts +24 -1
- package/types/src/io/ArrayBackingStore.d.ts +1 -1
- package/types/src/io/EmbeddedPart.d.ts +20 -0
- package/types/src/io/IEmbeddedPart.d.ts +63 -0
- package/types/src/io/IWorkbookIO.d.ts +185 -18
- package/types/src/io/WorkbookIO.d.ts +9 -0
- package/types/src/io/WorkbookOrigin.d.ts +20 -11
- package/types/src/io/WorkbookOriginProvider.d.ts +46 -0
- package/types/src/io/_XmlFragment.d.ts +49 -0
- package/types/src/io/index.d.ts +1 -0
- package/types/src/license/LicenseDetails.d.ts +1 -0
- package/types/src/license/LicenseManager.d.ts +25 -1
- package/types/src/license/Types.d.ts +38 -0
- package/types/src/license/_Utils.d.ts +39 -0
- package/types/src/license/details.d.ts +24 -0
- package/types/src/license/license-key.d.ts +49 -2
- package/types/src/license/runtime.browser.d.ts +46 -0
- package/types/src/{lib/utils/utils.node.d.ts → license/runtime.node.d.ts} +19 -12
- package/types/src/listener/IListener.d.ts +23 -6
- package/types/src/listener/ListenerEmitter.d.ts +55 -6
- package/types/src/model/AbstractModel.d.ts +14 -5
- package/types/src/movable/AbstractMovableContent.d.ts +182 -0
- package/types/src/movable/CustomElement.d.ts +4 -5
- package/types/src/movable/ErrorContent.d.ts +49 -0
- package/types/src/movable/FormControl.d.ts +285 -0
- package/types/src/movable/GroupMember.d.ts +87 -0
- package/types/src/movable/ICustomElement.d.ts +7 -2
- package/types/src/movable/IErrorContent.d.ts +23 -0
- package/types/src/movable/IFormControl.d.ts +455 -0
- package/types/src/movable/IMovable.d.ts +405 -60
- package/types/src/movable/IMovableCollection.d.ts +64 -4
- package/types/src/movable/Movable.d.ts +161 -50
- package/types/src/movable/MovableCollection.d.ts +21 -10
- package/types/src/movable/MovableContentRegistry.d.ts +113 -0
- package/types/src/movable/_BuiltInContents.d.ts +14 -0
- package/types/src/movable/_ContentFactory.d.ts +35 -0
- package/types/src/movable/_DrawnBounds.d.ts +37 -0
- package/types/src/movable/_InsertableCollection.d.ts +39 -0
- package/types/src/movable/_MovableUtils.d.ts +5 -0
- package/types/src/movable/_PendingContent.d.ts +25 -0
- package/types/src/movable/_PlacementUtils.d.ts +55 -0
- package/types/src/movable/_RotatedFrame.d.ts +20 -0
- package/types/src/movable/index.d.ts +7 -1
- package/types/src/named/AbstractNamed.d.ts +1 -1
- package/types/src/named/INamed.d.ts +34 -1
- package/types/src/named/INamedCollection.d.ts +28 -2
- package/types/src/named/NamedCollection.d.ts +32 -19
- package/types/src/numFmt/BuiltInFormats.d.ts +20 -7
- package/types/src/numFmt/IFormatEngine.d.ts +2 -0
- package/types/src/numFmt/NumberFormatParser.d.ts +5 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
- package/types/src/numFmt/_FormatCell.d.ts +11 -2
- package/types/src/numFmt/_NumFmtUtils.d.ts +0 -1
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +6 -0
- package/types/src/outline/IOutline.d.ts +186 -0
- package/types/src/outline/Outline.d.ts +157 -0
- package/types/src/outline/index.d.ts +2 -0
- package/types/src/person/IPerson.d.ts +99 -0
- package/types/src/person/IPersonCollection.d.ts +51 -0
- package/types/src/person/Person.d.ts +32 -0
- package/types/src/person/PersonCollection.d.ts +49 -0
- package/types/src/person/index.d.ts +4 -0
- package/types/src/picture/IPicture.d.ts +131 -4
- package/types/src/picture/Picture.d.ts +42 -14
- package/types/src/pivot/IPivotTable.d.ts +72 -0
- package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
- package/types/src/pivot/PivotCache.d.ts +34 -0
- package/types/src/pivot/PivotTable.d.ts +61 -0
- package/types/src/pivot/PivotTableCollection.d.ts +25 -0
- package/types/src/pivot/_PivotXml.d.ts +24 -0
- package/types/src/pivot/index.d.ts +6 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +2 -0
- package/types/src/primitives/Criteria.d.ts +1 -1
- package/types/src/primitives/Grouping.d.ts +65 -0
- package/types/src/primitives/LambdaBrand.d.ts +26 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +56 -19
- package/types/src/primitives/Range.d.ts +133 -25
- package/types/src/primitives/RangeStats.d.ts +30 -2
- package/types/src/primitives/ReferenceRange.d.ts +44 -0
- package/types/src/primitives/Runtime.d.ts +15 -2
- package/types/src/primitives/environment.browser.d.ts +9 -0
- package/types/src/primitives/environment.node.d.ts +10 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +49 -15
- package/types/src/primitives/stats/Cancellation.d.ts +13 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +10 -1
- package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
- package/types/src/primitives/stats/Ranked.d.ts +1 -1
- package/types/src/primitives/stats/SortedNumbers.d.ts +4 -2
- package/types/src/primitives/stats/index.d.ts +1 -0
- package/types/src/print/IPageLayout.d.ts +635 -0
- package/types/src/print/PageLayout.d.ts +258 -0
- package/types/src/print/index.d.ts +1 -1
- package/types/src/protectedRange/IProtectedRange.d.ts +6 -2
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +1 -4
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +19 -8
- package/types/src/protection/DefaultProtection.d.ts +12 -1
- package/types/src/protection/IProtection.d.ts +42 -2
- package/types/src/protection/PasswordHasher.d.ts +13 -0
- package/types/src/reference/ReferenceUtils.d.ts +80 -0
- package/types/src/reference/index.d.ts +2 -0
- package/types/src/resource/IResource.d.ts +21 -1
- package/types/src/resource/IResourceCollection.d.ts +9 -1
- package/types/src/resource/ResourceCollection.d.ts +6 -6
- package/types/src/richData/IRichDataKind.d.ts +22 -0
- package/types/src/richData/RichDataRegistry.d.ts +57 -0
- package/types/src/richData/RichText.d.ts +59 -0
- package/types/src/richData/index.d.ts +3 -0
- package/types/src/scripting/FunctionCollection.d.ts +49 -15
- package/types/src/scripting/IFunctionCollection.d.ts +62 -32
- package/types/src/scripting/IModule.d.ts +25 -0
- package/types/src/scripting/IModuleCollection.d.ts +17 -0
- package/types/src/scripting/IScript.d.ts +30 -28
- package/types/src/scripting/ITypedFunction.d.ts +1 -1
- package/types/src/scripting/Module.d.ts +34 -6
- package/types/src/scripting/ModuleCollection.d.ts +17 -12
- package/types/src/scripting/Runtime.d.ts +15 -0
- package/types/src/scripting/Scripts.d.ts +3 -7
- package/types/src/scripting/TypedFunction.d.ts +154 -18
- package/types/src/scripting/_FunctionIndex.d.ts +8 -3
- package/types/src/scripting/_ModuleUtils.d.ts +11 -1
- package/types/src/scripting/_ScriptUtils.d.ts +3 -0
- package/types/src/scripting/declarations.browser.d.ts +10 -0
- package/types/src/scripting/declarations.d.ts +52 -0
- package/types/src/scripting/declarations.node.d.ts +9 -0
- package/types/src/scripting/index.d.ts +3 -0
- package/types/src/selection/ChartElementSelection.d.ts +39 -0
- package/types/src/selection/IChartElementSelection.d.ts +103 -0
- package/types/src/selection/IItemSelection.d.ts +131 -0
- package/types/src/selection/IMovableSelection.d.ts +120 -0
- package/types/src/selection/IRangeSelection.d.ts +13 -8
- package/types/src/selection/ItemSelection.d.ts +49 -0
- package/types/src/selection/MovableSelection.d.ts +29 -0
- package/types/src/selection/RangeSelection.d.ts +19 -4
- package/types/src/selection/index.d.ts +4 -0
- package/types/src/shape/GeometryPreset.d.ts +197 -0
- package/types/src/shape/IGeometry.d.ts +380 -0
- package/types/src/shape/IShape.d.ts +342 -194
- package/types/src/shape/IShapeStyle.d.ts +109 -0
- package/types/src/shape/ITextBoxStyle.d.ts +85 -0
- package/types/src/shape/Shape.d.ts +107 -21
- package/types/src/shape/ShapeStyleUtils.d.ts +66 -0
- package/types/src/shape/_ConnectorFrame.d.ts +32 -0
- package/types/src/shape/_ConnectorRoute.d.ts +33 -0
- package/types/src/shape/_Connectors.d.ts +108 -0
- package/types/src/shape/_Geometry.d.ts +14 -0
- package/types/src/shape/_GeometryLoader.d.ts +21 -0
- package/types/src/shape/_ShapeStyle.d.ts +79 -0
- package/types/src/shape/_builtIn/_BuiltInChunks.d.ts +10 -0
- package/types/src/shape/_builtIn/_BuiltInDef.d.ts +9 -0
- package/types/src/shape/_builtIn/arrows.d.ts +6 -0
- package/types/src/shape/_builtIn/basic.d.ts +6 -0
- package/types/src/shape/_builtIn/callouts.d.ts +6 -0
- package/types/src/shape/_builtIn/flowchart.d.ts +6 -0
- package/types/src/shape/_builtIn/lines.d.ts +6 -0
- package/types/src/shape/_builtIn/math.d.ts +6 -0
- package/types/src/shape/_builtIn/other.d.ts +6 -0
- package/types/src/shape/_builtIn/rectangles.d.ts +6 -0
- package/types/src/shape/_builtIn/starsBanners.d.ts +6 -0
- package/types/src/shape/geometry/_strokeEnds.d.ts +7 -0
- package/types/src/shape/geometry/format.d.ts +3 -0
- package/types/src/shape/geometry/geometry.d.ts +85 -0
- package/types/src/shape/geometry/guides.d.ts +54 -0
- package/types/src/shape/geometry/handles.d.ts +14 -0
- package/types/src/shape/geometry/index.d.ts +7 -0
- package/types/src/shape/geometry/lineEnds.d.ts +54 -0
- package/types/src/shape/geometry/paths.d.ts +35 -0
- package/types/src/shape/geometry/segments.d.ts +114 -0
- package/types/src/shape/index.d.ts +4 -0
- package/types/src/sheet/CellRegion.d.ts +43 -3
- package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
- package/types/src/sheet/IOpaqueSheet.d.ts +46 -0
- package/types/src/sheet/ISheet.d.ts +81 -931
- package/types/src/sheet/IWorksheet.d.ts +1514 -0
- package/types/src/sheet/{ISheetCollection.d.ts → IWorksheetCollection.d.ts} +38 -16
- package/types/src/sheet/NamedCellRange.d.ts +17 -8
- package/types/src/sheet/NamedRange.d.ts +10 -2
- package/types/src/sheet/OpaqueSheet.d.ts +114 -0
- package/types/src/sheet/SheetCell.d.ts +96 -39
- package/types/src/sheet/SheetRange.d.ts +130 -27
- package/types/src/sheet/SheetRanges.d.ts +33 -18
- package/types/src/sheet/Worksheet.d.ts +2250 -0
- package/types/src/sheet/WorksheetCollection.d.ts +39 -0
- package/types/src/sheet/_Anomalies.d.ts +109 -0
- package/types/src/sheet/_AnomalyFormulaChecks.d.ts +125 -0
- package/types/src/sheet/_AnomalyLabelChecks.d.ts +21 -0
- package/types/src/sheet/_CellBuffer.d.ts +224 -0
- package/types/src/sheet/_CopyUtils.d.ts +13 -6
- package/types/src/sheet/_HeldFormula.d.ts +69 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +46 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +10 -9
- package/types/src/sheet/_Kinds.d.ts +34 -0
- package/types/src/sheet/_Labels.d.ts +38 -0
- package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
- package/types/src/sheet/_RangeStateSweep.d.ts +15 -0
- package/types/src/sheet/_ScalarListFactory.d.ts +61 -0
- package/types/src/sheet/_SheetAutoFillUtils.d.ts +74 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +5 -5
- package/types/src/sheet/_SheetChangeEvent.d.ts +72 -0
- package/types/src/sheet/_SheetCoords.d.ts +3 -3
- package/types/src/sheet/_SheetEvents.d.ts +43 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +51 -3
- package/types/src/sheet/_SheetIntents.d.ts +314 -0
- package/types/src/sheet/_SheetMessages.d.ts +1 -1
- package/types/src/sheet/_SheetMutations.d.ts +185 -66
- package/types/src/sheet/_SheetSortUtils.d.ts +2 -2
- package/types/src/sheet/_SheetStateReader.d.ts +35 -11
- package/types/src/sheet/_SheetStateTypes.d.ts +143 -79
- package/types/src/sheet/_SheetUtils.d.ts +59 -41
- package/types/src/sheet/_WatchAnchor.d.ts +106 -0
- package/types/src/sheet/clipboard/RangeClipboardItems.d.ts +4 -4
- package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts +3 -3
- package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts +3 -3
- package/types/src/sheet/index.d.ts +5 -2
- package/types/src/sheet/spatial/HeldFormulaEntry.d.ts +36 -0
- package/types/src/sheet/spatial/index.d.ts +1 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +223 -337
- package/types/src/sheet/style/SheetDirectStyle.d.ts +31 -20
- package/types/src/sheet/style/SheetNamedStyle.d.ts +19 -17
- package/types/src/sheet/style/SheetTableStyle.d.ts +5 -5
- package/types/src/sheet/style/_DigitWidth.d.ts +7 -0
- package/types/src/sheet/style/_Resolvers.d.ts +17 -10
- package/types/src/sheet/style/_StyleUtils.d.ts +34 -40
- package/types/src/sheetHeader/ISheetHeader.d.ts +96 -55
- package/types/src/sheetHeader/SheetCellHeader.d.ts +6 -0
- package/types/src/sheetHeader/SheetCellHeaderRange.d.ts +2 -0
- package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts +2 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +48 -27
- package/types/src/sheetHeader/_HeaderMetrics.d.ts +37 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +5 -4
- package/types/src/sheetProtection/{ISheetProtection.d.ts → IWorksheetProtection.d.ts} +64 -30
- package/types/src/sheetProtection/WorksheetProtection.d.ts +51 -0
- package/types/src/sheetProtection/index.d.ts +1 -1
- package/types/src/sheetView/{ISheetView.d.ts → IWorksheetView.d.ts} +230 -69
- package/types/src/sheetView/WorksheetView.d.ts +139 -0
- package/types/src/sheetView/_SheetViewUtils.d.ts +5 -3
- package/types/src/sheetView/index.d.ts +1 -1
- package/types/src/slicer/ISlicer.d.ts +304 -17
- package/types/src/slicer/ISlicerStyle.d.ts +109 -0
- package/types/src/slicer/Slicer.d.ts +128 -13
- package/types/src/slicer/SlicerStyle.d.ts +25 -0
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +13 -0
- package/types/src/slicer/_SlicerUtils.d.ts +30 -0
- package/types/src/slicer/index.d.ts +1 -0
- package/types/src/sort/ISort.d.ts +39 -7
- package/types/src/string/IStringCollection.d.ts +5 -0
- package/types/src/string/StringCollection.d.ts +6 -6
- package/types/src/style/{IStyle.d.ts → ICellStyle.d.ts} +117 -85
- package/types/src/style/INamedStyleCollection.d.ts +72 -0
- package/types/src/style/ISlicerStyleCollection.d.ts +77 -0
- package/types/src/style/IStyleCollection.d.ts +91 -60
- package/types/src/style/ITableStyleCollection.d.ts +89 -0
- package/types/src/style/NamedStyleCollection.d.ts +39 -0
- package/types/src/style/SlicerStyleCollection.d.ts +46 -0
- package/types/src/style/StyleCollection.d.ts +81 -26
- package/types/src/style/TableStyleCollection.d.ts +49 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +9 -8
- package/types/src/style/_BuiltInStyleNames.d.ts +2 -2
- package/types/src/style/index.d.ts +7 -1
- package/types/src/table/AnchoredTable.d.ts +723 -78
- package/types/src/table/AutoTable.d.ts +8 -6
- package/types/src/table/ITable.d.ts +289 -49
- package/types/src/table/ITableCollection.d.ts +12 -0
- package/types/src/table/ITableStyle.d.ts +37 -37
- package/types/src/table/TableCollection.d.ts +19 -8
- package/types/src/table/_FilterField.d.ts +19 -6
- package/types/src/table/_NamedTable.d.ts +20 -4
- package/types/src/table/_NamedTableSource.d.ts +3 -2
- package/types/src/table/_SortField.d.ts +2 -0
- package/types/src/table/_TableColumn.d.ts +13 -2
- package/types/src/table/_TableMessages.d.ts +1 -0
- package/types/src/table/_TableUtils.d.ts +40 -0
- package/types/src/text/Bullet.d.ts +4 -0
- package/types/src/text/IText.d.ts +150 -15
- package/types/src/text/ITextFrame.d.ts +110 -1
- package/types/src/text/TextBoxAlignment.d.ts +25 -16
- package/types/src/text/TextEngine.d.ts +34 -0
- package/types/src/text/TextFrame.d.ts +8 -2
- package/types/src/text/TextLine.d.ts +4 -0
- package/types/src/text/TextParagraph.d.ts +4 -0
- package/types/src/text/TextRotation.d.ts +3 -3
- package/types/src/text/TextRun.d.ts +12 -2
- package/types/src/text/TextStacked.d.ts +83 -0
- package/types/src/text/TextWrapper.d.ts +32 -26
- package/types/src/text/_TextUtils.d.ts +5 -5
- package/types/src/text/_TextWrapperFallback.d.ts +49 -0
- package/types/src/text/impl/TabStrategy.d.ts +3 -1
- package/types/src/text/index.d.ts +1 -0
- package/types/src/text/richtext/IRichText.d.ts +50 -0
- package/types/src/text/richtext/index.d.ts +1 -1
- package/types/src/theme/ITheme.d.ts +153 -11
- package/types/src/theme/IThemeCollection.d.ts +2 -0
- package/types/src/theme/ThemeCollection.d.ts +16 -7
- package/types/src/theme/_OfficeFontScheme.d.ts +8 -0
- package/types/src/theme/_OfficeFormatScheme.d.ts +3 -0
- package/types/src/transaction/ITransaction.d.ts +277 -45
- package/types/src/transaction/Transaction.d.ts +108 -11
- package/types/src/transaction/TransactionUndoManager.d.ts +4 -1
- package/types/src/transaction/_BatchHandle.d.ts +118 -0
- package/types/src/type/AbstractCollection.d.ts +92 -0
- package/types/src/type/ICollection.d.ts +131 -1
- package/types/src/type/IProperties.d.ts +1 -1
- package/types/src/type/ITypes.d.ts +9 -7
- package/types/src/type/index.d.ts +1 -0
- package/types/src/utils/_CSSUtils.d.ts +4 -4
- package/types/src/wasm/_fontsWasm.d.ts +7 -0
- package/types/src/wasm/_sdkWasm.d.ts +7 -0
- package/types/src/wasm/fontsWasm.d.ts +32 -0
- package/types/src/wasm/index.d.ts +3 -0
- package/types/src/wasm/loader.browser.d.ts +9 -0
- package/types/src/wasm/loader.node.d.ts +9 -0
- package/types/src/wasm/sdkWasm.d.ts +32 -0
- package/types/src/workbook/IWorkbook.d.ts +404 -73
- package/types/src/workbook/Workbook.d.ts +196 -28
- package/types/src/workbook/WorkbookRange.d.ts +2 -2
- package/types/src/workbook/WorkbookRanges.d.ts +2 -2
- package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
- package/types/src/workbook/_WorkbookMessages.d.ts +5 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +7 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +3 -0
- package/types/src/workbookView/IWorkbookView.d.ts +94 -0
- package/types/src/workbookView/WorkbookView.d.ts +26 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/BatsV2UUraVDCRXm.cjs +0 -57
- package/browser/cjs/CUz53T65cRGQRgvv.cjs +0 -33
- package/browser/cjs/DU0kYUtdFa3jK-im.cjs +0 -1
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +0 -10
- package/browser/cjs/Dv4yIPLV98M5zLHa.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb.cjs +0 -1
- package/browser/cjs/index.cjs +0 -3
- package/browser/esm/6JKSOvc5czaQB2Bj.mjs +0 -109
- package/browser/esm/BtuJ9AGzeURtAsGo.mjs +0 -51241
- package/browser/esm/DGU6sM25u0EWCKl1.mjs +0 -824
- package/node/esm/-pxdn3M3tc6PLHs7.mjs +0 -114
- package/node/esm/0n5bslM9jhO1JnI2.mjs +0 -843
- package/types/src/cellRange/_GraphNode.d.ts +0 -38
- package/types/src/collections/OverlappingRangeIterator.d.ts +0 -91
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +0 -12
- package/types/src/dataValidation/_Utils.d.ts +0 -10
- package/types/src/font/CanvasFontMeasurer.d.ts +0 -25
- package/types/src/font/FontKitFontMeasurer.d.ts +0 -11
- package/types/src/font/SimpleFontMeasurer.d.ts +0 -4
- package/types/src/lib/utils/_Utils.d.ts +0 -27
- package/types/src/lib/utils/utils.browser.d.ts +0 -33
- package/types/src/movable/IGroup.d.ts +0 -30
- package/types/src/movable/IMovableSelection.d.ts +0 -49
- package/types/src/print/IPrint.d.ts +0 -234
- package/types/src/sheet/Sheet.d.ts +0 -1107
- package/types/src/sheet/SheetCollection.d.ts +0 -18
- package/types/src/sheet/listener/RangesListener.d.ts +0 -32
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +0 -19
- package/types/src/sheet/listener/index.d.ts +0 -3
- package/types/src/sheetProtection/SheetProtection.d.ts +0 -39
- package/types/src/sheetView/SheetView.d.ts +0 -113
- package/types/src/text/richtext/IStyledFont.d.ts +0 -330
- /package/types/src/{lib/utils → license}/banner.d.ts +0 -0
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import { IFill } from '../../fill/IFill';
|
|
2
|
+
import { IStroke } from '../../fill/IStroke';
|
|
3
|
+
import { IFont } from '../../font/IFont';
|
|
4
|
+
import { ChartModel } from './ChartModel';
|
|
5
|
+
import { CategoryAxisFields, NewChartType } from './_NewChart';
|
|
6
|
+
export type ModelEdit = (model: ChartModel.ChartSpace) => ChartModel.ChartSpace;
|
|
7
|
+
/** Applies `edits` in turn: what `update` batches into one step. */
|
|
8
|
+
export declare const composeEdits: (edits: readonly ModelEdit[]) => ModelEdit;
|
|
9
|
+
/** Edits the axis `axId`. */
|
|
10
|
+
export declare const withAxis: (model: ChartModel.ChartSpace, axId: number, edit: (axis: ChartModel.Axis) => ChartModel.Axis) => ChartModel.ChartSpace;
|
|
11
|
+
export declare const withGroupOf: (model: ChartModel.ChartSpace, idx: number, edit: (group: ChartModel.Group, series: ChartModel.Series) => ChartModel.Group) => ChartModel.ChartSpace;
|
|
12
|
+
/** Edits the series `idx`. */
|
|
13
|
+
export declare const withSeries: (model: ChartModel.ChartSpace, idx: number, edit: (series: ChartModel.Series) => ChartModel.Series) => ChartModel.ChartSpace;
|
|
14
|
+
/**
|
|
15
|
+
* Shows or deletes the chart's title. Deleted, Excel writes no title and `autoTitleDeleted 1` (E03);
|
|
16
|
+
* shown again, the title a new chart has (E27).
|
|
17
|
+
*/
|
|
18
|
+
export declare const setTitleVisible: (visible: boolean) => ModelEdit;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the title's text, showing it; `null` for the automatic text (E01: rich text in the title's
|
|
21
|
+
* own text body). A 2016 chart's title states plain text (`cx:txData`, chart-chartex.xlsx X9).
|
|
22
|
+
*/
|
|
23
|
+
export declare const setTitleText: (text: string | null) => ModelEdit;
|
|
24
|
+
/** Whether the title is drawn over the plot area rather than beside it (E02: `overlay 1`). */
|
|
25
|
+
export declare const setTitleOverlay: (overlay: boolean) => ModelEdit;
|
|
26
|
+
/** Shows or removes the legend. Removed, Excel writes none (E08); shown, at the right (E28). */
|
|
27
|
+
export declare const setLegendVisible: (visible: boolean) => ModelEdit;
|
|
28
|
+
/** Moves the legend to a side, or the top right corner (`tr`), showing it (E04-E07: `legendPos`). */
|
|
29
|
+
export declare const setLegendPosition: (position: NonNullable<ChartModel.Legend["legendPos"]>) => ModelEdit;
|
|
30
|
+
/** Whether the legend is drawn over the plot area (E09: `overlay 1`). */
|
|
31
|
+
export declare const setLegendOverlay: (overlay: boolean) => ModelEdit;
|
|
32
|
+
export declare const setDisplayBlanksAs: (value: NonNullable<ChartModel.Chart["dispBlanksAs"]>) => ModelEdit;
|
|
33
|
+
/** A bound of the axis's scale: a number, or `'auto'` to leave it to Excel (E10, E11: `c:min`, `c:max` in `c:scaling`; E26). */
|
|
34
|
+
export declare const setAxisBound: (axId: number, bound: "min" | "max", value: number | "auto") => ModelEdit;
|
|
35
|
+
/** The axis's major or minor unit, or `'auto'` (E12: `c:majorUnit`). */
|
|
36
|
+
export declare const setAxisUnit: (axId: number, unit: "majorUnit" | "minorUnit", value: number | "auto") => ModelEdit;
|
|
37
|
+
/** The format of the axis's labels, no longer linked to its data (E13: `formatCode`, `sourceLinked 0`). */
|
|
38
|
+
export declare const setAxisNumberFormat: (axId: number, formatCode: string) => ModelEdit;
|
|
39
|
+
/** Whether the axis's labels take the format of its data (`sourceLinked 1`, as a new chart states it). */
|
|
40
|
+
export declare const setAxisLinkNumberFormat: (axId: number, linked: boolean) => ModelEdit;
|
|
41
|
+
/**
|
|
42
|
+
* Shows or deletes the axis (E14, E15: `delete 1`). Excel also drops the deleted axis's line and
|
|
43
|
+
* text formatting; the model keeps them, so an axis shown again looks as it did (Excel opens either).
|
|
44
|
+
*/
|
|
45
|
+
export declare const setAxisVisible: (axId: number, visible: boolean) => ModelEdit;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the axis's title text, `null` removing the title (E16, E17: rich text at 10 pt, the title's
|
|
48
|
+
* own text body and no fill or line).
|
|
49
|
+
*/
|
|
50
|
+
export declare const setAxisTitle: (axId: number, text: string | null) => ModelEdit;
|
|
51
|
+
/**
|
|
52
|
+
* Whether a category axis draws each level of multi-level categories (`noMultiLvlLbl` off), or one
|
|
53
|
+
* label per category of all its levels. Excel states the flag either way, on an axis with one level
|
|
54
|
+
* too (N00-N05). A date axis has no such flag, and Excel writes nothing for it (N19).
|
|
55
|
+
*/
|
|
56
|
+
export declare const setAxisMultiLevel: (axId: number, multiLevel: boolean) => ModelEdit;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the categories of every series plotted on the category axis `axId` (N10-N17, N31-N35:
|
|
59
|
+
* Excel's `CategoryNames`), leaving the series of other axes and the multi-level flag as they are
|
|
60
|
+
* (N18, N21, N33). `axis` is what the axis states of the categories when they are cells: an axis
|
|
61
|
+
* that reads dates as dates (`auto`) becomes a date axis when they all are, and a text axis again
|
|
62
|
+
* when they are not (N14, N1A), and a linked format takes the cells' (N14; for numbers, believed).
|
|
63
|
+
*/
|
|
64
|
+
export declare const setAxisCategories: (axId: number, source: ChartModel.DataSource | undefined, axis: CategoryAxisFields | null) => ModelEdit;
|
|
65
|
+
/** Shows or removes the axis's major or minor gridlines (E18-E20). */
|
|
66
|
+
export declare const setAxisGridlines: (axId: number, which: "majorGridlines" | "minorGridlines", visible: boolean) => ModelEdit;
|
|
67
|
+
/** What the gridlines are drawn with: their `spPr` (`undefined` for the application's default). */
|
|
68
|
+
export declare const setAxisGridlinesShape: (axId: number, which: "majorGridlines" | "minorGridlines", spPr: ChartModel.ShapeProperties | undefined) => ModelEdit;
|
|
69
|
+
/** A series' name: text written into the chart (`c:v`), a reference to a cell (a formula), or `null` for none. */
|
|
70
|
+
export declare const setSeriesName: (idx: number, name: string | null) => ModelEdit;
|
|
71
|
+
/** Which dimension of a series a setter states. */
|
|
72
|
+
export type SeriesDimension = 'values' | 'categories' | 'bubbleSizes';
|
|
73
|
+
/**
|
|
74
|
+
* Sets one dimension of a series: its values (`val`, a scatter's `yVal`), its categories (`cat`, a
|
|
75
|
+
* scatter's `xVal`) or a bubble's sizes. `source` is the reference or literal the caller made of the
|
|
76
|
+
* cells; `undefined` removes the dimension (a series with no categories plots against 1, 2, 3…).
|
|
77
|
+
*/
|
|
78
|
+
export declare const setSeriesSource: (idx: number, dimension: SeriesDimension, source: ChartModel.DataSource | undefined) => ModelEdit;
|
|
79
|
+
/** What a series is drawn with (its `spPr`), as the shape style writes it: a key set to `undefined` is removed. */
|
|
80
|
+
export declare const setSeriesShape: (idx: number, patch: {
|
|
81
|
+
fill?: IFill.JSON;
|
|
82
|
+
stroke?: IStroke.JSON;
|
|
83
|
+
}) => ModelEdit;
|
|
84
|
+
/**
|
|
85
|
+
* Sets a series' marker symbol, size, or what it is drawn with. A line series given a symbol shows
|
|
86
|
+
* markers (E35: its group states `marker 1`, the series Excel's 5 pt marker in its color); given
|
|
87
|
+
* `none`, Excel drops the marker's size and formatting, and the group's `marker` (E33).
|
|
88
|
+
*/
|
|
89
|
+
export declare const setSeriesMarker: (idx: number, marker: {
|
|
90
|
+
symbol?: ChartModel.Marker["symbol"];
|
|
91
|
+
size?: number;
|
|
92
|
+
spPr?: ChartModel.ShapeProperties | null;
|
|
93
|
+
}) => ModelEdit;
|
|
94
|
+
/** A group option set through one of its series, as Office Scripts sets it: gap width, overlap, an of-pie's second plot size. */
|
|
95
|
+
export declare const setGroupOption: <K extends "gapWidth" | "overlap" | "secondPieSize">(idx: number, key: K, value: number) => ModelEdit;
|
|
96
|
+
/**
|
|
97
|
+
* A bubble group's option set through one of its series, as Excel writes it (`probe-chart-bubble.ps1`
|
|
98
|
+
* B02, B04, B06): `bubbleScale`, `showNegBubbles`, and `sizeRepresents` `w` (by area, Excel's
|
|
99
|
+
* default, it states none: by belief, as B01 states none).
|
|
100
|
+
*/
|
|
101
|
+
export declare const setBubbleOption: (idx: number, option: {
|
|
102
|
+
bubbleScale?: number;
|
|
103
|
+
showNegBubbles?: boolean;
|
|
104
|
+
sizeRepresents?: "area" | "w";
|
|
105
|
+
}) => ModelEdit;
|
|
106
|
+
/** A change to how an of-pie splits its points: a split type, a split value, or the points of the second plot. */
|
|
107
|
+
export type OfPieSplitChange = {
|
|
108
|
+
type: 'pos' | 'val' | 'percent' | 'cust';
|
|
109
|
+
} | {
|
|
110
|
+
value: number;
|
|
111
|
+
} | {
|
|
112
|
+
points: readonly number[];
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* An of-pie's split changed as Excel writes it (measured 2026-10-18, `probe-chart-ofpie.ps1`), worked
|
|
116
|
+
* out from the group it is applied to, so a type and a value set together compose as Excel's two
|
|
117
|
+
* writes do (O03-O05). `values` are the series' points, by which the points now in the second plot
|
|
118
|
+
* are found:
|
|
119
|
+
* - a type: by value writes a split value of 1 (O27; by percent, and from a type other than the
|
|
120
|
+
* automatic, the same by belief); by position the number of points in the second plot now (by
|
|
121
|
+
* belief); by hand, the points in the second plot now (O29);
|
|
122
|
+
* - a value: on the automatic split it becomes one by position (O28);
|
|
123
|
+
* - the points: a split by hand of them (O30: one point moved there adds it to those there).
|
|
124
|
+
*/
|
|
125
|
+
export declare const setOfPieSplit: (idx: number, change: OfPieSplitChange, values: readonly (number | null)[]) => ModelEdit;
|
|
126
|
+
/** The flags a data label shows. */
|
|
127
|
+
export type LabelFlag = 'showVal' | 'showCatName' | 'showSerName' | 'showPercent' | 'showBubbleSize' | 'showLegendKey';
|
|
128
|
+
/** Whether labels show anything. */
|
|
129
|
+
export declare const showsLabels: (labels: ChartModel.DataLabelOptions | undefined) => boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Shows a series' data labels, its values (D01: `HasDataLabels`), or removes them. Removed, the
|
|
132
|
+
* series' own labels go, and where its group's would still show it says so (`delete 1`): believed,
|
|
133
|
+
* Excel's own markup for a label turned off is not measured.
|
|
134
|
+
*/
|
|
135
|
+
export declare const setLabelsVisible: (idx: number, visible: boolean, chartLevel?: boolean) => ModelEdit;
|
|
136
|
+
/**
|
|
137
|
+
* What a group's own labels state, set with every series' by `SetElement` (`probe-chart-elements.ps1`
|
|
138
|
+
* E201, E202: the group's `showVal 1` and `dLblPos`); `ApplyDataLabels` leaves the group's alone (L01).
|
|
139
|
+
*/
|
|
140
|
+
export declare const setGroupLabels: (idx: number, options: {
|
|
141
|
+
showVal?: boolean;
|
|
142
|
+
dLblPos?: ChartModel.DataLabelOptions["dLblPos"];
|
|
143
|
+
}) => ModelEdit;
|
|
144
|
+
/** A pie's labels shown for the whole chart state their leader lines (L11, L12, P201-P210); elsewhere nothing changes. */
|
|
145
|
+
export declare const setLabelsLeaderLines: (idx: number) => ModelEdit;
|
|
146
|
+
/** Sets one flag of a series' data labels, giving it Excel's labels where it has none (D18-D22). */
|
|
147
|
+
export declare const setLabelsFlag: (idx: number, flag: LabelFlag, value: boolean) => ModelEdit;
|
|
148
|
+
/** Where a series' labels sit (D23-D28: `dLblPos`), `undefined` for the type's default. */
|
|
149
|
+
export declare const setLabelsPosition: (idx: number, position: ChartModel.DataLabelOptions["dLblPos"]) => ModelEdit;
|
|
150
|
+
/** What separates the parts of a label: `, ` by default. */
|
|
151
|
+
export declare const setLabelsSeparator: (idx: number, separator: string | undefined) => ModelEdit;
|
|
152
|
+
/** The labels' number format, `null` for the values' own (D30: `formatCode`, `sourceLinked 0`). */
|
|
153
|
+
export declare const setLabelsNumberFormat: (idx: number, formatCode: string | null) => ModelEdit;
|
|
154
|
+
export type TrendlineModelType = ChartModel.Trendline['trendlineType'];
|
|
155
|
+
/**
|
|
156
|
+
* The trendline Excel adds (T01-T07, T31, T33, T36): a 1.5 pt dotted line with round caps in
|
|
157
|
+
* `color`, the series' automatic color, `dispRSqr 0` and `dispEq 0`, and no label; a polynomial
|
|
158
|
+
* states order 2, a moving average period 2.
|
|
159
|
+
*/
|
|
160
|
+
export declare const newTrendline: (type: TrendlineModelType, color: string) => ChartModel.Trendline;
|
|
161
|
+
/** Adds `trendline` after the series' others. */
|
|
162
|
+
export declare const addTrendline: (idx: number, trendline: ChartModel.Trendline) => ModelEdit;
|
|
163
|
+
/** Removes the series' trendline at `index` (T23, T24); a series left with none states none. */
|
|
164
|
+
export declare const deleteTrendline: (idx: number, index: number) => ModelEdit;
|
|
165
|
+
/**
|
|
166
|
+
* The kind of fit (T08, T25-T27, T29): a polynomial states order 2 and a moving average period 2,
|
|
167
|
+
* the other kind's option goes, and an intercept stays only on a type that holds one. A label stays
|
|
168
|
+
* as it is, on a moving average too (T27: Excel's label then shows nothing).
|
|
169
|
+
*/
|
|
170
|
+
export declare const setTrendlineType: (idx: number, index: number, type: TrendlineModelType) => ModelEdit;
|
|
171
|
+
/** A polynomial's order (T09); on another type Excel changes nothing (T60). */
|
|
172
|
+
export declare const setTrendlineOrder: (idx: number, index: number, order: number) => ModelEdit;
|
|
173
|
+
/** A moving average's period (T10). */
|
|
174
|
+
export declare const setTrendlinePeriod: (idx: number, index: number, period: number) => ModelEdit;
|
|
175
|
+
/** How far the line runs past the last point or before the first (T11, T12); 0 states none (T57). */
|
|
176
|
+
export declare const setTrendlineRun: (idx: number, index: number, which: "forward" | "backward", run: number) => ModelEdit;
|
|
177
|
+
/**
|
|
178
|
+
* The y the fit is held to at x = 0 (T13, T52, T53), `'auto'` to let it go (T14). On a logarithmic
|
|
179
|
+
* or power fit Excel changes nothing (T46).
|
|
180
|
+
*/
|
|
181
|
+
export declare const setTrendlineIntercept: (idx: number, index: number, intercept: number | "auto") => ModelEdit;
|
|
182
|
+
/**
|
|
183
|
+
* Whether the label shows the equation or R² (T15-T18): the first part shown adds Excel's label,
|
|
184
|
+
* and with neither shown the label goes. Excel keeps a hidden label's format for the session
|
|
185
|
+
* (T58); SheetXL's goes with it, as Excel's does at a save.
|
|
186
|
+
*/
|
|
187
|
+
export declare const setTrendlineDisplay: (idx: number, index: number, which: "dispEq" | "dispRSqr", show: boolean) => ModelEdit;
|
|
188
|
+
/** The trendline's entry in the legend (T19), `null` for Excel's own (T20). */
|
|
189
|
+
export declare const setTrendlineName: (idx: number, index: number, name: string | null) => ModelEdit;
|
|
190
|
+
/** What the line is drawn with (T21), as the shape style writes it: a key set to `undefined` is removed. */
|
|
191
|
+
export declare const setTrendlineShape: (idx: number, index: number, patch: {
|
|
192
|
+
fill?: IFill.JSON;
|
|
193
|
+
stroke?: IStroke.JSON;
|
|
194
|
+
}) => ModelEdit;
|
|
195
|
+
/**
|
|
196
|
+
* The format of the label's numbers (T22: `formatCode`, `sourceLinked 0`), `null` for General. A
|
|
197
|
+
* trendline that shows no label is given Excel's, so the format is kept for when it does.
|
|
198
|
+
*/
|
|
199
|
+
export declare const setTrendlineLabelFormat: (idx: number, index: number, formatCode: string | null) => ModelEdit;
|
|
200
|
+
export type ErrorBarsDirection = 'x' | 'y';
|
|
201
|
+
type ErrorValueType = ChartModel.ErrorBars['errValType'];
|
|
202
|
+
/** Shows the series' error bars of `direction` (R01) or removes them (R15, R19). */
|
|
203
|
+
export declare const setErrorBarsVisible: (idx: number, direction: ErrorBarsDirection, visible: boolean) => ModelEdit;
|
|
204
|
+
/**
|
|
205
|
+
* What the bars' amount is (R05-R10, R20): a new type takes Excel's amount for it (by belief, as
|
|
206
|
+
* Excel's pane keeps one per type), standard error none (R08), custom values their `plus` and
|
|
207
|
+
* `minus` (R09).
|
|
208
|
+
*/
|
|
209
|
+
export declare const setErrorBarsType: (idx: number, direction: ErrorBarsDirection, type: ErrorValueType) => ModelEdit;
|
|
210
|
+
/** The amount of a fixed value, a percentage or a number of deviations (`c:val`, R05-R07, R16-R18). */
|
|
211
|
+
export declare const setErrorBarsAmount: (idx: number, direction: ErrorBarsDirection, amount: number) => ModelEdit;
|
|
212
|
+
/** Which way from each point the bars run (R11, R12: `errBarType`). */
|
|
213
|
+
export declare const setErrorBarsInclude: (idx: number, direction: ErrorBarsDirection, include: ChartModel.ErrorBars["errBarType"]) => ModelEdit;
|
|
214
|
+
/** Whether the bars' ends are capped (R13: `noEndCap 1` for none). */
|
|
215
|
+
export declare const setErrorBarsCap: (idx: number, direction: ErrorBarsDirection, cap: boolean) => ModelEdit;
|
|
216
|
+
/** Each point's own amounts above and below (R09 from cells, R10 from arrays): custom bars. */
|
|
217
|
+
export declare const setErrorBarsCustom: (idx: number, direction: ErrorBarsDirection, plus: ChartModel.DataSource, minus: ChartModel.DataSource) => ModelEdit;
|
|
218
|
+
/** What the bars are drawn with (R14), as the shape style writes it: a key set to `undefined` is removed. */
|
|
219
|
+
export declare const setErrorBarsShape: (idx: number, direction: ErrorBarsDirection, patch: {
|
|
220
|
+
fill?: IFill.JSON;
|
|
221
|
+
stroke?: IStroke.JSON;
|
|
222
|
+
}) => ModelEdit;
|
|
223
|
+
/** A group's lines of one kind: `c:hiLowLines`, `c:dropLines`, `c:serLines`. */
|
|
224
|
+
export type GroupLinesKind = 'hiLowLines' | 'dropLines' | 'serLines';
|
|
225
|
+
/**
|
|
226
|
+
* The line of the lines Excel adds (`probe-chart-lines.ps1` H01, D01, D03, V01, V03): 0.75 pt with
|
|
227
|
+
* flat ends, high-low lines darker than drop and series lines.
|
|
228
|
+
*/
|
|
229
|
+
export declare const LINES_COLORS: Readonly<Record<GroupLinesKind, string>>;
|
|
230
|
+
/** The lines of `kind` Excel adds: its line, no fill. */
|
|
231
|
+
export declare const newGroupLines: (kind: GroupLinesKind) => ChartModel.ChartLines;
|
|
232
|
+
/** Shows the group's lines of `kind` as Excel adds them (H01, D01, V01), or removes them. */
|
|
233
|
+
export declare const setGroupLinesVisible: (idx: number, kind: GroupLinesKind, visible: boolean) => ModelEdit;
|
|
234
|
+
/** What the group's lines of `kind` are drawn with (H04, D05, V05), as the shape style writes it. */
|
|
235
|
+
export declare const setGroupLinesShape: (idx: number, kind: GroupLinesKind, patch: {
|
|
236
|
+
fill?: IFill.JSON;
|
|
237
|
+
stroke?: IStroke.JSON;
|
|
238
|
+
}) => ModelEdit;
|
|
239
|
+
/** Which bars of up/down bars: where the last series ends above the first, or not. */
|
|
240
|
+
export type UpDownBarsKind = 'upBars' | 'downBars';
|
|
241
|
+
/** Shows the group's up/down bars as Excel adds them (U01, U02), or removes them (U08). */
|
|
242
|
+
export declare const setUpDownBarsVisible: (idx: number, visible: boolean) => ModelEdit;
|
|
243
|
+
/** The gap between up/down bars, as a percentage of a bar's width (U03, U04, U12). */
|
|
244
|
+
export declare const setUpDownBarsGapWidth: (idx: number, gapWidth: number) => ModelEdit;
|
|
245
|
+
/** What the up or down bars are drawn with (U05, U10), as the shape style writes it. */
|
|
246
|
+
export declare const setUpDownBarsShape: (idx: number, kind: UpDownBarsKind, patch: {
|
|
247
|
+
fill?: IFill.JSON;
|
|
248
|
+
stroke?: IStroke.JSON;
|
|
249
|
+
}) => ModelEdit;
|
|
250
|
+
/** What a font setter states of a run: `null` hands a color or a typeface back to the theme's. */
|
|
251
|
+
export interface FontPatch {
|
|
252
|
+
size?: number;
|
|
253
|
+
weight?: number;
|
|
254
|
+
italic?: boolean;
|
|
255
|
+
color?: string | null;
|
|
256
|
+
/** A family or a {@link IFontStyle.ThemeFamily}; `null` for the theme's body font. */
|
|
257
|
+
family?: string | null;
|
|
258
|
+
/** `null` hands the families back to the theme's. */
|
|
259
|
+
fallbacks?: string[] | null;
|
|
260
|
+
/** `none` is written, as Excel writes it. */
|
|
261
|
+
underline?: IFont.UnderlineStyle;
|
|
262
|
+
strike?: IFont.StrikeStyle;
|
|
263
|
+
/** Points between characters; 0 drops the attribute. */
|
|
264
|
+
letterSpacing?: number;
|
|
265
|
+
/** Percent of the size the text is raised; 0 drops the attribute. */
|
|
266
|
+
baseline?: number;
|
|
267
|
+
/** Removes what the run states of its font first, so it takes the text around it. */
|
|
268
|
+
clear?: boolean;
|
|
269
|
+
}
|
|
270
|
+
/** The default run of an element's text, as the font getters read it. */
|
|
271
|
+
export declare const fontOf: (element: {
|
|
272
|
+
txPr?: ChartModel.TextBody;
|
|
273
|
+
tx?: ChartModel.Text;
|
|
274
|
+
} | undefined) => ChartModel.RunProperties | undefined;
|
|
275
|
+
/** The chart as a chart of `type` (C01-C22): see {@link convertChartType}. */
|
|
276
|
+
export declare const setChartType: (type: NewChartType, counts: ReadonlyMap<number, number>) => ModelEdit;
|
|
277
|
+
/**
|
|
278
|
+
* Every group made a custom group of `kind` (`ChartKinds`), keeping its series, axes and the
|
|
279
|
+
* options it had; `options` the kind's own.
|
|
280
|
+
*/
|
|
281
|
+
export declare const setCustomKind: (kind: string, options?: Record<string, unknown>) => ModelEdit;
|
|
282
|
+
/** Whether hidden rows and columns are left out (P03: `plotVisOnly 0`). */
|
|
283
|
+
export declare const setPlotVisibleOnly: (visible: boolean) => ModelEdit;
|
|
284
|
+
/** Rounded corners (R26: `roundedCorners 1`). */
|
|
285
|
+
export declare const setRoundedCorners: (rounded: boolean) => ModelEdit;
|
|
286
|
+
/** What the chart area is drawn with (R19-R21), as the shape style writes it. */
|
|
287
|
+
export declare const setChartAreaShape: (patch: {
|
|
288
|
+
fill?: IFill.JSON;
|
|
289
|
+
stroke?: IStroke.JSON;
|
|
290
|
+
}) => ModelEdit;
|
|
291
|
+
/**
|
|
292
|
+
* The chart's font (R22-R25, R38): the chart space's own default run, and every text in the chart
|
|
293
|
+
* takes the same; the title's size is 1.2 times the chart's (14.4 pt for 12, as 14 for Excel's 10).
|
|
294
|
+
*/
|
|
295
|
+
export declare const setChartFont: (patch: FontPatch) => ModelEdit;
|
|
296
|
+
/** What the plot area is drawn with (R01-R03). */
|
|
297
|
+
export declare const setPlotAreaShape: (patch: {
|
|
298
|
+
fill?: IFill.JSON;
|
|
299
|
+
stroke?: IStroke.JSON;
|
|
300
|
+
}) => ModelEdit;
|
|
301
|
+
/** Shows the data table as Excel adds it (R04), or removes it (R11). */
|
|
302
|
+
export declare const setDataTableVisible: (visible: boolean) => ModelEdit;
|
|
303
|
+
/** One of the data table's borders or its legend keys (R05-R08), showing the table. */
|
|
304
|
+
export declare const setDataTableFlag: (flag: "showHorzBorder" | "showVertBorder" | "showOutline" | "showKeys", value: boolean) => ModelEdit;
|
|
305
|
+
/** What the data table is drawn with (R09: a color set keeps the line's width and ends), showing it. */
|
|
306
|
+
export declare const setDataTableShape: (patch: {
|
|
307
|
+
fill?: IFill.JSON;
|
|
308
|
+
stroke?: IStroke.JSON;
|
|
309
|
+
}) => ModelEdit;
|
|
310
|
+
/** The data table's font (R10), showing it. */
|
|
311
|
+
export declare const setDataTableFont: (patch: FontPatch) => ModelEdit;
|
|
312
|
+
/** What the title is drawn with (R33), showing it. */
|
|
313
|
+
export declare const setTitleShape: (patch: {
|
|
314
|
+
fill?: IFill.JSON;
|
|
315
|
+
stroke?: IStroke.JSON;
|
|
316
|
+
}) => ModelEdit;
|
|
317
|
+
/** The title's font (R32, R34, R35: its text body and its rich text alike), showing it. */
|
|
318
|
+
export declare const setTitleFont: (patch: FontPatch) => ModelEdit;
|
|
319
|
+
/** What the legend is drawn with (R28, R29), showing it. */
|
|
320
|
+
export declare const setLegendShape: (patch: {
|
|
321
|
+
fill?: IFill.JSON;
|
|
322
|
+
stroke?: IStroke.JSON;
|
|
323
|
+
}) => ModelEdit;
|
|
324
|
+
/** The legend's font (R27), showing it. */
|
|
325
|
+
export declare const setLegendFont: (patch: FontPatch) => ModelEdit;
|
|
326
|
+
/** Whether the legend's entry `idx` is shown (R30, R37: `legendEntry` with `delete 1`); shown again, the entry goes unless it states a font. */
|
|
327
|
+
export declare const setLegendEntryVisible: (idx: number, visible: boolean) => ModelEdit;
|
|
328
|
+
/** The font of the legend's entry `idx` (R31: its own `txPr`, 9 pt). */
|
|
329
|
+
export declare const setLegendEntryFont: (idx: number, patch: FontPatch) => ModelEdit;
|
|
330
|
+
/** The axis's scale: logarithmic in `logBase` (X03, X04, X56: `c:logBase`), or linear with `null` (X05). */
|
|
331
|
+
export declare const setAxisLogBase: (axId: number, logBase: number | null) => ModelEdit;
|
|
332
|
+
/**
|
|
333
|
+
* The axis's display units (X06-X11): a built-in unit (`thousands`, `millions`…) or a custom
|
|
334
|
+
* divisor, with Excel's label; `null` for none. The label is kept as it was where the axis had one.
|
|
335
|
+
*/
|
|
336
|
+
export declare const setAxisDisplayUnits: (axId: number, unit: string | number | null) => ModelEdit;
|
|
337
|
+
/** Whether the display units' label is shown (X10: `dispUnits` with no `dispUnitsLbl`). */
|
|
338
|
+
export declare const setAxisDisplayUnitsLabel: (axId: number, visible: boolean) => ModelEdit;
|
|
339
|
+
/**
|
|
340
|
+
* Where the axis crossing this one crosses it (X12-X17, X55): VBA's `Axis.Crosses` is written on
|
|
341
|
+
* the crossing axis, whose `crosses` says where it crosses this one: at this one's maximum (`max`;
|
|
342
|
+
* the crossing axis moves to the far side of the plot, X12, X16), its minimum, automatically
|
|
343
|
+
* (`autoZero`), or at a value (`crossesAt`, which replaces `crosses`).
|
|
344
|
+
*/
|
|
345
|
+
export declare const setAxisCrosses: (axId: number, at: "autoZero" | "max" | "min" | number) => ModelEdit;
|
|
346
|
+
/** Whether the axis runs from its maximum to its minimum (X18-X20, X58, S361: `orientation maxMin`, the crossing axis moved to the other side). */
|
|
347
|
+
export declare const setAxisReversed: (axId: number, reversed: boolean) => ModelEdit;
|
|
348
|
+
/** The axis's major or minor tick marks (X21-X25). */
|
|
349
|
+
export declare const setAxisTickMark: (axId: number, which: "majorTickMark" | "minorTickMark", mark: ChartModel.TickMark) => ModelEdit;
|
|
350
|
+
/** Where the axis's labels sit (X26-X29, X63). */
|
|
351
|
+
export declare const setAxisTickLabelPosition: (axId: number, position: NonNullable<ChartModel.Axis["tickLblPos"]>) => ModelEdit;
|
|
352
|
+
/**
|
|
353
|
+
* The axis labels' orientation (X30-X35): a counterclockwise angle (45 is `rot -2700000`, -30
|
|
354
|
+
* `rot 1800000`), stacked (`vert wordArtVert`), or Excel's own (`rot -60000000`).
|
|
355
|
+
*/
|
|
356
|
+
export declare const setAxisTextRotation: (axId: number, rotation: number | "vertical" | "auto") => ModelEdit;
|
|
357
|
+
/** What the axis line is drawn with (X36, X37, X59), as the shape style writes it. */
|
|
358
|
+
export declare const setAxisShape: (axId: number, patch: {
|
|
359
|
+
fill?: IFill.JSON;
|
|
360
|
+
stroke?: IStroke.JSON;
|
|
361
|
+
}) => ModelEdit;
|
|
362
|
+
/** The axis labels' font (X38-X42, X59). */
|
|
363
|
+
export declare const setAxisFont: (axId: number, patch: FontPatch) => ModelEdit;
|
|
364
|
+
/**
|
|
365
|
+
* Shows the axis's title with Excel's own text (`probe-chart-elements.ps1` 301-311: a title with
|
|
366
|
+
* no `tx`, 10 pt, read up a side), or removes it.
|
|
367
|
+
*/
|
|
368
|
+
export declare const setAxisTitleVisible: (axId: number, visible: boolean) => ModelEdit;
|
|
369
|
+
/** Whether the axis title is drawn over the plot area (`c:overlay`, as the chart title's). */
|
|
370
|
+
export declare const setAxisTitleOverlay: (axId: number, overlay: boolean) => ModelEdit;
|
|
371
|
+
/** The axis title's font (R36: its rich text and its body alike). */
|
|
372
|
+
export declare const setAxisTitleFont: (axId: number, patch: FontPatch) => ModelEdit;
|
|
373
|
+
/** What the axis title is drawn with. */
|
|
374
|
+
export declare const setAxisTitleShape: (axId: number, patch: {
|
|
375
|
+
fill?: IFill.JSON;
|
|
376
|
+
stroke?: IStroke.JSON;
|
|
377
|
+
}) => ModelEdit;
|
|
378
|
+
/** The axis title's orientation (`probe-chart-elements.ps1` 301-311: rotated reads up, vertical is stacked, horizontal level). */
|
|
379
|
+
export declare const setAxisTitleRotation: (axId: number, rotation: number | "vertical" | "auto") => ModelEdit;
|
|
380
|
+
/** A category axis's label or tick mark spacing (X43, X44: `tickLblSkip`, `tickMarkSkip`); `null` for automatic. */
|
|
381
|
+
export declare const setAxisSkip: (axId: number, which: "tickLblSkip" | "tickMarkSkip", count: number | null) => ModelEdit;
|
|
382
|
+
/** A date axis's base unit (X45, X49), or `null` for Excel's own, restored from the dates as `auto` (X50). */
|
|
383
|
+
export declare const setAxisBaseTimeUnit: (axId: number, unit: ChartModel.TimeUnit) => ModelEdit;
|
|
384
|
+
/** A date axis's major or minor unit with its time unit (X46-X48), or automatic with `null` (both elements go). */
|
|
385
|
+
export declare const setAxisTimeUnit: (axId: number, which: "major" | "minor", count: number | null, unit: ChartModel.TimeUnit) => ModelEdit;
|
|
386
|
+
/**
|
|
387
|
+
* A category axis made a text axis, a date axis, or automatic (X51-X53): a date axis made text
|
|
388
|
+
* states `auto 0` with centered labels of one level and no base unit; a text axis made a date axis
|
|
389
|
+
* `auto 0` with Excel's base unit; automatic, `auto 1` and the type the categories decide.
|
|
390
|
+
*/
|
|
391
|
+
export declare const setAxisCategoryType: (axId: number, type: "cat" | "date" | "auto", dates: boolean, baseUnit: ChartModel.TimeUnit) => ModelEdit;
|
|
392
|
+
/** What a new series is: its name and data, as the setters make them. */
|
|
393
|
+
export interface NewSeries {
|
|
394
|
+
tx?: ChartModel.SeriesText;
|
|
395
|
+
cat?: ChartModel.DataSource;
|
|
396
|
+
val?: ChartModel.DataSource;
|
|
397
|
+
bubbleSize?: ChartModel.DataSource;
|
|
398
|
+
/** Its points, for a pie's colors. */
|
|
399
|
+
count: number;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Adds a series to the last group (N01-N13), with the next `idx` and `order`, drawn as Excel draws
|
|
403
|
+
* one; `position` puts it at that place in the plot order (N06: the others move after it).
|
|
404
|
+
*/
|
|
405
|
+
export declare const addSeries: (series: NewSeries, position?: number) => ModelEdit;
|
|
406
|
+
/**
|
|
407
|
+
* A pie's, doughnut's or of-pie's series given values takes a point per value in the chart's
|
|
408
|
+
* colors with the white border (N11), where it has none.
|
|
409
|
+
*/
|
|
410
|
+
export declare const setSeriesPoints: (idx: number, count: number) => ModelEdit;
|
|
411
|
+
/**
|
|
412
|
+
* Removes the series (N07-N10): its group too when emptied, and the axes no group draws against,
|
|
413
|
+
* unless it was the chart's only group (N09: the group stays, with no series).
|
|
414
|
+
*/
|
|
415
|
+
export declare const deleteSeries: (idx: number) => ModelEdit;
|
|
416
|
+
/** The series' place in the plot order, from 0 (S05, S07, S08: `PlotOrder`); its group's series are relisted by it. */
|
|
417
|
+
export declare const setSeriesOrder: (idx: number, position: number) => ModelEdit;
|
|
418
|
+
/** A series' `smooth` (S10-S12) or `invertIfNegative` (S14, S15). */
|
|
419
|
+
export declare const setSeriesFlag: (idx: number, flag: "smooth" | "invertIfNegative", value: boolean) => ModelEdit;
|
|
420
|
+
/** How far a pie's or doughnut's slices are pulled out (S17, S18, S23: `explosion`, none for 0). */
|
|
421
|
+
export declare const setSeriesExplosion: (idx: number, explosion: number) => ModelEdit;
|
|
422
|
+
/**
|
|
423
|
+
* Whether a group of one series colors each point (S20-S22: `varyColors`). On, a single series
|
|
424
|
+
* takes a point per value in the colors of the places, its own fill moved to the first (S20); off, a
|
|
425
|
+
* pie's points go and the series takes the first point's fill (S22). Two series change the flag alone (S21).
|
|
426
|
+
*/
|
|
427
|
+
export declare const setGroupVaryColors: (idx: number, vary: boolean, count: number) => ModelEdit;
|
|
428
|
+
/**
|
|
429
|
+
* What a point is drawn with (T01-T03, T14-T16): a bar's or slice's point takes the series' fill and
|
|
430
|
+
* line with the patch over them; a line's point takes the patch on its marker (its fill, T14) and
|
|
431
|
+
* on both its line and the marker's outline (T15).
|
|
432
|
+
*/
|
|
433
|
+
export declare const setPointShape: (idx: number, index: number, patch: {
|
|
434
|
+
fill?: IFill.JSON;
|
|
435
|
+
stroke?: IStroke.JSON;
|
|
436
|
+
}) => ModelEdit;
|
|
437
|
+
/** A point's own marker (T04, T05): symbol, size, or what it is drawn with, over the series' marker. */
|
|
438
|
+
export declare const setPointMarker: (idx: number, index: number, marker: {
|
|
439
|
+
symbol?: ChartModel.Marker["symbol"];
|
|
440
|
+
size?: number;
|
|
441
|
+
spPr?: ChartModel.ShapeProperties | null;
|
|
442
|
+
}) => ModelEdit;
|
|
443
|
+
/** How far a slice is pulled out (T06: the point's `explosion`). */
|
|
444
|
+
export declare const setPointExplosion: (idx: number, index: number, explosion: number) => ModelEdit;
|
|
445
|
+
/**
|
|
446
|
+
* Whether a waterfall's point is a total (`subtotal`): a point that states nothing else is added or
|
|
447
|
+
* removed for it, as Excel writes a total only in the series' `cx:subtotals`.
|
|
448
|
+
*/
|
|
449
|
+
export declare const setPointSubtotal: (key: string, index: number, total: boolean) => ModelEdit;
|
|
450
|
+
/** A point's `invertIfNegative` (T17). */
|
|
451
|
+
export declare const setPointInvertIfNegative: (idx: number, index: number, invert: boolean) => ModelEdit;
|
|
452
|
+
/** Shows a point's label (T07) or hides it: a `delete 1` label where the series shows labels (T12), else the label goes (T13). */
|
|
453
|
+
export declare const setPointLabelVisible: (idx: number, index: number, visible: boolean) => ModelEdit;
|
|
454
|
+
/** One flag of a point's label (T11). */
|
|
455
|
+
export declare const setPointLabelFlag: (idx: number, index: number, flag: LabelFlag, value: boolean) => ModelEdit;
|
|
456
|
+
/** Where a point's label sits (T08: `dLblPos`). */
|
|
457
|
+
export declare const setPointLabelPosition: (idx: number, index: number, position: ChartModel.DataLabelOptions["dLblPos"]) => ModelEdit;
|
|
458
|
+
/** A point's label's number format (T09), `null` for the values' own. */
|
|
459
|
+
export declare const setPointLabelNumberFormat: (idx: number, index: number, formatCode: string | null) => ModelEdit;
|
|
460
|
+
/** A point's label's text (T10: rich text of one run), `null` for the automatic text. */
|
|
461
|
+
export declare const setPointLabelText: (idx: number, index: number, text: string | null) => ModelEdit;
|
|
462
|
+
/** A point's label's font (T18). */
|
|
463
|
+
export declare const setPointLabelFont: (idx: number, index: number, patch: FontPatch) => ModelEdit;
|
|
464
|
+
/** What a point's label is drawn with (T19). */
|
|
465
|
+
export declare const setPointLabelShape: (idx: number, index: number, patch: {
|
|
466
|
+
fill?: IFill.JSON;
|
|
467
|
+
stroke?: IStroke.JSON;
|
|
468
|
+
}) => ModelEdit;
|
|
469
|
+
/** What a series' labels are drawn with (L09), giving it Excel's labels where it has none. */
|
|
470
|
+
export declare const setLabelsShape: (idx: number, patch: {
|
|
471
|
+
fill?: IFill.JSON;
|
|
472
|
+
stroke?: IStroke.JSON;
|
|
473
|
+
}) => ModelEdit;
|
|
474
|
+
/** A series' labels' font (L08, L14). */
|
|
475
|
+
export declare const setLabelsFont: (idx: number, patch: FontPatch) => ModelEdit;
|
|
476
|
+
/** A series' labels' orientation (L10). */
|
|
477
|
+
export declare const setLabelsRotation: (idx: number, rotation: number | "vertical" | "auto") => ModelEdit;
|
|
478
|
+
/** Whether a series' labels take the values' format (L15: off writes `General` unlinked). */
|
|
479
|
+
export declare const setLabelsLinkNumberFormat: (idx: number, linked: boolean) => ModelEdit;
|
|
480
|
+
/**
|
|
481
|
+
* The cells a series' labels show (Excel's "Value From Cells", L07 and `probe-chart-values.ps1`
|
|
482
|
+
* W8): the series' `c15:datalabelsRange` and its labels' `c15:showDataLabelsRange`; `null` removes both.
|
|
483
|
+
*/
|
|
484
|
+
export declare const setLabelsRange: (idx: number, source: ChartModel.DataReference | null) => ModelEdit;
|
|
485
|
+
/** The `c:ext` uri of a series' `c15:datalabelsRange`, and of its labels' `c15:showDataLabelsRange`. */
|
|
486
|
+
export declare const DATALABELS_RANGE_URI = "{02D57815-91ED-43cb-92C2-25804820EDAC}";
|
|
487
|
+
export declare const LABELS_EXTENSION_URI = "{CE6537A1-D6FC-4f65-9D91-7224C49458BB}";
|
|
488
|
+
export {};
|
|
489
|
+
//# sourceMappingURL=_Edits.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ChartModel } from './ChartModel';
|
|
2
|
+
/** The type a series is given: a group type, plus the options that tell Excel's chart types apart. */
|
|
3
|
+
export interface GroupTarget {
|
|
4
|
+
type: ChartModel.GroupType;
|
|
5
|
+
is3D?: boolean;
|
|
6
|
+
barDir?: 'bar' | 'col';
|
|
7
|
+
grouping?: ChartModel.Group['grouping'];
|
|
8
|
+
}
|
|
9
|
+
export type AxisGroup = 'primary' | 'secondary';
|
|
10
|
+
/** Makes an `axId` no axis of the chart has. */
|
|
11
|
+
export type NewAxisId = () => number;
|
|
12
|
+
/**
|
|
13
|
+
* Types that do not combine. Measured: setting one series of a chart to bubble, a 3-D type or
|
|
14
|
+
* surface converts every series, and setting one series of such a chart to anything converts every
|
|
15
|
+
* series too. Of-pie is treated the same way; that is a belief, not measured. Stock is not: no
|
|
16
|
+
* series can be given a stock type (Excel refuses), and a stock series given another type leaves
|
|
17
|
+
* the stock group alone (measured 2026-10-18, `probe-chart-stock-refusals.ps1`).
|
|
18
|
+
*/
|
|
19
|
+
export declare const isWholeChartType: (group: GroupTarget) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The axis group a group draws against, or `null` for a group with no axes (a pie).
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* The first pair of axes the plot area states is the primary one; any other pair is secondary. In a
|
|
25
|
+
* combo made from a pie chart, Excel's COM reports the new group as secondary even when its axes
|
|
26
|
+
* are the only ones in the part (measured before saving; not measured after a reload).
|
|
27
|
+
*/
|
|
28
|
+
export declare const axisGroupOf: (plotArea: ChartModel.PlotArea, group: ChartModel.Group) => AxisGroup | null;
|
|
29
|
+
/** The group holding the series `idx`, and where. */
|
|
30
|
+
export declare const findSeries: (plotArea: ChartModel.PlotArea, idx: number) => {
|
|
31
|
+
group: ChartModel.Group;
|
|
32
|
+
groupIndex: number;
|
|
33
|
+
series: ChartModel.Series;
|
|
34
|
+
} | null;
|
|
35
|
+
/**
|
|
36
|
+
* The series a chart names by `key` (`IChart.ISeries` paths): its `idx`, or `#` and its place among
|
|
37
|
+
* the chart's series, group by group, where it states none (a 2016 chart's, as Excel writes them).
|
|
38
|
+
*/
|
|
39
|
+
export declare const findSeriesByKey: (plotArea: ChartModel.PlotArea, key: string) => {
|
|
40
|
+
group: ChartModel.Group;
|
|
41
|
+
groupIndex: number;
|
|
42
|
+
series: ChartModel.Series;
|
|
43
|
+
} | null;
|
|
44
|
+
/** The key a chart names each series by, as {@link findSeriesByKey} finds it. */
|
|
45
|
+
export declare const seriesKeys: (plotArea: ChartModel.PlotArea | undefined) => Map<ChartModel.Series, string>;
|
|
46
|
+
/**
|
|
47
|
+
* Drops emptied groups, and the axes no group draws against. When the primary axes are left with no
|
|
48
|
+
* group, every group moves onto them and the secondary axes go: Excel has no chart with secondary
|
|
49
|
+
* axes only (measured: moving all four series of a column chart to the secondary axes, one by one,
|
|
50
|
+
* leaves them all on the primary axes in one group).
|
|
51
|
+
*/
|
|
52
|
+
export declare const tidyPlotArea: (plotArea: ChartModel.PlotArea) => ChartModel.PlotArea;
|
|
53
|
+
/**
|
|
54
|
+
* Gives the series `idx` the type `target`, moving it to the group of that type on the axes it can
|
|
55
|
+
* share, as Excel does.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* - Changing only a group option (clustered to stacked, area to stacked area) changes the whole
|
|
59
|
+
* group, every series in it (measured): grouping is per group.
|
|
60
|
+
* - The series joins the group of the target type on its own axes when it can share them, else on
|
|
61
|
+
* the other pair; when neither fits it gets the secondary axes, made for it. A pie or doughnut has
|
|
62
|
+
* no axes.
|
|
63
|
+
* - A category series added to a scatter chart shares the scatter group's axes, whose horizontal
|
|
64
|
+
* axis becomes a category axis (measured).
|
|
65
|
+
* - Joining an existing column group this way drops that group's `overlap` (measured, and odd:
|
|
66
|
+
* moving a series back by its axis group keeps it).
|
|
67
|
+
* - The group it leaves is removed when empty, and with it any axes no group uses.
|
|
68
|
+
*
|
|
69
|
+
* @throws When the move is one the probes did not measure: a third pair of axes would be needed.
|
|
70
|
+
*/
|
|
71
|
+
export declare const setSeriesType: (plotArea: ChartModel.PlotArea, idx: number, target: GroupTarget, newAxisId: NewAxisId) => ChartModel.PlotArea;
|
|
72
|
+
/**
|
|
73
|
+
* Moves the series `idx` to the primary or secondary axes, keeping its type.
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* Measured: the series joins the group of its type on those axes, or a new one that copies its old
|
|
77
|
+
* group's options (`gapWidth`, `overlap`, `grouping`…). The first move to the secondary axes adds
|
|
78
|
+
* them: for a column, line or area group a value axis on the right that crosses at the maximum and
|
|
79
|
+
* a deleted category axis at the bottom; for horizontal bars the value axis on top and the deleted
|
|
80
|
+
* category axis on the left. A series without axes (a pie) is not moved.
|
|
81
|
+
*/
|
|
82
|
+
export declare const setSeriesAxisGroup: (plotArea: ChartModel.PlotArea, idx: number, axisGroup: AxisGroup, newAxisId: NewAxisId) => ChartModel.PlotArea;
|
|
83
|
+
//# sourceMappingURL=_Grouping.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
/**
|
|
3
|
+
* Which series a chart makes of a selection, as Excel's Insert Chart decides (measured 2026-10-17,
|
|
4
|
+
* `probe-chart-insert.ps1`, 83 selections through `AddChart2`, DESIGN-CHART §3.5). Ported from
|
|
5
|
+
* exhibit-master's `ChartSelection.ts`, whose header scan Excel agrees with; what it lacked (several
|
|
6
|
+
* areas side by side, a bubble's sizes) is Excel's measured behavior.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Pure: it reads the cells through a {@link CellKind} callback and answers coordinates, so it runs
|
|
10
|
+
* on any grid. The caller turns a selection into areas first (a single cell becomes its current
|
|
11
|
+
* region, whole rows or columns their used cells).
|
|
12
|
+
*/
|
|
13
|
+
/** A cell as inference reads it: a date is a number in a date format. */
|
|
14
|
+
export type CellKind = 'blank' | 'text' | 'number' | 'date';
|
|
15
|
+
/** Whether each series is a row or a column of the data. */
|
|
16
|
+
export type SeriesBy = 'rows' | 'columns';
|
|
17
|
+
/** How the series' data is laid out: categories and values, x and y, or x, y and sizes. */
|
|
18
|
+
export type InferenceFamily = 'category' | 'scatter' | 'bubble';
|
|
19
|
+
/** One series as inferred: where its name, categories (or x values), values and sizes are. */
|
|
20
|
+
export interface InferredSeries {
|
|
21
|
+
/** The cells naming the series, or `null` when it has no name. */
|
|
22
|
+
name: IRange.Coords[] | null;
|
|
23
|
+
/** The categories, or a scatter's or bubble's x values; `null` when there are none. */
|
|
24
|
+
categories: IRange.Coords[] | null;
|
|
25
|
+
values: IRange.Coords[];
|
|
26
|
+
/** A bubble's sizes: cells, or a count of points that are all sized 1. */
|
|
27
|
+
sizes?: IRange.Coords[] | number;
|
|
28
|
+
}
|
|
29
|
+
export interface Inference {
|
|
30
|
+
seriesBy: SeriesBy;
|
|
31
|
+
series: InferredSeries[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The series Excel makes of `areas`, all on one sheet.
|
|
35
|
+
*
|
|
36
|
+
* @param areas The selection, in the order it was made. Areas that share their rows (or their
|
|
37
|
+
* columns) are read as one block with the cells between them left out; any other areas follow the
|
|
38
|
+
* first one's layout.
|
|
39
|
+
* @param kindAt What the cell at absolute coordinates holds.
|
|
40
|
+
* @param family How the chart's series take their data.
|
|
41
|
+
* @param seriesBy The direction, or `undefined` to let the cells decide.
|
|
42
|
+
*/
|
|
43
|
+
export declare function inferSeries(areas: readonly IRange.Coords[], kindAt: (rowIndex: number, colIndex: number) => CellKind, family?: InferenceFamily, seriesBy?: SeriesBy): Inference;
|
|
44
|
+
/**
|
|
45
|
+
* The cells around `cell` up to blank rows and columns on every side, diagonals included: what
|
|
46
|
+
* Excel charts when one cell is selected (Excel's `CurrentRegion`, measured on a table, I21). A
|
|
47
|
+
* blank cell with nothing around it is itself.
|
|
48
|
+
*
|
|
49
|
+
* @param last The last row and column that hold anything; nothing past them is read.
|
|
50
|
+
*/
|
|
51
|
+
export declare function currentRegion(cell: IRange.CellCoords, kindAt: (rowIndex: number, colIndex: number) => CellKind, last: IRange.CellCoords): IRange.Coords;
|
|
52
|
+
//# sourceMappingURL=_Inference.d.ts.map
|