@sheetxl/sdk 0.7.26 → 0.7.28-beta.1
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 +34 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
- package/browser/cjs/D590vnHyyrIYenQ7.cjs +33 -0
- package/browser/cjs/DfVZ_U2YapkL3Y3y.cjs +1 -0
- package/browser/cjs/DsII2GRIYGbaZjIE.cjs +1 -0
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +10 -0
- package/browser/cjs/index.cjs +3 -6
- package/browser/cjs/nE4y6hua6AwWSil7.cjs +1 -0
- package/browser/cjs/nMss3hrHzgX9s6dC.cjs +57 -0
- package/browser/esm/AyOmyt_vaPirbWnn.mjs +49986 -0
- package/browser/esm/BJ5lU2Y0r4Vy8n4q.mjs +109 -0
- package/browser/esm/BvaEmG7AaTSm7dFt.mjs +818 -0
- package/browser/esm/CWKJatjtHKfWtM2b.mjs +503 -0
- package/browser/esm/CkhE5KvHQvKzw4Ll.mjs +4436 -0
- package/browser/esm/Dpwf1IgHZjpEpK-K.mjs +24 -0
- package/browser/esm/index.mjs +3225 -62
- package/browser/esm/uFvYxePB3xD2HrP0.mjs +14 -0
- package/licenses/dependencies.txt +74 -193
- package/node/esm/CYXOvL3qwWeDE0xf.mjs +114 -0
- package/node/esm/Dgmq_XXiU2AQw1tX.mjs +22 -0
- package/node/esm/index.mjs +53619 -23254
- package/node/esm/qxrG4h6T0dAo8eZ6.mjs +837 -0
- package/package.json +19 -14
- package/resources/contents.json +21 -0
- package/resources/locales/contents.json +19 -0
- package/resources/locales/de/grammar.json +16 -0
- package/resources/locales/de/model.msg.json +510 -0
- package/resources/locales/en/model.msg.json +525 -0
- package/types/index.d.ts +2 -21294
- package/types/scripting-enums.json +1009 -0
- package/types/scripting.d.ts +26540 -31455
- package/types/src/address/AddressUtils.d.ts +252 -0
- package/types/src/address/_AddressMessages.d.ts +7 -0
- package/types/src/address/index.d.ts +35 -0
- package/types/src/anchored/AbstractAnchored.d.ts +200 -0
- package/types/src/anchored/Anchored.d.ts +154 -0
- package/types/src/anchored/AnchoredMap.d.ts +178 -0
- package/types/src/anchored/IAnchored.d.ts +118 -0
- package/types/src/anchored/IAnchoredMap.d.ts +207 -0
- package/types/src/anchored/_AnchorMessages.d.ts +3 -0
- package/types/src/anchored/index.d.ts +2 -0
- package/types/src/autoFill/AutoFill.d.ts +161 -0
- package/types/src/autoFill/IAutoFill.d.ts +117 -0
- package/types/src/autoFill/index.d.ts +3 -0
- package/types/src/border/IBorder.d.ts +284 -0
- package/types/src/border/index.d.ts +2 -0
- package/types/src/calculation/Calculation.d.ts +440 -0
- package/types/src/calculation/FormulaLiterals.d.ts +18 -0
- package/types/src/calculation/ICalculation.d.ts +1016 -0
- package/types/src/calculation/INamedFormulasCollection.d.ts +141 -0
- package/types/src/calculation/NamedFormulaCollection.d.ts +671 -0
- package/types/src/calculation/TokenType.d.ts +117 -0
- package/types/src/calculation/Types.d.ts +110 -0
- package/types/src/calculation/_CalculationMessages.d.ts +3 -0
- package/types/src/calculation/builtInNames.d.ts +2 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +180 -0
- package/types/src/calculation/compiler/CompilerLocale.d.ts +69 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +331 -0
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +69 -0
- package/types/src/calculation/compiler/FormulaLexer.d.ts +85 -0
- package/types/src/calculation/compiler/FormulaParser.d.ts +270 -0
- package/types/src/calculation/compiler/FormulaSeparators.d.ts +35 -0
- package/types/src/calculation/compiler/LiteTransform.d.ts +15 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +167 -0
- package/types/src/calculation/compiler/SRLexer.d.ts +19 -0
- package/types/src/calculation/compiler/SRParser.d.ts +38 -0
- package/types/src/calculation/compiler/Types.d.ts +274 -0
- package/types/src/calculation/compiler/index.d.ts +3 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts +115 -0
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +11 -0
- package/types/src/calculation/executor/index.d.ts +3 -0
- package/types/src/calculation/formula/Formula.d.ts +168 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +207 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +181 -0
- package/types/src/calculation/formula/LambdaValue.d.ts +166 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +26 -0
- package/types/src/calculation/formula/index.d.ts +4 -0
- package/types/src/calculation/functions/Operators.d.ts +30 -0
- package/types/src/calculation/functions/index.d.ts +2 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +22 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +205 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +172 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +500 -0
- package/types/src/calculation/grid/index.d.ts +3 -0
- package/types/src/calculation/index.d.ts +5 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +25 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +120 -0
- package/types/src/calculation/spatial/PrecedentSpatialValue.d.ts +115 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts +40 -0
- package/types/src/calculation/spatial/index.d.ts +5 -0
- package/types/src/calculation/state/CalcNode.d.ts +71 -0
- package/types/src/calculation/state/CalcScope.d.ts +35 -0
- package/types/src/calculation/state/CalcState.d.ts +28 -0
- package/types/src/calculation/state/CalculationContext.d.ts +125 -0
- package/types/src/calculation/state/IContextContainer.d.ts +320 -0
- package/types/src/calculation/state/index.d.ts +6 -0
- package/types/src/calculation/symbol/FunctionSymbolProvider.d.ts +44 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +93 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +144 -0
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +18 -0
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +19 -0
- package/types/src/calculation/symbol/TableColumnSymbolProvider.d.ts +21 -0
- package/types/src/calculation/symbol/TableSymbolProvider.d.ts +19 -0
- package/types/src/calculation/symbol/index.d.ts +9 -0
- package/types/src/cell/ICell.d.ts +672 -0
- package/types/src/cell/ICellHeader.d.ts +142 -0
- package/types/src/cell/ICellProtection.d.ts +41 -0
- package/types/src/cell/index.d.ts +4 -0
- package/types/src/cellRange/ICellHeaderRange.d.ts +306 -0
- package/types/src/cellRange/ICellHeaderRanges.d.ts +107 -0
- package/types/src/cellRange/ICellRange.d.ts +2509 -0
- package/types/src/cellRange/ICellRanges.d.ts +407 -0
- package/types/src/cellRange/ICellRegion.d.ts +133 -0
- package/types/src/cellRange/_GraphNode.d.ts +38 -0
- package/types/src/cellRange/index.d.ts +6 -0
- package/types/src/chart/Chart.d.ts +53 -0
- package/types/src/chart/IChart.d.ts +42 -0
- package/types/src/chart/index.d.ts +5 -0
- package/types/src/collections/ArraysGrid.d.ts +72 -0
- package/types/src/collections/BooleanList.d.ts +67 -0
- package/types/src/collections/GridMap.d.ts +47 -0
- package/types/src/collections/HashMap.d.ts +15 -0
- package/types/src/collections/IGrid.d.ts +278 -0
- package/types/src/collections/IList.d.ts +89 -0
- package/types/src/collections/IMap.d.ts +45 -0
- package/types/src/collections/IReadableList.d.ts +120 -0
- package/types/src/collections/ISortedMap.d.ts +171 -0
- package/types/src/collections/ISparseGrid.d.ts +61 -0
- package/types/src/collections/ISparseList.d.ts +103 -0
- package/types/src/collections/ISpatialMap.d.ts +515 -0
- package/types/src/collections/ISpatialMap3D.d.ts +116 -0
- package/types/src/collections/IWritableList.d.ts +41 -0
- package/types/src/collections/ImmutableList.d.ts +52 -0
- package/types/src/collections/IteratorUtils.d.ts +91 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +140 -0
- package/types/src/collections/OverlappingRangeIterator.d.ts +91 -0
- package/types/src/collections/RTree.d.ts +111 -0
- package/types/src/collections/RepeatingList.d.ts +20 -0
- package/types/src/collections/SortedMap.d.ts +396 -0
- package/types/src/collections/SparseGrid.d.ts +99 -0
- package/types/src/collections/SparseList.d.ts +90 -0
- package/types/src/collections/SpatialMap.d.ts +102 -0
- package/types/src/collections/SpatialMap3D.d.ts +64 -0
- package/types/src/collections/Tuple.d.ts +160 -0
- package/types/src/collections/_CollectionUtils.d.ts +25 -0
- package/types/src/collections/_GridUtils.d.ts +268 -0
- package/types/src/collections/_RunUtils.d.ts +170 -0
- package/types/src/collections/_SpatialUtils.d.ts +115 -0
- package/types/src/collections/index.d.ts +21 -0
- package/types/src/color/Color.d.ts +120 -0
- package/types/src/color/ColorSpace.d.ts +45 -0
- package/types/src/color/IColor.d.ts +1110 -0
- package/types/src/color/_BuiltInIndexDefs.d.ts +4 -0
- package/types/src/color/_BuiltInNamedDefs.d.ts +29 -0
- package/types/src/color/_BuiltInSchemeDefs.d.ts +7 -0
- package/types/src/color/_ColorUtils.d.ts +93 -0
- package/types/src/color/index.d.ts +3 -0
- package/types/src/comment/IComment.d.ts +108 -0
- package/types/src/comment/index.d.ts +2 -0
- package/types/src/condition/AnchoredConditional.d.ts +263 -0
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +83 -0
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/BlankOperator.d.ts +9 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +11 -0
- package/types/src/condition/BuiltInOperators/ErrorOperator.d.ts +9 -0
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +17 -0
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +14 -0
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +13 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/UniqueOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ValidEmailOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ValidUrlOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/index.d.ts +59 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +43 -0
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +12 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +16 -0
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/index.d.ts +18 -0
- package/types/src/condition/Condition.d.ts +123 -0
- package/types/src/condition/ICondition.d.ts +915 -0
- package/types/src/condition/_ConditionUtils.d.ts +190 -0
- package/types/src/condition/index.d.ts +3 -0
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +20 -0
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +190 -0
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +20 -0
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +518 -0
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +70 -0
- package/types/src/conditionalFormat/_ConditionalMessages.d.ts +2 -0
- package/types/src/conditionalFormat/index.d.ts +3 -0
- package/types/src/dataValidation/DataValidation.d.ts +121 -0
- package/types/src/dataValidation/DataValidationCollection.d.ts +20 -0
- package/types/src/dataValidation/IDataValidation.d.ts +327 -0
- package/types/src/dataValidation/IDataValidationCollection.d.ts +63 -0
- package/types/src/dataValidation/_DataValidationMessages.d.ts +2 -0
- package/types/src/dataValidation/_Utils.d.ts +10 -0
- package/types/src/dataValidation/index.d.ts +3 -0
- package/types/src/date/DateUtils.d.ts +8 -0
- package/types/src/date/_DateUtils.d.ts +122 -0
- package/types/src/date/index.d.ts +2 -0
- package/types/src/externalBook/ExternalBookCollection.d.ts +36 -0
- package/types/src/externalBook/IExternalBook.d.ts +97 -0
- package/types/src/externalBook/IExternalBookCollection.d.ts +29 -0
- package/types/src/externalBook/index.d.ts +3 -0
- package/types/src/fill/IEffect.d.ts +389 -0
- package/types/src/fill/IFill.d.ts +597 -0
- package/types/src/fill/IStroke.d.ts +265 -0
- package/types/src/fill/_BuiltInPatterns.d.ts +27 -0
- package/types/src/fill/index.d.ts +4 -0
- package/types/src/filter/IFilter.d.ts +83 -0
- package/types/src/filter/index.d.ts +2 -0
- package/types/src/font/CanvasFontMeasurer.d.ts +25 -0
- package/types/src/font/ExtendedTextMetrics.d.ts +1 -0
- package/types/src/font/Font.d.ts +19 -0
- package/types/src/font/FontKitFontMeasurer.d.ts +11 -0
- package/types/src/font/FontUtils.d.ts +9 -0
- package/types/src/font/IFont.d.ts +261 -0
- package/types/src/font/IFontCollection.d.ts +31 -0
- package/types/src/font/SimpleFontMeasurer.d.ts +4 -0
- package/types/src/font/_FontUtils.d.ts +22 -0
- package/types/src/font/index.d.ts +5 -0
- package/types/src/history/IHistory.d.ts +110 -0
- package/types/src/history/index.d.ts +2 -0
- package/types/src/hyperlink/IHyperlink.d.ts +96 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +21 -0
- package/types/src/hyperlink/index.d.ts +2 -0
- package/types/src/i18n/LanguagePack.d.ts +97 -0
- package/types/src/i18n/LocaleProfile.d.ts +15 -0
- package/types/src/i18n/_CurrencyData.d.ts +20 -0
- package/types/src/i18n/functionLocales.d.ts +6 -0
- package/types/src/i18n/index.d.ts +4 -0
- package/types/src/i18n/locales.d.ts +3 -0
- package/types/src/index.d.ts +71 -0
- package/types/src/io/AbstractBackingStore.d.ts +53 -0
- package/types/src/io/ArrayBackingStore.d.ts +34 -0
- package/types/src/io/IWorkbookIO.d.ts +1322 -0
- package/types/src/io/WorkbookIO.d.ts +91 -0
- package/types/src/io/WorkbookOrigin.d.ts +114 -0
- package/types/src/io/WorkbookRegistry.d.ts +49 -0
- package/types/src/io/index.d.ts +5 -0
- package/types/src/lib/file/file.browser.d.ts +41 -0
- package/types/src/lib/file/file.node.d.ts +25 -0
- package/types/src/lib/utils/_Utils.d.ts +20 -0
- package/types/src/lib/utils/banner.d.ts +6 -0
- package/types/src/lib/utils/utils.browser.d.ts +28 -0
- package/types/src/lib/utils/utils.node.d.ts +42 -0
- package/types/src/license/LicenseDetails.d.ts +22 -0
- package/types/src/license/LicenseManager.d.ts +63 -0
- package/types/src/license/index.d.ts +3 -0
- package/types/src/license/license-key.d.ts +33 -0
- package/types/src/listener/IListener.d.ts +62 -0
- package/types/src/listener/ListenerEmitter.d.ts +47 -0
- package/types/src/listener/index.d.ts +2 -0
- package/types/src/model/AbstractModel.d.ts +90 -0
- package/types/src/model/IModel.d.ts +108 -0
- package/types/src/model/_ModelMessages.d.ts +2 -0
- package/types/src/model/index.d.ts +3 -0
- package/types/src/movable/CustomElement.d.ts +42 -0
- package/types/src/movable/ICustomElement.d.ts +29 -0
- package/types/src/movable/IGroup.d.ts +30 -0
- package/types/src/movable/IMovable.d.ts +327 -0
- package/types/src/movable/IMovableCollection.d.ts +129 -0
- package/types/src/movable/IMovableSelection.d.ts +49 -0
- package/types/src/movable/Movable.d.ts +221 -0
- package/types/src/movable/MovableCollection.d.ts +29 -0
- package/types/src/movable/_MovableUtils.d.ts +4 -0
- package/types/src/movable/index.d.ts +4 -0
- package/types/src/named/AbstractNamed.d.ts +41 -0
- package/types/src/named/INamed.d.ts +225 -0
- package/types/src/named/INamedCollection.d.ts +230 -0
- package/types/src/named/NamedCollection.d.ts +302 -0
- package/types/src/named/_BuiltInNamed.d.ts +6 -0
- package/types/src/named/index.d.ts +3 -0
- package/types/src/numFmt/BuiltInFormats.d.ts +49 -0
- package/types/src/numFmt/IFormatEngine.d.ts +149 -0
- package/types/src/numFmt/NumberFormatBuilder.d.ts +46 -0
- package/types/src/numFmt/NumberFormatParser.d.ts +168 -0
- package/types/src/numFmt/NumberFormatStyles.d.ts +43 -0
- package/types/src/numFmt/NumberFormatType.d.ts +79 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +33 -0
- package/types/src/numFmt/_BuiltInNumberFormats.d.ts +12 -0
- package/types/src/numFmt/_FormatCell.d.ts +52 -0
- package/types/src/numFmt/_NumFmtUtils.d.ts +102 -0
- package/types/src/numFmt/index.d.ts +105 -0
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +15 -0
- package/types/src/numFmt/vendor/numfmt/index.d.ts +721 -0
- package/types/src/picture/IPicture.d.ts +69 -0
- package/types/src/picture/Picture.d.ts +67 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +63 -0
- package/types/src/primitives/Criteria.d.ts +35 -0
- package/types/src/primitives/FormulaContext.d.ts +2 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +255 -0
- package/types/src/primitives/Range.d.ts +221 -0
- package/types/src/primitives/RangeStats.d.ts +48 -0
- package/types/src/primitives/ReferenceRange.d.ts +19 -0
- package/types/src/primitives/Runtime.d.ts +55 -0
- package/types/src/primitives/ScalarCollation.d.ts +174 -0
- package/types/src/primitives/TextFold.d.ts +62 -0
- package/types/src/primitives/_PrimitiveMessages.d.ts +3 -0
- package/types/src/primitives/index.d.ts +7 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +119 -0
- package/types/src/primitives/stats/Cancellation.d.ts +43 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +94 -0
- package/types/src/primitives/stats/Ranked.d.ts +26 -0
- package/types/src/primitives/stats/ScalarOrder.d.ts +18 -0
- package/types/src/primitives/stats/SortedNumbers.d.ts +48 -0
- package/types/src/primitives/stats/index.d.ts +7 -0
- package/types/src/print/IPrint.d.ts +234 -0
- package/types/src/print/index.d.ts +2 -0
- package/types/src/protectedRange/IProtectedRange.d.ts +239 -0
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +73 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +101 -0
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +21 -0
- package/types/src/protectedRange/index.d.ts +3 -0
- package/types/src/protection/DefaultProtection.d.ts +43 -0
- package/types/src/protection/IProtection.d.ts +170 -0
- package/types/src/protection/PasswordHasher.d.ts +35 -0
- package/types/src/protection/index.d.ts +6 -0
- package/types/src/resource/IResource.d.ts +98 -0
- package/types/src/resource/IResourceCollection.d.ts +96 -0
- package/types/src/resource/Resource.d.ts +39 -0
- package/types/src/resource/ResourceCollection.d.ts +19 -0
- package/types/src/resource/_ResourceMessages.d.ts +4 -0
- package/types/src/resource/index.d.ts +5 -0
- package/types/src/resource/resourceKinds.d.ts +23 -0
- package/types/src/richData/index.d.ts +1 -0
- package/types/src/scripting/FunctionCollection.d.ts +88 -0
- package/types/src/scripting/IFunctionCollection.d.ts +208 -0
- package/types/src/scripting/IModule.d.ts +82 -0
- package/types/src/scripting/IModuleCollection.d.ts +79 -0
- package/types/src/scripting/IScript.d.ts +289 -0
- package/types/src/scripting/ITypedFunction.d.ts +61 -0
- package/types/src/scripting/MacroFunction.d.ts +15 -0
- package/types/src/scripting/Module.d.ts +39 -0
- package/types/src/scripting/ModuleCollection.d.ts +56 -0
- package/types/src/scripting/Runtime.d.ts +16 -0
- package/types/src/scripting/Scripts.d.ts +79 -0
- package/types/src/scripting/TypedFunction.d.ts +161 -0
- package/types/src/scripting/_FunctionIndex.d.ts +111 -0
- package/types/src/scripting/_FunctionMessages.d.ts +6 -0
- package/types/src/scripting/_ModuleUtils.d.ts +5 -0
- package/types/src/scripting/_ScriptUtils.d.ts +18 -0
- package/types/src/scripting/enumManifest.browser.d.ts +9 -0
- package/types/src/scripting/enumManifest.node.d.ts +13 -0
- package/types/src/scripting/index.d.ts +4 -0
- package/types/src/selection/IRangeSelection.d.ts +307 -0
- package/types/src/selection/RangeSelection.d.ts +144 -0
- package/types/src/selection/_RangeSelectionUtils.d.ts +32 -0
- package/types/src/selection/index.d.ts +2 -0
- package/types/src/shape/IShape.d.ts +279 -0
- package/types/src/shape/Shape.d.ts +54 -0
- package/types/src/shape/index.d.ts +2 -0
- package/types/src/sheet/CellRegion.d.ts +106 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +97 -0
- package/types/src/sheet/ISheet.d.ts +1074 -0
- package/types/src/sheet/ISheetCollection.d.ts +70 -0
- package/types/src/sheet/NamedCellRange.d.ts +45 -0
- package/types/src/sheet/NamedRange.d.ts +30 -0
- package/types/src/sheet/Sheet.d.ts +1068 -0
- package/types/src/sheet/SheetCell.d.ts +335 -0
- package/types/src/sheet/SheetCollection.d.ts +18 -0
- package/types/src/sheet/SheetRange.d.ts +362 -0
- package/types/src/sheet/SheetRanges.d.ts +225 -0
- package/types/src/sheet/_CopyUtils.d.ts +33 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +70 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +18 -0
- package/types/src/sheet/_SheetCoords.d.ts +54 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +9 -0
- package/types/src/sheet/_SheetMessages.d.ts +11 -0
- package/types/src/sheet/_SheetMutations.d.ts +137 -0
- package/types/src/sheet/_SheetSortUtils.d.ts +9 -0
- package/types/src/sheet/_SheetStateReader.d.ts +161 -0
- package/types/src/sheet/_SheetStateTypes.d.ts +446 -0
- package/types/src/sheet/_SheetUtils.d.ts +265 -0
- package/types/src/sheet/clipboard/IHTMLParser.d.ts +92 -0
- package/types/src/sheet/clipboard/RangeClipboardItems.d.ts +55 -0
- package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts +29 -0
- package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts +46 -0
- package/types/src/sheet/clipboard/_ClipboardUtils.d.ts +10 -0
- package/types/src/sheet/clipboard/index.d.ts +2 -0
- package/types/src/sheet/index.d.ts +6 -0
- package/types/src/sheet/listener/RangesListener.d.ts +32 -0
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +19 -0
- package/types/src/sheet/listener/index.d.ts +3 -0
- package/types/src/sheet/spatial/MergeEntry.d.ts +17 -0
- package/types/src/sheet/spatial/index.d.ts +2 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +540 -0
- package/types/src/sheet/style/SheetDirectStyle.d.ts +130 -0
- package/types/src/sheet/style/SheetNamedStyle.d.ts +47 -0
- package/types/src/sheet/style/SheetTableStyle.d.ts +47 -0
- package/types/src/sheet/style/UsedRangeSpatialMap.d.ts +80 -0
- package/types/src/sheet/style/_Resolvers.d.ts +41 -0
- package/types/src/sheet/style/_StyleUtils.d.ts +69 -0
- package/types/src/sheet/style/index.d.ts +1 -0
- package/types/src/sheetHeader/ISheetHeader.d.ts +217 -0
- package/types/src/sheetHeader/SheetCellHeader.d.ts +61 -0
- package/types/src/sheetHeader/SheetCellHeaderRange.d.ts +54 -0
- package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts +46 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +257 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +94 -0
- package/types/src/sheetHeader/_InvalidSheetHeaderRange.d.ts +7 -0
- package/types/src/sheetHeader/index.d.ts +2 -0
- package/types/src/sheetProtection/ISheetProtection.d.ts +150 -0
- package/types/src/sheetProtection/SheetProtection.d.ts +39 -0
- package/types/src/sheetProtection/index.d.ts +2 -0
- package/types/src/sheetView/ISheetView.d.ts +439 -0
- package/types/src/sheetView/SheetView.d.ts +113 -0
- package/types/src/sheetView/_SheetViewUtils.d.ts +19 -0
- package/types/src/sheetView/index.d.ts +2 -0
- package/types/src/slicer/ISlicer.d.ts +38 -0
- package/types/src/slicer/Slicer.d.ts +41 -0
- package/types/src/slicer/index.d.ts +2 -0
- package/types/src/sort/ISort.d.ts +318 -0
- package/types/src/sort/Sort.d.ts +48 -0
- package/types/src/sort/_SortUtils.d.ts +12 -0
- package/types/src/sort/index.d.ts +3 -0
- package/types/src/string/IStringCollection.d.ts +50 -0
- package/types/src/string/StringCollection.d.ts +26 -0
- package/types/src/string/index.d.ts +3 -0
- package/types/src/style/IStyle.d.ts +485 -0
- package/types/src/style/IStyleCollection.d.ts +292 -0
- package/types/src/style/StyleCollection.d.ts +125 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +18 -0
- package/types/src/style/_BuiltInStyleNames.d.ts +20 -0
- package/types/src/style/index.d.ts +5 -0
- package/types/src/table/AnchoredTable.d.ts +349 -0
- package/types/src/table/AutoTable.d.ts +64 -0
- package/types/src/table/ITable.d.ts +714 -0
- package/types/src/table/ITableCollection.d.ts +88 -0
- package/types/src/table/ITableStyle.d.ts +318 -0
- package/types/src/table/Table.d.ts +8 -0
- package/types/src/table/TableCollection.d.ts +20 -0
- package/types/src/table/_AutoTableColumn.d.ts +27 -0
- package/types/src/table/_BuiltInTableStyles.d.ts +9 -0
- package/types/src/table/_FilterField.d.ts +30 -0
- package/types/src/table/_NamedTable.d.ts +84 -0
- package/types/src/table/_NamedTableSource.d.ts +57 -0
- package/types/src/table/_SortField.d.ts +29 -0
- package/types/src/table/_TableColumn.d.ts +51 -0
- package/types/src/table/_TableMessages.d.ts +5 -0
- package/types/src/table/_TableUtils.d.ts +94 -0
- package/types/src/table/index.d.ts +5 -0
- package/types/src/text/AutoNumberingScheme.d.ts +175 -0
- package/types/src/text/Bullet.d.ts +34 -0
- package/types/src/text/IText.d.ts +53 -0
- package/types/src/text/ITextFrame.d.ts +313 -0
- package/types/src/text/TextBoxAlignment.d.ts +141 -0
- package/types/src/text/TextFrame.d.ts +43 -0
- package/types/src/text/TextLine.d.ts +24 -0
- package/types/src/text/TextParagraph.d.ts +61 -0
- package/types/src/text/TextRotation.d.ts +106 -0
- package/types/src/text/TextRun.d.ts +85 -0
- package/types/src/text/TextUtils.d.ts +165 -0
- package/types/src/text/TextVisitor.d.ts +11 -0
- package/types/src/text/TextWrapper.d.ts +78 -0
- package/types/src/text/_TextUtils.d.ts +90 -0
- package/types/src/text/impl/Phrase.d.ts +3 -0
- package/types/src/text/impl/TabStrategy.d.ts +9 -0
- package/types/src/text/impl/WordWrapUtils.d.ts +6 -0
- package/types/src/text/index.d.ts +7 -0
- package/types/src/text/richtext/IStyledFont.d.ts +330 -0
- package/types/src/text/richtext/index.d.ts +2 -0
- package/types/src/theme/ITheme.d.ts +252 -0
- package/types/src/theme/IThemeCollection.d.ts +84 -0
- package/types/src/theme/ThemeCollection.d.ts +62 -0
- package/types/src/theme/_BuiltInColorSchemes.d.ts +3 -0
- package/types/src/theme/_BuiltInFontSchemes.d.ts +3 -0
- package/types/src/theme/_BuiltInThemeDefs.d.ts +3 -0
- package/types/src/theme/_ThemeMessages.d.ts +3 -0
- package/types/src/theme/_ThemeUtils.d.ts +3 -0
- package/types/src/theme/index.d.ts +4 -0
- package/types/src/transaction/ITransaction.d.ts +594 -0
- package/types/src/transaction/Transaction.d.ts +184 -0
- package/types/src/transaction/TransactionSaveStateManager.d.ts +85 -0
- package/types/src/transaction/TransactionUndoManager.d.ts +60 -0
- package/types/src/transaction/index.d.ts +5 -0
- package/types/src/type/ICollection.d.ts +110 -0
- package/types/src/type/IProperties.d.ts +51 -0
- package/types/src/type/ITypes.d.ts +69 -0
- package/types/src/type/Registry.d.ts +66 -0
- package/types/src/type/index.d.ts +5 -0
- package/types/src/utils/GeomUtils.d.ts +61 -0
- package/types/src/utils/ObjectPath.d.ts +9 -0
- package/types/src/utils/Profiler.d.ts +38 -0
- package/types/src/utils/_CSSUtils.d.ts +156 -0
- package/types/src/utils/_GeomUtils.d.ts +14 -0
- package/types/src/utils/_RangeCoordUtils.d.ts +84 -0
- package/types/src/utils/_RangeSetUtils.d.ts +55 -0
- package/types/src/utils/index.d.ts +2 -0
- package/types/src/workbook/IWorkbook.d.ts +711 -0
- package/types/src/workbook/Workbook.d.ts +342 -0
- package/types/src/workbook/WorkbookRange.d.ts +25 -0
- package/types/src/workbook/WorkbookRanges.d.ts +39 -0
- package/types/src/workbook/_WorkbookMessages.d.ts +8 -0
- package/types/src/workbook/_WorkbookUtils.d.ts +35 -0
- package/types/src/workbook/index.d.ts +3 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +57 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +14 -0
- package/types/src/workbookProtection/index.d.ts +2 -0
- package/types/src/workbookView/IWorkbookView.d.ts +134 -0
- package/types/src/workbookView/WorkbookView.d.ts +49 -0
- package/types/src/workbookView/index.d.ts +3 -0
- package/browser/cjs/8p8T3dD14wnIxaBG.cjs +0 -6
- package/browser/cjs/95PbxEGMp0S1al9b.cjs +0 -6
- package/browser/cjs/B5N-CDhD5v6HYM0I.cjs +0 -6
- package/browser/cjs/BKgMJ6JZUiena1iM.cjs +0 -6
- package/browser/cjs/BSW7L4QsMahkhhhy.cjs +0 -6
- package/browser/cjs/Be4ZjrWJHL1nRmQu.cjs +0 -6
- package/browser/cjs/BkyqIhWBqIxRof6b.cjs +0 -6
- package/browser/cjs/BzjrR52QeojqLbOx.cjs +0 -7
- package/browser/cjs/C4h0pgfUOocSJ3Ke.cjs +0 -6
- package/browser/cjs/CKDSsq1v8jGWlRAi.cjs +0 -55
- package/browser/cjs/CYMVELYS8FNeFpiq.cjs +0 -6
- package/browser/cjs/CYg51Fs361BHxyRI.cjs +0 -6
- package/browser/cjs/CdzYFZ-48HrcE5LQ.cjs +0 -6
- package/browser/cjs/CfKjVPVp-cWgnToo.cjs +0 -6
- package/browser/cjs/D-u1ccCpAGvsjKOp.cjs +0 -6
- package/browser/cjs/D5fl40nw9aOYcQli.cjs +0 -6
- package/browser/cjs/D6KrtS3oZrLOAxO5.cjs +0 -6
- package/browser/cjs/DXQv5Gx-Wtfyk89a.cjs +0 -6
- package/browser/cjs/Di10f5RB2IX9PFHR.cjs +0 -6
- package/browser/cjs/DnOACT9Vxcz9_frM.cjs +0 -15
- package/browser/cjs/Dr2RqSffQZyFVpHL.cjs +0 -6
- package/browser/cjs/Dz0rduQbyCjN2Ni_.cjs +0 -6
- package/browser/cjs/JrzBZL5--Ock2uVj.cjs +0 -6
- package/browser/cjs/VLEyvfkmKqqUCKxv.cjs +0 -124
- package/browser/cjs/W8tk-2bTTSDGstfk.cjs +0 -6
- package/browser/cjs/pc9KfujdfWA19P_V.cjs +0 -6
- package/browser/cjs/qiB3rVaQVJILQk_N.cjs +0 -6
- package/browser/esm/BBYOqwrtztJDWz3c.mjs +0 -10
- package/browser/esm/BBst2hgdCPhA3DPd.mjs +0 -10
- package/browser/esm/BFrnY1TEgniZNVl8.mjs +0 -10
- package/browser/esm/BR4W7_ucdFJi03RO.mjs +0 -10
- package/browser/esm/BUci9XBsYBUNnQub.mjs +0 -10
- package/browser/esm/B_DMz5brejp8Mgto.mjs +0 -10
- package/browser/esm/B_EdCIINiuU7UuR6.mjs +0 -10
- package/browser/esm/BklwssraNXGXEaP2.mjs +0 -10
- package/browser/esm/BvccAibR-3R_xO8l.mjs +0 -10
- package/browser/esm/Bza5H7E2GGoHxEt7.mjs +0 -10
- package/browser/esm/C0brjreeBKRcVYN4.mjs +0 -10
- package/browser/esm/C1hdw7eWXk0zq1SS.mjs +0 -10
- package/browser/esm/C4Y3MpHe_UzFZEaF.mjs +0 -10
- package/browser/esm/CATfU6MHTqOkz5FJ.mjs +0 -10
- package/browser/esm/CDe9GrlTNhuZzOVh.mjs +0 -23841
- package/browser/esm/C_bcVsMhltCNyQij.mjs +0 -10
- package/browser/esm/CqpHJSTi0m49GR_q.mjs +0 -10
- package/browser/esm/CvVXzwNYb-2OZMBj.mjs +0 -426
- package/browser/esm/CwIFvNV1kcbLsXJg.mjs +0 -10
- package/browser/esm/D7xtXncwRYiPYQ3v.mjs +0 -10
- package/browser/esm/D8BmFg9FFVHUz_W1.mjs +0 -10
- package/browser/esm/DRm-FWBKVOv2Jp6x.mjs +0 -10
- package/browser/esm/Due-pSw1d9_zz_19.mjs +0 -12
- package/browser/esm/DvipK7b_PuSzB8G-.mjs +0 -10
- package/browser/esm/aTyRGVa5Smj2T_9l.mjs +0 -10
- package/browser/esm/lRUYQdaIClvoTNGo.mjs +0 -4022
- package/browser/esm/xXGFfp-8v8jL5akS.mjs +0 -5653
- package/node/esm/BBst2hgdCPhA3DPd.mjs +0 -10
- package/node/esm/BFrnY1TEgniZNVl8.mjs +0 -10
- package/node/esm/BLNq3EgGCGKtzrGq.mjs +0 -10
- package/node/esm/BLS0f7etFu8fozVg.mjs +0 -10
- package/node/esm/BMyNI7ZZi2ICO6Bn.mjs +0 -10
- package/node/esm/BR4W7_ucdFJi03RO.mjs +0 -10
- package/node/esm/B_EdCIINiuU7UuR6.mjs +0 -10
- package/node/esm/BhKeh1i4iDAeImus.mjs +0 -1072
- package/node/esm/BklwssraNXGXEaP2.mjs +0 -10
- package/node/esm/Bza5H7E2GGoHxEt7.mjs +0 -10
- package/node/esm/C0brjreeBKRcVYN4.mjs +0 -10
- package/node/esm/C1hdw7eWXk0zq1SS.mjs +0 -10
- package/node/esm/C4Y3MpHe_UzFZEaF.mjs +0 -10
- package/node/esm/CATfU6MHTqOkz5FJ.mjs +0 -10
- package/node/esm/COhANehqT9YVLl76.mjs +0 -10
- package/node/esm/CqpHJSTi0m49GR_q.mjs +0 -10
- package/node/esm/CuijIC4hIp5bpx9B.mjs +0 -10
- package/node/esm/CwIFvNV1kcbLsXJg.mjs +0 -10
- package/node/esm/D7xtXncwRYiPYQ3v.mjs +0 -10
- package/node/esm/D8BmFg9FFVHUz_W1.mjs +0 -10
- package/node/esm/DPs0koPRfrHYG1yO.mjs +0 -13
- package/node/esm/DVM4Cwe0h2V1V4vm.mjs +0 -10
- package/node/esm/DvipK7b_PuSzB8G-.mjs +0 -10
- package/node/esm/aTyRGVa5Smj2T_9l.mjs +0 -10
- package/node/esm/qLqMotWYwBIdEVhE.mjs +0 -2458
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import { Properties as CSSProperties } from 'csstype';
|
|
2
|
+
import { Scalar, IRange } from '@sheetxl/primitives';
|
|
3
|
+
import { Size, Rectangle } from '@sheetxl/utils';
|
|
4
|
+
import { IProperties } from '../../type';
|
|
5
|
+
import { IColor } from '../../color';
|
|
6
|
+
import { IFill } from '../../fill';
|
|
7
|
+
import { IFont } from '../../font';
|
|
8
|
+
import { ITextFrame, IStyledFont } from '../../text';
|
|
9
|
+
import { IBorder } from '../../border';
|
|
10
|
+
import { IStyle, IStyleCollection } from '../../style';
|
|
11
|
+
export interface CreateCellStyleOptions {
|
|
12
|
+
styles: IStyleCollection;
|
|
13
|
+
/**
|
|
14
|
+
* Does not include empty or normal style
|
|
15
|
+
*/
|
|
16
|
+
properties: IStyle.Properties | IStyle.Properties[];
|
|
17
|
+
/**
|
|
18
|
+
* Used if clone is called.
|
|
19
|
+
*/
|
|
20
|
+
direct: IProperties.ICellRanged<IStyle.Properties, IStyle.Modifiers>;
|
|
21
|
+
/**
|
|
22
|
+
* A cell style is a specific coords (may be undefined for temporary/coordless cells)
|
|
23
|
+
*/
|
|
24
|
+
range: IRange.Coords | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The range this style was **queried for**, when that is wider than the cell it materialized at.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Every value on a style is the anchor cell's — that is the contract, and the ribbon behavior
|
|
30
|
+
* it models. The one exception is the inner border rules, which have no meaning at a cell and
|
|
31
|
+
* are read at the extent they were authored over. Undefined for a cell read, and for a
|
|
32
|
+
* multi-area selection (discontiguous areas have no single inside).
|
|
33
|
+
*/
|
|
34
|
+
extent?: IRange.Coords;
|
|
35
|
+
/**
|
|
36
|
+
* For updating styles from accessors
|
|
37
|
+
*/
|
|
38
|
+
updater: CellStyleUpdater;
|
|
39
|
+
}
|
|
40
|
+
export interface CellStyleUpdater {
|
|
41
|
+
(update: IStyle.Update, options?: IStyle.UpdateOptions, range?: IRange.Coords): IStyle;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* This is for cell styles that don't have specific properties per row,column
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolveStyleUpdate(update: IStyle.Update, prev: (() => IStyle) | IStyle): IStyle.Modifiers;
|
|
47
|
+
declare class InheritableProperties<P, J> {
|
|
48
|
+
protected _p: readonly Readonly<P>[];
|
|
49
|
+
constructor(properties: Readonly<P> | readonly Readonly<P>[]);
|
|
50
|
+
/**
|
|
51
|
+
* Use when returning a left value
|
|
52
|
+
* @param key
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
value(key: keyof P): any;
|
|
56
|
+
/**
|
|
57
|
+
* Use when wrapping another object that will also inherit.
|
|
58
|
+
*
|
|
59
|
+
* @returns `undefined` if no layer defines the key.
|
|
60
|
+
*/
|
|
61
|
+
values(key: keyof P): any[] | undefined;
|
|
62
|
+
getProperties(): P | null;
|
|
63
|
+
toJSON(): J;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* This module has implementations of IStyles that are 'pipelined' together.
|
|
67
|
+
*/
|
|
68
|
+
/**
|
|
69
|
+
* Subclassed by items that have properties that can be inherited.
|
|
70
|
+
*/
|
|
71
|
+
declare class Inheritable<P, J> {
|
|
72
|
+
protected _o: CreateCellStyleOptions;
|
|
73
|
+
protected _p: readonly P[];
|
|
74
|
+
protected _c: IStyleCollection;
|
|
75
|
+
constructor(options: CreateCellStyleOptions, properties: P[]);
|
|
76
|
+
protected _setValue(key: keyof P, value: any): any;
|
|
77
|
+
/**
|
|
78
|
+
* Use when returning a left value
|
|
79
|
+
* @param key
|
|
80
|
+
* @returns
|
|
81
|
+
*/
|
|
82
|
+
protected _value(key: keyof P): any;
|
|
83
|
+
/**
|
|
84
|
+
* Use when wrapping another object that will also inherit.
|
|
85
|
+
*
|
|
86
|
+
* @returns `undefined` if no layer defines the key.
|
|
87
|
+
*/
|
|
88
|
+
protected _values(key: keyof P): any[] | undefined;
|
|
89
|
+
getProperties(): P;
|
|
90
|
+
toJSON(): J;
|
|
91
|
+
}
|
|
92
|
+
export declare class CellBorderStroke extends Inheritable<IBorder.StrokeProperties, IBorder.StrokeJSON> implements IBorder.IStroke {
|
|
93
|
+
protected _edge: IBorder.Edge;
|
|
94
|
+
constructor(edge: IBorder.Edge, options: CreateCellStyleOptions, properties: IBorder.StrokeProperties[]);
|
|
95
|
+
/** {@inheritDoc IBorder.IStroke.getStyle} */
|
|
96
|
+
getStyle(): IBorder.StrokeStyle;
|
|
97
|
+
/** {@inheritDoc IBorder.IStroke.setStyle} */
|
|
98
|
+
setStyle(style: IBorder.StrokeStyle | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
99
|
+
/** {@inheritDoc IBorder.IStroke.getColor} */
|
|
100
|
+
getColor(): IColor;
|
|
101
|
+
/** {@inheritDoc IBorder.IStroke.setColor} */
|
|
102
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
103
|
+
/** {@inheritDoc IBorder.IStroke.isNone} */
|
|
104
|
+
isNone(): boolean;
|
|
105
|
+
/** {@inheritDoc IBorder.IStroke.toCSS} */
|
|
106
|
+
toCSS(): Partial<CSSStyleDeclaration>;
|
|
107
|
+
get [Symbol.toStringTag](): string;
|
|
108
|
+
toString(): string;
|
|
109
|
+
/** {@inheritDoc IBorder.IStroke.isIStroke} */
|
|
110
|
+
get isIStroke(): true;
|
|
111
|
+
}
|
|
112
|
+
export declare class CellBorder extends Inheritable<IBorder.Properties, IBorder.JSON> implements IBorder {
|
|
113
|
+
protected _left: IBorder.IStroke | undefined;
|
|
114
|
+
protected _right: IBorder.IStroke | undefined;
|
|
115
|
+
protected _top: IBorder.IStroke | undefined;
|
|
116
|
+
protected _bottom: IBorder.IStroke | undefined;
|
|
117
|
+
protected _diagUp: IBorder.IStroke | undefined;
|
|
118
|
+
protected _diagDown: IBorder.IStroke | undefined;
|
|
119
|
+
protected _isEmpty: boolean | undefined;
|
|
120
|
+
/** {@inheritDoc IBorder.getLeft} */
|
|
121
|
+
getLeft(): IBorder.IStroke;
|
|
122
|
+
/** {@inheritDoc IBorder.setLeft} */
|
|
123
|
+
setLeft(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
124
|
+
/** {@inheritDoc IBorder.getRight} */
|
|
125
|
+
getRight(): IBorder.IStroke;
|
|
126
|
+
/** {@inheritDoc IBorder.setRight} */
|
|
127
|
+
setRight(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
128
|
+
/** {@inheritDoc IBorder.getTop} */
|
|
129
|
+
getTop(): IBorder.IStroke;
|
|
130
|
+
/** {@inheritDoc IBorder.setTop} */
|
|
131
|
+
setTop(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
132
|
+
/** {@inheritDoc IBorder.IStroke.getBottom} */
|
|
133
|
+
getBottom(): IBorder.IStroke;
|
|
134
|
+
/** {@inheritDoc IBorder.setBottom} */
|
|
135
|
+
setBottom(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
136
|
+
/** {@inheritDoc IBorder.getHorizontal} */
|
|
137
|
+
getHorizontal(): IBorder.IStroke | null;
|
|
138
|
+
/** {@inheritDoc IBorder.getVertical} */
|
|
139
|
+
getVertical(): IBorder.IStroke | null;
|
|
140
|
+
/**
|
|
141
|
+
* The inner rule for an axis, read from the authored block rather than the cell.
|
|
142
|
+
*
|
|
143
|
+
* @remarks
|
|
144
|
+
* Not `_values(edge)`: the inheritance layers are the CELL's properties, where an inner rule
|
|
145
|
+
* has already been decomposed into the edges it produces. The rule only exists on the block,
|
|
146
|
+
* so this goes back to it — which is also why it needs `extent`, and answers `null` without one.
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
private _inner;
|
|
150
|
+
/** {@inheritDoc IBorder.IStroke.getDiagonalUp} */
|
|
151
|
+
getDiagonalUp(): IBorder.IStroke;
|
|
152
|
+
/** {@inheritDoc IBorder.setDiagonalUp} */
|
|
153
|
+
setDiagonalUp(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
154
|
+
/** {@inheritDoc IBorder.getDiagonalDown} */
|
|
155
|
+
getDiagonalDown(): IBorder.IStroke;
|
|
156
|
+
/** {@inheritDoc IBorder.setDiagonalDown} */
|
|
157
|
+
setDiagonalDown(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
158
|
+
/** {@inheritDoc IBorder.setVertical} */
|
|
159
|
+
setVertical(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
160
|
+
/** {@inheritDoc IBorder.setHorizontal} */
|
|
161
|
+
setHorizontal(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
162
|
+
/** {@inheritDoc IBorder.setHorizontal} */
|
|
163
|
+
setOutline(stroke: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
164
|
+
/**
|
|
165
|
+
* Resolves whether an edge's effective stroke style is `None` without allocating a
|
|
166
|
+
* `CellBorderStroke`. Mirrors `CellBorderStroke.getStyle()` (last-defined `style` across layers,
|
|
167
|
+
* honoring per-property inheritance).
|
|
168
|
+
*/
|
|
169
|
+
protected _edgeStyleIsNone(edge: IBorder.Edge): boolean;
|
|
170
|
+
/** {@inheritDoc IBorder.IStroke.isEmpty} */
|
|
171
|
+
isEmpty(): boolean;
|
|
172
|
+
get [Symbol.toStringTag](): string;
|
|
173
|
+
toString(): string;
|
|
174
|
+
/** {@inheritDoc IBorder.IStroke.isIBorder} */
|
|
175
|
+
get isIBorder(): true;
|
|
176
|
+
}
|
|
177
|
+
export declare class CellAlignment extends Inheritable<ITextFrame.IAlignment.Properties, ITextFrame.IAlignment.JSON> implements ITextFrame.IAlignment {
|
|
178
|
+
/** {@inheritDoc ITextBoxAlignment.getHorizontal} */
|
|
179
|
+
getHorizontal(): ITextFrame.HorizontalAlignment;
|
|
180
|
+
/** {@inheritDoc ITextBoxAlignment.setHorizontal} */
|
|
181
|
+
setHorizontal(horizontal: ITextFrame.HorizontalAlignment | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
182
|
+
/** {@inheritDoc ITextBoxAlignment.getVertical} */
|
|
183
|
+
getVertical(): ITextFrame.VerticalAlignment;
|
|
184
|
+
/** {@inheritDoc ITextBoxAlignment.setVertical} */
|
|
185
|
+
setVertical(vertical: ITextFrame.VerticalAlignment | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
186
|
+
/** {@inheritDoc ITextBoxAlignment.getIndent} */
|
|
187
|
+
getIndent(): number;
|
|
188
|
+
/** {@inheritDoc ITextBoxAlignment.setIndent} */
|
|
189
|
+
setIndent(indent: number | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
190
|
+
/** {@inheritDoc ITextBoxAlignment.getRelativeIndent} */
|
|
191
|
+
getRelativeIndent(): number;
|
|
192
|
+
/** {@inheritDoc ITextBoxAlignment.setRelativeIndent} */
|
|
193
|
+
setRelativeIndent(relativeIndent: number | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
194
|
+
/** {@inheritDoc ITextBoxAlignment.getOverflow} */
|
|
195
|
+
getOverflow(): ITextFrame.Overflow;
|
|
196
|
+
/** {@inheritDoc ITextBoxAlignment.setOverflow} */
|
|
197
|
+
setOverflow(overflow: ITextFrame.Overflow | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
198
|
+
/** {@inheritDoc ITextBoxAlignment.getRotation} */
|
|
199
|
+
getRotation(): number;
|
|
200
|
+
/** {@inheritDoc ITextBoxAlignment.setRotation} */
|
|
201
|
+
setRotation(rotation: number | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
202
|
+
/** {@inheritDoc ITextBoxAlignment.getStacked} */
|
|
203
|
+
getStacked(): boolean;
|
|
204
|
+
/** {@inheritDoc ITextBoxAlignment.setStacked} */
|
|
205
|
+
setStacked(stacked: boolean | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
206
|
+
/** {@inheritDoc ITextBoxAlignment.getJustifyLastLine} */
|
|
207
|
+
getJustifyLastLine(): boolean;
|
|
208
|
+
/** {@inheritDoc ITextBoxAlignment.setJustifyLastLine} */
|
|
209
|
+
setJustifyLastLine(justifyLastLine: boolean | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
210
|
+
/** {@inheritDoc ITextBoxAlignment.getReadingDirection} */
|
|
211
|
+
getReadingDirection(): ITextFrame.ReadingDirection;
|
|
212
|
+
/** {@inheritDoc ITextBoxAlignment.setReadingDirection} */
|
|
213
|
+
setReadingDirection(readingDirection: ITextFrame.ReadingDirection | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
|
|
214
|
+
get [Symbol.toStringTag](): string;
|
|
215
|
+
toString(): string;
|
|
216
|
+
/** {@inheritDoc ITextBoxAlignment.isITextBoxAlignment} */
|
|
217
|
+
get isITextBoxAlignment(): true;
|
|
218
|
+
}
|
|
219
|
+
export declare class CellFont extends Inheritable<IStyledFont.Properties, IStyledFont.JSON> implements IStyledFont {
|
|
220
|
+
/** {@inheritDoc IStyle.isEqualMeasure} */
|
|
221
|
+
isEqualMeasure(other: IStyledFont): boolean;
|
|
222
|
+
/** {@inheritDoc IStyle.toCSS} */
|
|
223
|
+
toCSS(mode?: IColor.CSSMode, zoom?: number, ignoreNormal?: boolean): CSSProperties;
|
|
224
|
+
/** {@inheritDoc IStyle.isSuperSub} */
|
|
225
|
+
isSuperSub(): boolean;
|
|
226
|
+
/** {@inheritDoc IStyle.isSuperSub} */
|
|
227
|
+
isSuperScript(): boolean;
|
|
228
|
+
/** {@inheritDoc IStyle.getSuperSubScale} */
|
|
229
|
+
getSuperSubScale(): number;
|
|
230
|
+
/** {@inheritDoc IStyle.getSuperSubShift} */
|
|
231
|
+
getSuperSubShift(): number;
|
|
232
|
+
/**
|
|
233
|
+
* The theme font this font is a reference to, or `undefined` if it names its own family.
|
|
234
|
+
*
|
|
235
|
+
* A scheme font is the LIVE theme font: `family` is only a cached resolution of it (Excel writes
|
|
236
|
+
* the face for the authoring locale's script, so a workbook saved in Chinese caches `宋体`
|
|
237
|
+
* where an English one caches `Calibri`), and the scheme is what the reference actually is.
|
|
238
|
+
*/
|
|
239
|
+
private _schemeFamily;
|
|
240
|
+
/** {@inheritDoc IStyle.getFamily} */
|
|
241
|
+
getFamily(): string;
|
|
242
|
+
/** {@inheritDoc IStyle.setFamily} */
|
|
243
|
+
setFamily(family: string | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
244
|
+
/** {@inheritDoc IStyle.getFallbacks} */
|
|
245
|
+
getFallbacks(): string[];
|
|
246
|
+
/** {@inheritDoc IStyle.setFamily} */
|
|
247
|
+
setFallbacks(fallbacks: string[] | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
248
|
+
/** {@inheritDoc IStyle.getSize} */
|
|
249
|
+
getSize(): number;
|
|
250
|
+
/** {@inheritDoc IStyle.setSize} */
|
|
251
|
+
setSize(size: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
252
|
+
/** {@inheritDoc IStyle.getWeight} */
|
|
253
|
+
getWeight(): number;
|
|
254
|
+
/** {@inheritDoc IStyle.setWeight} */
|
|
255
|
+
setWeight(weight: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
256
|
+
/** {@inheritDoc IStyledFont.getBold} */
|
|
257
|
+
getBold(): boolean;
|
|
258
|
+
/** {@inheritDoc IStyledFont.setBold} */
|
|
259
|
+
setBold(bold: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
260
|
+
/** {@inheritDoc IStyle.getStyle} */
|
|
261
|
+
getStyle(): IFont.Style;
|
|
262
|
+
/** {@inheritDoc IStyle.setStyle} */
|
|
263
|
+
setStyle(style: IFont.Style | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
264
|
+
/** {@inheritDoc IStyledFont.getItalic} */
|
|
265
|
+
getItalic(): boolean;
|
|
266
|
+
/** {@inheritDoc IStyledFont.setItalic} */
|
|
267
|
+
setItalic(italic: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
268
|
+
/** {@inheritDoc IStyle.getColor} */
|
|
269
|
+
getColor(): IColor;
|
|
270
|
+
/** {@inheritDoc IStyle.setColor} */
|
|
271
|
+
setColor(color: IColor | string | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
272
|
+
/** {@inheritDoc IStyle.getLetterSpacing} */
|
|
273
|
+
getLetterSpacing(): number;
|
|
274
|
+
/** {@inheritDoc IStyle.setLetterSpacing} */
|
|
275
|
+
setLetterSpacing(letterSpacing: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
276
|
+
/** {@inheritDoc IStyle.getUnderline} */
|
|
277
|
+
getUnderline(): IFont.UnderlineStyle;
|
|
278
|
+
/** {@inheritDoc IStyle.setUnderline} */
|
|
279
|
+
setUnderline(underline: IFont.UnderlineStyle | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
280
|
+
/** {@inheritDoc IStyle.getStrike} */
|
|
281
|
+
getStrike(): boolean;
|
|
282
|
+
/** {@inheritDoc IStyle.setStrike} */
|
|
283
|
+
setStrike(strike: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
284
|
+
/** {@inheritDoc IStyle.getScheme} */
|
|
285
|
+
getScheme(): IFont.Scheme;
|
|
286
|
+
/** {@inheritdoc IStyle.setScheme} */
|
|
287
|
+
setScheme(scheme: IFont.Scheme | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
288
|
+
/** {@inheritDoc IStyle.getVerticalAlignment} */
|
|
289
|
+
getVerticalAlignment(): IFont.VerticalAlignment;
|
|
290
|
+
/** {@inheritDoc IStyle.setVerticalAlignment} */
|
|
291
|
+
setVerticalAlignment(verticalAlign: IFont.VerticalAlignment | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
292
|
+
/** {@inheritDoc IStyle.getShadow} */
|
|
293
|
+
getShadow(): boolean;
|
|
294
|
+
/** {@inheritDoc IStyle.setShadow} */
|
|
295
|
+
setShadow(shadow: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
296
|
+
/** {@inheritDoc IStyle.getOutline} */
|
|
297
|
+
getOutline(): boolean;
|
|
298
|
+
/** {@inheritDoc IStyle.setOutline} */
|
|
299
|
+
setOutline(outline: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
300
|
+
/** {@inheritDoc IStyle.getExtend} */
|
|
301
|
+
getExtend(): boolean;
|
|
302
|
+
/** {@inheritDoc IStyle.setExtend} */
|
|
303
|
+
setExtend(extend: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
304
|
+
/** {@inheritDoc IStyledFont.getCharset} */
|
|
305
|
+
getCharset(): IFont.Charset | null;
|
|
306
|
+
/** {@inheritDoc IStyledFont.setCharset} */
|
|
307
|
+
setCharset(charset: IFont.Charset | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
308
|
+
get [Symbol.toStringTag](): string;
|
|
309
|
+
/** {@inheritDoc ICellRanges.toString} */
|
|
310
|
+
toString(): string;
|
|
311
|
+
/** {@inheritDoc IStyle.isIStyledFont} */
|
|
312
|
+
get isIStyledFont(): true;
|
|
313
|
+
}
|
|
314
|
+
export declare class NoneFill extends Inheritable<IFill.NoneProperties, IFill.NoneJSON> implements IFill.INone {
|
|
315
|
+
/** {@inheritDoc IFill.INone.getType} */
|
|
316
|
+
getType(): typeof IFill.Type.None;
|
|
317
|
+
/** {@inheritDoc IFill.INone.getColor} */
|
|
318
|
+
getColor(): IColor | null;
|
|
319
|
+
/** {@inheritDoc IFill.INone.setColor} */
|
|
320
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill;
|
|
321
|
+
/** {@inheritDoc IFill.INone.toCSS} */
|
|
322
|
+
toCSS(_mode?: IColor.CSSMode): CSSProperties;
|
|
323
|
+
/** {@inheritDoc IFill.hasVisibleStyling} */
|
|
324
|
+
hasVisibleStyling(): boolean;
|
|
325
|
+
/** {@inheritDoc IFill.isEqual} */
|
|
326
|
+
isEqual(other: IFill | null): boolean;
|
|
327
|
+
/** {@inheritDoc IFill.INone.toJSON} */
|
|
328
|
+
toJSON(): IFill.NoneJSON;
|
|
329
|
+
get [Symbol.toStringTag](): string;
|
|
330
|
+
toString(): string;
|
|
331
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
332
|
+
get isIFill(): true;
|
|
333
|
+
}
|
|
334
|
+
export declare class SolidFill extends Inheritable<IFill.SolidProperties, IFill.SolidJSON> implements IFill.ISolid {
|
|
335
|
+
/** {@inheritDoc IFill.ISolid.getType} */
|
|
336
|
+
getType(): typeof IFill.Type.Solid;
|
|
337
|
+
/** {@inheritDoc IFill.ISolid.getColor} */
|
|
338
|
+
getColor(): IColor;
|
|
339
|
+
/** {@inheritDoc IFill.ISolid.setColor} */
|
|
340
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.ISolid;
|
|
341
|
+
/** {@inheritDoc IFill.ISolid.toCSS} */
|
|
342
|
+
toCSS(mode?: IColor.CSSMode): CSSProperties;
|
|
343
|
+
/** {@inheritDoc IFill.hasVisibleStyling} */
|
|
344
|
+
hasVisibleStyling(): boolean;
|
|
345
|
+
/** {@inheritDoc IFill.isEqual} */
|
|
346
|
+
isEqual(other: IFill | null): boolean;
|
|
347
|
+
/** {@inheritDoc IFill.ISolid.toJSON} */
|
|
348
|
+
toJSON(): IFill.SolidJSON;
|
|
349
|
+
get [Symbol.toStringTag](): string;
|
|
350
|
+
toString(): string;
|
|
351
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
352
|
+
get isIFill(): true;
|
|
353
|
+
}
|
|
354
|
+
export declare class GradientStop extends Inheritable<IFill.GradientStopProperties, any> implements IFill.IGradientStop {
|
|
355
|
+
protected _i: number;
|
|
356
|
+
protected _l: number;
|
|
357
|
+
constructor(index: number, length: number, options: CreateCellStyleOptions, properties: IFill.GradientStopProperties[]);
|
|
358
|
+
/** {@inheritDoc IFill.IGradientStop.getOffset} */
|
|
359
|
+
getOffset(): number;
|
|
360
|
+
/** {@inheritDoc IFill.IGradientStop.getColor} */
|
|
361
|
+
getColor(): IColor;
|
|
362
|
+
}
|
|
363
|
+
export declare class GradientFill extends Inheritable<IFill.GradientProperties, IFill.GradientJSON> implements IFill.IGradient {
|
|
364
|
+
/** {@inheritDoc IFill.IGradient.getType} */
|
|
365
|
+
getType(): typeof IFill.Type.Gradient;
|
|
366
|
+
/** {@inheritDoc IFill.IGradient.getColor} */
|
|
367
|
+
getColor(): IColor | null;
|
|
368
|
+
/** {@inheritDoc IFill.IGradient.setColor} */
|
|
369
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
370
|
+
/** {@inheritDoc IFill.IGradient.getStops} */
|
|
371
|
+
getStops(): IFill.IGradientStop[];
|
|
372
|
+
/** {@inheritDoc IFill.IGradient.setStops} */
|
|
373
|
+
setStops(stops: IFill.IGradientStop[], options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
374
|
+
/** {@inheritDoc IFill.IGradient.getGradientType} */
|
|
375
|
+
getGradientType(): IFill.GradientType;
|
|
376
|
+
/** {@inheritDoc IFill.IGradient.setGradientType} */
|
|
377
|
+
setGradientType(gradientType: IFill.GradientType, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
378
|
+
/** {@inheritDoc IFill.IGradient.getAngle} */
|
|
379
|
+
getAngle(): number;
|
|
380
|
+
/** {@inheritDoc IFill.IGradient.setAngle} */
|
|
381
|
+
setAngle(angle: number, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
382
|
+
/** {@inheritDoc IFill.IGradient.getFocus} */
|
|
383
|
+
getFocus(): Rectangle;
|
|
384
|
+
/** {@inheritDoc IFill.IGradient.setFocus} */
|
|
385
|
+
setFocus(focus: Rectangle, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
386
|
+
/** {@inheritDoc IFill.IGradient.toCSS} */
|
|
387
|
+
toCSS(mode?: IColor.CSSMode, size?: Size): CSSProperties;
|
|
388
|
+
/** {@inheritDoc IFill.hasVisibleStyling} */
|
|
389
|
+
hasVisibleStyling(): boolean;
|
|
390
|
+
/** {@inheritDoc IFill.isEqual} */
|
|
391
|
+
isEqual(other: IFill | null): boolean;
|
|
392
|
+
/** {@inheritDoc IFill.IGradient.toJSON} */
|
|
393
|
+
toJSON(): IFill.GradientJSON;
|
|
394
|
+
get [Symbol.toStringTag](): string;
|
|
395
|
+
toString(): string;
|
|
396
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
397
|
+
get isIFill(): true;
|
|
398
|
+
}
|
|
399
|
+
export declare class PatternFill extends Inheritable<IFill.PatternProperties, IFill.PatternJSON> implements IFill.IPattern {
|
|
400
|
+
/** {@inheritDoc IFill.IPattern.getType} */
|
|
401
|
+
getType(): typeof IFill.Type.Pattern;
|
|
402
|
+
/** {@inheritDoc IFill.IPattern.getColor} */
|
|
403
|
+
getColor(): IColor;
|
|
404
|
+
/** {@inheritDoc IFill.IPattern.setColor} */
|
|
405
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
406
|
+
/** {@inheritDoc IFill.IPattern.getBackground} */
|
|
407
|
+
getBackground(): IColor;
|
|
408
|
+
/** {@inheritDoc IFill.ISolid.setBackground} */
|
|
409
|
+
setBackground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
410
|
+
/** {@inheritDoc IFill.IPattern.getForeground} */
|
|
411
|
+
getForeground(): IColor;
|
|
412
|
+
/** {@inheritDoc IFill.ISolid.setForeground} */
|
|
413
|
+
setForeground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
414
|
+
/** {@inheritDoc IFill.IPattern.getPatternType} */
|
|
415
|
+
getPatternType(): IFill.BuiltInSheetPattern;
|
|
416
|
+
/** {@inheritDoc IFill.IGradient.setPatternType} */
|
|
417
|
+
setPatternType(patternType: IFill.BuiltInSheetPattern, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
418
|
+
/** {@inheritDoc IFill.IPattern.toCSS} */
|
|
419
|
+
toCSS(mode?: IColor.CSSMode): CSSProperties;
|
|
420
|
+
/** {@inheritDoc IFill.IPattern.toCSSMask} */
|
|
421
|
+
toCSSMask(mode?: IColor.CSSMode): {
|
|
422
|
+
base: CSSProperties;
|
|
423
|
+
marks: CSSProperties;
|
|
424
|
+
} | null;
|
|
425
|
+
/** {@inheritDoc IFill.hasVisibleStyling} */
|
|
426
|
+
hasVisibleStyling(): boolean;
|
|
427
|
+
/** {@inheritDoc IFill.isEqual} */
|
|
428
|
+
isEqual(other: IFill | null): boolean;
|
|
429
|
+
/** {@inheritDoc IFill.IPattern.toJSON} */
|
|
430
|
+
toJSON(): IFill.PatternJSON;
|
|
431
|
+
get [Symbol.toStringTag](): string;
|
|
432
|
+
toString(): string;
|
|
433
|
+
/** {@inheritDoc IFill.isIFill} */
|
|
434
|
+
get isIFill(): true;
|
|
435
|
+
}
|
|
436
|
+
export declare class SheetCellStyle implements IStyle {
|
|
437
|
+
protected _o: CreateCellStyleOptions;
|
|
438
|
+
protected _p: InheritableProperties<IStyle.Properties, IStyle.JSON>;
|
|
439
|
+
protected _bestFit: Partial<Size> | undefined;
|
|
440
|
+
protected _insets: Rectangle | undefined;
|
|
441
|
+
protected _hasVisibleStyling: boolean | undefined;
|
|
442
|
+
protected _font: IStyledFont | undefined;
|
|
443
|
+
protected _alignment: ITextFrame.IAlignment | undefined;
|
|
444
|
+
protected _border: IBorder | undefined;
|
|
445
|
+
protected _fill: IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone | undefined;
|
|
446
|
+
constructor(options: CreateCellStyleOptions);
|
|
447
|
+
/** {@inheritDoc IStyle.toJSON} */
|
|
448
|
+
toJSON(): IStyle.JSON;
|
|
449
|
+
/** {@inheritDoc IStyle.hasVisibleStyling} */
|
|
450
|
+
hasVisibleStyling(): boolean;
|
|
451
|
+
/** {@inheritDoc IStyle.isNormal} */
|
|
452
|
+
isNormal(): boolean;
|
|
453
|
+
/**
|
|
454
|
+
* The AUTHORED (explicit) properties of this style: the direct layer values plus the `named`
|
|
455
|
+
* reference. Never includes cascade-resolved values (named/table/conditional results) - those
|
|
456
|
+
* re-derive at read time from the destination's own cascade. This is what a write/copy of this
|
|
457
|
+
* style persists (see resolveStyleUpdate).
|
|
458
|
+
*/
|
|
459
|
+
getAuthoredProperties(): IStyle.Properties;
|
|
460
|
+
/** {@inheritDoc IStyle.createStyle} */
|
|
461
|
+
createStyle(update: IStyle.Update): IStyle;
|
|
462
|
+
/** {@inheritDoc IStyle.measureText} */
|
|
463
|
+
measureText(text: string, size?: number, family?: string, options?: IFont.MetricOptions): IFont.ExtendedMetrics;
|
|
464
|
+
/** {@inheritDoc IStyle.createTextFrame} */
|
|
465
|
+
createTextFrame(text: string, allowWrap?: boolean): ITextFrame;
|
|
466
|
+
/** {@inheritDoc IStyle.update} */
|
|
467
|
+
update(update: IStyle.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
468
|
+
/** {@inheritDoc IStyle.clear} */
|
|
469
|
+
clear(): IStyle;
|
|
470
|
+
/** {@inheritDoc IStyle.getBestFit} */
|
|
471
|
+
getBestFit(): Partial<Size> | null;
|
|
472
|
+
/** {@inheritDoc IStyle.getInsets} */
|
|
473
|
+
getInsets(): Rectangle;
|
|
474
|
+
/** {@inheritDoc IStyle.getBorder} */
|
|
475
|
+
getBorder(): IBorder;
|
|
476
|
+
/** {@inheritDoc IStyle.setBorder} */
|
|
477
|
+
setBorder(border: IBorder.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
478
|
+
/** {@inheritDoc IStyle.getFont} */
|
|
479
|
+
getFont(): IStyledFont;
|
|
480
|
+
/** {@inheritDoc IStyle.setFont} */
|
|
481
|
+
setFont(font: IStyledFont.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
482
|
+
/** {@inheritDoc IStyle.getFill} */
|
|
483
|
+
getFill(): IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone;
|
|
484
|
+
/** {@inheritDoc IStyle.setFill} */
|
|
485
|
+
setFill(fill: IFill.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
486
|
+
/** {@inheritDoc IStyle.setFill} */
|
|
487
|
+
setFillSolid(options?: IStyle.UpdateOptions): IFill.ISolid;
|
|
488
|
+
/** {@inheritDoc IStyle.setFill} */
|
|
489
|
+
setFillGradient(options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
490
|
+
/** {@inheritDoc IStyle.setFill} */
|
|
491
|
+
setFillPattern(options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
492
|
+
/** {@inheritDoc IStyle.setFill} */
|
|
493
|
+
setFillNone(options?: IStyle.UpdateOptions): IFill.INone;
|
|
494
|
+
/** {@inheritDoc IStyle.getAlignment} */
|
|
495
|
+
getAlignment(): ITextFrame.IAlignment;
|
|
496
|
+
/** {@inheritDoc IStyle.setAlignment} */
|
|
497
|
+
setAlignment(alignment: ITextFrame.IAlignment.Update | string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
498
|
+
/** {@inheritDoc IStyle.getNumberFormat} */
|
|
499
|
+
getNumberFormat(): string;
|
|
500
|
+
/** {@inheritDoc IStyle.setNumberFormat} */
|
|
501
|
+
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
502
|
+
/** {@inheritDoc IStyle.getQuotePrefix} */
|
|
503
|
+
getQuotePrefix(): boolean;
|
|
504
|
+
/** {@inheritDoc IStyle.setQuotePrefix} */
|
|
505
|
+
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): IStyle;
|
|
506
|
+
/** {@inheritDoc IStyle.getNamed} */
|
|
507
|
+
getNamed(): IStyle.INamed;
|
|
508
|
+
/** {@inheritDoc IStyle.setNamed} */
|
|
509
|
+
setNamed(named: string | IStyle.INamed | null, options?: IStyle.UpdateOptions): IStyle;
|
|
510
|
+
get [Symbol.toStringTag](): string;
|
|
511
|
+
toString(): string;
|
|
512
|
+
/** {@inheritDoc IStyle.isIStyle} */
|
|
513
|
+
get isIStyle(): true;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Create an `IStyle` using the properties.
|
|
517
|
+
*
|
|
518
|
+
* @remarks
|
|
519
|
+
* Not part of the public interface.
|
|
520
|
+
*/
|
|
521
|
+
export declare function createCellStyle(value: Scalar | undefined, styles: IStyleCollection, layer: IProperties.ICellRanged<IStyle.Properties>, range?: Readonly<IRange.Coords>, updater?: CellStyleUpdater, extent?: Readonly<IRange.Coords>): IStyle;
|
|
522
|
+
export declare class EmptyStyle extends SheetCellStyle {
|
|
523
|
+
/** {@inheritDoc IStyle.hasVisibleStyling} */
|
|
524
|
+
hasVisibleStyling(): boolean;
|
|
525
|
+
}
|
|
526
|
+
export declare class NormalStyle extends SheetCellStyle {
|
|
527
|
+
/** {@inheritDoc IStyle.isNormal} */
|
|
528
|
+
isNormal(): boolean;
|
|
529
|
+
/**
|
|
530
|
+
* {@inheritDoc SheetCellStyle.getAuthoredProperties}
|
|
531
|
+
*
|
|
532
|
+
* Normal authors nothing: writing/copying the Normal style is a reset (`null` is the clear-all
|
|
533
|
+
* marker). Without this, a customized Normal's def values would be copied as explicit direct
|
|
534
|
+
* formatting (the `direct` layer here is the normal ranged def, not cell-authored values).
|
|
535
|
+
*/
|
|
536
|
+
getAuthoredProperties(): IStyle.Properties;
|
|
537
|
+
}
|
|
538
|
+
export declare function ReadOnlyUpdater(update: IStyle.Update): IStyle;
|
|
539
|
+
export {};
|
|
540
|
+
//# sourceMappingURL=SheetCellStyle.d.ts.map
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { IRange, Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IProperties } from '../../type';
|
|
3
|
+
import { IBorder } from '../../border';
|
|
4
|
+
import { IStyle, IStyleCollection } from '../../style';
|
|
5
|
+
import { ISpatialMap } from '../../collections/ISpatialMap';
|
|
6
|
+
/**
|
|
7
|
+
* `SheetDirectStyle` represents a style that spans a range of cells.
|
|
8
|
+
*
|
|
9
|
+
* * It can generate a list of properties for each cell in the range.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SheetDirectStyle implements ISpatialMap.IUpdatableValue, IProperties.ICellRanged<IStyle.Properties> {
|
|
12
|
+
protected _c: IStyleCollection;
|
|
13
|
+
protected _getEntireRange: (() => IRange.Coords) | null;
|
|
14
|
+
protected _r: IRange.Coords;
|
|
15
|
+
protected _p: IStyle.Properties | null;
|
|
16
|
+
protected _t: IRange.Coords | null;
|
|
17
|
+
protected _e: boolean;
|
|
18
|
+
protected _o: IRange.AxisSelection;
|
|
19
|
+
/**
|
|
20
|
+
* The 'update form': the resolved update INCLUDING explicit `null` clears (tombstones). Only
|
|
21
|
+
* present on update templates built via {@link cloneWithUpdate} with `keepNulls` (and their
|
|
22
|
+
* splits). `_p` stays clean (tombstones stripped) so a template stored directly for previously
|
|
23
|
+
* unstyled cells reads/persists correctly; intersect-merges consume `_u` so clears reach cells
|
|
24
|
+
* that DO have a previous style. See the ranged-style update in Sheet.ts.
|
|
25
|
+
*/
|
|
26
|
+
protected _u: IStyle.Properties | undefined;
|
|
27
|
+
constructor(styles: IStyleCollection, getEntireRange: (() => IRange.Coords) | null, range: IRange.Coords, properties?: IStyle.Properties | null, tile?: IRange.Coords | null, axes?: IRange.AxisSelection);
|
|
28
|
+
isEmpty(): boolean;
|
|
29
|
+
getProperties(): IStyle.Properties | null;
|
|
30
|
+
/** {@inheritDoc IProperties.ICellRanged.getCoords} */
|
|
31
|
+
getCoords(): Readonly<IRange.Coords>;
|
|
32
|
+
/**
|
|
33
|
+
* The update form including explicit `null` clears; only present on update templates.
|
|
34
|
+
* @see {@link _u}
|
|
35
|
+
*/
|
|
36
|
+
getUpdateProperties(): IStyle.Properties | undefined;
|
|
37
|
+
/** Category key partition for {@link splitByFeature} (SHEET-STYLE-SPLIT). Covers every
|
|
38
|
+
* `IStyle.Properties` key exactly once so the split is lossless. `protection` is future. */
|
|
39
|
+
static readonly BorderKeys: readonly (keyof IStyle.Properties)[];
|
|
40
|
+
static readonly FillKeys: readonly (keyof IStyle.Properties)[];
|
|
41
|
+
static readonly ContentKeys: readonly (keyof IStyle.Properties)[];
|
|
42
|
+
/**
|
|
43
|
+
* Split this style into up to three category-scoped copies (border / fill / content) for the
|
|
44
|
+
* per-feature style maps (SHEET-STYLE-SPLIT §4). The partition is **lossless** — every
|
|
45
|
+
* `IStyle.Properties` key goes to exactly one category — so merging the three reconstructs this
|
|
46
|
+
* style. Both the clean properties (`_p`) and the update form (`_u`, explicit `null` clears) are
|
|
47
|
+
* partitioned. A category with no present keys returns `null`.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
splitByFeature(): {
|
|
51
|
+
border: SheetDirectStyle | null;
|
|
52
|
+
fill: SheetDirectStyle | null;
|
|
53
|
+
content: SheetDirectStyle | null;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Inverse of {@link splitByFeature}: merge up to three category-scoped styles (border / fill /
|
|
57
|
+
* content) back into one for a read intersection (SHEET-STYLE-SPLIT step 3). The three parts are
|
|
58
|
+
* uniform over the composed region (a flattened read intersection), so a single merged `_p`
|
|
59
|
+
* reproduces the original blob style's per-cell resolution — EXCEPT border, which is range-relative:
|
|
60
|
+
* the merge keeps border's own range + tile so {@link getPropertiesAt} still localizes edges
|
|
61
|
+
* per-cell, while fill/content props are position-independent and merge in directly.
|
|
62
|
+
*
|
|
63
|
+
* Returns `null` when all three are absent, or the sole part unwrapped when only one is present (no
|
|
64
|
+
* allocation — the common single-category cell).
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
static compose(border: SheetDirectStyle | null | undefined, fill: SheetDirectStyle | null | undefined, content: SheetDirectStyle | null | undefined): SheetDirectStyle | null;
|
|
68
|
+
/**
|
|
69
|
+
* Two-way overlay used to rebuild a merged (blob-shaped) style from the per-feature maps
|
|
70
|
+
* (SHEET-STYLE-SPLIT): merge `over`'s properties on top of `base`. Border is range-relative, so
|
|
71
|
+
* whichever side carries it owns the resulting range + tile (localization stays correct); all other
|
|
72
|
+
* keys are position-independent. Intended to be applied in border-last order (content, fill, border),
|
|
73
|
+
* so the bordered side wins the range/tile. Either side may be null.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
static mergeOverlay(base: SheetDirectStyle | null | undefined, over: SheetDirectStyle | null | undefined): SheetDirectStyle | null;
|
|
77
|
+
/**
|
|
78
|
+
* {@inheritDoc IProperties.ICellRanged.cloneWithUpdate}
|
|
79
|
+
*
|
|
80
|
+
* @param keepNulls Build an update template: explicit `null` clears in `updates` are preserved in
|
|
81
|
+
* the update form ({@link getUpdateProperties}) while the direct properties stay clean. Use when
|
|
82
|
+
* resolving an update against an empty previous style for later per-run merging.
|
|
83
|
+
*/
|
|
84
|
+
cloneWithUpdate(updates: IStyle.Modifiers, keepNulls?: boolean): this;
|
|
85
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.copyTo} */
|
|
86
|
+
copyTo(destination: IRange.Coords, options?: ISpatialMap.CopyOptions): ISpatialMap.Entry<this> | undefined;
|
|
87
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.canTile} */
|
|
88
|
+
canTile(_destination: IRange.Coords, _options?: ISpatialMap.CopyOptions): boolean;
|
|
89
|
+
protected _createShifted(coords: IRange.Coords): this;
|
|
90
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.getShifted} */
|
|
91
|
+
getShifted(options: ISpatialMap.ShiftDetails<this>): ISpatialMap.Entry<this> | null;
|
|
92
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.getSplit} */
|
|
93
|
+
getSplit(coords: [IRange.Coords, IRange.Coords], axis: IRange.Axis): [this, this];
|
|
94
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.getSplit} */
|
|
95
|
+
getMerged(other: this, destination: IRange.Coords, axis: IRange.Axis): this | undefined;
|
|
96
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.hasTrailingEdge} */
|
|
97
|
+
hasTrailingEdge(): boolean;
|
|
98
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.isMergeOnShift} */
|
|
99
|
+
isMergeOnShift(): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* The **inner** border rules this block authors, localized to `range`.
|
|
102
|
+
*
|
|
103
|
+
* @returns The inner rules, or `null` when this block cannot answer for that extent.
|
|
104
|
+
*
|
|
105
|
+
* @remarks
|
|
106
|
+
* The extent-scoped counterpart of {@link getPropertiesAt}, and the only read that can see
|
|
107
|
+
* `horizontal`/`vertical` at all: the per-cell localization decomposes them into the edges
|
|
108
|
+
* they produce (a cell has no inside), so by the time a cell style exists they are gone.
|
|
109
|
+
*
|
|
110
|
+
* `range` must be **fully contained** in this block, or the answer is `null`. A range reaching
|
|
111
|
+
* outside it covers cells this block says nothing about, and reporting the block's rule for
|
|
112
|
+
* them would claim an inner grid over cells that have none — the same lie the region work
|
|
113
|
+
* exists to prevent.
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
getInnerBorder(range: IRange.Coords): Readonly<Partial<IBorder.Properties>> | null;
|
|
117
|
+
protected _localizeBorderRange(unscoped: Readonly<IBorder.Properties>, rangeUnscoped: IRange.Coords, range: IRange.Coords): Partial<IBorder.Properties> | null | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Localizes the border to the cell coords.
|
|
120
|
+
* Returns border properties, null, or undefined.
|
|
121
|
+
* * If undefined then there was no border to localize.
|
|
122
|
+
* * `null` is localize to none.
|
|
123
|
+
*/
|
|
124
|
+
protected _localizeBorder(unscoped: IBorder.Properties, range: IRange.Coords, rowIndex: number, colIndex: number): Partial<IBorder.Properties> | null | undefined;
|
|
125
|
+
/** {@inheritDoc IProperties.ICellRanged.getPropertiesAt} */
|
|
126
|
+
getPropertiesAt(rowIndex: number, colIndex: number, value: Scalar): Readonly<IStyle.Properties>;
|
|
127
|
+
/** {@inheritDoc ISpatialMap.IUpdatableValue.toJSON} */
|
|
128
|
+
toJSON(): IStyle.JSON;
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=SheetDirectStyle.d.ts.map
|