@sheetxl/sdk 0.8.0-beta.12 → 0.8.0-beta.14
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/THIRD-PARTY-NOTICES.md +172 -0
- package/browser/esm/{CBYMTDzMf1Vh7pkw.mjs → 3t4S9eda2I6jFad0.mjs} +1 -1
- package/browser/esm/{Bg5Di9GLNAkbqQ1P.mjs → AXlD9K1gCwPU4gCO.mjs} +1926 -1298
- package/browser/esm/{w6Jea0TiclPrYZ2M.mjs → B1aH_qa-czVyEVHd.mjs} +509 -509
- package/browser/esm/{DZiivy0NmO1Vnyzk.mjs → BEDfJP2tcuRy2Y2E.mjs} +2 -2
- package/browser/esm/{BdCJNawfifyPupCP.mjs → BLYl-afJe_3std8i.mjs} +1 -1
- package/browser/esm/{D2RZh0O9neOsyLAE.mjs → BPPMKyMn65i1a1mE.mjs} +69 -48
- package/browser/esm/{yuhcOYw6SHQ-RCm3.mjs → BSXQAXwZdJKYTO4P.mjs} +30 -30
- package/browser/esm/{-Jx-jNHmtIQQfLvK.mjs → BVqIknGhQCLUB_7Q.mjs} +1 -1
- package/browser/esm/{fXWUMDhZ5yMSO629.mjs → BWoz4kQdA5KKJfl6.mjs} +1 -1
- package/browser/esm/{DwwR3O2sEZApPSTF.mjs → Bdcd3QOzsc0aVMjN.mjs} +3 -3
- package/browser/esm/{2mIwPy2D2JUX-9wx.mjs → BpwULQPKbb4R9Jew.mjs} +2 -2
- package/browser/esm/{CwOPLXU3-9ZHGyOT.mjs → C7hpfT-sX2lyLS-D.mjs} +1 -1
- package/browser/esm/{BIHrHjRGWVlJglcp.mjs → CImFKFaYToUH-bSE.mjs} +2 -2
- package/browser/esm/{BTFBedJMRWGvZyCE.mjs → CM_X1zZYzEUPaNJL.mjs} +1 -1
- package/browser/esm/CPIWV3Enlh_BF2TY.mjs +19 -0
- package/browser/esm/{CndRBvVfQUJIYRRj.mjs → ChYgQL-8qIDFmX31.mjs} +50 -50
- package/browser/esm/{BudSIfXBAsTxvu-K.mjs → CtC__ALh4I8PKIln.mjs} +10071 -9246
- package/browser/esm/{qO-ujUrgq6H3TQix.mjs → Cy8uYCggktF83278.mjs} +1 -1
- package/browser/esm/D2NFcBM4xsv0JJ1q.mjs +184 -0
- package/browser/esm/{D9xNz46kAfXMZzp4.mjs → D39XcmtPXVtMN4yF.mjs} +2 -2
- package/browser/esm/{CdEO8CEee6lEhabA.mjs → DBvu0tdSf-5vol4e.mjs} +2 -2
- package/browser/esm/{Tah7cnFb_HNZdLtj.mjs → DIfAk63CvaOZ3QKi.mjs} +3 -3
- package/browser/esm/{B3wf5vZCsWfWsDbj.mjs → D_XMi4_5iO2rkET5.mjs} +1 -1
- package/browser/esm/{DgrAuRD2qr2DvFeJ.mjs → Dh84MDs-OhdCPCIg.mjs} +44 -44
- package/browser/esm/{DPhGQLNGmDZwODwJ.mjs → Dhw5XEJYFrkYjdU2.mjs} +94 -94
- package/browser/esm/{Cxjxk0ncRKx80I-w.mjs → DiXeQjc0WJGLSVEo.mjs} +1 -1
- package/browser/esm/DnR0xY7_iE3TmMcg.mjs +348 -0
- package/browser/esm/{DK899HhWX1HINMC1.mjs → DnqwX3-2NfGBaXXl.mjs} +25 -25
- package/browser/esm/{D64dM68B1pKYFzdP.mjs → DonQz2Tc3k9lNT8E.mjs} +2 -2
- package/browser/esm/{Bt8_m94tBdks209L.mjs → DvvqmUQ9Z0NFm1-4.mjs} +1 -1
- package/browser/esm/{BnC4-27Igwb8oDf2.mjs → Ln4gsmhqH1LyoANj.mjs} +44 -43
- package/browser/esm/{CUzYuYTTGsChC_kZ.mjs → MuNBN02MyZ558c_K.mjs} +2052 -1583
- package/browser/esm/{CRkYR-siY2C994KV.mjs → SwLp-iElwDjfcJtv.mjs} +1 -1
- package/browser/esm/{C9u8FUewte5ugUjH.mjs → UMQTbO0zNmBpzW1V.mjs} +725 -716
- package/browser/esm/aRXqxIzjuSLwawMh.mjs +18 -0
- package/browser/esm/index.mjs +482 -440
- package/browser/esm/{hCQJcmIzPDxDEv2q.mjs → oSCy1X5CJ1iYtGDp.mjs} +2 -2
- package/browser/esm/{DobHLF6VjHr7Xi40.mjs → qCqzZW74-fhaIG2V.mjs} +1 -1
- package/browser/esm/{CNdjyofiRu6CYOrr.mjs → r_EZapMBdyS4gUd-.mjs} +50 -48
- package/browser/esm/yuF8SbWfjBfrxcq5.mjs +367 -0
- package/licenses/dependencies.txt +71 -1
- package/node/esm/99miMotf3dOuG5Jk.mjs +372 -0
- package/node/esm/{-TA0MneBDKdGhsib.mjs → B3hBxzqJ2_hUylNr.mjs} +3329 -2852
- package/node/esm/{BNXLOEddJ6O9gYws.mjs → B5VmOC0jO9Zbh9Mq.mjs} +2 -2
- package/node/esm/{DhS6yWjrrSNIJMsn.mjs → B6jhx5pHPs2W5GE7.mjs} +234 -225
- package/node/esm/{DUTmDHbFbhLDT4F3.mjs → BCjHRVU8tC5lYypg.mjs} +1 -1
- package/node/esm/BEBt5fo__rvT2q_u.mjs +310 -0
- package/node/esm/{icn2nX5Z8e_3mNAv.mjs → BELc5aQ_pFPgbiso.mjs} +1 -1
- package/node/esm/{DrCf6ITcBhVOFpRj.mjs → BEdxa3I4VOiCsvy7.mjs} +7 -7
- package/node/esm/{D3ptRKzASqBut1DE.mjs → BLPrFp_jKGYgWPX1.mjs} +2 -2
- package/node/esm/{BskP3b8vUoIOGLY6.mjs → BSVttk12GXNfKZ9k.mjs} +2 -2
- package/node/esm/{D4ROK9UwDpS6jO3Z.mjs → BXg-D8Rc_iyB8p7X.mjs} +1 -1
- package/node/esm/{DV5CU37aEbFbWFL0.mjs → BfEdeOg4iYXaYTlh.mjs} +1 -1
- package/node/esm/BuyAYLI4s33-vmgG.mjs +18 -0
- package/node/esm/{C_xf5Bz30VqiJjXn.mjs → C-5JLSNof0FhkuFd.mjs} +1 -1
- package/node/esm/{eimUGjiIP-b8HiM6.mjs → C3S4hF1vn0NyJPPd.mjs} +52 -52
- package/node/esm/{BL2iiEoqxDEV2Xrg.mjs → CI8UIWR01z9QDlzH.mjs} +3348 -2610
- package/node/esm/{pYtP7wPyS96NQyXS.mjs → CPsGyt3vnOdLTShj.mjs} +25 -25
- package/node/esm/{CG-qBU5BAaVz7e-P.mjs → Ccocd9DTvOnlOE9D.mjs} +1 -1
- package/node/esm/{C14-R6tifRh7pc0p.mjs → CdSTmD2ZvG9NesNR.mjs} +1 -1
- package/node/esm/{Q_S1g46ZOTrdhTae.mjs → Crn6dnSQQRCQAnQ-.mjs} +1 -1
- package/node/esm/{DdoiuKg9BKubtF1V.mjs → Cyeq1rDslIqF1LKz.mjs} +1 -1
- package/node/esm/{Ci_zLYmCD7e-C79O.mjs → D30rC6AWaGGf3CaC.mjs} +1 -1
- package/node/esm/D4Y1WJgjiFEgbWrW.mjs +115 -0
- package/node/esm/{Vocy-I9dKzZMr0Ct.mjs → DLdXl0O0TXuyqLU4.mjs} +10898 -10685
- package/node/esm/{D8hO07ToAibIuniw.mjs → DbPUG2DcQ3T_QhcJ.mjs} +138 -136
- package/node/esm/{lGJ42sHqg5if2bba.mjs → DeFE8QfuCeGw-mvd.mjs} +458 -458
- package/node/esm/{CiIymQN6aJCul62g.mjs → DiCMnYA2bttmrX3q.mjs} +9 -9
- package/node/esm/{DhTya_mhmN53vskv.mjs → Dlk2ZYExFgQ0xE2H.mjs} +1 -1
- package/node/esm/{Btw4148Ot8ifhNc1.mjs → I-FZojIFWluC6X-j.mjs} +1 -1
- package/node/esm/{C99zzq8DImQXi4BQ.mjs → Lj98EH6coGdKUzuS.mjs} +10 -10
- package/node/esm/{B-HUPAcqvK0eeeCz.mjs → NA-8urR7T1NCwrgD.mjs} +38 -37
- package/node/esm/{DxazKtROyaI51dWl.mjs → YpOpRyciqQLIY1-G.mjs} +1 -1
- package/node/esm/{CkRYLed8Mmn3giNg.mjs → b3XnssSr9lmvAC2N.mjs} +2 -2
- package/node/esm/clgEkmEwfB28nkz2.mjs +351 -0
- package/node/esm/index.mjs +584 -540
- package/node/esm/{CRt3vXe6YmXzqk3H.mjs → pF2vCOTmrxPAB41Q.mjs} +102 -102
- package/node/esm/{CBuEu5Jk-LfaDy-H.mjs → uLrulyR7IXq0SF4j.mjs} +44 -44
- package/node/esm/{C_aL7CGS1lrNn1Ng.mjs → xRGObcoaGDnAZFnj.mjs} +1 -1
- package/package.json +10 -7
- package/resources/contents.json +108 -0
- package/resources/fonts/aptos-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-bold.hinted.json +125 -0
- package/resources/fonts/aptos-bold.metrics.json +221 -0
- package/resources/fonts/aptos-bold.rows.json +8 -0
- package/resources/fonts/aptos-display-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-display-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-display-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-display-bold.hinted.json +125 -0
- package/resources/fonts/aptos-display-bold.metrics.json +221 -0
- package/resources/fonts/aptos-display-bold.rows.json +8 -0
- package/resources/fonts/aptos-display-italic.hinted.json +124 -0
- package/resources/fonts/aptos-display-italic.metrics.json +221 -0
- package/resources/fonts/aptos-display-italic.rows.json +8 -0
- package/resources/fonts/aptos-display-regular.hinted.json +125 -0
- package/resources/fonts/aptos-display-regular.metrics.json +221 -0
- package/resources/fonts/aptos-display-regular.rows.json +8 -0
- package/resources/fonts/aptos-italic.hinted.json +125 -0
- package/resources/fonts/aptos-italic.metrics.json +221 -0
- package/resources/fonts/aptos-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-bold.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-bold.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-bold.rows.json +8 -0
- package/resources/fonts/aptos-narrow-italic.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-italic.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-regular.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-regular.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-regular.rows.json +8 -0
- package/resources/fonts/aptos-regular.hinted.json +125 -0
- package/resources/fonts/aptos-regular.metrics.json +221 -0
- package/resources/fonts/aptos-regular.rows.json +8 -0
- package/resources/fonts/arial-bold-italic.rows.json +0 -1
- package/resources/fonts/arial-bold.rows.json +0 -1
- package/resources/fonts/arial-italic.rows.json +0 -1
- package/resources/fonts/arial-regular.rows.json +0 -1
- package/resources/fonts/calibri-bold-italic.rows.json +0 -1
- package/resources/fonts/calibri-bold.rows.json +0 -1
- package/resources/fonts/calibri-italic.rows.json +0 -1
- package/resources/fonts/calibri-regular.rows.json +0 -1
- package/resources/fonts/cambria-bold-italic.rows.json +0 -1
- package/resources/fonts/cambria-bold.rows.json +0 -1
- package/resources/fonts/cambria-italic.rows.json +0 -1
- package/resources/fonts/cambria-regular.rows.json +0 -1
- package/resources/fonts/contents.json +240 -0
- package/resources/fonts/courier-new-bold-italic.rows.json +0 -1
- package/resources/fonts/courier-new-bold.rows.json +0 -1
- package/resources/fonts/courier-new-italic.rows.json +0 -1
- package/resources/fonts/courier-new-regular.rows.json +0 -1
- package/resources/fonts/times-new-roman-bold-italic.rows.json +0 -1
- package/resources/fonts/times-new-roman-bold.rows.json +0 -1
- package/resources/fonts/times-new-roman-italic.rows.json +0 -1
- package/resources/fonts/times-new-roman-regular.rows.json +0 -1
- package/resources/locales/de/model.msg.json +4 -0
- package/resources/locales/en/model.msg.json +4 -0
- package/types/scripting-api.json +9339 -9320
- package/types/scripting.d.ts +322 -200
- package/types/src/.generated/wasm/sdk.d.ts +5 -27
- package/types/src/address/AddressUtils.d.ts +8 -0
- package/types/src/address/_SheetNameQuoteChars.d.ts +3 -0
- package/types/src/anomalies/_FocusTable.d.ts +0 -6
- package/types/src/calculation/Calculation.d.ts +20 -95
- package/types/src/calculation/ExternalBookBindings.d.ts +0 -26
- package/types/src/calculation/NamedFormulaCollection.d.ts +6 -2
- package/types/src/calculation/TokenType.d.ts +0 -10
- package/types/src/calculation/_CloneBoundary.d.ts +0 -24
- package/types/src/calculation/_FormulaToolkit.d.ts +0 -5
- package/types/src/calculation/compiler/ASTTypes.d.ts +0 -13
- package/types/src/calculation/compiler/CompilerUtils.d.ts +0 -227
- package/types/src/calculation/compiler/FormulaLexer.d.ts +0 -8
- package/types/src/calculation/compiler/FormulaParser.d.ts +0 -61
- package/types/src/calculation/compiler/ParserUtils.d.ts +0 -24
- package/types/src/calculation/compiler/Types.d.ts +0 -52
- package/types/src/calculation/engine/CalcBackend.d.ts +15 -157
- package/types/src/calculation/engine/index.d.ts +0 -8
- package/types/src/calculation/executor/CalcExecutor.d.ts +13 -130
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +30 -11
- package/types/src/calculation/executor/CircularReference.d.ts +0 -17
- package/types/src/calculation/executor/_BlockOrder.d.ts +29 -0
- package/types/src/calculation/executor/_WhatIf.d.ts +0 -19
- package/types/src/calculation/formula/FormulaBlock.d.ts +0 -28
- package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
- package/types/src/calculation/formula/IFormulaBlock.d.ts +0 -12
- package/types/src/calculation/formula/LambdaValue.d.ts +0 -15
- package/types/src/calculation/formula/TokenUtils.d.ts +1 -8
- package/types/src/calculation/grid/CalcGrid.d.ts +5 -59
- package/types/src/calculation/grid/CalcGridBackend.d.ts +8 -9
- package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -13
- package/types/src/calculation/grid/CalcGridUtils.d.ts +18 -22
- package/types/src/calculation/grid/ICalcGrid.d.ts +13 -98
- package/types/src/calculation/grid/_CalcRequest.d.ts +1 -29
- package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +52 -82
- package/types/src/calculation/spatial/SpillEntry.d.ts +10 -7
- package/types/src/calculation/state/CalcScope.d.ts +0 -9
- package/types/src/calculation/state/CalcState.d.ts +0 -12
- package/types/src/calculation/state/CalculationContext.d.ts +4 -37
- package/types/src/calculation/state/DeferredCalls.d.ts +11 -64
- package/types/src/calculation/state/IContextContainer.d.ts +4 -60
- package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +46 -33
- package/types/src/calculation/state/_WhatIfLayer.d.ts +0 -14
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +0 -42
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +0 -6
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +0 -12
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +0 -9
- package/types/src/calculation/toolkit/index.d.ts +0 -8
- package/types/src/cell/ICell.d.ts +14 -28
- package/types/src/cellRange/ICellRange.d.ts +22 -11
- package/types/src/chart/Chart.d.ts +0 -16
- package/types/src/chart/_ChartParts.d.ts +0 -39
- package/types/src/chart/_ChartSource.d.ts +0 -14
- package/types/src/chart/createChart.d.ts +1 -1
- package/types/src/chart/kinds/ChartKind.d.ts +4 -4
- package/types/src/chart/kinds/_Placeholder.d.ts +0 -1
- package/types/src/chart/layout/TextMeasurer.d.ts +0 -20
- package/types/src/chart/layout/_LayoutUtils.d.ts +0 -16
- package/types/src/chart/math/BoxStats.d.ts +0 -8
- package/types/src/chart/math/DateUnitCalcs.d.ts +0 -10
- package/types/src/chart/math/Histogram.d.ts +0 -17
- package/types/src/chart/math/OrdUnitCalcs.d.ts +0 -53
- package/types/src/chart/math/Treemap.d.ts +0 -15
- package/types/src/chart/math/Trendlines.d.ts +0 -8
- package/types/src/chart/math/UnitCalcs.d.ts +0 -22
- package/types/src/chart/model/_Edits.d.ts +0 -33
- package/types/src/chart/model/_Grouping.d.ts +0 -25
- package/types/src/chart/model/_Inference.d.ts +0 -18
- package/types/src/chart/model/_NewChart.d.ts +0 -41
- package/types/src/chart/model/_OfPie.d.ts +0 -7
- package/types/src/chart/resolve/_LegacyStyles.d.ts +0 -20
- package/types/src/chart/resolve/_Resolve.d.ts +0 -19
- package/types/src/chart/resolve/_ResolvedChart.d.ts +0 -6
- package/types/src/collections/_GridUtils.d.ts +0 -10
- package/types/src/comment/_NoteBox.d.ts +0 -15
- package/types/src/condition/AnchoredConditional.d.ts +1 -23
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +0 -49
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +0 -10
- package/types/src/condition/ICondition.d.ts +2 -2
- package/types/src/condition/_ConditionUtils.d.ts +0 -38
- package/types/src/externalBook/ExternalBookCollection.d.ts +0 -15
- package/types/src/externalBook/ExternalBookName.d.ts +2 -3
- package/types/src/externalBook/IExternalBook.d.ts +13 -14
- package/types/src/fetch/IFetcher.d.ts +2 -1
- package/types/src/fetch/_WorkbookFetch.d.ts +1 -1
- package/types/src/font/AdvanceTable.d.ts +16 -42
- package/types/src/font/IFont.d.ts +32 -9
- package/types/src/font/TableFileAdvanceBuilder.d.ts +6 -3
- package/types/src/font/_FontUtils.d.ts +0 -8
- package/types/src/font/_StandIns.d.ts +33 -0
- package/types/src/io/IWorkbookIO.d.ts +3 -3
- package/types/src/io/WorkbookOrigin.d.ts +2 -2
- package/types/src/license/LicenseManager.d.ts +2 -1
- package/types/src/license/_Utils.d.ts +4 -3
- package/types/src/license/details.d.ts +3 -1
- package/types/src/license/keys.d.ts +6 -0
- package/types/src/license/license-key.d.ts +15 -33
- package/types/src/license/token.d.ts +55 -0
- package/types/src/picture/IPicture.d.ts +45 -0
- package/types/src/picture/Picture.d.ts +12 -0
- package/types/src/pivot/PivotTable.d.ts +0 -7
- package/types/src/primitives/AsyncValue.d.ts +0 -12
- package/types/src/primitives/PrimitiveUtils.d.ts +1 -110
- package/types/src/primitives/Range.d.ts +0 -60
- package/types/src/primitives/ScalarCollation.d.ts +0 -106
- package/types/src/primitives/stats/AggregateStats.d.ts +0 -19
- package/types/src/print/PageLayout.d.ts +0 -6
- package/types/src/reference/ReferenceUtils.d.ts +4 -2
- package/types/src/richData/RichDataRegistry.d.ts +6 -0
- package/types/src/scripting/TypedFunction.d.ts +0 -109
- package/types/src/scripting/enumManifest.browser.d.ts +7 -2
- package/types/src/sheet/IWorksheet.d.ts +2 -5
- package/types/src/sheet/NamedCellRange.d.ts +0 -21
- package/types/src/sheet/SheetCell.d.ts +8 -2
- package/types/src/sheet/Worksheet.d.ts +7 -48
- package/types/src/sheet/_DelimitedText.d.ts +13 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
- package/types/src/sheet/_ScalarListFactory.d.ts +0 -19
- package/types/src/sheet/_SheetCoords.d.ts +0 -7
- package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
- package/types/src/sheet/_SheetStateReader.d.ts +0 -10
- package/types/src/sheet/_SheetStateTypes.d.ts +0 -3
- package/types/src/sheet/_SheetUtils.d.ts +1 -1
- package/types/src/sheet/style/_RowLine.d.ts +32 -0
- package/types/src/sheet/style/_StyleUtils.d.ts +6 -14
- package/types/src/sheetView/_SheetViewUtils.d.ts +0 -1
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +0 -5
- package/types/src/style/ICellStyle.d.ts +4 -0
- package/types/src/table/AnchoredTable.d.ts +0 -147
- package/types/src/text/TextFrame.d.ts +4 -1
- package/types/src/text/TextStacked.d.ts +0 -24
- package/types/src/text/TextWrapper.d.ts +3 -5
- package/types/src/text/_LineBox.d.ts +24 -0
- package/types/src/text/_TextUtils.d.ts +5 -2
- package/types/src/text/_TextWrapperFallback.d.ts +2 -1
- package/types/src/wasm/sdkWasm.d.ts +1 -1
- package/types/src/workbook/Workbook.d.ts +0 -10
- package/browser/esm/2WuhYrIpYmOR5H73.mjs +0 -698
- package/browser/esm/CTe2qfmIUEad6FJv.mjs +0 -199
- package/browser/esm/CfRqiPDg6RBTg1EN.mjs +0 -367
- package/browser/esm/DVroRnhi-5IDXNgM.mjs +0 -210
- package/browser/esm/DwZCT7DZiiXoTweg.mjs +0 -14
- package/node/esm/BSvOluusoDM4z_dx.mjs +0 -811
- package/node/esm/CPI58duc0j0a-HpJ.mjs +0 -115
- package/node/esm/DggQ23jKMpwhENfa.mjs +0 -372
- package/node/esm/Dn1M7YWi25DeeYUb.mjs +0 -210
- package/node/esm/ZXPFcsT2zrALCZux.mjs +0 -289
|
@@ -330,7 +330,6 @@ export declare class ChartAxis implements IChart.IAxis {
|
|
|
330
330
|
setCustomDisplayUnit(unit: number, options?: ITransaction.OperationOptions): this;
|
|
331
331
|
getShowDisplayUnitLabel(): boolean;
|
|
332
332
|
setShowDisplayUnitLabel(show: boolean, options?: ITransaction.OperationOptions): this;
|
|
333
|
-
/** The axis crossing this one: where VBA's `Crosses` is written (DESIGN-CHART §3.6). */
|
|
334
333
|
private _crossing;
|
|
335
334
|
getCrosses(): IChart.AxisCrosses;
|
|
336
335
|
setCrosses(crosses: IChart.AxisCrosses, options?: ITransaction.OperationOptions): this;
|
|
@@ -362,7 +361,6 @@ export declare class ChartAxis implements IChart.IAxis {
|
|
|
362
361
|
setCategoryType(type: IChart.AxisCategoryType, options?: ITransaction.OperationOptions): this;
|
|
363
362
|
/** The dates of the first series on the axis, as numbers; `null` where its categories are not all dates. */
|
|
364
363
|
private _dates;
|
|
365
|
-
/** The base unit Excel chooses for the axis's dates (DESIGN-CHART §4.2), `days` without any. */
|
|
366
364
|
private _automaticBaseUnit;
|
|
367
365
|
/** The axis's categories from a setter's input. @throws ExpectedError where the axis has none. */
|
|
368
366
|
private _categoriesEdit;
|
|
@@ -509,16 +507,6 @@ export declare class ChartSeries implements IChart.ISeries {
|
|
|
509
507
|
* size (5-200).
|
|
510
508
|
*/
|
|
511
509
|
private _groupOption;
|
|
512
|
-
/**
|
|
513
|
-
* The series given `type`, as one edit: moved to its group by `_Grouping`'s measured moves, and
|
|
514
|
-
* drawn as a series of the type is (`drawSeriesAsType`). Every series whose group changed type is
|
|
515
|
-
* drawn anew, as Excel does when bubble or 3-D types take the whole chart; one that stays in its
|
|
516
|
-
* group changes its markers, and a scatter its line, keeping its own fill and line otherwise. A
|
|
517
|
-
* series that becomes a scatter's states its categories and values as x and y values, and the
|
|
518
|
-
* other way round. No series can be given a stock type: Excel refuses one
|
|
519
|
-
* (`probe-chart-stock-refusals.ps1`); nor an of-pie, which is not measured; nor a 3-D form, a
|
|
520
|
-
* surface or a 2016 type, which take the whole chart (`IChart.setChartType`).
|
|
521
|
-
*/
|
|
522
510
|
private _typeEdit;
|
|
523
511
|
private _axisGroupEdit;
|
|
524
512
|
getFormula(): string;
|
|
@@ -546,11 +534,6 @@ export declare class ChartSeries implements IChart.ISeries {
|
|
|
546
534
|
* plot order, the sizes for a bubble.
|
|
547
535
|
*/
|
|
548
536
|
private _formulaEdits;
|
|
549
|
-
/**
|
|
550
|
-
* The categories set through this series: a scatter's or bubble's x values are its own; a
|
|
551
|
-
* category chart's categories are shared by every series on its axis, so each takes them, and
|
|
552
|
-
* `null` clears them all (measured 2026-10-18, `probe-chart-api.ps1` S01-S04).
|
|
553
|
-
*/
|
|
554
537
|
private _categoriesEdit;
|
|
555
538
|
/** A dimension's source, from a setter's input. */
|
|
556
539
|
private _source;
|
|
@@ -751,17 +734,7 @@ export declare class ChartErrorBars implements IChart.IErrorBars {
|
|
|
751
734
|
edits(update: IChart.IErrorBars.Update): ModelEdit[];
|
|
752
735
|
update(update: IChart.IErrorBars.Update, options?: ITransaction.OperationOptions): this;
|
|
753
736
|
}
|
|
754
|
-
/**
|
|
755
|
-
* Whether Excel draws up/down bars and high-low lines for a group: a 2-D line or stock group
|
|
756
|
-
* (`probe-chart-lines.ps1`; 3-D lines refused by belief).
|
|
757
|
-
*/
|
|
758
737
|
export declare const takesUpDownBars: (group: ChartModel.Group) => boolean;
|
|
759
|
-
/**
|
|
760
|
-
* Whether Excel draws a group's lines of `kind` (`probe-chart-lines.ps1`): high-low lines on a line
|
|
761
|
-
* or stock group; drop lines on a line, area or stock group (D09: COM takes them on a scatter and
|
|
762
|
-
* writes none); series lines on stacked and 100% stacked bars and pie of pie (V06: COM takes them on
|
|
763
|
-
* clustered columns and writes none). 3-D groups are refused by belief.
|
|
764
|
-
*/
|
|
765
738
|
export declare const takesLines: (group: ChartModel.Group, kind: Edits.GroupLinesKind) => boolean;
|
|
766
739
|
export declare class ChartGroupLines implements IChart.ILines {
|
|
767
740
|
private readonly _host;
|
|
@@ -995,11 +968,6 @@ export declare class ChartGroup implements IChart.IChartGroup {
|
|
|
995
968
|
getVaryByCategories(): boolean;
|
|
996
969
|
setVaryByCategories(vary: boolean, options?: ITransaction.OperationOptions): this;
|
|
997
970
|
}
|
|
998
|
-
/**
|
|
999
|
-
* Every series' data labels at once (Office Scripts' `chart.getDataLabels()`, VBA's
|
|
1000
|
-
* `ApplyDataLabels`, `probe-chart-api.ps1` L01): reads answer the first series', each setter sets
|
|
1001
|
-
* every series as one step.
|
|
1002
|
-
*/
|
|
1003
971
|
export declare class ChartAllLabels implements IChart.IDataLabels {
|
|
1004
972
|
private readonly _host;
|
|
1005
973
|
private readonly _all;
|
|
@@ -1054,13 +1022,6 @@ export interface ChartElementParts {
|
|
|
1054
1022
|
plotArea: ChartPlotArea;
|
|
1055
1023
|
dataTable: ChartDataTable;
|
|
1056
1024
|
}
|
|
1057
|
-
/**
|
|
1058
|
-
* The edits of a chart element (VBA's `SetElement`, measured 2026-10-18, `probe-chart-elements.ps1`):
|
|
1059
|
-
* each `msoElement…` as the setters above make it. A data label element sets every series; a
|
|
1060
|
-
* trendline, error bar, line or up/down bar element every series or group that takes one. What
|
|
1061
|
-
* Excel refuses (an element of axes the chart has none of, a label position its type has none of,
|
|
1062
|
-
* a trendline on a pie) throws `ExpectedError`.
|
|
1063
|
-
*/
|
|
1064
1025
|
export declare const elementEdits: (parts: ChartElementParts, element: IChart.Element) => ModelEdit[];
|
|
1065
1026
|
export {};
|
|
1066
1027
|
//# sourceMappingURL=_ChartParts.d.ts.map
|
|
@@ -15,14 +15,6 @@ export declare function newChartType(type: IChart.Type | string | undefined): Ne
|
|
|
15
15
|
export declare const toFormatCode: (format: string, locale?: string) => string;
|
|
16
16
|
/** A range as a chart's formula names it: sheet-qualified and absolute. */
|
|
17
17
|
export declare const formulaOfRange: (range: ICellRange) => string;
|
|
18
|
-
/**
|
|
19
|
-
* What a series setter's input states for a dimension: an array constant as values written into the
|
|
20
|
-
* chart, else a reference. Values are always numbers (`numRef`); categories are numbers when every
|
|
21
|
-
* cell they name holds a number or a date, two lines deep a multi-level reference, else text, as a
|
|
22
|
-
* new chart states them (DESIGN-CHART §3.5).
|
|
23
|
-
*
|
|
24
|
-
* @param host The sheet a bare address is on.
|
|
25
|
-
*/
|
|
26
18
|
export declare function sourceFromInput(input: ICellRange | string, dimension: 'values' | 'categories', host: IWorksheet): ChartModel.DataSource;
|
|
27
19
|
/** How many cells (or array values) a setter's input names; 0 where it names none. */
|
|
28
20
|
export declare function cellCountOf(input: ICellRange | string, host: IWorksheet | null): number;
|
|
@@ -37,11 +29,5 @@ export declare function categoriesFromInput(input: ICellRange | string, host: IW
|
|
|
37
29
|
source: ChartModel.DataSource;
|
|
38
30
|
axis: CategoryAxisFields | null;
|
|
39
31
|
};
|
|
40
|
-
/**
|
|
41
|
-
* The series of a chart of `type` over `source`, and the chart's model, as Excel makes a new chart
|
|
42
|
-
* (DESIGN-CHART §3.5).
|
|
43
|
-
*
|
|
44
|
-
* @param host The sheet a bare address is on.
|
|
45
|
-
*/
|
|
46
32
|
export declare function createModelFromSource(type: NewChartType, source: ICellRange | ICellRanges | string, host: IWorksheet, seriesBy?: IChart.SeriesBy): ChartModel.ChartSpace;
|
|
47
33
|
//# sourceMappingURL=_ChartSource.d.ts.map
|
|
@@ -20,7 +20,7 @@ export interface CreateChartOptions {
|
|
|
20
20
|
* of {@link IChart} works, `getLayout` lays it out at a size, and `@sheetxl/react`'s `ChartElement`
|
|
21
21
|
* draws it. Its writes are not undoable: it has no transaction store.
|
|
22
22
|
*
|
|
23
|
-
* The chart's code is loaded with the first chart, so this is asynchronous
|
|
23
|
+
* The chart's code is loaded with the first chart, so this is asynchronous.
|
|
24
24
|
*/
|
|
25
25
|
export declare function createChart(json: IChart.JSON, options?: CreateChartOptions): Promise<IChart>;
|
|
26
26
|
//# sourceMappingURL=createChart.d.ts.map
|
|
@@ -15,8 +15,8 @@ import { DateSlots } from '../math/DateUnitCalcs';
|
|
|
15
15
|
* asks each group's kind for the group: where its bars, points, slices or whatever it draws go.
|
|
16
16
|
*
|
|
17
17
|
* @beta The context a kind is given speaks the layout's frame units today: points from the frame's
|
|
18
|
-
* origin, as the layout works in them
|
|
19
|
-
*
|
|
18
|
+
* origin, as the layout works in them, with `at` and `px` to convert. This may change to px, as
|
|
19
|
+
* {@link ChartLayout} uses, while the API is in beta.
|
|
20
20
|
*
|
|
21
21
|
* `coordinates` says what the chrome lays out for the kind: `cartesian`, a pair of axes
|
|
22
22
|
* (category and value, or a scatter's two value axes) whose scales are fit to what
|
|
@@ -177,7 +177,7 @@ export declare namespace ChartKind {
|
|
|
177
177
|
xOfValue(scale: ValueScale, axis: ResolvedChart.Axis, value: number): number;
|
|
178
178
|
/** The series layout every kind states: id, name, values, slots, fill, stroke and trendlines. */
|
|
179
179
|
base(series: ResolvedChart.Series): Omit<ChartLayout.SeriesLayout, 'marker'>;
|
|
180
|
-
/** A line or area group's up/down bars, high-low lines and drop lines
|
|
180
|
+
/** A line or area group's up/down bars, high-low lines and drop lines. */
|
|
181
181
|
analysisLines(scale: ValueScale, tops: (number | null)[][], baseValue: number): Pick<ChartLayout.LineGroupLayout, 'upDownBars' | 'hiLowLines' | 'dropLines'>;
|
|
182
182
|
/** Lines in the frame cut to the plot, in px. */
|
|
183
183
|
segments(lines: Pt[][]): ChartLayout.Segment[];
|
|
@@ -219,7 +219,7 @@ export declare namespace ChartKind {
|
|
|
219
219
|
* The kinds of chart group, by group type: the built-ins, and any a host registers.
|
|
220
220
|
*
|
|
221
221
|
* @remarks
|
|
222
|
-
* The built-in kinds register when the chart module loads (with the first chart
|
|
222
|
+
* The built-in kinds register when the chart module loads (with the first chart),
|
|
223
223
|
* so before that {@link get} answers `undefined` for `'bar'`; a host's kind registered under a
|
|
224
224
|
* built-in type keeps its place when they do. A registration is a call, never a side effect of an
|
|
225
225
|
* import: the package declares no side effects, so a bundler drops a module imported only for one.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChartKind } from './ChartKind';
|
|
2
|
-
/** The 2016 types not drawn: the region map, laid out as a placeholder (PLAN-CHART §4). */
|
|
3
2
|
export declare const PLACEHOLDER_TYPES: readonly ["regionMap"];
|
|
4
3
|
/** A region map: a label in the plot saying the type is not drawn. */
|
|
5
4
|
export declare const PlaceholderKind: ChartKind;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { IFontCollection } from '../../font/IFontCollection';
|
|
2
|
-
/**
|
|
3
|
-
* How chart layout measures text: one line's advance width and its height, in points.
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
* Excel lays chart text out with DirectWrite's numbers, not GDI's: advances unhinted and unkerned,
|
|
7
|
-
* and a line as tall as the font's ascent plus descent at the exact size, from the typo metrics
|
|
8
|
-
* when the font sets `USE_TYPO_METRICS` and from `usWinAscent`/`usWinDescent` otherwise (measured,
|
|
9
|
-
* DESIGN-CHART §4). Every host measures through this one interface, so a server and a browser lay
|
|
10
|
-
* a chart out alike.
|
|
11
|
-
*/
|
|
12
2
|
export interface TextMeasurer {
|
|
13
3
|
/** The advance width of `text` on one line, in pt. */
|
|
14
4
|
width(text: string, font: TextMeasurer.Font): number;
|
|
@@ -24,15 +14,5 @@ export declare namespace TextMeasurer {
|
|
|
24
14
|
italic?: boolean;
|
|
25
15
|
}
|
|
26
16
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Measures with the font tables of `fonts`: the family's own table, a related family's, or a
|
|
29
|
-
* built-in one (DESIGN-FONTS §3).
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* A table keeps `usWinAscent`/`usWinDescent` only, so a family that sets `USE_TYPO_METRICS` and has
|
|
33
|
-
* typo metrics that differ from them measures taller than Excel draws it. Aptos Narrow, the default
|
|
34
|
-
* chart font, has no table: it is measured with Calibri's, whose width differs by up to 8% per
|
|
35
|
-
* string and whose line height (1.2207 em) is Aptos Narrow's.
|
|
36
|
-
*/
|
|
37
17
|
export declare function createTableMeasurer(fonts?: IFontCollection): TextMeasurer;
|
|
38
18
|
//# sourceMappingURL=TextMeasurer.d.ts.map
|
|
@@ -5,26 +5,10 @@ import { ChartLayout } from './ChartLayout';
|
|
|
5
5
|
import { ResolvedChart } from '../resolve/_ResolvedChart';
|
|
6
6
|
import { AxisLimits } from '../math/UnitCalcs';
|
|
7
7
|
import { TrendlineTextRun } from '../math/Trendlines';
|
|
8
|
-
/**
|
|
9
|
-
* What the layout and the kinds share: the frame's units and the conversions to px, and the small
|
|
10
|
-
* questions every kind asks of an axis or a group.
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Lengths are points until the end, where they become px. Element positions are relative to a
|
|
14
|
-
* frame inset {@link FRAME_INSET} from the chart on every side: COM reports them in it, the title
|
|
15
|
-
* centers in it, and the margins are symmetric about it, at every chart size and border width
|
|
16
|
-
* probed (DESIGN-CHART §4, `probe-chart-layout.ps1`, Excel 16.0, 2026-10-16).
|
|
17
|
-
*/
|
|
18
8
|
export declare const FRAME_INSET = 4;
|
|
19
9
|
export declare const PX_PER_PT: number;
|
|
20
10
|
/** How far a value axis's end labels may reach past the plot area's outer rect. */
|
|
21
11
|
export declare const LABEL_OVERHANG = 6;
|
|
22
|
-
/**
|
|
23
|
-
* The band axis labels take beside the plot: the widest label (vertical value axis) or one line
|
|
24
|
-
* (horizontal axis) plus `perLine` lines, less 4.5 pt. Fit on Aptos Narrow from 6 to 28 pt to
|
|
25
|
-
* 0.012 pt; Calibri and Arial at 18 pt fall within 0.15 pt and 0.54 pt. A scatter's x axis takes the
|
|
26
|
-
* horizontal band too (`probe-chart-area-scatter.ps1` S0).
|
|
27
|
-
*/
|
|
28
12
|
export declare const VALUE_LABEL_BAND: {
|
|
29
13
|
perLine: number;
|
|
30
14
|
offset: number;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The statistics a box and whisker draws for one set of values, as Excel computes them (measured
|
|
3
|
-
* 2026-10-22, `probe-chart-2016-types.ps1` B01-B13 and `probe-chart-2016-types-reopen.ps1` B05-B07;
|
|
4
|
-
* DESIGN-CHART §4.17): quartiles by Excel's exclusive (`QUARTILE.EXC`) or inclusive
|
|
5
|
-
* (`QUARTILE.INC`) method, the median the same either way; whiskers to the furthest values within
|
|
6
|
-
* 1.5 interquartile ranges of the box, and the values beyond them outliers (B09: 60 beyond a box of
|
|
7
|
-
* 15..25).
|
|
8
|
-
*/
|
|
9
1
|
export type QuartileMethod = 'inclusive' | 'exclusive';
|
|
10
2
|
export interface BoxStats {
|
|
11
3
|
count: number;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Excel's date axis (measured 2026-10-17, `probe-chart-dates.ps1` and `probe-chart-dates-units.ps1`,
|
|
3
|
-
* DESIGN-CHART §4.2). Dates are serials, in the 1900 or 1904 system; lengths are points.
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
* A date axis has one slot per base unit (a day, a month or a year) from its first date, snapped to
|
|
7
|
-
* the start of its unit, to its last; each point is drawn in the slot of its date, so a gap in the
|
|
8
|
-
* dates is a gap on the axis and two points of one date share a slot. Labels are drawn on the
|
|
9
|
-
* major ticks only, from the first slot on, in the axis's number format.
|
|
10
|
-
*/
|
|
11
1
|
export type TimeUnit = 'days' | 'months' | 'years';
|
|
12
2
|
/** A length of time: `count` of `unit`. */
|
|
13
3
|
export interface DateUnit {
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* How a histogram bins its values, as Excel does (measured 2026-10-22,
|
|
3
|
-
* `probe-chart-2016-types.ps1` H01-H16 and `probe-chart-2016-types-reopen.ps1` H04-H07, H13;
|
|
4
|
-
* DESIGN-CHART §4.16).
|
|
5
|
-
*
|
|
6
|
-
* - The automatic bin width is Scott's rule, 3.5·s/∛n for the sample standard deviation s, rounded
|
|
7
|
-
* to two significant digits (27.32 → 27, 14.75 → 15, 18.88 → 19, 0.4001 → 0.40, 81.32 → 81);
|
|
8
|
-
* {@link REPEATED_VALUE_WIDTH} when every value is the same (H15: one value, [7, 12]).
|
|
9
|
-
* - A stated bin count divides the values' range into that many bins (H05: 81/5 = 16.2).
|
|
10
|
-
* - The bins start at the minimum, or at the underflow bound where one is stated, and run up by
|
|
11
|
-
* the width until they reach the maximum, or the overflow bound, where the last bin is cut
|
|
12
|
-
* (H06: (30, 57], (57, 60]; H07: [12, 39], (39, 60]). An underflow bin takes the values at or
|
|
13
|
-
* below its bound, an overflow bin those above (`intervalClosed r`), or below and at or above
|
|
14
|
-
* (`l`).
|
|
15
|
-
* - Closed on the right, the first bin takes its lower bound too, `[12, 39]`, the others `(39, 66]`;
|
|
16
|
-
* closed on the left, every bin is `[30, 40)` (H13), and a value at the maximum has a bin of its own.
|
|
17
|
-
*/
|
|
18
1
|
/** The bin width when the values have no spread: belief, from one value repeated (H15). */
|
|
19
2
|
export declare const REPEATED_VALUE_WIDTH = 5;
|
|
20
3
|
export interface HistogramOptions {
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { TextMeasurer } from '../layout/TextMeasurer';
|
|
2
|
-
/**
|
|
3
|
-
* Excel's fit of category axis labels: as they are, wrapped, turned to 45 and then 90 degrees, and
|
|
4
|
-
* then only every nth one shown (measured 2026-10-17, `probe-chart-categories.ps1`, DESIGN-CHART
|
|
5
|
-
* §4.1). Lengths are points.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Rescued from exhibit-master's `OrdUnitCalcs.js` and typed over {@link TextMeasurer}: the same
|
|
9
|
-
* order of trials, with the spacing each angle needs taken from {@link calcDistanceNeededAtAxis}
|
|
10
|
-
* of the labels' own width, and the label interval from how many labels the axis holds.
|
|
11
|
-
*/
|
|
12
2
|
/** What is drawn for a label cut short. */
|
|
13
3
|
export declare const LABEL_ELLIPSIS = "\u2026";
|
|
14
4
|
/** How to fit one axis's labels. */
|
|
@@ -35,11 +25,6 @@ export interface CategoryFitOptions {
|
|
|
35
25
|
reversed?: boolean;
|
|
36
26
|
/** The labels are stacked letter over letter (`vert="wordArtVert"`). */
|
|
37
27
|
vertical?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The labels are the innermost level of multi-level categories. Excel then turns them straight
|
|
40
|
-
* to 90 degrees when it chooses, never 45 (measured 2026-10-17, `probe-chart-multilevel.ps1`: every
|
|
41
|
-
* turn of four sweeps, where 45 degrees would have fit; a stated 45 is kept).
|
|
42
|
-
*/
|
|
43
28
|
innermost?: boolean;
|
|
44
29
|
}
|
|
45
30
|
/** An axis's labels as fitted. */
|
|
@@ -74,18 +59,6 @@ export declare function findLargestWord(text: string, measure: (text: string) =>
|
|
|
74
59
|
* line).
|
|
75
60
|
*/
|
|
76
61
|
export declare function wrapLabel(text: string, width: number, measure: (text: string) => number, breakWords?: boolean): string[];
|
|
77
|
-
/**
|
|
78
|
-
* Stacked labels (`vert="wordArtVert"`, measured 2026-10-22, `probe-chart-axes.ps1` V01-V09): each
|
|
79
|
-
* letter on its own line, {@link STACKED_LETTER_PITCH} lines apart (12.82 pt at 9 pt, fitted there
|
|
80
|
-
* and held within 0.2 pt at 6, 14 and 18 pt); along the bottom a label taller than half the plot's
|
|
81
|
-
* outer height breaks into columns of as many letters as fit, {@link STACKED_COLUMN_PITCH} font
|
|
82
|
-
* sizes apart (from the pictures at 9 and 14 pt), centered on the category. The last label reaches
|
|
83
|
-
* past its category along the axis by {@link STACKED_REACH} of its own column's height, the
|
|
84
|
-
* letters' drawn pitch (V01, V02, V06, V07, V09: 0.939 to 0.940 at 9, 14 and 18 pt); the first
|
|
85
|
-
* reaches nowhere (V02, V06, V09: two columns over the value axis's band, which stays).
|
|
86
|
-
* Up a side, a label is one column as deep as a letter's pitch, whatever its letters (V03, V04 at
|
|
87
|
-
* 9 pt: 12.82 pt for "Jan".."Jun" and for "0".."30").
|
|
88
|
-
*/
|
|
89
62
|
export declare const STACKED_LETTER_PITCH: number;
|
|
90
63
|
export declare const STACKED_COLUMN_PITCH = 0.95;
|
|
91
64
|
/**
|
|
@@ -109,13 +82,6 @@ export interface CategoryGroup {
|
|
|
109
82
|
/** The label; `null` for the blanks before a level's first label, a group with none. */
|
|
110
83
|
text: string | null;
|
|
111
84
|
}
|
|
112
|
-
/**
|
|
113
|
-
* The groups of each level of multi-level categories beyond the innermost, the nearest the axis
|
|
114
|
-
* first. `levels` are by level, the innermost first, each by category with `''` for a blank. A
|
|
115
|
-
* label starts a group, and a blank continues the one before it; blanks before a level's first
|
|
116
|
-
* label are a group with no label (measured 2026-10-17, `probe-chart-multilevel.ps1` L21). A group
|
|
117
|
-
* also ends where a group of a level further out does (believed).
|
|
118
|
-
*/
|
|
119
85
|
export declare function groupCategories(levels: readonly (readonly string[])[], count: number): CategoryGroup[][];
|
|
120
86
|
/** How to fit one outer level of multi-level categories. */
|
|
121
87
|
export interface LevelFitOptions {
|
|
@@ -137,30 +103,11 @@ export interface LevelFit {
|
|
|
137
103
|
/** How far the level's labels reach away from the axis: their lines' height. */
|
|
138
104
|
depth: number;
|
|
139
105
|
}
|
|
140
|
-
/**
|
|
141
|
-
* Fits the labels of one outer level of multi-level categories to their groups, a group having its
|
|
142
|
-
* categories' share of the axis (measured 2026-10-17, `probe-chart-multilevel.ps1`):
|
|
143
|
-
* - Along the bottom, each label wraps between words to its group's share, its lines centered,
|
|
144
|
-
* when every word of the level fits its group; else every label of the level wraps to
|
|
145
|
-
* {@link OVERRUN_WRAP} of the axis and may overrun its group (the long outer sweep).
|
|
146
|
-
* - Up a side, the labels are turned to read up and wrap to their group's share, inside words too
|
|
147
|
-
* (L16, the bar height sweep).
|
|
148
|
-
* - A stated interval shows a group's label only where its first category's label is shown (L27,
|
|
149
|
-
* L38-L41); Excel's own interval leaves every outer label shown (L4).
|
|
150
|
-
*/
|
|
151
106
|
export declare function fitCategoryLevel(groups: readonly CategoryGroup[], font: TextMeasurer.Font, measurer: TextMeasurer, options: LevelFitOptions): LevelFit;
|
|
152
107
|
/** How to fit a date axis's labels. */
|
|
153
108
|
export interface DateFitOptions extends Omit<CategoryFitOptions, 'skip'> {
|
|
154
109
|
/** A wide date in the axis's format (December 13th, 2000): what Excel measures to decide whether labels stay level. */
|
|
155
110
|
sample: string;
|
|
156
111
|
}
|
|
157
|
-
/**
|
|
158
|
-
* Fits a date axis's labels, `texts` one per slot and `null` for a slot with no major tick
|
|
159
|
-
* (measured 2026-10-17, `probe-chart-dates.ps1`), by the room the labels have: level
|
|
160
|
-
* when each has room for {@link DATE_LEVEL}, at 45 degrees when two ticks are √2 × {@link DATE_LABEL_SPAN}
|
|
161
|
-
* × the size apart, else at 90 degrees, which needs the span the major unit is fit to (every move between
|
|
162
|
-
* 45 and 90 degrees in the sweeps within 0.2 pt). A level label stays on one line (believed). Up a
|
|
163
|
-
* side the labels stay level.
|
|
164
|
-
*/
|
|
165
112
|
export declare function fitDateLabels(texts: readonly (string | null)[], font: TextMeasurer.Font, measurer: TextMeasurer, options: DateFitOptions): CategoryLabelFit;
|
|
166
113
|
//# sourceMappingURL=OrdUnitCalcs.d.ts.map
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* How Excel tiles a treemap (measured 2026-10-22, `probe-chart-2016-types.ps1` T01-T11 and the
|
|
3
|
-
* 168 pictures of `probe-chart-treemap-sweep.ps1`; DESIGN-CHART §4.18). The children of a node,
|
|
4
|
-
* largest first, each take a strip of the rect left: a column of the rect's full height as wide
|
|
5
|
-
* as the child's share, unless the rect is taller than wide and a row of its full width would be no
|
|
6
|
-
* wider than {@link TREEMAP_ASPECT} times its height, when the child takes that row. The last child
|
|
7
|
-
* takes what is left.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* The rule is not squarified: two near-equal children of a rect 1.12 times taller than wide sit
|
|
11
|
-
* side by side (T01's Europe, T06), as a squarified layout never would, while children of 50 and
|
|
12
|
-
* 30 stack in a square (the sweep). Across the sweep's eight pairs the row's aspect at which the
|
|
13
|
-
* children turn from side by side to stacked lies between 1.587 and 1.639 for every pair: the
|
|
14
|
-
* golden ratio.
|
|
15
|
-
*/
|
|
16
1
|
export declare const TREEMAP_ASPECT = 1.618;
|
|
17
2
|
export interface TreemapRect {
|
|
18
3
|
x: number;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Excel's trendlines: the fits, their R², the moving average, and the label's equation.
|
|
3
|
-
*
|
|
4
|
-
* @remarks
|
|
5
|
-
* Measured against Excel 16.0 (DESIGN-CHART §4.5, `probe-chart-trendlines.ps1`): every coefficient
|
|
6
|
-
* of the nine types on a line chart and a scatter, a set intercept, and a sweep of numbers through
|
|
7
|
-
* the label's General format.
|
|
8
|
-
*/
|
|
9
1
|
export type TrendlineType = 'exp' | 'linear' | 'log' | 'movingAvg' | 'poly' | 'power';
|
|
10
2
|
/** A fitted trendline. */
|
|
11
3
|
export interface TrendlineFit {
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Excel's automatic axis scales: bounds, major and minor units, and ticks for linear, logarithmic
|
|
3
|
-
* and percent value axes.
|
|
4
|
-
*
|
|
5
|
-
* @remarks
|
|
6
|
-
* Rescued from exhibit-master and typed. The linear rules are KB 214075's (the 16.667% zero rule,
|
|
7
|
-
* 5% headroom, the straddling cases), checked by `unitCalcs.test.ts` against values observed in
|
|
8
|
-
* Excel. Label fitting ({@link fitMajorUnitLinear}) follows the probe in DESIGN-CHART §4.
|
|
9
|
-
*/
|
|
10
1
|
/** `undefined` and `null` both mean "not stated". */
|
|
11
2
|
type Maybe = number | null | undefined;
|
|
12
3
|
/** The scale of one axis. */
|
|
@@ -57,19 +48,6 @@ export declare function calcAxisLimitsLog(minIn?: number, maxIn?: number, explic
|
|
|
57
48
|
* - the bounds snap outward to whole major units.
|
|
58
49
|
*/
|
|
59
50
|
export declare function calcAxisLimitsLinear(minIn: Maybe, maxIn: Maybe, explicitMin?: Maybe, explicitMax?: Maybe, explicitMinorUnits?: Maybe, explicitMajorUnits?: Maybe, isScatterOrBubble?: boolean, headroom?: number, majorHeadroom?: number): AxisLimits;
|
|
60
|
-
/**
|
|
61
|
-
* The major unit at which the labels of a linear axis fit: the automatic unit, else the next on
|
|
62
|
-
* Excel's 1, 2, 5 ladder ({@link nextMajorUnit}), until `fits` accepts the ticks.
|
|
63
|
-
*
|
|
64
|
-
* @param majorUnit The automatic major unit.
|
|
65
|
-
* @param boundsAt The axis's bounds at a major unit: they snap to it.
|
|
66
|
-
* @param fits Whether labels at these tick values fit along the axis.
|
|
67
|
-
*
|
|
68
|
-
* @remarks
|
|
69
|
-
* Measured (DESIGN-CHART §4): at 16 pt the K1 secondary axis goes from 0.1 to 0.2; at 28 pt the
|
|
70
|
-
* primary goes 50 → 100 → 200 and the secondary 0.1 → 0.2 → 0.5. A unit that leaves two ticks or
|
|
71
|
-
* fewer is the last one tried.
|
|
72
|
-
*/
|
|
73
51
|
export declare function fitMajorUnitLinear(majorUnit: number, boundsAt: (unit: number) => {
|
|
74
52
|
min: number;
|
|
75
53
|
max: number;
|
|
@@ -93,11 +93,6 @@ export declare const setSeriesMarker: (idx: number, marker: {
|
|
|
93
93
|
}) => ModelEdit;
|
|
94
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
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
96
|
export declare const setBubbleOption: (idx: number, option: {
|
|
102
97
|
bubbleScale?: number;
|
|
103
98
|
showNegBubbles?: boolean;
|
|
@@ -111,17 +106,6 @@ export type OfPieSplitChange = {
|
|
|
111
106
|
} | {
|
|
112
107
|
points: readonly number[];
|
|
113
108
|
};
|
|
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
109
|
export declare const setOfPieSplit: (idx: number, change: OfPieSplitChange, values: readonly (number | null)[]) => ModelEdit;
|
|
126
110
|
/** The flags a data label shows. */
|
|
127
111
|
export type LabelFlag = 'showVal' | 'showCatName' | 'showSerName' | 'showPercent' | 'showBubbleSize' | 'showLegendKey';
|
|
@@ -133,10 +117,6 @@ export declare const showsLabels: (labels: ChartModel.DataLabelOptions | undefin
|
|
|
133
117
|
* Excel's own markup for a label turned off is not measured.
|
|
134
118
|
*/
|
|
135
119
|
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
120
|
export declare const setGroupLabels: (idx: number, options: {
|
|
141
121
|
showVal?: boolean;
|
|
142
122
|
dLblPos?: ChartModel.DataLabelOptions["dLblPos"];
|
|
@@ -222,10 +202,6 @@ export declare const setErrorBarsShape: (idx: number, direction: ErrorBarsDirect
|
|
|
222
202
|
}) => ModelEdit;
|
|
223
203
|
/** A group's lines of one kind: `c:hiLowLines`, `c:dropLines`, `c:serLines`. */
|
|
224
204
|
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
205
|
export declare const LINES_COLORS: Readonly<Record<GroupLinesKind, string>>;
|
|
230
206
|
/** The lines of `kind` Excel adds: its line, no fill. */
|
|
231
207
|
export declare const newGroupLines: (kind: GroupLinesKind) => ChartModel.ChartLines;
|
|
@@ -361,10 +337,6 @@ export declare const setAxisShape: (axId: number, patch: {
|
|
|
361
337
|
}) => ModelEdit;
|
|
362
338
|
/** The axis labels' font (X38-X42, X59). */
|
|
363
339
|
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
340
|
export declare const setAxisTitleVisible: (axId: number, visible: boolean) => ModelEdit;
|
|
369
341
|
/** Whether the axis title is drawn over the plot area (`c:overlay`, as the chart title's). */
|
|
370
342
|
export declare const setAxisTitleOverlay: (axId: number, overlay: boolean) => ModelEdit;
|
|
@@ -375,7 +347,6 @@ export declare const setAxisTitleShape: (axId: number, patch: {
|
|
|
375
347
|
fill?: IFill.JSON;
|
|
376
348
|
stroke?: IStroke.JSON;
|
|
377
349
|
}) => ModelEdit;
|
|
378
|
-
/** The axis title's orientation (`probe-chart-elements.ps1` 301-311: rotated reads up, vertical is stacked, horizontal level). */
|
|
379
350
|
export declare const setAxisTitleRotation: (axId: number, rotation: number | "vertical" | "auto") => ModelEdit;
|
|
380
351
|
/** A category axis's label or tick mark spacing (X43, X44: `tickLblSkip`, `tickMarkSkip`); `null` for automatic. */
|
|
381
352
|
export declare const setAxisSkip: (axId: number, which: "tickLblSkip" | "tickMarkSkip", count: number | null) => ModelEdit;
|
|
@@ -477,10 +448,6 @@ export declare const setLabelsFont: (idx: number, patch: FontPatch) => ModelEdit
|
|
|
477
448
|
export declare const setLabelsRotation: (idx: number, rotation: number | "vertical" | "auto") => ModelEdit;
|
|
478
449
|
/** Whether a series' labels take the values' format (L15: off writes `General` unlinked). */
|
|
479
450
|
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
451
|
export declare const setLabelsRange: (idx: number, source: ChartModel.DataReference | null) => ModelEdit;
|
|
485
452
|
/** The `c:ext` uri of a series' `c15:datalabelsRange`, and of its labels' `c15:showDataLabelsRange`. */
|
|
486
453
|
export declare const DATALABELS_RANGE_URI = "{02D57815-91ED-43cb-92C2-25804820EDAC}";
|
|
@@ -9,13 +9,6 @@ export interface GroupTarget {
|
|
|
9
9
|
export type AxisGroup = 'primary' | 'secondary';
|
|
10
10
|
/** Makes an `axId` no axis of the chart has. */
|
|
11
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
12
|
export declare const isWholeChartType: (group: GroupTarget) => boolean;
|
|
20
13
|
/**
|
|
21
14
|
* The axis group a group draws against, or `null` for a group with no axes (a pie).
|
|
@@ -50,24 +43,6 @@ export declare const seriesKeys: (plotArea: ChartModel.PlotArea | undefined) =>
|
|
|
50
43
|
* leaves them all on the primary axes in one group).
|
|
51
44
|
*/
|
|
52
45
|
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
46
|
export declare const setSeriesType: (plotArea: ChartModel.PlotArea, idx: number, target: GroupTarget, newAxisId: NewAxisId) => ChartModel.PlotArea;
|
|
72
47
|
/**
|
|
73
48
|
* Moves the series `idx` to the primary or secondary axes, keeping its type.
|
|
@@ -1,15 +1,4 @@
|
|
|
1
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
2
|
/** A cell as inference reads it: a date is a number in a date format. */
|
|
14
3
|
export type CellKind = 'blank' | 'text' | 'number' | 'date';
|
|
15
4
|
/** Whether each series is a row or a column of the data. */
|
|
@@ -41,12 +30,5 @@ export interface Inference {
|
|
|
41
30
|
* @param seriesBy The direction, or `undefined` to let the cells decide.
|
|
42
31
|
*/
|
|
43
32
|
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
33
|
export declare function currentRegion(cell: IRange.CellCoords, kindAt: (rowIndex: number, colIndex: number) => CellKind, last: IRange.CellCoords): IRange.Coords;
|
|
52
34
|
//# sourceMappingURL=_Inference.d.ts.map
|