@sheetxl/sdk 0.7.27 → 0.7.28-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/THIRD-PARTY-NOTICES.md +34 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
- package/browser/cjs/BG7YDVxiC4ErxvF1.cjs +1 -0
- package/browser/cjs/BREMLtxkQhtNSVra.cjs +1 -0
- package/browser/cjs/CQf4zxkBmheTVbjX.cjs +57 -0
- package/browser/cjs/DoemwsUQoGCk0vBK.cjs +33 -0
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +10 -0
- package/browser/cjs/_c2uwwpr03Y7lzIj.cjs +1 -0
- package/browser/cjs/index.cjs +3 -6
- package/browser/esm/BxIOX1TojvA-1ZZP.mjs +14 -0
- package/browser/esm/CB_4gdPPPruwremH.mjs +49989 -0
- package/browser/esm/CZO1RubmqnJV96rq.mjs +503 -0
- package/browser/esm/DN4d5bDBkti28wuc.mjs +818 -0
- package/browser/esm/DPOelA1J3WHbMXyh.mjs +109 -0
- package/browser/esm/DRWu3TmcE9JFf78V.mjs +4436 -0
- package/browser/esm/index.mjs +3225 -62
- package/browser/esm/vHWuKF-ftK7LM1uw.mjs +24 -0
- package/licenses/dependencies.txt +74 -193
- package/node/esm/B-tgcZihStNV9CbZ.mjs +22 -0
- package/node/esm/C8tfYGL3wHy9IDDc.mjs +114 -0
- package/node/esm/XQhP3dYwF_tEuswB.mjs +837 -0
- package/node/esm/index.mjs +53604 -23262
- 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/-P9BHlnCf8OF6D_m.cjs +0 -6
- package/browser/cjs/4kU87sIrnTEoJHwl.cjs +0 -6
- package/browser/cjs/B8mBx-uU2X9Qvdnr.cjs +0 -6
- package/browser/cjs/BD9lJn7w8OVsIwgC.cjs +0 -6
- package/browser/cjs/BI57E6P5MbZI3G2Z.cjs +0 -6
- package/browser/cjs/BRgYzaAY9tLpJe7C.cjs +0 -6
- package/browser/cjs/BdoGTvcTjso5IcRq.cjs +0 -15
- package/browser/cjs/C3ScwpfBnQ8JeHF-.cjs +0 -6
- package/browser/cjs/CI8H5FLYtzy-Y2TO.cjs +0 -55
- package/browser/cjs/ClUc2Qdf-BFmgsJR.cjs +0 -6
- package/browser/cjs/CsEmF6ZwF-2A9AvC.cjs +0 -6
- package/browser/cjs/D6eH4loatnriRosn.cjs +0 -124
- package/browser/cjs/DJTioC8laMAxiW-z.cjs +0 -6
- package/browser/cjs/DN6U4mb4Jt2b37q-.cjs +0 -7
- package/browser/cjs/DfNwTsshId9JPwTK.cjs +0 -6
- package/browser/cjs/DnQwOaG_1n5GvCnM.cjs +0 -6
- package/browser/cjs/DtOYNHcDq5p3S21C.cjs +0 -6
- package/browser/cjs/Dy2xo5nrA4OFe7w4.cjs +0 -6
- package/browser/cjs/EzhtX7d4GOngN0Se.cjs +0 -6
- package/browser/cjs/FBky5iT5me5H1I0-.cjs +0 -6
- package/browser/cjs/JcziJrpVHeAEo8Iv.cjs +0 -6
- package/browser/cjs/LABm2VcP5Duieabc.cjs +0 -6
- package/browser/cjs/OZxxkm3CI5jiE3O-.cjs +0 -6
- package/browser/cjs/W8_0e_fQB-spiB55.cjs +0 -6
- package/browser/cjs/nS_oDgpzBeOV487v.cjs +0 -6
- package/browser/cjs/srhqHYaGNtcM9evy.cjs +0 -6
- package/browser/cjs/v2J4J4s0rRAvsx4v.cjs +0 -6
- package/browser/esm/8Cdp6eg5fQM4U0CD.mjs +0 -10
- package/browser/esm/BvtSjnucMGltTjeM.mjs +0 -426
- package/browser/esm/Bzw2Xms8ZtifZcAF.mjs +0 -10
- package/browser/esm/C9ojFSLlGrdG3EDE.mjs +0 -10
- package/browser/esm/CPxdCZqGhuQENst8.mjs +0 -10
- package/browser/esm/CQXqHgLFDd57bQSy.mjs +0 -10
- package/browser/esm/CRlsrdZLcL-QKyo2.mjs +0 -12
- package/browser/esm/CUqge0vhYI_M8Hpg.mjs +0 -10
- package/browser/esm/C__wCYJcwKkBqp8t.mjs +0 -10
- package/browser/esm/Cou0jxSdkKrqQBPA.mjs +0 -10
- package/browser/esm/CtGy0C3HHvNhQ3j5.mjs +0 -10
- package/browser/esm/Ctol2MswJyCxIJcQ.mjs +0 -10
- package/browser/esm/D7tUJDQqPM4e3FEC.mjs +0 -10
- package/browser/esm/DB5Wpq1m-bJ7gpBF.mjs +0 -10
- package/browser/esm/DLXAhFMo3NyECo8b.mjs +0 -23842
- package/browser/esm/DTlPJulnTLqG3WSw.mjs +0 -10
- package/browser/esm/DwfM2tfEPAzMl86c.mjs +0 -10
- package/browser/esm/Dx0TIy0V5EVTNOEZ.mjs +0 -10
- package/browser/esm/Dxfd2MfY8kHHUtnu.mjs +0 -4022
- package/browser/esm/E0SwR3N6qggAhdBh.mjs +0 -10
- package/browser/esm/JGdZf2WBzvkRao7-.mjs +0 -10
- package/browser/esm/NAcqiYlYK4mm9q_F.mjs +0 -10
- package/browser/esm/NGg21AIVBhRCHoOh.mjs +0 -10
- package/browser/esm/PjtmxdNFMVskYmPB.mjs +0 -10
- package/browser/esm/a_LQ18tLbXq3N9hu.mjs +0 -10
- package/browser/esm/hXx5ZKLpc4RvmCjH.mjs +0 -10
- package/browser/esm/zoqPtKWJmGQs1ZUb.mjs +0 -5653
- package/node/esm/7QlvuodPxz-B25P9.mjs +0 -10
- package/node/esm/8Cdp6eg5fQM4U0CD.mjs +0 -10
- package/node/esm/B94PecmbGgqY0k9O.mjs +0 -13
- package/node/esm/BpvIVwL4NNRKuaD7.mjs +0 -10
- package/node/esm/Bzw2Xms8ZtifZcAF.mjs +0 -10
- package/node/esm/C9ojFSLlGrdG3EDE.mjs +0 -10
- package/node/esm/CQXqHgLFDd57bQSy.mjs +0 -10
- package/node/esm/CSg2ysafDv5h1zz2.mjs +0 -2458
- package/node/esm/CUqge0vhYI_M8Hpg.mjs +0 -10
- package/node/esm/C__wCYJcwKkBqp8t.mjs +0 -10
- package/node/esm/Cou0jxSdkKrqQBPA.mjs +0 -10
- package/node/esm/CtlHMovXY4x1NgI6.mjs +0 -10
- package/node/esm/Ctol2MswJyCxIJcQ.mjs +0 -10
- package/node/esm/Cv3hTIkdeILrJGYc.mjs +0 -10
- package/node/esm/D7tUJDQqPM4e3FEC.mjs +0 -10
- package/node/esm/DTlPJulnTLqG3WSw.mjs +0 -10
- package/node/esm/Dvg1Ay14DLNhMgmD.mjs +0 -10
- package/node/esm/DwfM2tfEPAzMl86c.mjs +0 -10
- package/node/esm/Dx0TIy0V5EVTNOEZ.mjs +0 -10
- package/node/esm/F5A4vdvxqRt8hFAs.mjs +0 -10
- package/node/esm/NGg21AIVBhRCHoOh.mjs +0 -10
- package/node/esm/PjtmxdNFMVskYmPB.mjs +0 -10
- package/node/esm/a_LQ18tLbXq3N9hu.mjs +0 -10
- package/node/esm/hXx5ZKLpc4RvmCjH.mjs +0 -10
- package/node/esm/lUsLEOryW9viP9g7.mjs +0 -1072
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ITransaction } from '../transaction';
|
|
2
|
+
import { IListener } from './IListener';
|
|
3
|
+
export interface NotifyOptions<T = any> {
|
|
4
|
+
params?: T | null;
|
|
5
|
+
source?: any;
|
|
6
|
+
async?: boolean;
|
|
7
|
+
transactional?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Manages Listeners
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* A few rules to know:
|
|
14
|
+
*
|
|
15
|
+
* * non-transactional listeners are fired after the commit end and are conflated.
|
|
16
|
+
*/
|
|
17
|
+
export declare class ListenerEmitter<SOURCE, EVENTS> {
|
|
18
|
+
protected _transactions: ITransaction.IStore;
|
|
19
|
+
protected _transactionsRemoveListener: IListener.Remove;
|
|
20
|
+
/** The store-issued id for this emitter's (transactional listeners) record. */
|
|
21
|
+
protected _stateId: string;
|
|
22
|
+
protected _src: SOURCE;
|
|
23
|
+
protected _listeners: EntrySet<SOURCE, EVENTS>;
|
|
24
|
+
protected _pending: Pending<any, SOURCE>[] | null;
|
|
25
|
+
constructor(src: SOURCE, transactions?: ITransaction.IStore);
|
|
26
|
+
/** {@inheritDoc IListener.ISource.addListeners} */
|
|
27
|
+
addListeners(listeners: IListener.Callbacks<SOURCE, EVENTS>, options?: IListener.Options): IListener.Remove;
|
|
28
|
+
protected _doNotify<T = unknown>(listeners: IListener.Callback<SOURCE>[], removes?: IListener.Remove[] | null, options?: NotifyOptions<T>, fired?: Set<IListener.Callback<SOURCE>>): Promise<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Notify listeners.
|
|
31
|
+
*/
|
|
32
|
+
notify<T = unknown>(key: keyof EVENTS, options?: NotifyOptions<T>): void | Promise<any>;
|
|
33
|
+
close(): void;
|
|
34
|
+
}
|
|
35
|
+
interface Entry<SOURCE, EVENTS> {
|
|
36
|
+
remove?: IListener.Remove | null;
|
|
37
|
+
listeners: IListener.Callbacks<SOURCE, EVENTS>;
|
|
38
|
+
}
|
|
39
|
+
type EntrySet<SOURCE = any, EVENTS = any> = Set<Entry<SOURCE, EVENTS>>;
|
|
40
|
+
interface Pending<T, SOURCE> {
|
|
41
|
+
commitId: string;
|
|
42
|
+
listeners: IListener.Callback<SOURCE>[];
|
|
43
|
+
removes: IListener.Remove[] | null;
|
|
44
|
+
options?: NotifyOptions<T>;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=ListenerEmitter.d.ts.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ITransaction } from '../transaction';
|
|
2
|
+
import { IListener } from '../listener';
|
|
3
|
+
import { IModel } from './IModel';
|
|
4
|
+
import { ListenerEmitter } from '../listener/ListenerEmitter';
|
|
5
|
+
/**
|
|
6
|
+
* Abstract implement of `IModel`.
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class AbstractModel<STATE extends AbstractModel.State = AbstractModel.State, JSON extends any = any, VIEW extends AbstractModel.CommitView = AbstractModel.CommitView, EVENTS extends IModel.Events = IModel.Events> implements IModel {
|
|
9
|
+
protected _emitter: ListenerEmitter<AbstractModel, EVENTS>;
|
|
10
|
+
protected _options: IModel.ConstructorOptions<JSON>;
|
|
11
|
+
protected _transactions: ITransaction.IStore;
|
|
12
|
+
protected _id: string;
|
|
13
|
+
protected _transactionsRemoveListener: IListener.Remove;
|
|
14
|
+
protected _closed: boolean;
|
|
15
|
+
constructor(options: IModel.ConstructorOptions<JSON>);
|
|
16
|
+
/** @internal */
|
|
17
|
+
protected _fromJSON(_json: JSON): void;
|
|
18
|
+
isReadOnly(): boolean;
|
|
19
|
+
isDeleted(): boolean;
|
|
20
|
+
getType(): string;
|
|
21
|
+
get isIModel(): true;
|
|
22
|
+
/** @internal */
|
|
23
|
+
protected _processTransactionDone(_transaction: ITransaction): void;
|
|
24
|
+
/** @internal */
|
|
25
|
+
/**
|
|
26
|
+
* A COMPLETE undo description for `action`, or null for the generic one.
|
|
27
|
+
*
|
|
28
|
+
* Whole sentences, not a noun: the old hook returned `Data Validation` and the caller wrote
|
|
29
|
+
* `Delete ${noun}`, which cannot be translated — verb/noun order and the noun's case move with
|
|
30
|
+
* the language. Return a `messageKey` (static, follows a language switch) or, only when the text
|
|
31
|
+
* carries per-instance data, a `t()`-formatted string.
|
|
32
|
+
*/
|
|
33
|
+
protected _getActionDescription(_action: 'delete'): string | null;
|
|
34
|
+
/** @internal */
|
|
35
|
+
protected _getState(): Readonly<STATE>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
protected _beginCommit(options?: string | ITransaction.OperationOptions): ITransaction;
|
|
38
|
+
/** @internal */
|
|
39
|
+
protected _getTransactions(): ITransaction.IStore;
|
|
40
|
+
/** @internal */
|
|
41
|
+
protected _updateState(updateState?: Partial<STATE>, //(prevState: STATE) => STATE,
|
|
42
|
+
options?: ITransaction.StoreOperationOptions, events?: (keyof EVENTS)[]): this;
|
|
43
|
+
/** @internal */
|
|
44
|
+
protected _getEmitter<SOURCE, E extends EVENTS>(): ListenerEmitter<SOURCE, E>;
|
|
45
|
+
/** @internal */
|
|
46
|
+
protected _processInit(): void;
|
|
47
|
+
/** @internal */
|
|
48
|
+
protected _processAfterStateChange(_state: STATE, _view: VIEW, _commit: ITransaction.ICommit): void;
|
|
49
|
+
/** @internal */
|
|
50
|
+
protected _processRestoreOrRevert(_state: STATE, _view: VIEW, _commit: ITransaction.ICommit): void;
|
|
51
|
+
delete(options?: ITransaction.OperationOptions): void;
|
|
52
|
+
/** @internal */
|
|
53
|
+
protected _delete(options?: ITransaction.OperationOptions): void;
|
|
54
|
+
/** @internal */
|
|
55
|
+
protected _processOnContainerDeleted(): void;
|
|
56
|
+
/** @internal */
|
|
57
|
+
protected _processDelete(): void;
|
|
58
|
+
/** @internal */
|
|
59
|
+
protected _processOnContainerReadOnly(): void;
|
|
60
|
+
/** {@inheritDoc IListener.ISource.addListeners} */
|
|
61
|
+
addListeners(listeners: IListener.Callbacks<IModel, EVENTS>, options?: IListener.Options): IListener.Remove;
|
|
62
|
+
/** {@inheritDoc ITransaction.ITransactional.getId} */
|
|
63
|
+
getId(): string;
|
|
64
|
+
/** {@inheritDoc ITransaction.ITransactional.getVersionId} */
|
|
65
|
+
getVersionId(): number;
|
|
66
|
+
/** {@inheritDoc ITransaction.ITransactional.beginCommit} */
|
|
67
|
+
beginCommit(options?: string | ITransaction.OperationOptions): ITransaction;
|
|
68
|
+
/** {@inheritDoc ITransaction.ITransactional.doBatch} */
|
|
69
|
+
doBatch<R>(callback: (commit: ITransaction.ICommit) => Promise<R> | R, options?: string | ITransaction.OperationOptions): Promise<R> | R;
|
|
70
|
+
/** {@inheritDoc ITransaction.ITransactional.isClosed} */
|
|
71
|
+
isClosed(): boolean;
|
|
72
|
+
/** {@inheritDoc ITransaction.ITransactional.close} */
|
|
73
|
+
close(): void;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Interfaces for creating `IAnchored`.
|
|
77
|
+
*
|
|
78
|
+
* @see
|
|
79
|
+
* ### **Interface**
|
|
80
|
+
*
|
|
81
|
+
* {@link AbstractModel}
|
|
82
|
+
*/
|
|
83
|
+
export declare namespace AbstractModel {
|
|
84
|
+
interface State extends ITransaction.StateRecord {
|
|
85
|
+
isDeleted: boolean;
|
|
86
|
+
}
|
|
87
|
+
interface CommitView {
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=AbstractModel.d.ts.map
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ITransaction } from '../transaction';
|
|
2
|
+
import { IListener } from '../listener';
|
|
3
|
+
/**
|
|
4
|
+
* A model interface is a interface that has:
|
|
5
|
+
*
|
|
6
|
+
* 1. Eventing
|
|
7
|
+
* 2. Transactional
|
|
8
|
+
* 3. Potentially delete
|
|
9
|
+
* 4. Potentially readonly
|
|
10
|
+
*/
|
|
11
|
+
export interface IModel<L extends IModel.IListeners = IModel.IListeners> extends ITransaction.ITransactional {
|
|
12
|
+
/**
|
|
13
|
+
* Add Listeners.
|
|
14
|
+
*
|
|
15
|
+
* @see
|
|
16
|
+
* {@link IListener.ISource.addListeners}
|
|
17
|
+
*/
|
|
18
|
+
addListeners(listeners: L, options?: IListener.Options): IListener.Remove;
|
|
19
|
+
/**
|
|
20
|
+
* Delete the item.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Not all objects can be deleted.
|
|
24
|
+
*/
|
|
25
|
+
delete?(options?: ITransaction.OperationOptions): void;
|
|
26
|
+
/**
|
|
27
|
+
* If the model unable to be modified.
|
|
28
|
+
*/
|
|
29
|
+
isReadOnly(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If the model unable to be modified.
|
|
32
|
+
*/
|
|
33
|
+
isDeleted(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Returns an immutable type string.
|
|
36
|
+
*/
|
|
37
|
+
getType(): string;
|
|
38
|
+
/**
|
|
39
|
+
* For runtime type checking.
|
|
40
|
+
*/
|
|
41
|
+
readonly isIModel: true;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* {@inheritDoc IModel}
|
|
45
|
+
* @see
|
|
46
|
+
* ### **Interface**
|
|
47
|
+
*
|
|
48
|
+
* {@link IModel}
|
|
49
|
+
*/
|
|
50
|
+
export declare namespace IModel {
|
|
51
|
+
/**
|
|
52
|
+
* IListener for {@link IModel} events.
|
|
53
|
+
*/
|
|
54
|
+
interface Events {
|
|
55
|
+
/**
|
|
56
|
+
* Called when any state has been modified.
|
|
57
|
+
*/
|
|
58
|
+
onAnyChange?(source: IModel): void;
|
|
59
|
+
/**
|
|
60
|
+
* Called when the readOnly status is updated.
|
|
61
|
+
*/
|
|
62
|
+
onReadOnlyChange?(source: IModel): void;
|
|
63
|
+
/**
|
|
64
|
+
* Called when the model has been deleted.
|
|
65
|
+
*/
|
|
66
|
+
onDelete?(source: IModel): void;
|
|
67
|
+
/**
|
|
68
|
+
* Called when the transaction is closed.
|
|
69
|
+
*/
|
|
70
|
+
onClose?(source: IModel): void;
|
|
71
|
+
/**
|
|
72
|
+
* Called when the state has been updated due to a undo/redo and a rerender is required.
|
|
73
|
+
*/
|
|
74
|
+
onInvalidated?(source: IModel): void;
|
|
75
|
+
}
|
|
76
|
+
interface IListeners extends IListener.Callbacks<IModel, IModel.Events> {
|
|
77
|
+
}
|
|
78
|
+
type DeletedCallback = () => void;
|
|
79
|
+
type ReadOnlyCallback = () => void;
|
|
80
|
+
interface ConstructorOptions<J> {
|
|
81
|
+
/**
|
|
82
|
+
* The type of the model.
|
|
83
|
+
*/
|
|
84
|
+
type?: string;
|
|
85
|
+
/**
|
|
86
|
+
* If the item is readonly.
|
|
87
|
+
*/
|
|
88
|
+
isReadOnly?(): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Notify if the readonly has been updated from the container.
|
|
91
|
+
* @param callback
|
|
92
|
+
*/
|
|
93
|
+
setContainerReadOnlyCallback?(callback: IModel.ReadOnlyCallback): void;
|
|
94
|
+
/**
|
|
95
|
+
* Delete from the container.
|
|
96
|
+
*/
|
|
97
|
+
deleteFromContainer?(options?: ITransaction.OperationOptions): void;
|
|
98
|
+
/**
|
|
99
|
+
* A transaction store that can be used to undo/redo changes to the model.
|
|
100
|
+
*/
|
|
101
|
+
transactions?: ITransaction.IStore;
|
|
102
|
+
/**
|
|
103
|
+
* JSON state to load.
|
|
104
|
+
*/
|
|
105
|
+
json?: J;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=IModel.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IResource, IResourceCollection } from '../resource';
|
|
2
|
+
import { IModel, AbstractModel } from '../model';
|
|
3
|
+
import { ICustomElement } from './ICustomElement';
|
|
4
|
+
interface State extends AbstractModel.State {
|
|
5
|
+
data?: any;
|
|
6
|
+
type: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Implementation for {@link ICustomElement}.
|
|
10
|
+
*/
|
|
11
|
+
export declare class CustomElement extends AbstractModel<State, ICustomElement.JSON> implements ICustomElement {
|
|
12
|
+
constructor(options: CustomElement.ConstructorOptions);
|
|
13
|
+
getType(): string;
|
|
14
|
+
getDescription(): string;
|
|
15
|
+
toJSON(_toResourceId?: (resource: IResource) => number | null): ICustomElement.JSON | null;
|
|
16
|
+
getTypeDescription(): string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Interfaces for creating `CustomElement` items.
|
|
20
|
+
*
|
|
21
|
+
* @see
|
|
22
|
+
* ### **Interface**
|
|
23
|
+
*
|
|
24
|
+
* {@link CustomElement}
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace CustomElement {
|
|
27
|
+
/**
|
|
28
|
+
* Options for creating a Custom Element.
|
|
29
|
+
*/
|
|
30
|
+
interface ConstructorOptions extends IModel.ConstructorOptions<ICustomElement.JSON> {
|
|
31
|
+
/**
|
|
32
|
+
* Returns an IResource from the resourceId or null if not found.
|
|
33
|
+
*/
|
|
34
|
+
fromResourceId?: (resourceId: number) => IResource;
|
|
35
|
+
/**
|
|
36
|
+
* Useful for load/save/copying.
|
|
37
|
+
*/
|
|
38
|
+
beginPersistResource: () => IResourceCollection.IPersistScope<IResource.JSON>;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=CustomElement.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IListener } from '../listener';
|
|
2
|
+
import { IResource } from '../resource';
|
|
3
|
+
import { IModel } from '../model';
|
|
4
|
+
/**
|
|
5
|
+
* Interface for working with CustomMovables.
|
|
6
|
+
|
|
7
|
+
* **PLACEHOLDER**
|
|
8
|
+
*/
|
|
9
|
+
export interface ICustomElement extends IModel {
|
|
10
|
+
toJSON(toResourceId?: (resource: IResource) => number | null): ICustomElement.JSON | null;
|
|
11
|
+
getDescription(): string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* {@inheritDoc ICustomElement}
|
|
15
|
+
* @see
|
|
16
|
+
* ### **Interface**
|
|
17
|
+
*
|
|
18
|
+
* {@link ICustomElement}
|
|
19
|
+
*/
|
|
20
|
+
export declare namespace ICustomElement {
|
|
21
|
+
interface JSON {
|
|
22
|
+
type?: string;
|
|
23
|
+
}
|
|
24
|
+
interface Events extends IModel.Events {
|
|
25
|
+
}
|
|
26
|
+
interface IListeners extends IListener.Callbacks<ICustomElement, ICustomElement.Events> {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ICustomElement.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IListener } from '../listener';
|
|
2
|
+
import { IResource } from '../resource';
|
|
3
|
+
import { IModel } from '../model';
|
|
4
|
+
/**
|
|
5
|
+
* Interface for working with Groups.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* **PLACEHOLDER**
|
|
9
|
+
*/
|
|
10
|
+
export interface IGroup extends IModel {
|
|
11
|
+
toJSON(toResourceId?: (resource: IResource) => number): IGroup.JSON;
|
|
12
|
+
getDescription(): string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* {@inheritDoc IGroup}
|
|
16
|
+
* @see
|
|
17
|
+
* ### **Interface**
|
|
18
|
+
*
|
|
19
|
+
* {@link IGroup}
|
|
20
|
+
*/
|
|
21
|
+
export declare namespace IGroup {
|
|
22
|
+
interface JSON {
|
|
23
|
+
grpSp?: any;
|
|
24
|
+
}
|
|
25
|
+
interface Events extends IModel.Events {
|
|
26
|
+
}
|
|
27
|
+
interface IListeners extends IListener.Callbacks<IGroup, IGroup.Events> {
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=IGroup.d.ts.map
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { Bounds, Point, ReferenceableClipboard } from '@sheetxl/utils';
|
|
2
|
+
import { ITypes } from '../type';
|
|
3
|
+
import { ITransaction } from '../transaction';
|
|
4
|
+
import { IResource } from '../resource';
|
|
5
|
+
import { IListener } from '../listener';
|
|
6
|
+
import { IModel } from '../model';
|
|
7
|
+
import { ICellRange } from '../cellRange';
|
|
8
|
+
import { IHistory } from '../history';
|
|
9
|
+
import { IAnchored } from '../anchored';
|
|
10
|
+
import { IMovableCollection } from './IMovableCollection';
|
|
11
|
+
/**
|
|
12
|
+
* Capabilities for working with graphical elements that can be
|
|
13
|
+
* arbitrarily placed (floated) within a virtual 'canvas'.
|
|
14
|
+
*
|
|
15
|
+
* Encompasses objects like images, charts, shapes, and custom widgets.
|
|
16
|
+
*
|
|
17
|
+
* Key features include:
|
|
18
|
+
* - Inserting, positioning, resizing, and scaling movables.
|
|
19
|
+
* - Grouping and layering multiple movables.
|
|
20
|
+
* - Loading, saving, and copy/pasting movables.
|
|
21
|
+
*/
|
|
22
|
+
export interface IMovable extends IAnchored, ITransaction.ITransactional, IHistory.ISnapshotSource<IMovable.SnapshotDestination, IMovable, Bounds> {
|
|
23
|
+
/**
|
|
24
|
+
* Returns the range this movable is anchored to.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* A movable occupies exactly one rectangle, which is why the singular lives here rather than on
|
|
28
|
+
* {@link IAnchored}. Invalid, never `null`, once the movable is no longer anchored.
|
|
29
|
+
*/
|
|
30
|
+
getRange(options?: ICellRange.GetRangeOptions): ICellRange;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the content of the movable.
|
|
33
|
+
*/
|
|
34
|
+
getContent<T extends IModel>(): T;
|
|
35
|
+
/**
|
|
36
|
+
* Selects the current movable.
|
|
37
|
+
*
|
|
38
|
+
* @returns An async boolean indicating the movable was selected.
|
|
39
|
+
*/
|
|
40
|
+
select(options?: IMovable.SelectOptions): Promise<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* Remove the movable the current selection.
|
|
43
|
+
* @returns A flag indicating if it was previously in the selection.
|
|
44
|
+
*/
|
|
45
|
+
unselect: () => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Returns a flag indicating if the movable is selected.
|
|
48
|
+
*/
|
|
49
|
+
isSelected: () => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Set the absolution position of a movable in pixels.
|
|
52
|
+
* @param bounds The new bounds.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* If only some of the points are provided then only those will be moved.
|
|
56
|
+
*/
|
|
57
|
+
setBounds(bounds: Partial<Bounds>, options?: ITransaction.OperationOptions): IMovable;
|
|
58
|
+
/**
|
|
59
|
+
* Scroll the movable into the viewport.
|
|
60
|
+
*
|
|
61
|
+
* @returns A promise that resolve to a `boolean` when the scroll is complete.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* This will return when the scroll view is loaded but before any scroll animations have started or finished.
|
|
65
|
+
*/
|
|
66
|
+
scrollIntoView: (options?: globalThis.ScrollIntoViewOptions | boolean) => Promise<boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the absolute bounds of the movable object in pixels or `null` if not yet laid out.
|
|
69
|
+
*/
|
|
70
|
+
getBounds(): Bounds | null;
|
|
71
|
+
/**
|
|
72
|
+
* Set the name for a movable object.
|
|
73
|
+
*
|
|
74
|
+
* @param name The name of the IMovable.
|
|
75
|
+
*/
|
|
76
|
+
setName(name: string): IMovable;
|
|
77
|
+
/**
|
|
78
|
+
* @see
|
|
79
|
+
* {@link setName}
|
|
80
|
+
*
|
|
81
|
+
* @returns The name or `null` if the movable has been deleted.
|
|
82
|
+
*/
|
|
83
|
+
getName(): string | null;
|
|
84
|
+
/**
|
|
85
|
+
* This is the alternative text use for assistive technologies.
|
|
86
|
+
*/
|
|
87
|
+
setDescription(description: string | null): IMovable;
|
|
88
|
+
/**
|
|
89
|
+
* @see
|
|
90
|
+
* {@link setDescription}
|
|
91
|
+
*
|
|
92
|
+
* @returns The description or `null` if none has been set (or the movable has been deleted).
|
|
93
|
+
*/
|
|
94
|
+
getDescription(): string | null;
|
|
95
|
+
/**
|
|
96
|
+
* If true then the movable object is hidden.
|
|
97
|
+
*/
|
|
98
|
+
setHidden(hidden: boolean): IMovable;
|
|
99
|
+
/**
|
|
100
|
+
* @see
|
|
101
|
+
* {@link setHidden}
|
|
102
|
+
*/
|
|
103
|
+
isHidden(): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Set the rotation in degrees.
|
|
106
|
+
*/
|
|
107
|
+
setRotation(rotation: number): IMovable;
|
|
108
|
+
/**
|
|
109
|
+
* @see
|
|
110
|
+
* {@link setHidden}
|
|
111
|
+
*/
|
|
112
|
+
getRotation(): number;
|
|
113
|
+
/**
|
|
114
|
+
* If true then the aspect should be maintained during resize if using the corners or if
|
|
115
|
+
* the api only specifies one dimension.
|
|
116
|
+
*
|
|
117
|
+
* @remarks
|
|
118
|
+
* Lock aspect ratio will have different default values depending on the movable type.
|
|
119
|
+
*/
|
|
120
|
+
setLockAspectRatio(locked: boolean): IMovable;
|
|
121
|
+
/**
|
|
122
|
+
* @see
|
|
123
|
+
* {@link setLockAspectRatio}
|
|
124
|
+
*/
|
|
125
|
+
isLockAspectRatio(): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Ses the anchor type.
|
|
128
|
+
*/
|
|
129
|
+
setAnchorType(anchorType: IAnchored.Type): IMovable;
|
|
130
|
+
/**
|
|
131
|
+
* The order in the z plane. To adjust this use the move methods.
|
|
132
|
+
*/
|
|
133
|
+
getZIndex(): number;
|
|
134
|
+
/**
|
|
135
|
+
* Move movable to the back in the zIndex.
|
|
136
|
+
*/
|
|
137
|
+
moveToBack(): this;
|
|
138
|
+
/**
|
|
139
|
+
* Move movable backward one layer in the zIndex.
|
|
140
|
+
*/
|
|
141
|
+
moveBackward(): this;
|
|
142
|
+
/**
|
|
143
|
+
* Move movable to the font in the zIndex.
|
|
144
|
+
*/
|
|
145
|
+
moveToFront(): this;
|
|
146
|
+
/**
|
|
147
|
+
* Move movable forward one layer in the zIndex.
|
|
148
|
+
*/
|
|
149
|
+
moveForward(): this;
|
|
150
|
+
/**
|
|
151
|
+
* Add Listeners.
|
|
152
|
+
*
|
|
153
|
+
* @see
|
|
154
|
+
* {@link IListener.ISource.addListeners}
|
|
155
|
+
*/
|
|
156
|
+
addListeners(listeners: IMovable.IListeners, options?: IListener.Options): IListener.Remove;
|
|
157
|
+
/**
|
|
158
|
+
* If defined this will be called when the containing sheet is being
|
|
159
|
+
* serialized.
|
|
160
|
+
*/
|
|
161
|
+
toJSON?(toResourceId?: (resource: IResource) => number | null): IMovable.JSON;
|
|
162
|
+
/**
|
|
163
|
+
* For runtime type checking.
|
|
164
|
+
*/
|
|
165
|
+
readonly isIMovable: true;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* {@inheritDoc IMovable}
|
|
169
|
+
* @see
|
|
170
|
+
* ### **Interface**
|
|
171
|
+
*
|
|
172
|
+
* {@link IMovable}
|
|
173
|
+
*/
|
|
174
|
+
export declare namespace IMovable {
|
|
175
|
+
/**
|
|
176
|
+
* Extends {@link ITypes.SelectOptions} to include options for `IMovable`.
|
|
177
|
+
*/
|
|
178
|
+
interface SelectOptions extends ITypes.SelectOptions {
|
|
179
|
+
/**
|
|
180
|
+
* Flag to indicate the the movable should be added to the selection
|
|
181
|
+
* or should replace the existing selection.
|
|
182
|
+
*
|
|
183
|
+
* @remarks
|
|
184
|
+
* Setting this to true is the equivalent of press the Ctrl in the UI.
|
|
185
|
+
*/
|
|
186
|
+
addToSelection?: boolean;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* `Events` for {@link IMovable} events.
|
|
190
|
+
*/
|
|
191
|
+
interface Events extends IAnchored.Events {
|
|
192
|
+
/**
|
|
193
|
+
* Called when the isSelect status has changed.
|
|
194
|
+
*/
|
|
195
|
+
onSelectionChange?(source: IMovable): void;
|
|
196
|
+
/**
|
|
197
|
+
* Called when the name has changed.
|
|
198
|
+
*/
|
|
199
|
+
onNameChange?(source: IMovable): void;
|
|
200
|
+
/**
|
|
201
|
+
* Called when selection changes.
|
|
202
|
+
*/
|
|
203
|
+
onBoundsChange?(source: IMovable): void;
|
|
204
|
+
/**
|
|
205
|
+
* Called when the anchor type is updated.
|
|
206
|
+
*/
|
|
207
|
+
onAnchorTypeChange?(source: IMovable): void;
|
|
208
|
+
/**
|
|
209
|
+
* Called when any property has changed.
|
|
210
|
+
*/
|
|
211
|
+
onAnyChange?(source: IMovable): void;
|
|
212
|
+
/**
|
|
213
|
+
* Request that the movable become focused.
|
|
214
|
+
*
|
|
215
|
+
* @returns A promise indicating if the focus was honored.
|
|
216
|
+
*
|
|
217
|
+
* @remarks
|
|
218
|
+
* This should only be handled by one consumer.
|
|
219
|
+
*/
|
|
220
|
+
onRequestFocus?(source: IMovable): Promise<boolean>;
|
|
221
|
+
}
|
|
222
|
+
interface IListeners extends IListener.Callbacks<IMovable, IMovable.Events> {
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Provides destination details for the Snapshot when using {@link IHistory.ISnapshot.copyTo}.
|
|
226
|
+
*/
|
|
227
|
+
interface SnapshotDestination {
|
|
228
|
+
/**
|
|
229
|
+
* The movable collection to copy to.
|
|
230
|
+
*/
|
|
231
|
+
movables: IMovableCollection;
|
|
232
|
+
/**
|
|
233
|
+
* The bounds to copy to.
|
|
234
|
+
*/
|
|
235
|
+
bounds: Bounds;
|
|
236
|
+
}
|
|
237
|
+
interface ISnapshot extends IHistory.ISnapshot<IMovable.SnapshotDestination, IMovable, Bounds> {
|
|
238
|
+
/**
|
|
239
|
+
* Called when the movable is copied to a new container.
|
|
240
|
+
*/
|
|
241
|
+
copyTo(destination: IMovable.SnapshotDestination, options?: IMovable.CopyOptions): Promise<Bounds> | Bounds;
|
|
242
|
+
}
|
|
243
|
+
interface CopyOptions extends ReferenceableClipboard.CopyOptions {
|
|
244
|
+
/** {@inheritDoc IMovable.SelectOptions} */
|
|
245
|
+
autoSelect?: boolean | IMovable.SelectOptions;
|
|
246
|
+
}
|
|
247
|
+
interface OffsetCoords extends Partial<Point> {
|
|
248
|
+
/** The row index */
|
|
249
|
+
r?: number;
|
|
250
|
+
/** The column index */
|
|
251
|
+
c?: number;
|
|
252
|
+
}
|
|
253
|
+
interface AnchorOffset {
|
|
254
|
+
tl: OffsetCoords;
|
|
255
|
+
br: OffsetCoords;
|
|
256
|
+
}
|
|
257
|
+
interface ClientData {
|
|
258
|
+
/**
|
|
259
|
+
* disable selection on movable elements when the sheet is protected
|
|
260
|
+
* @defaultValue false
|
|
261
|
+
*/
|
|
262
|
+
fLocksWithSheet?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* print movable elements when printing the sheet
|
|
265
|
+
* @defaultValue true
|
|
266
|
+
*/
|
|
267
|
+
fPrintsWithSheet?: boolean;
|
|
268
|
+
}
|
|
269
|
+
interface ContentJSON<J> {
|
|
270
|
+
/**
|
|
271
|
+
* Identifies the type of movable object.
|
|
272
|
+
*
|
|
273
|
+
* @remarks
|
|
274
|
+
* This must align to a known movable object type. Defined in the IEmbeddedDrawing interface.
|
|
275
|
+
*/
|
|
276
|
+
type: string;
|
|
277
|
+
/**
|
|
278
|
+
* Underlying json.
|
|
279
|
+
*/
|
|
280
|
+
json: J;
|
|
281
|
+
}
|
|
282
|
+
interface JSON<J = any> {
|
|
283
|
+
/**
|
|
284
|
+
* The anchor for the movable object.
|
|
285
|
+
*/
|
|
286
|
+
anchor: IMovable.AnchorOffset;
|
|
287
|
+
/**
|
|
288
|
+
* The content of the movable object.
|
|
289
|
+
*/
|
|
290
|
+
content: ContentJSON<J>;
|
|
291
|
+
/**
|
|
292
|
+
* The behavior of how the movable resizes as the anchor/cells change.
|
|
293
|
+
*/
|
|
294
|
+
anchorType?: IAnchored.Type;
|
|
295
|
+
/**
|
|
296
|
+
* The name of the movable object.
|
|
297
|
+
*/
|
|
298
|
+
name?: string;
|
|
299
|
+
/**
|
|
300
|
+
* This is the alternative text use for assistive technologies.
|
|
301
|
+
*
|
|
302
|
+
* @defaultValue null
|
|
303
|
+
*/
|
|
304
|
+
description?: string;
|
|
305
|
+
/**
|
|
306
|
+
* If true then the movable object is hidden.
|
|
307
|
+
*
|
|
308
|
+
* @defaultValue false
|
|
309
|
+
*/
|
|
310
|
+
hidden?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* The rotation in degrees.
|
|
313
|
+
*
|
|
314
|
+
* @defaultValue 0
|
|
315
|
+
*/
|
|
316
|
+
rotation?: number;
|
|
317
|
+
/**
|
|
318
|
+
* Whether resizing should keep the aspect ratio.
|
|
319
|
+
*/
|
|
320
|
+
lockAspect?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* lock specific fields*/
|
|
323
|
+
locks?: any;
|
|
324
|
+
clientData?: IMovable.ClientData;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
//# sourceMappingURL=IMovable.d.ts.map
|