office-viewer 0.2.1 → 0.3.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/README.md +13 -3
- package/dist/index.css +500 -0
- package/dist/index.css.map +1 -0
- package/esm/Excel.d.ts +59 -0
- package/esm/Excel.js +200 -0
- package/esm/OfficeViewer.d.ts +10 -0
- package/esm/RenderOptions.d.ts +25 -0
- package/esm/UnSupport.d.ts +13 -0
- package/esm/UnSupport.js +33 -0
- package/esm/Word.d.ts +7 -24
- package/esm/Word.js +24 -21
- package/esm/common/__tests__/autoParse.test.d.ts +1 -0
- package/esm/common/autoParse.d.ts +9 -0
- package/esm/common/autoParse.js +192 -0
- package/esm/common/parseAttributes.d.ts +6 -0
- package/esm/common/parseAttributes.js +27 -0
- package/esm/common/parseChildren.d.ts +8 -0
- package/esm/common/parseContentType.d.ts +7 -0
- package/esm/common/parseContentType.js +50 -0
- package/esm/common/parseRelationship.d.ts +5 -0
- package/esm/common/parseRelationship.js +46 -0
- package/esm/createOfficeViewer.d.ts +16 -0
- package/esm/createOfficeViewer.js +98 -0
- package/esm/excel/StyleSheet.d.ts +8 -0
- package/esm/excel/StyleSheet.js +11 -0
- package/esm/excel/Workbook.d.ts +180 -0
- package/esm/excel/Workbook.js +209 -0
- package/esm/excel/data/LocalDataProvider.d.ts +146 -0
- package/esm/excel/data/LocalDataProvider.js +784 -0
- package/esm/excel/data/applyAutoFilter.d.ts +10 -0
- package/esm/excel/data/applyAutoFilter.js +86 -0
- package/esm/excel/data/autoFilter/CellValueNum.d.ts +5 -0
- package/esm/excel/data/autoFilter/__test__/customFilter.test.d.ts +1 -0
- package/esm/excel/data/autoFilter/__test__/filters.test.d.ts +1 -0
- package/esm/excel/data/autoFilter/__test__/sortByRange.test.d.ts +1 -0
- package/esm/excel/data/autoFilter/applySortState.d.ts +6 -0
- package/esm/excel/data/autoFilter/applySortState.js +36 -0
- package/esm/excel/data/autoFilter/customFilter.d.ts +6 -0
- package/esm/excel/data/autoFilter/customFilter.js +78 -0
- package/esm/excel/data/autoFilter/evalCustomFilter.d.ts +9 -0
- package/esm/excel/data/autoFilter/evalCustomFilter.js +61 -0
- package/esm/excel/data/autoFilter/filters.d.ts +3 -0
- package/esm/excel/data/autoFilter/filters.js +55 -0
- package/esm/excel/data/autoFilter/inDateGroupItems.d.ts +6 -0
- package/esm/excel/data/autoFilter/inDateGroupItems.js +71 -0
- package/esm/excel/data/autoFilter/sortByRange.d.ts +8 -0
- package/esm/excel/data/autoFilter/sortByRange.js +50 -0
- package/esm/excel/data/defaultFont.d.ts +25 -0
- package/esm/excel/data/defaultFont.js +27 -0
- package/esm/excel/data/getThemeColor.d.ts +2 -0
- package/esm/excel/data/getThemeColor.js +71 -0
- package/esm/excel/data/numfmt/amountInWords.d.ts +4 -0
- package/esm/excel/data/numfmt/amountInWords.js +39 -0
- package/esm/excel/data/numfmtExtend.d.ts +10 -0
- package/esm/excel/data/numfmtExtend.js +29 -0
- package/esm/excel/edit/Command.d.ts +19 -0
- package/esm/excel/edit/ui/CellEditor.d.ts +27 -0
- package/esm/excel/edit/ui/CellEditor.js +65 -0
- package/esm/excel/io/csv/emptyXLSX.d.ts +2 -0
- package/esm/excel/io/csv/emptyXLSX.js +6 -0
- package/esm/excel/io/excel/__tests__/parseSharedStrings.test.d.ts +1 -0
- package/esm/excel/io/excel/drawing/getRelationPath.d.ts +2 -0
- package/esm/excel/io/excel/drawing/getRelationPath.js +11 -0
- package/esm/excel/io/excel/drawing/parseAnchorCommon.d.ts +9 -0
- package/esm/excel/io/excel/drawing/parseAnchorCommon.js +78 -0
- package/esm/excel/io/excel/drawing/parseChart.d.ts +3 -0
- package/esm/excel/io/excel/drawing/parseChart.js +11 -0
- package/esm/excel/io/excel/drawing/parseDrawing.d.ts +8 -0
- package/esm/excel/io/excel/drawing/parseDrawing.js +103 -0
- package/esm/excel/io/excel/drawing/parsePic.d.ts +4 -0
- package/esm/excel/io/excel/drawing/parsePic.js +23 -0
- package/esm/excel/io/excel/drawing/parseShape.d.ts +4 -0
- package/esm/excel/io/excel/drawing/parseShape.js +159 -0
- package/esm/excel/io/excel/getRelPath.d.ts +4 -0
- package/esm/excel/io/excel/getRelPath.js +10 -0
- package/esm/excel/io/excel/initValueForContainsBlanks.d.ts +6 -0
- package/esm/excel/io/excel/initValueForContainsBlanks.js +58 -0
- package/esm/excel/io/excel/initValueForTable.d.ts +5 -0
- package/esm/excel/io/excel/initValueForTable.js +31 -0
- package/esm/excel/io/excel/parseDefinedNames.d.ts +5 -0
- package/esm/excel/io/excel/parseDefinedNames.js +11 -0
- package/esm/excel/io/excel/parseSharedStrings.d.ts +9 -0
- package/esm/excel/io/excel/parseSharedStrings.js +173 -0
- package/esm/excel/io/excel/parseSheet.d.ts +9 -0
- package/esm/excel/io/excel/parseSheet.js +84 -0
- package/esm/excel/io/excel/parseTableParts.d.ts +5 -0
- package/esm/excel/io/excel/parseTableParts.js +67 -0
- package/esm/excel/io/excel/parseTableStyleDef.d.ts +3 -0
- package/esm/excel/io/excel/parseTheme.d.ts +6 -0
- package/esm/excel/io/excel/parseTheme.js +42 -0
- package/esm/excel/io/excel/parseWorkbook.d.ts +8 -0
- package/esm/excel/io/excel/parseWorkbook.js +105 -0
- package/esm/excel/io/excel/parseWorkbookPr.d.ts +6 -0
- package/esm/excel/io/excel/parseWorkbookPr.js +13 -0
- package/esm/excel/io/excel/parseWorkbookView.d.ts +6 -0
- package/esm/excel/io/excel/parseWorkbookView.js +13 -0
- package/esm/excel/io/excel/parseWorksheet.d.ts +9 -0
- package/esm/excel/io/excel/parseWorksheet.js +207 -0
- package/esm/excel/io/excel/preset/defaultTheme.d.ts +1 -0
- package/esm/excel/io/excel/preset/defaultTheme.js +3 -0
- package/esm/excel/io/excel/preset/presetCellStyles.d.ts +3 -0
- package/esm/excel/io/excel/preset/presetIconSet.d.ts +6 -0
- package/esm/excel/io/excel/preset/presetIconSet.js +55 -0
- package/esm/excel/io/excel/preset/presetIcons.d.ts +3 -0
- package/esm/excel/io/excel/preset/presetIcons.js +44 -0
- package/esm/excel/io/excel/preset/presetTableStyles.d.ts +3 -0
- package/esm/excel/io/excel/preset/presetTableStyles.js +35117 -0
- package/esm/excel/io/excel/stylesheet/parseColor.d.ts +5 -0
- package/esm/excel/io/excel/stylesheet/parseColor.js +11 -0
- package/esm/excel/io/excel/util/Range.d.ts +66 -0
- package/esm/excel/io/excel/util/Range.js +120 -0
- package/esm/excel/io/excel/util/__tests__/makeBlankValue.test.d.ts +1 -0
- package/esm/excel/io/excel/util/decodeAddress.d.ts +11 -0
- package/esm/excel/io/excel/util/decodeAddress.js +63 -0
- package/esm/excel/io/excel/util/fromExcelDate.d.ts +14 -0
- package/esm/excel/io/excel/util/fromExcelDate.js +26 -0
- package/esm/excel/io/excel/util/lettersToNumber.d.ts +4 -0
- package/esm/excel/io/excel/util/makeBlankValue.d.ts +6 -0
- package/esm/excel/io/excel/util/makeBlankValue.js +21 -0
- package/esm/excel/io/excel/util/numberToLetters.d.ts +4 -0
- package/esm/excel/io/excel/util/numberToLetters.js +13 -0
- package/esm/excel/io/excel/worksheet/parseSheetData.d.ts +11 -0
- package/esm/excel/io/excel/worksheet/parseSheetData.js +154 -0
- package/esm/excel/io/parseExcel.d.ts +10 -0
- package/esm/excel/io/parseExcel.js +39 -0
- package/esm/excel/lang/en_US.d.ts +24 -0
- package/esm/excel/lang/en_US.js +25 -0
- package/esm/excel/lang/lang.d.ts +30 -0
- package/esm/excel/lang/lang.js +19 -0
- package/esm/excel/lang/zh_CN.d.ts +2 -0
- package/esm/excel/lang/zh_CN.js +25 -0
- package/esm/excel/print/printStyle.d.ts +4 -0
- package/esm/excel/print/printStyle.js +8 -0
- package/esm/excel/print/renderInIframe.d.ts +7 -0
- package/esm/excel/print/renderInIframe.js +26 -0
- package/esm/excel/render/Canvas.d.ts +108 -0
- package/esm/excel/render/Canvas.js +332 -0
- package/esm/excel/render/Consts.d.ts +20 -0
- package/esm/excel/render/Consts.js +22 -0
- package/esm/excel/render/ExcelRender.d.ts +120 -0
- package/esm/excel/render/ExcelRender.js +422 -0
- package/esm/excel/render/Icons.d.ts +13 -0
- package/esm/excel/render/Icons.js +15 -0
- package/esm/excel/render/IndexedColors.d.ts +1 -0
- package/esm/excel/render/IndexedColors.js +70 -0
- package/esm/excel/render/Line.d.ts +6 -0
- package/esm/excel/render/Rect.d.ts +17 -0
- package/esm/excel/render/Rect.js +20 -0
- package/esm/excel/render/ScrollBar.d.ts +54 -0
- package/esm/excel/render/ScrollBar.js +137 -0
- package/esm/excel/render/SelectionCanvas.d.ts +33 -0
- package/esm/excel/render/SelectionCanvas.js +92 -0
- package/esm/excel/render/SheetCanvas.d.ts +33 -0
- package/esm/excel/render/SheetCanvas.js +42 -0
- package/esm/excel/render/__test__/autoWrapText.test.d.ts +1 -0
- package/esm/excel/render/__test__/tokenizer.test.d.ts +1 -0
- package/esm/excel/render/autoFilter/AutoFilterIconUI.d.ts +33 -0
- package/esm/excel/render/autoFilter/AutoFilterIconUI.js +85 -0
- package/esm/excel/render/autoFilter/AutoFilterMenuUI.d.ts +13 -0
- package/esm/excel/render/autoFilter/AutoFilterMenuUI.js +34 -0
- package/esm/excel/render/autoFilter/filterColumn/CustomFiltersUI.d.ts +46 -0
- package/esm/excel/render/autoFilter/filterColumn/CustomFiltersUI.js +158 -0
- package/esm/excel/render/autoFilter/filterColumn/FilterColumnUI.d.ts +10 -0
- package/esm/excel/render/autoFilter/filterColumn/FilterColumnUI.js +47 -0
- package/esm/excel/render/autoFilter/filterColumn/FiltersUI.d.ts +10 -0
- package/esm/excel/render/autoFilter/filterColumn/FiltersUI.js +37 -0
- package/esm/excel/render/autoFilter/filterColumn/OperatorTypeUI.d.ts +5 -0
- package/esm/excel/render/autoFilter/filterColumn/buildOperatorOptions.d.ts +2 -0
- package/esm/excel/render/autoFilter/filterColumn/buildOperatorOptions.js +95 -0
- package/esm/excel/render/autoFilter/filterColumn/fromOperatorUI.d.ts +6 -0
- package/esm/excel/render/autoFilter/filterColumn/fromOperatorUI.js +48 -0
- package/esm/excel/render/autoFilter/filterColumn/getCustomFilters.d.ts +2 -0
- package/esm/excel/render/autoFilter/filterColumn/getCustomFilters.js +10 -0
- package/esm/excel/render/autoFilter/filterColumn/getFilterValues.d.ts +5 -0
- package/esm/excel/render/autoFilter/filterColumn/getFilterValues.js +31 -0
- package/esm/excel/render/autoFilter/filterColumn/hasFilterColumn.d.ts +5 -0
- package/esm/excel/render/autoFilter/filterColumn/hasFilterColumn.js +37 -0
- package/esm/excel/render/autoFilter/filterColumn/setCustomFilters.d.ts +5 -0
- package/esm/excel/render/autoFilter/filterColumn/setCustomFilters.js +19 -0
- package/esm/excel/render/autoFilter/filterColumn/setFilterValues.d.ts +6 -0
- package/esm/excel/render/autoFilter/filterColumn/setFilterValues.js +45 -0
- package/esm/excel/render/autoFilter/filterColumn/toOperatorUI.d.ts +6 -0
- package/esm/excel/render/autoFilter/filterColumn/toOperatorUI.js +30 -0
- package/esm/excel/render/autoFilter/renderAutoFilter.d.ts +2 -0
- package/esm/excel/render/autoFilter/renderAutoFilter.js +31 -0
- package/esm/excel/render/autoFilter/renderAutoFilterIcon.d.ts +6 -0
- package/esm/excel/render/autoFilter/renderAutoFilterIcon.js +52 -0
- package/esm/excel/render/autoFilter/sortState/ColumnSortOrder.d.ts +1 -0
- package/esm/excel/render/autoFilter/sortState/SortButtonUI.d.ts +12 -0
- package/esm/excel/render/autoFilter/sortState/SortButtonUI.js +41 -0
- package/esm/excel/render/autoFilter/sortState/SortStateUI.d.ts +22 -0
- package/esm/excel/render/autoFilter/sortState/SortStateUI.js +65 -0
- package/esm/excel/render/autoFilter/sortState/getColumnSortOrder.d.ts +6 -0
- package/esm/excel/render/autoFilter/sortState/getColumnSortOrder.js +36 -0
- package/esm/excel/render/autoFilter/sortState/setColumnSortOrder.d.ts +7 -0
- package/esm/excel/render/autoFilter/sortState/setColumnSortOrder.js +55 -0
- package/esm/excel/render/canvas/draw.d.ts +5 -0
- package/esm/excel/render/canvas/drawOffscreenCanvas.d.ts +6 -0
- package/esm/excel/render/canvas/drawOffscreenCanvas.js +14 -0
- package/esm/excel/render/canvas/setPixelRatio.d.ts +4 -0
- package/esm/excel/render/canvas/setPixelRatio.js +17 -0
- package/esm/excel/render/cell/CellInfoWithSize.d.ts +5 -0
- package/esm/excel/render/cell/LinkPosition.d.ts +14 -0
- package/esm/excel/render/cell/autoClip.d.ts +6 -0
- package/esm/excel/render/cell/autoClip.js +44 -0
- package/esm/excel/render/cell/autoWrapText.d.ts +24 -0
- package/esm/excel/render/cell/autoWrapText.js +157 -0
- package/esm/excel/render/cell/border/drawDoubleBorder.d.ts +2 -0
- package/esm/excel/render/cell/border/drawDoubleBorder.js +75 -0
- package/esm/excel/render/cell/border/setLineStyle.d.ts +5 -0
- package/esm/excel/render/cell/border/setLineStyle.js +43 -0
- package/esm/excel/render/cell/cellToMergeCell.d.ts +8 -0
- package/esm/excel/render/cell/cellToMergeCell.js +35 -0
- package/esm/excel/render/cell/checkFont.d.ts +8 -0
- package/esm/excel/render/cell/checkFont.js +31 -0
- package/esm/excel/render/cell/drawCell.d.ts +19 -0
- package/esm/excel/render/cell/drawCell.js +44 -0
- package/esm/excel/render/cell/drawCellBackground.d.ts +3 -0
- package/esm/excel/render/cell/drawCellBackground.js +11 -0
- package/esm/excel/render/cell/drawCellBorder.d.ts +6 -0
- package/esm/excel/render/cell/drawCellBorder.js +47 -0
- package/esm/excel/render/cell/drawCells.d.ts +9 -0
- package/esm/excel/render/cell/drawCells.js +54 -0
- package/esm/excel/render/cell/drawDataBar.d.ts +3 -0
- package/esm/excel/render/cell/drawDataBar.js +31 -0
- package/esm/excel/render/cell/drawDataBarX14.d.ts +7 -0
- package/esm/excel/render/cell/drawDataBarX14.js +48 -0
- package/esm/excel/render/cell/drawIconSet.d.ts +3 -0
- package/esm/excel/render/cell/drawIconSet.js +13 -0
- package/esm/excel/render/cell/drawMultiLineText.d.ts +8 -0
- package/esm/excel/render/cell/drawMultiLineText.js +107 -0
- package/esm/excel/render/cell/drawSingleLineRichText.d.ts +10 -0
- package/esm/excel/render/cell/drawSingleLineRichText.js +55 -0
- package/esm/excel/render/cell/drawSingleLineText.d.ts +17 -0
- package/esm/excel/render/cell/drawSingleLineText.js +73 -0
- package/esm/excel/render/cell/drawTextInCell.d.ts +15 -0
- package/esm/excel/render/cell/drawTextInCell.js +105 -0
- package/esm/excel/render/cell/frozen/drawFrozen.d.ts +17 -0
- package/esm/excel/render/cell/frozen/drawFrozen.js +45 -0
- package/esm/excel/render/cell/frozen/drawLeftFrozen.d.ts +10 -0
- package/esm/excel/render/cell/frozen/drawLeftFrozen.js +26 -0
- package/esm/excel/render/cell/frozen/drawTopFrozen.d.ts +10 -0
- package/esm/excel/render/cell/frozen/drawTopFrozen.js +26 -0
- package/esm/excel/render/cell/frozen/drawTopLeftFrozen.d.ts +14 -0
- package/esm/excel/render/cell/frozen/drawTopLeftFrozen.js +46 -0
- package/esm/excel/render/cell/frozen/getFrozenLeftViewPointRange.d.ts +14 -0
- package/esm/excel/render/cell/frozen/getFrozenLeftViewPointRange.js +32 -0
- package/esm/excel/render/cell/frozen/getFrozenRange.d.ts +5 -0
- package/esm/excel/render/cell/frozen/getFrozenRange.js +25 -0
- package/esm/excel/render/cell/frozen/getFrozenTopLeftViewPointRange.d.ts +5 -0
- package/esm/excel/render/cell/frozen/getFrozenTopLeftViewPointRange.js +22 -0
- package/esm/excel/render/cell/frozen/getFrozenTopViewPointRange.d.ts +14 -0
- package/esm/excel/render/cell/frozen/getFrozenTopViewPointRange.js +33 -0
- package/esm/excel/render/cell/genFontStr.d.ts +31 -0
- package/esm/excel/render/cell/genFontStr.js +61 -0
- package/esm/excel/render/cell/getBackgroundColor.d.ts +3 -0
- package/esm/excel/render/cell/getBackgroundColor.js +38 -0
- package/esm/excel/render/cell/isPointerOnLink.d.ts +5 -0
- package/esm/excel/render/cell/isPointerOnLink.js +39 -0
- package/esm/excel/render/cell/measureTextWithCache.d.ts +23 -0
- package/esm/excel/render/cell/measureTextWithCache.js +30 -0
- package/esm/excel/render/cell/tokenizer.d.ts +24 -0
- package/esm/excel/render/cell/tokenizer.js +94 -0
- package/esm/excel/render/dnd/DragState.d.ts +22 -0
- package/esm/excel/render/dnd/getMouseRelativePosition.d.ts +7 -0
- package/esm/excel/render/dnd/getMouseRelativePosition.js +11 -0
- package/esm/excel/render/dnd/handleDragCell.d.ts +4 -0
- package/esm/excel/render/dnd/handleDragCell.js +75 -0
- package/esm/excel/render/dnd/handleDragColGrid.d.ts +4 -0
- package/esm/excel/render/dnd/handleDragColGrid.js +23 -0
- package/esm/excel/render/dnd/handleDragColHeader.d.ts +4 -0
- package/esm/excel/render/dnd/handleDragColHeader.js +51 -0
- package/esm/excel/render/dnd/handleDragRowGrid.d.ts +4 -0
- package/esm/excel/render/dnd/handleDragRowGrid.js +23 -0
- package/esm/excel/render/dnd/handleDragRowHeader.d.ts +4 -0
- package/esm/excel/render/dnd/handleDragRowHeader.js +51 -0
- package/esm/excel/render/dnd/handleMousedown.d.ts +12 -0
- package/esm/excel/render/dnd/handleMousedown.js +74 -0
- package/esm/excel/render/dnd/handleMousemove.d.ts +4 -0
- package/esm/excel/render/dnd/handleMousemove.js +38 -0
- package/esm/excel/render/dnd/handleMouseup.d.ts +1 -0
- package/esm/excel/render/dnd/handleMouseup.js +17 -0
- package/esm/excel/render/dnd/mousedownCell.d.ts +10 -0
- package/esm/excel/render/dnd/mousedownCell.js +31 -0
- package/esm/excel/render/dnd/mousedownColHeader.d.ts +22 -0
- package/esm/excel/render/dnd/mousedownColHeader.js +29 -0
- package/esm/excel/render/dnd/mousedownCorner.d.ts +8 -0
- package/esm/excel/render/dnd/mousedownCorner.js +13 -0
- package/esm/excel/render/dnd/mousedownRowHeader.d.ts +22 -0
- package/esm/excel/render/dnd/mousedownRowHeader.js +29 -0
- package/esm/excel/render/dnd/removeEventListener.d.ts +4 -0
- package/esm/excel/render/dnd/removeEventListener.js +14 -0
- package/esm/excel/render/dnd/selectAll.d.ts +5 -0
- package/esm/excel/render/dnd/selectAll.js +26 -0
- package/esm/excel/render/drawing/BaseDrawingRender.d.ts +11 -0
- package/esm/excel/render/drawing/BaseDrawingRender.js +29 -0
- package/esm/excel/render/drawing/EChartsRender.d.ts +7 -0
- package/esm/excel/render/drawing/EChartsRender.js +20 -0
- package/esm/excel/render/drawing/PicRender.d.ts +6 -0
- package/esm/excel/render/drawing/PicRender.js +57 -0
- package/esm/excel/render/drawing/ResizeBox.d.ts +51 -0
- package/esm/excel/render/drawing/ResizeBox.js +83 -0
- package/esm/excel/render/drawing/chart/buildLabel.d.ts +63 -0
- package/esm/excel/render/drawing/chart/buildLabel.js +6 -0
- package/esm/excel/render/drawing/chart/calcPercentStacked.d.ts +5 -0
- package/esm/excel/render/drawing/chart/calcPercentStacked.js +43 -0
- package/esm/excel/render/drawing/chart/convertAxis.d.ts +11 -0
- package/esm/excel/render/drawing/chart/convertAxis.js +55 -0
- package/esm/excel/render/drawing/chart/convertLegend.d.ts +5 -0
- package/esm/excel/render/drawing/chart/convertLegend.js +38 -0
- package/esm/excel/render/drawing/chart/convertTitle.d.ts +8 -0
- package/esm/excel/render/drawing/chart/convertTitle.js +54 -0
- package/esm/excel/render/drawing/chart/fromAreaChart.d.ts +74 -0
- package/esm/excel/render/drawing/chart/fromAreaChart.js +51 -0
- package/esm/excel/render/drawing/chart/fromBarChart.d.ts +11 -0
- package/esm/excel/render/drawing/chart/fromBarChart.js +44 -0
- package/esm/excel/render/drawing/chart/fromDoughnutChart.d.ts +18 -0
- package/esm/excel/render/drawing/chart/fromDoughnutChart.js +48 -0
- package/esm/excel/render/drawing/chart/fromLineChart.d.ts +73 -0
- package/esm/excel/render/drawing/chart/fromLineChart.js +50 -0
- package/esm/excel/render/drawing/chart/fromPieChart.d.ts +10 -0
- package/esm/excel/render/drawing/chart/fromPieChart.js +40 -0
- package/esm/excel/render/drawing/chart/getData.d.ts +6 -0
- package/esm/excel/render/drawing/chart/getData.js +16 -0
- package/esm/excel/render/drawing/chart/getStack.d.ts +5 -0
- package/esm/excel/render/drawing/chart/getStack.js +17 -0
- package/esm/excel/render/drawing/convertToEChartOptions.d.ts +8 -0
- package/esm/excel/render/drawing/convertToEChartOptions.js +66 -0
- package/esm/excel/render/drawing/drawChart.d.ts +4 -0
- package/esm/excel/render/drawing/drawChart.js +49 -0
- package/esm/excel/render/drawing/drawDrawing.d.ts +8 -0
- package/esm/excel/render/drawing/drawDrawing.js +105 -0
- package/esm/excel/render/drawing/drawPic.d.ts +5 -0
- package/esm/excel/render/drawing/drawPic.js +68 -0
- package/esm/excel/render/drawing/drawShape.d.ts +9 -0
- package/esm/excel/render/drawing/drawShape.js +134 -0
- package/esm/excel/render/drawing/findPositionInViewRange.d.ts +7 -0
- package/esm/excel/render/drawing/findPositionInViewRange.js +28 -0
- package/esm/excel/render/drawing/getAbsoluteAnchorPosition.d.ts +11 -0
- package/esm/excel/render/drawing/getAbsoluteAnchorPosition.js +33 -0
- package/esm/excel/render/drawing/getOneCellAnchorPosition.d.ts +8 -0
- package/esm/excel/render/drawing/getOneCellAnchorPosition.js +31 -0
- package/esm/excel/render/drawing/getPositionByMaker.d.ts +11 -0
- package/esm/excel/render/drawing/getRectFromAnchorPoint.d.ts +18 -0
- package/esm/excel/render/drawing/getRectFromAnchorPoint.js +43 -0
- package/esm/excel/render/drawing/getTwoCellAnchorPosition.d.ts +8 -0
- package/esm/excel/render/drawing/getTwoCellAnchorPosition.js +37 -0
- package/esm/excel/render/formulaBar/FormulaBar.d.ts +29 -0
- package/esm/excel/render/formulaBar/FormulaBar.js +86 -0
- package/esm/excel/render/grid/drawGridLines.d.ts +12 -0
- package/esm/excel/render/grid/drawGridLines.js +40 -0
- package/esm/excel/render/header/drawRowColHeaders.d.ts +10 -0
- package/esm/excel/render/header/drawRowColHeaders.js +144 -0
- package/esm/excel/render/keyboard/handleCopy.d.ts +5 -0
- package/esm/excel/render/keyboard/handleCopy.js +19 -0
- package/esm/excel/render/keyboard/handleKeydown.d.ts +5 -0
- package/esm/excel/render/keyboard/handleKeydown.js +14 -0
- package/esm/excel/render/keyboard/handlePaste.d.ts +5 -0
- package/esm/excel/render/keyboard/handlePaste.js +16 -0
- package/esm/excel/render/keyboard/handleSelectAll.d.ts +5 -0
- package/esm/excel/render/keyboard/handleSelectAll.js +17 -0
- package/esm/excel/render/keyboard/handleSheetArrowKey.d.ts +5 -0
- package/esm/excel/render/keyboard/handleSheetArrowKey.js +41 -0
- package/esm/excel/render/scroll/Scroll.d.ts +7 -0
- package/esm/excel/render/selection/Position.d.ts +9 -0
- package/esm/excel/render/selection/SheetSelection.d.ts +29 -0
- package/esm/excel/render/selection/binarySearchSize.d.ts +8 -0
- package/esm/excel/render/selection/binarySearchSize.js +27 -0
- package/esm/excel/render/selection/buildHTML/buildBorder.d.ts +6 -0
- package/esm/excel/render/selection/buildHTML/buildBorder.js +36 -0
- package/esm/excel/render/selection/buildHTML/cellInfoToStyle.d.ts +6 -0
- package/esm/excel/render/selection/buildHTML/cellInfoToStyle.js +66 -0
- package/esm/excel/render/selection/buildHTML/rangeToHTML.d.ts +11 -0
- package/esm/excel/render/selection/buildHTML/rangeToHTML.js +64 -0
- package/esm/excel/render/selection/copySelection.d.ts +7 -0
- package/esm/excel/render/selection/copySelection.js +28 -0
- package/esm/excel/render/selection/drawAllSelection.d.ts +7 -0
- package/esm/excel/render/selection/drawAllSelection.js +17 -0
- package/esm/excel/render/selection/drawCellRanges.d.ts +10 -0
- package/esm/excel/render/selection/drawCellRanges.js +45 -0
- package/esm/excel/render/selection/drawCellSelection.d.ts +13 -0
- package/esm/excel/render/selection/drawCellSelection.js +77 -0
- package/esm/excel/render/selection/drawColSelection.d.ts +12 -0
- package/esm/excel/render/selection/drawColSelection.js +20 -0
- package/esm/excel/render/selection/drawRowSelection.d.ts +12 -0
- package/esm/excel/render/selection/drawRowSelection.js +21 -0
- package/esm/excel/render/selection/drawSelectionHeaderHighlight.d.ts +6 -0
- package/esm/excel/render/selection/drawSelectionHeaderHighlight.js +17 -0
- package/esm/excel/render/selection/findCell.d.ts +7 -0
- package/esm/excel/render/selection/findCell.js +15 -0
- package/esm/excel/render/selection/findInViewRange.d.ts +13 -0
- package/esm/excel/render/selection/findInViewRange.js +12 -0
- package/esm/excel/render/selection/findInViewRangeX.d.ts +10 -0
- package/esm/excel/render/selection/findInViewRangeX.js +42 -0
- package/esm/excel/render/selection/findInViewRangeY.d.ts +10 -0
- package/esm/excel/render/selection/findInViewRangeY.js +41 -0
- package/esm/excel/render/selection/getCellPosition.d.ts +43 -0
- package/esm/excel/render/selection/getCellPosition.js +131 -0
- package/esm/excel/render/selection/getRangePosition.d.ts +12 -0
- package/esm/excel/render/selection/getRangePosition.js +67 -0
- package/esm/excel/render/selection/hitTest.d.ts +41 -0
- package/esm/excel/render/selection/hitTest.js +46 -0
- package/esm/excel/render/selection/hitTestInRange.d.ts +7 -0
- package/esm/excel/render/selection/hitTestInRange.js +56 -0
- package/esm/excel/render/selection/updateCursor.d.ts +5 -0
- package/esm/excel/render/selection/updateCursor.js +22 -0
- package/esm/excel/render/sheetTab/SheetList.d.ts +43 -0
- package/esm/excel/render/sheetTab/SheetList.js +285 -0
- package/esm/excel/render/sheetTab/SheetTabBar.d.ts +8 -0
- package/esm/excel/render/sheetTab/SheetTabBar.js +20 -0
- package/esm/excel/render/sheetTab/StatusBar.d.ts +14 -0
- package/esm/excel/render/sheetTab/StatusBar.js +83 -0
- package/esm/excel/render/sheetTab/ZoomLevel.d.ts +6 -0
- package/esm/excel/render/sheetTab/ZoomLevel.js +39 -0
- package/esm/excel/render/sparkline/Numbers.d.ts +1 -0
- package/esm/excel/render/sparkline/applyColor.d.ts +7 -0
- package/esm/excel/render/sparkline/applyColor.js +36 -0
- package/esm/excel/render/sparkline/drawSparkline.d.ts +7 -0
- package/esm/excel/render/sparkline/drawSparkline.js +86 -0
- package/esm/excel/render/sparkline/renderColumn.d.ts +7 -0
- package/esm/excel/render/sparkline/renderColumn.js +47 -0
- package/esm/excel/render/sparkline/renderLine.d.ts +7 -0
- package/esm/excel/render/sparkline/renderLine.js +107 -0
- package/esm/excel/render/sparkline/renderSparkline.d.ts +9 -0
- package/esm/excel/render/sparkline/renderSparkline.js +59 -0
- package/esm/excel/render/sparkline/renderStacked.d.ts +7 -0
- package/esm/excel/render/sparkline/renderStacked.js +61 -0
- package/esm/excel/render/ui/Button.d.ts +7 -0
- package/esm/excel/render/ui/CheckBox.d.ts +16 -0
- package/esm/excel/render/ui/CheckBox.js +48 -0
- package/esm/excel/render/ui/CheckBoxList.d.ts +16 -0
- package/esm/excel/render/ui/CheckBoxList.js +109 -0
- package/esm/excel/render/ui/Divider.d.ts +3 -0
- package/esm/excel/render/ui/Divider.js +13 -0
- package/esm/excel/render/ui/Input.d.ts +11 -0
- package/esm/excel/render/ui/Input.js +48 -0
- package/esm/excel/render/ui/Radio.d.ts +11 -0
- package/esm/excel/render/ui/Radio.js +52 -0
- package/esm/excel/render/ui/Select.d.ts +13 -0
- package/esm/excel/render/ui/Select.js +29 -0
- package/esm/excel/render/widget/Widget.d.ts +29 -0
- package/esm/excel/sheet/BuiltInNumFmt.d.ts +5 -0
- package/esm/excel/sheet/BuiltInNumFmt.js +39 -0
- package/esm/excel/sheet/ColWidth.d.ts +19 -0
- package/esm/excel/sheet/ColWidth.js +30 -0
- package/esm/excel/sheet/ExcelRenderOptions.d.ts +149 -0
- package/esm/excel/sheet/RangeCache.d.ts +32 -0
- package/esm/excel/sheet/RangeCache.js +99 -0
- package/esm/excel/sheet/RowFilter.d.ts +3 -0
- package/esm/excel/sheet/Sheet.d.ts +280 -0
- package/esm/excel/sheet/Sheet.js +675 -0
- package/esm/excel/sheet/SheetBounding.d.ts +22 -0
- package/esm/excel/sheet/ViewRange.d.ts +52 -0
- package/esm/excel/sheet/__test__/applyDxf.test.d.ts +1 -0
- package/esm/excel/sheet/__test__/colWidth.test.d.ts +1 -0
- package/esm/excel/sheet/__test__/getViewRange.test.d.ts +1 -0
- package/esm/excel/sheet/applyConditionalFormat.d.ts +6 -0
- package/esm/excel/sheet/applyConditionalFormat.js +112 -0
- package/esm/excel/sheet/applyDxf.d.ts +6 -0
- package/esm/excel/sheet/applyDxf.js +20 -0
- package/esm/excel/sheet/applyTablePartsStyle.d.ts +6 -0
- package/esm/excel/sheet/applyTablePartsStyle.js +34 -0
- package/esm/excel/sheet/cfRule/__test__/aboveAverage.test.d.ts +1 -0
- package/esm/excel/sheet/cfRule/__test__/cellIs.test.d.ts +1 -0
- package/esm/excel/sheet/cfRule/__test__/top10.test.d.ts +1 -0
- package/esm/excel/sheet/cfRule/aboveAverage.d.ts +9 -0
- package/esm/excel/sheet/cfRule/aboveAverage.js +70 -0
- package/esm/excel/sheet/cfRule/applyCfRuleDxf.d.ts +7 -0
- package/esm/excel/sheet/cfRule/applyCfRuleDxf.js +13 -0
- package/esm/excel/sheet/cfRule/cellIs.d.ts +22 -0
- package/esm/excel/sheet/cfRule/cellIs.js +155 -0
- package/esm/excel/sheet/cfRule/colorScale.d.ts +8 -0
- package/esm/excel/sheet/cfRule/colorScale.js +141 -0
- package/esm/excel/sheet/cfRule/containsBlanks.d.ts +7 -0
- package/esm/excel/sheet/cfRule/containsBlanks.js +14 -0
- package/esm/excel/sheet/cfRule/containsErrors.d.ts +7 -0
- package/esm/excel/sheet/cfRule/containsErrors.js +15 -0
- package/esm/excel/sheet/cfRule/containsText.d.ts +7 -0
- package/esm/excel/sheet/cfRule/containsText.js +17 -0
- package/esm/excel/sheet/cfRule/dataBar.d.ts +8 -0
- package/esm/excel/sheet/cfRule/dataBar.js +232 -0
- package/esm/excel/sheet/cfRule/duplicateValues.d.ts +8 -0
- package/esm/excel/sheet/cfRule/duplicateValues.js +45 -0
- package/esm/excel/sheet/cfRule/getMinMax.d.ts +5 -0
- package/esm/excel/sheet/cfRule/getMinMax.js +37 -0
- package/esm/excel/sheet/cfRule/iconSet.d.ts +8 -0
- package/esm/excel/sheet/cfRule/iconSet.js +109 -0
- package/esm/excel/sheet/cfRule/notContainsText.d.ts +7 -0
- package/esm/excel/sheet/cfRule/notContainsText.js +17 -0
- package/esm/excel/sheet/cfRule/timePeriod.d.ts +9 -0
- package/esm/excel/sheet/cfRule/timePeriod.js +129 -0
- package/esm/excel/sheet/cfRule/top10.d.ts +9 -0
- package/esm/excel/sheet/cfRule/top10.js +72 -0
- package/esm/excel/sheet/cfRule/uniqueValues.d.ts +8 -0
- package/esm/excel/sheet/cfRule/uniqueValues.js +46 -0
- package/esm/excel/sheet/getCellAbsolutePosition.d.ts +10 -0
- package/esm/excel/sheet/getCellAbsolutePosition.js +41 -0
- package/esm/excel/sheet/getViewPointData.d.ts +24 -0
- package/esm/excel/sheet/getViewPointData.js +171 -0
- package/esm/excel/sheet/getViewRange.d.ts +68 -0
- package/esm/excel/sheet/getViewRange.js +193 -0
- package/esm/excel/sheet/table/__test__/calcTableRelativePosition.test.d.ts +1 -0
- package/esm/excel/sheet/table/applyTableStyle.d.ts +5 -0
- package/esm/excel/sheet/table/applyTableStyle.js +87 -0
- package/esm/excel/sheet/table/buildTableStyle.d.ts +13 -0
- package/esm/excel/sheet/table/buildTableStyle.js +68 -0
- package/esm/excel/sheet/table/calcTableRelativePosition.d.ts +11 -0
- package/esm/excel/sheet/table/calcTableRelativePosition.js +90 -0
- package/esm/excel/types/CT_Color.d.ts +9 -0
- package/esm/excel/types/CT_Color.js +20 -0
- package/esm/excel/types/CT_ExtensionList.d.ts +6 -0
- package/esm/excel/types/CT_ExtensionList.js +11 -0
- package/esm/excel/types/CT_Theme.d.ts +15 -0
- package/esm/excel/types/CellInfo.d.ts +57 -0
- package/esm/excel/types/CellValue.d.ts +14 -0
- package/esm/excel/types/DataBarDisplay.d.ts +58 -0
- package/esm/excel/types/ExcelFile.d.ts +12 -0
- package/esm/excel/types/Ext.d.ts +10 -0
- package/esm/excel/types/Ext.js +21 -0
- package/esm/excel/types/FontSize.d.ts +7 -0
- package/esm/excel/types/FontStyle.d.ts +16 -0
- package/esm/excel/types/IChartSpace.d.ts +7 -0
- package/esm/excel/types/IDataProvider.d.ts +158 -0
- package/esm/excel/types/IDrawing.d.ts +51 -0
- package/esm/excel/types/IRElt.d.ts +11 -0
- package/esm/excel/types/IRPrElt.d.ts +28 -0
- package/esm/excel/types/IRelationship.d.ts +10 -0
- package/esm/excel/types/ISheet.d.ts +14 -0
- package/esm/excel/types/ISheet.js +16 -0
- package/esm/excel/types/IWorkbook.d.ts +41 -0
- package/esm/excel/types/IWorksheet.d.ts +37 -0
- package/esm/excel/types/RangeRef.d.ts +21 -0
- package/esm/excel/types/RichText.d.ts +7 -0
- package/esm/excel/types/StringItem.d.ts +5 -0
- package/esm/excel/types/TableStyleDef.d.ts +8 -0
- package/esm/excel/types/X14CF/CT_Cfvo.d.ts +8 -0
- package/esm/excel/types/X14CF/CT_Cfvo.js +14 -0
- package/esm/excel/types/X14CF/ST_CfvoType.d.ts +1 -0
- package/esm/excel/types/X14CF/X14CfRule.d.ts +10 -0
- package/esm/excel/types/X14CF/X14CfRule.js +21 -0
- package/esm/excel/types/X14CF/X14ConditionalFormatting.d.ts +6 -0
- package/esm/excel/types/X14CF/X14ConditionalFormatting.js +11 -0
- package/esm/excel/types/X14CF/X14ConditionalFormattings.d.ts +6 -0
- package/esm/excel/types/X14CF/X14ConditionalFormattings.js +11 -0
- package/esm/excel/types/X14CF/X14DataBar.d.ts +18 -0
- package/esm/excel/types/X14CF/X14DataBar.js +54 -0
- package/esm/excel/types/X14CF/X14IconSet.d.ts +11 -0
- package/esm/excel/types/X14CF/X14IconSet.js +27 -0
- package/esm/excel/types/X14Sparkline/X14Sparkline.d.ts +6 -0
- package/esm/excel/types/X14Sparkline/X14Sparkline.js +10 -0
- package/esm/excel/types/X14Sparkline/X14SparklineGroup.d.ts +35 -0
- package/esm/excel/types/X14Sparkline/X14SparklineGroup.js +108 -0
- package/esm/excel/types/X14Sparkline/X14SparklineGroups.d.ts +6 -0
- package/esm/excel/types/X14Sparkline/X14SparklineGroups.js +11 -0
- package/esm/excel/types/X14Sparkline/x14:sparklines.d.ts +6 -0
- package/esm/excel/types/X14Sparkline/x14_sparklines.js +11 -0
- package/esm/excel/types/worksheet/CellData.d.ts +56 -0
- package/esm/excel/types/worksheet/CellData.js +38 -0
- package/esm/excel/types/worksheet/ICell.d.ts +39 -0
- package/esm/excel/types/worksheet/ICell.js +22 -0
- package/esm/index.d.ts +3 -1
- package/esm/index.js +2 -0
- package/esm/openxml/Attributes.d.ts +33 -0
- package/esm/openxml/Attributes.js +3 -0
- package/esm/openxml/ChartTypes.d.ts +2971 -0
- package/esm/openxml/ChartTypes.js +5154 -0
- package/esm/openxml/ContentType.d.ts +5 -0
- package/esm/openxml/ContentType.js +1 -1
- package/esm/openxml/DMLTypes.d.ts +1836 -0
- package/esm/openxml/DMLTypes.js +2849 -0
- package/esm/openxml/ExcelTypes.d.ts +5147 -0
- package/esm/openxml/ExcelTypes.js +5362 -0
- package/esm/openxml/Style.js +3 -3
- package/esm/openxml/Theme.js +1 -1
- package/esm/openxml/Types.d.ts +2757 -95
- package/esm/openxml/colorNameMap.d.ts +6 -0
- package/esm/openxml/drawing/Blip.d.ts +1 -1
- package/esm/openxml/drawing/CustomGeom.js +1 -1
- package/esm/openxml/drawing/Drawing.js +1 -1
- package/esm/openxml/drawing/Geom.js +1 -1
- package/esm/openxml/drawing/ShapeProperties.d.ts +1 -0
- package/esm/openxml/drawing/ShapeProperties.js +7 -7
- package/esm/openxml/drawing/Transform.js +1 -1
- package/esm/openxml/drawing/svg/shapeToSVG.d.ts +11 -2
- package/esm/openxml/drawing/svg/shapeToSVG.js +6 -6
- package/esm/openxml/word/Body.js +2 -2
- package/esm/openxml/word/Header.js +2 -2
- package/esm/openxml/word/Hyperlink.d.ts +1 -1
- package/esm/openxml/word/Note.js +1 -1
- package/esm/openxml/word/Paragraph.js +2 -2
- package/esm/openxml/word/Run.js +1 -1
- package/esm/openxml/word/Section.js +1 -1
- package/esm/openxml/word/Tab.js +1 -1
- package/esm/openxml/word/WDocument.js +1 -1
- package/esm/openxml/word/wps/WPS.js +2 -2
- package/esm/openxml/word/wps/WPSStyle.js +4 -4
- package/esm/package/PackageParser.d.ts +4 -0
- package/esm/package/XMLPackageParser.d.ts +5 -1
- package/esm/package/ZipPackageParser.d.ts +5 -1
- package/esm/package/ZipPackageParser.js +30 -2
- package/esm/util/EventEmitter.d.ts +38 -0
- package/esm/util/EventEmitter.js +112 -0
- package/esm/util/H.d.ts +7 -0
- package/esm/util/H.js +69 -0
- package/esm/util/LRUCache.d.ts +17 -0
- package/esm/util/LinkedMap.d.ts +40 -0
- package/esm/util/__tests__/autoSpace.test.d.ts +1 -0
- package/esm/util/__tests__/color.test.d.ts +1 -0
- package/esm/util/__tests__/replaceVar.test.d.ts +2 -0
- package/esm/util/__tests__/xml.test.d.ts +1 -0
- package/esm/util/arrayBufferToString.d.ts +1 -0
- package/esm/util/arrayBufferToString.js +7 -0
- package/esm/util/base64ToArrayBuffer.d.ts +1 -0
- package/esm/util/base64ToArrayBuffer.js +10 -0
- package/esm/util/binarySearch.d.ts +5 -0
- package/esm/util/binarySearch.js +23 -0
- package/esm/util/color.d.ts +5 -0
- package/esm/util/color.js +101 -1
- package/esm/util/createObject.d.ts +0 -1
- package/esm/util/createObject.js +2 -10
- package/esm/util/debounce.d.ts +1 -0
- package/esm/util/debounce.js +15 -0
- package/esm/util/emuToPx.d.ts +4 -0
- package/esm/util/emuToPx.js +14 -0
- package/esm/util/escapeHTML.d.ts +4 -0
- package/esm/util/escapeHTML.js +13 -0
- package/esm/util/fileType.d.ts +1 -0
- package/esm/util/fileType.js +17 -1
- package/esm/util/getChineseDay.d.ts +4 -0
- package/esm/util/isFontAvailable.d.ts +5 -0
- package/esm/util/isFontAvailable.js +37 -0
- package/esm/util/isNumeric.d.ts +4 -0
- package/esm/util/isNumeric.js +8 -0
- package/esm/util/isObject.d.ts +6 -0
- package/esm/util/isObject.js +10 -0
- package/esm/util/isValidURL.d.ts +4 -0
- package/esm/util/isValidURL.js +18 -0
- package/esm/util/isVisible.d.ts +4 -0
- package/esm/util/joinPath.d.ts +6 -0
- package/esm/util/joinPath.js +27 -0
- package/esm/util/mergeRun.js +1 -1
- package/esm/util/number.d.ts +9 -0
- package/esm/util/number.js +20 -0
- package/esm/util/objectEqual.d.ts +4 -0
- package/esm/util/objectEqual.js +13 -0
- package/esm/util/onClickOutside.d.ts +4 -0
- package/esm/util/onClickOutside.js +13 -0
- package/esm/util/ptToPx.d.ts +4 -0
- package/esm/util/ptToPx.js +10 -0
- package/esm/util/px2pt.d.ts +1 -0
- package/esm/util/px2pt.js +5 -0
- package/esm/util/runWorker.d.ts +6 -0
- package/esm/util/saxes.d.ts +638 -0
- package/esm/util/saxes.js +2077 -0
- package/esm/util/stringToArray.d.ts +10 -0
- package/esm/util/stringToArray.js +84 -0
- package/esm/util/stripNumber.d.ts +4 -0
- package/esm/util/stripNumber.js +14 -0
- package/esm/util/throttle.d.ts +5 -0
- package/esm/util/xml.d.ts +44 -0
- package/esm/util/xml.js +85 -1
- package/esm/util/xmlchars/xml/1.0/ed4.d.ts +31 -0
- package/esm/util/xmlchars/xml/1.0/ed5.d.ts +51 -0
- package/esm/util/xmlchars/xml/1.0/ed5.js +89 -0
- package/esm/util/xmlchars/xml/1.1/ed2.d.ts +73 -0
- package/esm/util/xmlchars/xml/1.1/ed2.js +21 -0
- package/esm/util/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
- package/esm/util/xmlchars/xmlns/1.0/ed3.js +57 -0
- package/esm/word/parse/Footnotes.d.ts +3 -0
- package/esm/word/parse/Footnotes.js +25 -0
- package/esm/word/parse/modifyColor.js +106 -0
- package/esm/word/parse/parseBorder.d.ts +13 -0
- package/esm/word/parse/parseBorder.js +59 -0
- package/esm/word/parse/parseCellMargin.d.ts +2 -0
- package/esm/word/parse/parseChildColor.d.ts +4 -0
- package/esm/word/parse/parseChildColor.js +66 -0
- package/esm/word/parse/parseColor.d.ts +26 -0
- package/esm/word/parse/parseColor.js +126 -0
- package/esm/word/parse/parseEndnotes.d.ts +3 -0
- package/esm/word/parse/parseEndnotes.js +25 -0
- package/esm/word/parse/parseFont.d.ts +7 -0
- package/esm/word/parse/parseInd.d.ts +5 -0
- package/esm/word/parse/parseInsideBorders.d.ts +9 -0
- package/esm/word/parse/parsePr.d.ts +11 -0
- package/esm/word/parse/parsePr.js +424 -0
- package/esm/word/parse/parseShape.d.ts +10 -0
- package/esm/word/parse/parseShape.js +239 -0
- package/esm/word/parse/parseSpacing.d.ts +7 -0
- package/esm/word/parse/parseTable.d.ts +3 -0
- package/esm/word/parse/parseTable.js +62 -0
- package/esm/word/parse/parseTablePr.d.ts +3 -0
- package/esm/word/parse/parseTablePr.js +185 -0
- package/esm/word/parse/parseTc.d.ts +10 -0
- package/esm/word/parse/parseTc.js +64 -0
- package/esm/word/parse/parseTcPr.d.ts +5 -0
- package/esm/word/parse/parseTcPr.js +99 -0
- package/esm/word/parse/parseTextDirection.d.ts +2 -0
- package/esm/word/parse/parseTr.d.ts +6 -0
- package/esm/word/parse/parseTr.js +49 -0
- package/esm/word/parse/parseTrHeight.d.ts +2 -0
- package/esm/word/parse/parseTrPr.d.ts +3 -0
- package/esm/word/parse/parseTrPr.js +59 -0
- package/esm/word/render/fixAbsolutePosition.d.ts +8 -0
- package/esm/word/render/renderBody.d.ts +10 -0
- package/esm/word/render/renderBody.js +207 -0
- package/esm/word/render/renderBookmark.d.ts +6 -0
- package/esm/word/render/renderBookmark.js +17 -0
- package/esm/word/render/renderBr.d.ts +8 -0
- package/esm/word/render/renderBr.js +16 -0
- package/esm/word/render/renderCustGeom.d.ts +4 -0
- package/esm/word/render/renderCustGeom.js +10 -0
- package/esm/word/render/renderDocument.d.ts +7 -0
- package/esm/word/render/renderDocument.js +14 -0
- package/esm/word/render/renderDrawing.d.ts +9 -0
- package/esm/word/render/renderDrawing.js +255 -0
- package/esm/word/render/renderFont.d.ts +5 -0
- package/esm/word/render/renderFont.js +39 -0
- package/esm/word/render/renderGeom.d.ts +4 -0
- package/esm/word/render/renderGeom.js +14 -0
- package/esm/word/render/renderHeader.d.ts +6 -0
- package/esm/word/render/renderHeader.js +40 -0
- package/esm/word/render/renderHyperLink.d.ts +7 -0
- package/esm/word/render/renderHyperLink.js +44 -0
- package/esm/word/render/renderInlineText.d.ts +6 -0
- package/esm/word/render/renderInlineText.js +39 -0
- package/esm/word/render/renderInstrText.d.ts +8 -0
- package/esm/word/render/renderInstrText.js +40 -0
- package/esm/word/render/renderMath.d.ts +3 -0
- package/esm/word/render/renderMath.js +7 -0
- package/esm/word/render/renderNoBreakHyphen.js +9 -0
- package/esm/word/render/renderNotes.d.ts +5 -0
- package/esm/word/render/renderNotes.js +77 -0
- package/esm/word/render/renderNumbering.d.ts +7 -0
- package/esm/word/render/renderNumbering.js +159 -0
- package/esm/word/render/renderParagraph.d.ts +7 -0
- package/esm/word/render/renderParagraph.js +97 -0
- package/esm/word/render/renderPict.d.ts +6 -0
- package/esm/word/render/renderRuby.d.ts +6 -0
- package/esm/word/render/renderRuby.js +53 -0
- package/esm/word/render/renderRun.d.ts +16 -0
- package/esm/word/render/renderRun.js +146 -0
- package/esm/word/render/renderSection.d.ts +7 -0
- package/esm/word/render/renderSection.js +110 -0
- package/esm/word/render/renderSeparator.js +9 -0
- package/esm/word/render/renderSoftHyphen.js +9 -0
- package/esm/word/render/renderStyle.d.ts +13 -0
- package/esm/word/render/renderStyle.js +195 -0
- package/esm/word/render/renderSym.d.ts +3 -0
- package/esm/word/render/renderSym.js +10 -0
- package/esm/word/render/renderTab.d.ts +8 -0
- package/esm/word/render/renderTab.js +23 -0
- package/esm/word/render/renderTable.d.ts +6 -0
- package/esm/word/render/renderTable.js +189 -0
- package/esm/word/render/setElementStyle.d.ts +6 -0
- package/esm/word/render/setElementStyle.js +26 -0
- package/lib/Excel.d.ts +59 -0
- package/lib/Excel.js +222 -0
- package/lib/OfficeViewer.d.ts +10 -0
- package/lib/RenderOptions.d.ts +25 -0
- package/lib/UnSupport.d.ts +13 -0
- package/lib/UnSupport.js +37 -0
- package/lib/Word.d.ts +7 -24
- package/lib/Word.js +23 -20
- package/lib/common/__tests__/autoParse.test.d.ts +1 -0
- package/lib/common/autoParse.d.ts +9 -0
- package/lib/common/autoParse.js +196 -0
- package/lib/common/parseAttributes.d.ts +6 -0
- package/lib/common/parseAttributes.js +31 -0
- package/lib/common/parseChildren.d.ts +8 -0
- package/lib/common/parseContentType.d.ts +7 -0
- package/lib/common/parseContentType.js +54 -0
- package/lib/common/parseRelationship.d.ts +5 -0
- package/lib/common/parseRelationship.js +50 -0
- package/lib/createOfficeViewer.d.ts +16 -0
- package/lib/createOfficeViewer.js +102 -0
- package/lib/excel/StyleSheet.d.ts +8 -0
- package/lib/excel/StyleSheet.js +15 -0
- package/lib/excel/Workbook.d.ts +180 -0
- package/lib/excel/Workbook.js +213 -0
- package/lib/excel/data/LocalDataProvider.d.ts +146 -0
- package/lib/excel/data/LocalDataProvider.js +792 -0
- package/lib/excel/data/applyAutoFilter.d.ts +10 -0
- package/lib/excel/data/applyAutoFilter.js +90 -0
- package/lib/excel/data/autoFilter/CellValueNum.d.ts +5 -0
- package/lib/excel/data/autoFilter/__test__/customFilter.test.d.ts +1 -0
- package/lib/excel/data/autoFilter/__test__/filters.test.d.ts +1 -0
- package/lib/excel/data/autoFilter/__test__/sortByRange.test.d.ts +1 -0
- package/lib/excel/data/autoFilter/applySortState.d.ts +6 -0
- package/lib/excel/data/autoFilter/applySortState.js +40 -0
- package/lib/excel/data/autoFilter/customFilter.d.ts +6 -0
- package/lib/excel/data/autoFilter/customFilter.js +82 -0
- package/lib/excel/data/autoFilter/evalCustomFilter.d.ts +9 -0
- package/lib/excel/data/autoFilter/evalCustomFilter.js +65 -0
- package/lib/excel/data/autoFilter/filters.d.ts +3 -0
- package/lib/excel/data/autoFilter/filters.js +59 -0
- package/lib/excel/data/autoFilter/inDateGroupItems.d.ts +6 -0
- package/lib/excel/data/autoFilter/inDateGroupItems.js +75 -0
- package/lib/excel/data/autoFilter/sortByRange.d.ts +8 -0
- package/lib/excel/data/autoFilter/sortByRange.js +55 -0
- package/lib/excel/data/defaultFont.d.ts +25 -0
- package/lib/excel/data/defaultFont.js +31 -0
- package/lib/excel/data/getThemeColor.d.ts +2 -0
- package/lib/excel/data/getThemeColor.js +75 -0
- package/lib/excel/data/numfmt/amountInWords.d.ts +4 -0
- package/lib/excel/data/numfmt/amountInWords.js +43 -0
- package/lib/excel/data/numfmtExtend.d.ts +10 -0
- package/lib/excel/data/numfmtExtend.js +33 -0
- package/lib/excel/edit/Command.d.ts +19 -0
- package/lib/excel/edit/ui/CellEditor.d.ts +27 -0
- package/lib/excel/edit/ui/CellEditor.js +69 -0
- package/lib/excel/io/csv/emptyXLSX.d.ts +2 -0
- package/lib/excel/io/csv/emptyXLSX.js +10 -0
- package/lib/excel/io/excel/__tests__/parseSharedStrings.test.d.ts +1 -0
- package/lib/excel/io/excel/drawing/getRelationPath.d.ts +2 -0
- package/lib/excel/io/excel/drawing/getRelationPath.js +15 -0
- package/lib/excel/io/excel/drawing/parseAnchorCommon.d.ts +9 -0
- package/lib/excel/io/excel/drawing/parseAnchorCommon.js +82 -0
- package/lib/excel/io/excel/drawing/parseChart.d.ts +3 -0
- package/lib/excel/io/excel/drawing/parseChart.js +15 -0
- package/lib/excel/io/excel/drawing/parseDrawing.d.ts +8 -0
- package/lib/excel/io/excel/drawing/parseDrawing.js +107 -0
- package/lib/excel/io/excel/drawing/parsePic.d.ts +4 -0
- package/lib/excel/io/excel/drawing/parsePic.js +27 -0
- package/lib/excel/io/excel/drawing/parseShape.d.ts +4 -0
- package/lib/excel/io/excel/drawing/parseShape.js +163 -0
- package/lib/excel/io/excel/getRelPath.d.ts +4 -0
- package/lib/excel/io/excel/getRelPath.js +14 -0
- package/lib/excel/io/excel/initValueForContainsBlanks.d.ts +6 -0
- package/lib/excel/io/excel/initValueForContainsBlanks.js +62 -0
- package/lib/excel/io/excel/initValueForTable.d.ts +5 -0
- package/lib/excel/io/excel/initValueForTable.js +35 -0
- package/lib/excel/io/excel/parseDefinedNames.d.ts +5 -0
- package/lib/excel/io/excel/parseDefinedNames.js +15 -0
- package/lib/excel/io/excel/parseSharedStrings.d.ts +9 -0
- package/lib/excel/io/excel/parseSharedStrings.js +177 -0
- package/lib/excel/io/excel/parseSheet.d.ts +9 -0
- package/lib/excel/io/excel/parseSheet.js +88 -0
- package/lib/excel/io/excel/parseTableParts.d.ts +5 -0
- package/lib/excel/io/excel/parseTableParts.js +71 -0
- package/lib/excel/io/excel/parseTableStyleDef.d.ts +3 -0
- package/lib/excel/io/excel/parseTheme.d.ts +6 -0
- package/lib/excel/io/excel/parseTheme.js +46 -0
- package/lib/excel/io/excel/parseWorkbook.d.ts +8 -0
- package/lib/excel/io/excel/parseWorkbook.js +109 -0
- package/lib/excel/io/excel/parseWorkbookPr.d.ts +6 -0
- package/lib/excel/io/excel/parseWorkbookPr.js +17 -0
- package/lib/excel/io/excel/parseWorkbookView.d.ts +6 -0
- package/lib/excel/io/excel/parseWorkbookView.js +17 -0
- package/lib/excel/io/excel/parseWorksheet.d.ts +9 -0
- package/lib/excel/io/excel/parseWorksheet.js +211 -0
- package/lib/excel/io/excel/preset/defaultTheme.d.ts +1 -0
- package/lib/excel/io/excel/preset/defaultTheme.js +7 -0
- package/lib/excel/io/excel/preset/presetCellStyles.d.ts +3 -0
- package/lib/excel/io/excel/preset/presetIconSet.d.ts +6 -0
- package/lib/excel/io/excel/preset/presetIconSet.js +59 -0
- package/lib/excel/io/excel/preset/presetIcons.d.ts +3 -0
- package/lib/excel/io/excel/preset/presetIcons.js +48 -0
- package/lib/excel/io/excel/preset/presetTableStyles.d.ts +3 -0
- package/lib/excel/io/excel/preset/presetTableStyles.js +35121 -0
- package/lib/excel/io/excel/stylesheet/parseColor.d.ts +5 -0
- package/lib/excel/io/excel/stylesheet/parseColor.js +15 -0
- package/lib/excel/io/excel/util/Range.d.ts +66 -0
- package/lib/excel/io/excel/util/Range.js +132 -0
- package/lib/excel/io/excel/util/__tests__/makeBlankValue.test.d.ts +1 -0
- package/lib/excel/io/excel/util/decodeAddress.d.ts +11 -0
- package/lib/excel/io/excel/util/decodeAddress.js +67 -0
- package/lib/excel/io/excel/util/fromExcelDate.d.ts +14 -0
- package/lib/excel/io/excel/util/fromExcelDate.js +30 -0
- package/lib/excel/io/excel/util/lettersToNumber.d.ts +4 -0
- package/lib/excel/io/excel/util/makeBlankValue.d.ts +6 -0
- package/lib/excel/io/excel/util/makeBlankValue.js +25 -0
- package/lib/excel/io/excel/util/numberToLetters.d.ts +4 -0
- package/lib/excel/io/excel/util/numberToLetters.js +17 -0
- package/lib/excel/io/excel/worksheet/parseSheetData.d.ts +11 -0
- package/lib/excel/io/excel/worksheet/parseSheetData.js +158 -0
- package/lib/excel/io/parseExcel.d.ts +10 -0
- package/lib/excel/io/parseExcel.js +43 -0
- package/lib/excel/lang/en_US.d.ts +24 -0
- package/lib/excel/lang/en_US.js +29 -0
- package/lib/excel/lang/lang.d.ts +30 -0
- package/lib/excel/lang/lang.js +23 -0
- package/lib/excel/lang/zh_CN.d.ts +2 -0
- package/lib/excel/lang/zh_CN.js +29 -0
- package/lib/excel/print/printStyle.d.ts +4 -0
- package/lib/excel/print/printStyle.js +12 -0
- package/lib/excel/print/renderInIframe.d.ts +7 -0
- package/lib/excel/print/renderInIframe.js +30 -0
- package/lib/excel/render/Canvas.d.ts +108 -0
- package/lib/excel/render/Canvas.js +336 -0
- package/lib/excel/render/Consts.d.ts +20 -0
- package/lib/excel/render/Consts.js +30 -0
- package/lib/excel/render/ExcelRender.d.ts +120 -0
- package/lib/excel/render/ExcelRender.js +426 -0
- package/lib/excel/render/Icons.d.ts +13 -0
- package/lib/excel/render/Icons.js +19 -0
- package/lib/excel/render/IndexedColors.d.ts +1 -0
- package/lib/excel/render/IndexedColors.js +74 -0
- package/lib/excel/render/Line.d.ts +6 -0
- package/lib/excel/render/Rect.d.ts +17 -0
- package/lib/excel/render/Rect.js +25 -0
- package/lib/excel/render/ScrollBar.d.ts +54 -0
- package/lib/excel/render/ScrollBar.js +141 -0
- package/lib/excel/render/SelectionCanvas.d.ts +33 -0
- package/lib/excel/render/SelectionCanvas.js +96 -0
- package/lib/excel/render/SheetCanvas.d.ts +33 -0
- package/lib/excel/render/SheetCanvas.js +46 -0
- package/lib/excel/render/__test__/autoWrapText.test.d.ts +1 -0
- package/lib/excel/render/__test__/tokenizer.test.d.ts +1 -0
- package/lib/excel/render/autoFilter/AutoFilterIconUI.d.ts +33 -0
- package/lib/excel/render/autoFilter/AutoFilterIconUI.js +89 -0
- package/lib/excel/render/autoFilter/AutoFilterMenuUI.d.ts +13 -0
- package/lib/excel/render/autoFilter/AutoFilterMenuUI.js +38 -0
- package/lib/excel/render/autoFilter/filterColumn/CustomFiltersUI.d.ts +46 -0
- package/lib/excel/render/autoFilter/filterColumn/CustomFiltersUI.js +162 -0
- package/lib/excel/render/autoFilter/filterColumn/FilterColumnUI.d.ts +10 -0
- package/lib/excel/render/autoFilter/filterColumn/FilterColumnUI.js +51 -0
- package/lib/excel/render/autoFilter/filterColumn/FiltersUI.d.ts +10 -0
- package/lib/excel/render/autoFilter/filterColumn/FiltersUI.js +41 -0
- package/lib/excel/render/autoFilter/filterColumn/OperatorTypeUI.d.ts +5 -0
- package/lib/excel/render/autoFilter/filterColumn/buildOperatorOptions.d.ts +2 -0
- package/lib/excel/render/autoFilter/filterColumn/buildOperatorOptions.js +99 -0
- package/lib/excel/render/autoFilter/filterColumn/fromOperatorUI.d.ts +6 -0
- package/lib/excel/render/autoFilter/filterColumn/fromOperatorUI.js +52 -0
- package/lib/excel/render/autoFilter/filterColumn/getCustomFilters.d.ts +2 -0
- package/lib/excel/render/autoFilter/filterColumn/getCustomFilters.js +14 -0
- package/lib/excel/render/autoFilter/filterColumn/getFilterValues.d.ts +5 -0
- package/lib/excel/render/autoFilter/filterColumn/getFilterValues.js +35 -0
- package/lib/excel/render/autoFilter/filterColumn/hasFilterColumn.d.ts +5 -0
- package/lib/excel/render/autoFilter/filterColumn/hasFilterColumn.js +41 -0
- package/lib/excel/render/autoFilter/filterColumn/setCustomFilters.d.ts +5 -0
- package/lib/excel/render/autoFilter/filterColumn/setCustomFilters.js +23 -0
- package/lib/excel/render/autoFilter/filterColumn/setFilterValues.d.ts +6 -0
- package/lib/excel/render/autoFilter/filterColumn/setFilterValues.js +49 -0
- package/lib/excel/render/autoFilter/filterColumn/toOperatorUI.d.ts +6 -0
- package/lib/excel/render/autoFilter/filterColumn/toOperatorUI.js +34 -0
- package/lib/excel/render/autoFilter/renderAutoFilter.d.ts +2 -0
- package/lib/excel/render/autoFilter/renderAutoFilter.js +35 -0
- package/lib/excel/render/autoFilter/renderAutoFilterIcon.d.ts +6 -0
- package/lib/excel/render/autoFilter/renderAutoFilterIcon.js +56 -0
- package/lib/excel/render/autoFilter/sortState/ColumnSortOrder.d.ts +1 -0
- package/lib/excel/render/autoFilter/sortState/SortButtonUI.d.ts +12 -0
- package/lib/excel/render/autoFilter/sortState/SortButtonUI.js +45 -0
- package/lib/excel/render/autoFilter/sortState/SortStateUI.d.ts +22 -0
- package/lib/excel/render/autoFilter/sortState/SortStateUI.js +69 -0
- package/lib/excel/render/autoFilter/sortState/getColumnSortOrder.d.ts +6 -0
- package/lib/excel/render/autoFilter/sortState/getColumnSortOrder.js +40 -0
- package/lib/excel/render/autoFilter/sortState/setColumnSortOrder.d.ts +7 -0
- package/lib/excel/render/autoFilter/sortState/setColumnSortOrder.js +59 -0
- package/lib/excel/render/canvas/draw.d.ts +5 -0
- package/lib/excel/render/canvas/drawOffscreenCanvas.d.ts +6 -0
- package/lib/excel/render/canvas/drawOffscreenCanvas.js +18 -0
- package/lib/excel/render/canvas/setPixelRatio.d.ts +4 -0
- package/lib/excel/render/canvas/setPixelRatio.js +21 -0
- package/lib/excel/render/cell/CellInfoWithSize.d.ts +5 -0
- package/lib/excel/render/cell/LinkPosition.d.ts +14 -0
- package/lib/excel/render/cell/autoClip.d.ts +6 -0
- package/lib/excel/render/cell/autoClip.js +48 -0
- package/lib/excel/render/cell/autoWrapText.d.ts +24 -0
- package/lib/excel/render/cell/autoWrapText.js +161 -0
- package/lib/excel/render/cell/border/drawDoubleBorder.d.ts +2 -0
- package/lib/excel/render/cell/border/drawDoubleBorder.js +79 -0
- package/lib/excel/render/cell/border/setLineStyle.d.ts +5 -0
- package/lib/excel/render/cell/border/setLineStyle.js +47 -0
- package/lib/excel/render/cell/cellToMergeCell.d.ts +8 -0
- package/lib/excel/render/cell/cellToMergeCell.js +39 -0
- package/lib/excel/render/cell/checkFont.d.ts +8 -0
- package/lib/excel/render/cell/checkFont.js +36 -0
- package/lib/excel/render/cell/drawCell.d.ts +19 -0
- package/lib/excel/render/cell/drawCell.js +48 -0
- package/lib/excel/render/cell/drawCellBackground.d.ts +3 -0
- package/lib/excel/render/cell/drawCellBackground.js +15 -0
- package/lib/excel/render/cell/drawCellBorder.d.ts +6 -0
- package/lib/excel/render/cell/drawCellBorder.js +51 -0
- package/lib/excel/render/cell/drawCells.d.ts +9 -0
- package/lib/excel/render/cell/drawCells.js +58 -0
- package/lib/excel/render/cell/drawDataBar.d.ts +3 -0
- package/lib/excel/render/cell/drawDataBar.js +35 -0
- package/lib/excel/render/cell/drawDataBarX14.d.ts +7 -0
- package/lib/excel/render/cell/drawDataBarX14.js +52 -0
- package/lib/excel/render/cell/drawIconSet.d.ts +3 -0
- package/lib/excel/render/cell/drawIconSet.js +17 -0
- package/lib/excel/render/cell/drawMultiLineText.d.ts +8 -0
- package/lib/excel/render/cell/drawMultiLineText.js +111 -0
- package/lib/excel/render/cell/drawSingleLineRichText.d.ts +10 -0
- package/lib/excel/render/cell/drawSingleLineRichText.js +59 -0
- package/lib/excel/render/cell/drawSingleLineText.d.ts +17 -0
- package/lib/excel/render/cell/drawSingleLineText.js +77 -0
- package/lib/excel/render/cell/drawTextInCell.d.ts +15 -0
- package/lib/excel/render/cell/drawTextInCell.js +109 -0
- package/lib/excel/render/cell/frozen/drawFrozen.d.ts +17 -0
- package/lib/excel/render/cell/frozen/drawFrozen.js +49 -0
- package/lib/excel/render/cell/frozen/drawLeftFrozen.d.ts +10 -0
- package/lib/excel/render/cell/frozen/drawLeftFrozen.js +30 -0
- package/lib/excel/render/cell/frozen/drawTopFrozen.d.ts +10 -0
- package/lib/excel/render/cell/frozen/drawTopFrozen.js +30 -0
- package/lib/excel/render/cell/frozen/drawTopLeftFrozen.d.ts +14 -0
- package/lib/excel/render/cell/frozen/drawTopLeftFrozen.js +50 -0
- package/lib/excel/render/cell/frozen/getFrozenLeftViewPointRange.d.ts +14 -0
- package/lib/excel/render/cell/frozen/getFrozenLeftViewPointRange.js +36 -0
- package/lib/excel/render/cell/frozen/getFrozenRange.d.ts +5 -0
- package/lib/excel/render/cell/frozen/getFrozenRange.js +29 -0
- package/lib/excel/render/cell/frozen/getFrozenTopLeftViewPointRange.d.ts +5 -0
- package/lib/excel/render/cell/frozen/getFrozenTopLeftViewPointRange.js +26 -0
- package/lib/excel/render/cell/frozen/getFrozenTopViewPointRange.d.ts +14 -0
- package/lib/excel/render/cell/frozen/getFrozenTopViewPointRange.js +37 -0
- package/lib/excel/render/cell/genFontStr.d.ts +31 -0
- package/lib/excel/render/cell/genFontStr.js +68 -0
- package/lib/excel/render/cell/getBackgroundColor.d.ts +3 -0
- package/lib/excel/render/cell/getBackgroundColor.js +42 -0
- package/lib/excel/render/cell/isPointerOnLink.d.ts +5 -0
- package/lib/excel/render/cell/isPointerOnLink.js +43 -0
- package/lib/excel/render/cell/measureTextWithCache.d.ts +23 -0
- package/lib/excel/render/cell/measureTextWithCache.js +35 -0
- package/lib/excel/render/cell/tokenizer.d.ts +24 -0
- package/lib/excel/render/cell/tokenizer.js +98 -0
- package/lib/excel/render/dnd/DragState.d.ts +22 -0
- package/lib/excel/render/dnd/getMouseRelativePosition.d.ts +7 -0
- package/lib/excel/render/dnd/getMouseRelativePosition.js +15 -0
- package/lib/excel/render/dnd/handleDragCell.d.ts +4 -0
- package/lib/excel/render/dnd/handleDragCell.js +79 -0
- package/lib/excel/render/dnd/handleDragColGrid.d.ts +4 -0
- package/lib/excel/render/dnd/handleDragColGrid.js +27 -0
- package/lib/excel/render/dnd/handleDragColHeader.d.ts +4 -0
- package/lib/excel/render/dnd/handleDragColHeader.js +55 -0
- package/lib/excel/render/dnd/handleDragRowGrid.d.ts +4 -0
- package/lib/excel/render/dnd/handleDragRowGrid.js +27 -0
- package/lib/excel/render/dnd/handleDragRowHeader.d.ts +4 -0
- package/lib/excel/render/dnd/handleDragRowHeader.js +55 -0
- package/lib/excel/render/dnd/handleMousedown.d.ts +12 -0
- package/lib/excel/render/dnd/handleMousedown.js +80 -0
- package/lib/excel/render/dnd/handleMousemove.d.ts +4 -0
- package/lib/excel/render/dnd/handleMousemove.js +42 -0
- package/lib/excel/render/dnd/handleMouseup.d.ts +1 -0
- package/lib/excel/render/dnd/handleMouseup.js +21 -0
- package/lib/excel/render/dnd/mousedownCell.d.ts +10 -0
- package/lib/excel/render/dnd/mousedownCell.js +35 -0
- package/lib/excel/render/dnd/mousedownColHeader.d.ts +22 -0
- package/lib/excel/render/dnd/mousedownColHeader.js +33 -0
- package/lib/excel/render/dnd/mousedownCorner.d.ts +8 -0
- package/lib/excel/render/dnd/mousedownCorner.js +17 -0
- package/lib/excel/render/dnd/mousedownRowHeader.d.ts +22 -0
- package/lib/excel/render/dnd/mousedownRowHeader.js +33 -0
- package/lib/excel/render/dnd/removeEventListener.d.ts +4 -0
- package/lib/excel/render/dnd/removeEventListener.js +18 -0
- package/lib/excel/render/dnd/selectAll.d.ts +5 -0
- package/lib/excel/render/dnd/selectAll.js +30 -0
- package/lib/excel/render/drawing/BaseDrawingRender.d.ts +11 -0
- package/lib/excel/render/drawing/BaseDrawingRender.js +33 -0
- package/lib/excel/render/drawing/EChartsRender.d.ts +7 -0
- package/lib/excel/render/drawing/EChartsRender.js +42 -0
- package/lib/excel/render/drawing/PicRender.d.ts +6 -0
- package/lib/excel/render/drawing/PicRender.js +61 -0
- package/lib/excel/render/drawing/ResizeBox.d.ts +51 -0
- package/lib/excel/render/drawing/ResizeBox.js +87 -0
- package/lib/excel/render/drawing/chart/buildLabel.d.ts +63 -0
- package/lib/excel/render/drawing/chart/buildLabel.js +10 -0
- package/lib/excel/render/drawing/chart/calcPercentStacked.d.ts +5 -0
- package/lib/excel/render/drawing/chart/calcPercentStacked.js +47 -0
- package/lib/excel/render/drawing/chart/convertAxis.d.ts +11 -0
- package/lib/excel/render/drawing/chart/convertAxis.js +59 -0
- package/lib/excel/render/drawing/chart/convertLegend.d.ts +5 -0
- package/lib/excel/render/drawing/chart/convertLegend.js +42 -0
- package/lib/excel/render/drawing/chart/convertTitle.d.ts +8 -0
- package/lib/excel/render/drawing/chart/convertTitle.js +58 -0
- package/lib/excel/render/drawing/chart/fromAreaChart.d.ts +74 -0
- package/lib/excel/render/drawing/chart/fromAreaChart.js +55 -0
- package/lib/excel/render/drawing/chart/fromBarChart.d.ts +11 -0
- package/lib/excel/render/drawing/chart/fromBarChart.js +48 -0
- package/lib/excel/render/drawing/chart/fromDoughnutChart.d.ts +18 -0
- package/lib/excel/render/drawing/chart/fromDoughnutChart.js +52 -0
- package/lib/excel/render/drawing/chart/fromLineChart.d.ts +73 -0
- package/lib/excel/render/drawing/chart/fromLineChart.js +54 -0
- package/lib/excel/render/drawing/chart/fromPieChart.d.ts +10 -0
- package/lib/excel/render/drawing/chart/fromPieChart.js +44 -0
- package/lib/excel/render/drawing/chart/getData.d.ts +6 -0
- package/lib/excel/render/drawing/chart/getData.js +20 -0
- package/lib/excel/render/drawing/chart/getStack.d.ts +5 -0
- package/lib/excel/render/drawing/chart/getStack.js +21 -0
- package/lib/excel/render/drawing/convertToEChartOptions.d.ts +8 -0
- package/lib/excel/render/drawing/convertToEChartOptions.js +70 -0
- package/lib/excel/render/drawing/drawChart.d.ts +4 -0
- package/lib/excel/render/drawing/drawChart.js +53 -0
- package/lib/excel/render/drawing/drawDrawing.d.ts +8 -0
- package/lib/excel/render/drawing/drawDrawing.js +109 -0
- package/lib/excel/render/drawing/drawPic.d.ts +5 -0
- package/lib/excel/render/drawing/drawPic.js +72 -0
- package/lib/excel/render/drawing/drawShape.d.ts +9 -0
- package/lib/excel/render/drawing/drawShape.js +138 -0
- package/lib/excel/render/drawing/findPositionInViewRange.d.ts +7 -0
- package/lib/excel/render/drawing/findPositionInViewRange.js +32 -0
- package/lib/excel/render/drawing/getAbsoluteAnchorPosition.d.ts +11 -0
- package/lib/excel/render/drawing/getAbsoluteAnchorPosition.js +37 -0
- package/lib/excel/render/drawing/getOneCellAnchorPosition.d.ts +8 -0
- package/lib/excel/render/drawing/getOneCellAnchorPosition.js +35 -0
- package/lib/excel/render/drawing/getPositionByMaker.d.ts +11 -0
- package/lib/excel/render/drawing/getRectFromAnchorPoint.d.ts +18 -0
- package/lib/excel/render/drawing/getRectFromAnchorPoint.js +48 -0
- package/lib/excel/render/drawing/getTwoCellAnchorPosition.d.ts +8 -0
- package/lib/excel/render/drawing/getTwoCellAnchorPosition.js +41 -0
- package/lib/excel/render/formulaBar/FormulaBar.d.ts +29 -0
- package/lib/excel/render/formulaBar/FormulaBar.js +90 -0
- package/lib/excel/render/grid/drawGridLines.d.ts +12 -0
- package/lib/excel/render/grid/drawGridLines.js +45 -0
- package/lib/excel/render/header/drawRowColHeaders.d.ts +10 -0
- package/lib/excel/render/header/drawRowColHeaders.js +148 -0
- package/lib/excel/render/keyboard/handleCopy.d.ts +5 -0
- package/lib/excel/render/keyboard/handleCopy.js +23 -0
- package/lib/excel/render/keyboard/handleKeydown.d.ts +5 -0
- package/lib/excel/render/keyboard/handleKeydown.js +18 -0
- package/lib/excel/render/keyboard/handlePaste.d.ts +5 -0
- package/lib/excel/render/keyboard/handlePaste.js +20 -0
- package/lib/excel/render/keyboard/handleSelectAll.d.ts +5 -0
- package/lib/excel/render/keyboard/handleSelectAll.js +21 -0
- package/lib/excel/render/keyboard/handleSheetArrowKey.d.ts +5 -0
- package/lib/excel/render/keyboard/handleSheetArrowKey.js +45 -0
- package/lib/excel/render/scroll/Scroll.d.ts +7 -0
- package/lib/excel/render/selection/Position.d.ts +9 -0
- package/lib/excel/render/selection/SheetSelection.d.ts +29 -0
- package/lib/excel/render/selection/binarySearchSize.d.ts +8 -0
- package/lib/excel/render/selection/binarySearchSize.js +31 -0
- package/lib/excel/render/selection/buildHTML/buildBorder.d.ts +6 -0
- package/lib/excel/render/selection/buildHTML/buildBorder.js +40 -0
- package/lib/excel/render/selection/buildHTML/cellInfoToStyle.d.ts +6 -0
- package/lib/excel/render/selection/buildHTML/cellInfoToStyle.js +70 -0
- package/lib/excel/render/selection/buildHTML/rangeToHTML.d.ts +11 -0
- package/lib/excel/render/selection/buildHTML/rangeToHTML.js +68 -0
- package/lib/excel/render/selection/copySelection.d.ts +7 -0
- package/lib/excel/render/selection/copySelection.js +32 -0
- package/lib/excel/render/selection/drawAllSelection.d.ts +7 -0
- package/lib/excel/render/selection/drawAllSelection.js +21 -0
- package/lib/excel/render/selection/drawCellRanges.d.ts +10 -0
- package/lib/excel/render/selection/drawCellRanges.js +49 -0
- package/lib/excel/render/selection/drawCellSelection.d.ts +13 -0
- package/lib/excel/render/selection/drawCellSelection.js +81 -0
- package/lib/excel/render/selection/drawColSelection.d.ts +12 -0
- package/lib/excel/render/selection/drawColSelection.js +24 -0
- package/lib/excel/render/selection/drawRowSelection.d.ts +12 -0
- package/lib/excel/render/selection/drawRowSelection.js +25 -0
- package/lib/excel/render/selection/drawSelectionHeaderHighlight.d.ts +6 -0
- package/lib/excel/render/selection/drawSelectionHeaderHighlight.js +21 -0
- package/lib/excel/render/selection/findCell.d.ts +7 -0
- package/lib/excel/render/selection/findCell.js +19 -0
- package/lib/excel/render/selection/findInViewRange.d.ts +13 -0
- package/lib/excel/render/selection/findInViewRange.js +16 -0
- package/lib/excel/render/selection/findInViewRangeX.d.ts +10 -0
- package/lib/excel/render/selection/findInViewRangeX.js +46 -0
- package/lib/excel/render/selection/findInViewRangeY.d.ts +10 -0
- package/lib/excel/render/selection/findInViewRangeY.js +45 -0
- package/lib/excel/render/selection/getCellPosition.d.ts +43 -0
- package/lib/excel/render/selection/getCellPosition.js +137 -0
- package/lib/excel/render/selection/getRangePosition.d.ts +12 -0
- package/lib/excel/render/selection/getRangePosition.js +71 -0
- package/lib/excel/render/selection/hitTest.d.ts +41 -0
- package/lib/excel/render/selection/hitTest.js +50 -0
- package/lib/excel/render/selection/hitTestInRange.d.ts +7 -0
- package/lib/excel/render/selection/hitTestInRange.js +60 -0
- package/lib/excel/render/selection/updateCursor.d.ts +5 -0
- package/lib/excel/render/selection/updateCursor.js +26 -0
- package/lib/excel/render/sheetTab/SheetList.d.ts +43 -0
- package/lib/excel/render/sheetTab/SheetList.js +289 -0
- package/lib/excel/render/sheetTab/SheetTabBar.d.ts +8 -0
- package/lib/excel/render/sheetTab/SheetTabBar.js +24 -0
- package/lib/excel/render/sheetTab/StatusBar.d.ts +14 -0
- package/lib/excel/render/sheetTab/StatusBar.js +87 -0
- package/lib/excel/render/sheetTab/ZoomLevel.d.ts +6 -0
- package/lib/excel/render/sheetTab/ZoomLevel.js +43 -0
- package/lib/excel/render/sparkline/Numbers.d.ts +1 -0
- package/lib/excel/render/sparkline/applyColor.d.ts +7 -0
- package/lib/excel/render/sparkline/applyColor.js +40 -0
- package/lib/excel/render/sparkline/drawSparkline.d.ts +7 -0
- package/lib/excel/render/sparkline/drawSparkline.js +90 -0
- package/lib/excel/render/sparkline/renderColumn.d.ts +7 -0
- package/lib/excel/render/sparkline/renderColumn.js +51 -0
- package/lib/excel/render/sparkline/renderLine.d.ts +7 -0
- package/lib/excel/render/sparkline/renderLine.js +111 -0
- package/lib/excel/render/sparkline/renderSparkline.d.ts +9 -0
- package/lib/excel/render/sparkline/renderSparkline.js +63 -0
- package/lib/excel/render/sparkline/renderStacked.d.ts +7 -0
- package/lib/excel/render/sparkline/renderStacked.js +65 -0
- package/lib/excel/render/ui/Button.d.ts +7 -0
- package/lib/excel/render/ui/CheckBox.d.ts +16 -0
- package/lib/excel/render/ui/CheckBox.js +52 -0
- package/lib/excel/render/ui/CheckBoxList.d.ts +16 -0
- package/lib/excel/render/ui/CheckBoxList.js +113 -0
- package/lib/excel/render/ui/Divider.d.ts +3 -0
- package/lib/excel/render/ui/Divider.js +17 -0
- package/lib/excel/render/ui/Input.d.ts +11 -0
- package/lib/excel/render/ui/Input.js +52 -0
- package/lib/excel/render/ui/Radio.d.ts +11 -0
- package/lib/excel/render/ui/Radio.js +56 -0
- package/lib/excel/render/ui/Select.d.ts +13 -0
- package/lib/excel/render/ui/Select.js +33 -0
- package/lib/excel/render/widget/Widget.d.ts +29 -0
- package/lib/excel/sheet/BuiltInNumFmt.d.ts +5 -0
- package/lib/excel/sheet/BuiltInNumFmt.js +43 -0
- package/lib/excel/sheet/ColWidth.d.ts +19 -0
- package/lib/excel/sheet/ColWidth.js +36 -0
- package/lib/excel/sheet/ExcelRenderOptions.d.ts +149 -0
- package/lib/excel/sheet/RangeCache.d.ts +32 -0
- package/lib/excel/sheet/RangeCache.js +105 -0
- package/lib/excel/sheet/RowFilter.d.ts +3 -0
- package/lib/excel/sheet/Sheet.d.ts +280 -0
- package/lib/excel/sheet/Sheet.js +679 -0
- package/lib/excel/sheet/SheetBounding.d.ts +22 -0
- package/lib/excel/sheet/ViewRange.d.ts +52 -0
- package/lib/excel/sheet/__test__/applyDxf.test.d.ts +1 -0
- package/lib/excel/sheet/__test__/colWidth.test.d.ts +1 -0
- package/lib/excel/sheet/__test__/getViewRange.test.d.ts +1 -0
- package/lib/excel/sheet/applyConditionalFormat.d.ts +6 -0
- package/lib/excel/sheet/applyConditionalFormat.js +116 -0
- package/lib/excel/sheet/applyDxf.d.ts +6 -0
- package/lib/excel/sheet/applyDxf.js +24 -0
- package/lib/excel/sheet/applyTablePartsStyle.d.ts +6 -0
- package/lib/excel/sheet/applyTablePartsStyle.js +38 -0
- package/lib/excel/sheet/cfRule/__test__/aboveAverage.test.d.ts +1 -0
- package/lib/excel/sheet/cfRule/__test__/cellIs.test.d.ts +1 -0
- package/lib/excel/sheet/cfRule/__test__/top10.test.d.ts +1 -0
- package/lib/excel/sheet/cfRule/aboveAverage.d.ts +9 -0
- package/lib/excel/sheet/cfRule/aboveAverage.js +75 -0
- package/lib/excel/sheet/cfRule/applyCfRuleDxf.d.ts +7 -0
- package/lib/excel/sheet/cfRule/applyCfRuleDxf.js +17 -0
- package/lib/excel/sheet/cfRule/cellIs.d.ts +22 -0
- package/lib/excel/sheet/cfRule/cellIs.js +171 -0
- package/lib/excel/sheet/cfRule/colorScale.d.ts +8 -0
- package/lib/excel/sheet/cfRule/colorScale.js +145 -0
- package/lib/excel/sheet/cfRule/containsBlanks.d.ts +7 -0
- package/lib/excel/sheet/cfRule/containsBlanks.js +18 -0
- package/lib/excel/sheet/cfRule/containsErrors.d.ts +7 -0
- package/lib/excel/sheet/cfRule/containsErrors.js +19 -0
- package/lib/excel/sheet/cfRule/containsText.d.ts +7 -0
- package/lib/excel/sheet/cfRule/containsText.js +21 -0
- package/lib/excel/sheet/cfRule/dataBar.d.ts +8 -0
- package/lib/excel/sheet/cfRule/dataBar.js +236 -0
- package/lib/excel/sheet/cfRule/duplicateValues.d.ts +8 -0
- package/lib/excel/sheet/cfRule/duplicateValues.js +49 -0
- package/lib/excel/sheet/cfRule/getMinMax.d.ts +5 -0
- package/lib/excel/sheet/cfRule/getMinMax.js +41 -0
- package/lib/excel/sheet/cfRule/iconSet.d.ts +8 -0
- package/lib/excel/sheet/cfRule/iconSet.js +113 -0
- package/lib/excel/sheet/cfRule/notContainsText.d.ts +7 -0
- package/lib/excel/sheet/cfRule/notContainsText.js +21 -0
- package/lib/excel/sheet/cfRule/timePeriod.d.ts +9 -0
- package/lib/excel/sheet/cfRule/timePeriod.js +134 -0
- package/lib/excel/sheet/cfRule/top10.d.ts +9 -0
- package/lib/excel/sheet/cfRule/top10.js +77 -0
- package/lib/excel/sheet/cfRule/uniqueValues.d.ts +8 -0
- package/lib/excel/sheet/cfRule/uniqueValues.js +50 -0
- package/lib/excel/sheet/getCellAbsolutePosition.d.ts +10 -0
- package/lib/excel/sheet/getCellAbsolutePosition.js +45 -0
- package/lib/excel/sheet/getViewPointData.d.ts +24 -0
- package/lib/excel/sheet/getViewPointData.js +176 -0
- package/lib/excel/sheet/getViewRange.d.ts +68 -0
- package/lib/excel/sheet/getViewRange.js +199 -0
- package/lib/excel/sheet/table/__test__/calcTableRelativePosition.test.d.ts +1 -0
- package/lib/excel/sheet/table/applyTableStyle.d.ts +5 -0
- package/lib/excel/sheet/table/applyTableStyle.js +91 -0
- package/lib/excel/sheet/table/buildTableStyle.d.ts +13 -0
- package/lib/excel/sheet/table/buildTableStyle.js +72 -0
- package/lib/excel/sheet/table/calcTableRelativePosition.d.ts +11 -0
- package/lib/excel/sheet/table/calcTableRelativePosition.js +94 -0
- package/lib/excel/types/CT_Color.d.ts +9 -0
- package/lib/excel/types/CT_Color.js +24 -0
- package/lib/excel/types/CT_ExtensionList.d.ts +6 -0
- package/lib/excel/types/CT_ExtensionList.js +15 -0
- package/lib/excel/types/CT_Theme.d.ts +15 -0
- package/lib/excel/types/CellInfo.d.ts +57 -0
- package/lib/excel/types/CellValue.d.ts +14 -0
- package/lib/excel/types/DataBarDisplay.d.ts +58 -0
- package/lib/excel/types/ExcelFile.d.ts +12 -0
- package/lib/excel/types/Ext.d.ts +10 -0
- package/lib/excel/types/Ext.js +25 -0
- package/lib/excel/types/FontSize.d.ts +7 -0
- package/lib/excel/types/FontStyle.d.ts +16 -0
- package/lib/excel/types/IChartSpace.d.ts +7 -0
- package/lib/excel/types/IDataProvider.d.ts +158 -0
- package/lib/excel/types/IDrawing.d.ts +51 -0
- package/lib/excel/types/IRElt.d.ts +11 -0
- package/lib/excel/types/IRPrElt.d.ts +28 -0
- package/lib/excel/types/IRelationship.d.ts +10 -0
- package/lib/excel/types/ISheet.d.ts +14 -0
- package/lib/excel/types/ISheet.js +20 -0
- package/lib/excel/types/IWorkbook.d.ts +41 -0
- package/lib/excel/types/IWorksheet.d.ts +37 -0
- package/lib/excel/types/RangeRef.d.ts +21 -0
- package/lib/excel/types/RichText.d.ts +7 -0
- package/lib/excel/types/StringItem.d.ts +5 -0
- package/lib/excel/types/TableStyleDef.d.ts +8 -0
- package/lib/excel/types/X14CF/CT_Cfvo.d.ts +8 -0
- package/lib/excel/types/X14CF/CT_Cfvo.js +18 -0
- package/lib/excel/types/X14CF/ST_CfvoType.d.ts +1 -0
- package/lib/excel/types/X14CF/X14CfRule.d.ts +10 -0
- package/lib/excel/types/X14CF/X14CfRule.js +25 -0
- package/lib/excel/types/X14CF/X14ConditionalFormatting.d.ts +6 -0
- package/lib/excel/types/X14CF/X14ConditionalFormatting.js +15 -0
- package/lib/excel/types/X14CF/X14ConditionalFormattings.d.ts +6 -0
- package/lib/excel/types/X14CF/X14ConditionalFormattings.js +15 -0
- package/lib/excel/types/X14CF/X14DataBar.d.ts +18 -0
- package/lib/excel/types/X14CF/X14DataBar.js +58 -0
- package/lib/excel/types/X14CF/X14IconSet.d.ts +11 -0
- package/lib/excel/types/X14CF/X14IconSet.js +31 -0
- package/lib/excel/types/X14Sparkline/X14Sparkline.d.ts +6 -0
- package/lib/excel/types/X14Sparkline/X14Sparkline.js +14 -0
- package/lib/excel/types/X14Sparkline/X14SparklineGroup.d.ts +35 -0
- package/lib/excel/types/X14Sparkline/X14SparklineGroup.js +112 -0
- package/lib/excel/types/X14Sparkline/X14SparklineGroups.d.ts +6 -0
- package/lib/excel/types/X14Sparkline/X14SparklineGroups.js +15 -0
- package/lib/excel/types/X14Sparkline/x14:sparklines.d.ts +6 -0
- package/lib/excel/types/X14Sparkline/x14_sparklines.js +15 -0
- package/lib/excel/types/worksheet/CellData.d.ts +56 -0
- package/lib/excel/types/worksheet/CellData.js +43 -0
- package/lib/excel/types/worksheet/ICell.d.ts +39 -0
- package/lib/excel/types/worksheet/ICell.js +26 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +4 -0
- package/lib/openxml/Attributes.d.ts +33 -0
- package/lib/openxml/Attributes.js +7 -0
- package/lib/openxml/ChartTypes.d.ts +2971 -0
- package/lib/openxml/ChartTypes.js +5416 -0
- package/lib/openxml/ContentType.d.ts +5 -0
- package/lib/openxml/ContentType.js +1 -1
- package/lib/openxml/DMLTypes.d.ts +1836 -0
- package/lib/openxml/DMLTypes.js +2988 -0
- package/lib/openxml/ExcelTypes.d.ts +5147 -0
- package/lib/openxml/ExcelTypes.js +5617 -0
- package/lib/openxml/Style.js +3 -3
- package/lib/openxml/Theme.js +1 -1
- package/lib/openxml/Types.d.ts +2757 -95
- package/lib/openxml/colorNameMap.d.ts +6 -0
- package/lib/openxml/drawing/Blip.d.ts +1 -1
- package/lib/openxml/drawing/CustomGeom.js +1 -1
- package/lib/openxml/drawing/Drawing.js +1 -1
- package/lib/openxml/drawing/Geom.js +1 -1
- package/lib/openxml/drawing/ShapeProperties.d.ts +1 -0
- package/lib/openxml/drawing/ShapeProperties.js +7 -6
- package/lib/openxml/drawing/Transform.js +1 -1
- package/lib/openxml/drawing/svg/shapeToSVG.d.ts +11 -2
- package/lib/openxml/drawing/svg/shapeToSVG.js +6 -6
- package/lib/openxml/word/Body.js +2 -2
- package/lib/openxml/word/Header.js +2 -2
- package/lib/openxml/word/Hyperlink.d.ts +1 -1
- package/lib/openxml/word/Note.js +1 -1
- package/lib/openxml/word/Paragraph.js +2 -2
- package/lib/openxml/word/Run.js +1 -1
- package/lib/openxml/word/Section.js +1 -1
- package/lib/openxml/word/Tab.js +1 -1
- package/lib/openxml/word/WDocument.js +1 -1
- package/lib/openxml/word/wps/WPS.js +2 -2
- package/lib/openxml/word/wps/WPSStyle.js +4 -4
- package/lib/package/PackageParser.d.ts +4 -0
- package/lib/package/XMLPackageParser.d.ts +5 -1
- package/lib/package/ZipPackageParser.d.ts +5 -1
- package/lib/package/ZipPackageParser.js +30 -2
- package/lib/util/EventEmitter.d.ts +38 -0
- package/lib/util/EventEmitter.js +116 -0
- package/lib/util/H.d.ts +7 -0
- package/lib/util/H.js +73 -0
- package/lib/util/LRUCache.d.ts +17 -0
- package/lib/util/LinkedMap.d.ts +40 -0
- package/lib/util/__tests__/autoSpace.test.d.ts +1 -0
- package/lib/util/__tests__/color.test.d.ts +1 -0
- package/lib/util/__tests__/replaceVar.test.d.ts +2 -0
- package/lib/util/__tests__/xml.test.d.ts +1 -0
- package/lib/util/arrayBufferToString.d.ts +1 -0
- package/lib/util/arrayBufferToString.js +11 -0
- package/lib/util/base64ToArrayBuffer.d.ts +1 -0
- package/lib/util/base64ToArrayBuffer.js +14 -0
- package/lib/util/binarySearch.d.ts +5 -0
- package/lib/util/binarySearch.js +27 -0
- package/lib/util/color.d.ts +5 -0
- package/lib/util/color.js +102 -0
- package/lib/util/createObject.d.ts +0 -1
- package/lib/util/createObject.js +2 -11
- package/lib/util/debounce.d.ts +1 -0
- package/lib/util/debounce.js +19 -0
- package/lib/util/emuToPx.d.ts +4 -0
- package/lib/util/emuToPx.js +18 -0
- package/lib/util/escapeHTML.d.ts +4 -0
- package/lib/util/escapeHTML.js +17 -0
- package/lib/util/fileType.d.ts +1 -0
- package/lib/util/fileType.js +17 -0
- package/lib/util/getChineseDay.d.ts +4 -0
- package/lib/util/isFontAvailable.d.ts +5 -0
- package/lib/util/isFontAvailable.js +41 -0
- package/lib/util/isNumeric.d.ts +4 -0
- package/lib/util/isNumeric.js +12 -0
- package/lib/util/isObject.d.ts +6 -0
- package/lib/util/isObject.js +14 -0
- package/lib/util/isValidURL.d.ts +4 -0
- package/lib/util/isValidURL.js +22 -0
- package/lib/util/isVisible.d.ts +4 -0
- package/lib/util/joinPath.d.ts +6 -0
- package/lib/util/joinPath.js +31 -0
- package/lib/util/mergeRun.js +1 -1
- package/lib/util/number.d.ts +9 -0
- package/lib/util/number.js +28 -0
- package/lib/util/objectEqual.d.ts +4 -0
- package/lib/util/objectEqual.js +17 -0
- package/lib/util/onClickOutside.d.ts +4 -0
- package/lib/util/onClickOutside.js +17 -0
- package/lib/util/ptToPx.d.ts +4 -0
- package/lib/util/ptToPx.js +14 -0
- package/lib/util/px2pt.d.ts +1 -0
- package/lib/util/px2pt.js +9 -0
- package/lib/util/runWorker.d.ts +6 -0
- package/lib/util/saxes.d.ts +638 -0
- package/lib/util/saxes.js +2081 -0
- package/lib/util/stringToArray.d.ts +10 -0
- package/lib/util/stringToArray.js +88 -0
- package/lib/util/stripNumber.d.ts +4 -0
- package/lib/util/stripNumber.js +18 -0
- package/lib/util/throttle.d.ts +5 -0
- package/lib/util/xml.d.ts +44 -0
- package/lib/util/xml.js +86 -0
- package/lib/util/xmlchars/xml/1.0/ed4.d.ts +31 -0
- package/lib/util/xmlchars/xml/1.0/ed5.d.ts +51 -0
- package/lib/util/xmlchars/xml/1.0/ed5.js +100 -0
- package/lib/util/xmlchars/xml/1.1/ed2.d.ts +73 -0
- package/lib/util/xmlchars/xml/1.1/ed2.js +25 -0
- package/lib/util/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
- package/lib/util/xmlchars/xmlns/1.0/ed3.js +65 -0
- package/lib/word/parse/Footnotes.d.ts +3 -0
- package/lib/word/parse/Footnotes.js +29 -0
- package/lib/word/parse/modifyColor.js +110 -0
- package/lib/word/parse/parseBorder.d.ts +13 -0
- package/lib/word/parse/parseBorder.js +64 -0
- package/lib/word/parse/parseCellMargin.d.ts +2 -0
- package/lib/word/parse/parseChildColor.d.ts +4 -0
- package/lib/word/parse/parseChildColor.js +70 -0
- package/lib/word/parse/parseColor.d.ts +26 -0
- package/lib/word/parse/parseColor.js +133 -0
- package/lib/word/parse/parseEndnotes.d.ts +3 -0
- package/lib/word/parse/parseEndnotes.js +29 -0
- package/lib/word/parse/parseFont.d.ts +7 -0
- package/lib/word/parse/parseInd.d.ts +5 -0
- package/lib/word/parse/parseInsideBorders.d.ts +9 -0
- package/lib/word/parse/parsePr.d.ts +11 -0
- package/lib/word/parse/parsePr.js +428 -0
- package/lib/word/parse/parseShape.d.ts +10 -0
- package/lib/word/parse/parseShape.js +247 -0
- package/lib/word/parse/parseSpacing.d.ts +7 -0
- package/lib/word/parse/parseTable.d.ts +3 -0
- package/lib/word/parse/parseTable.js +66 -0
- package/lib/word/parse/parseTablePr.d.ts +3 -0
- package/lib/word/parse/parseTablePr.js +189 -0
- package/lib/word/parse/parseTc.d.ts +10 -0
- package/lib/word/parse/parseTc.js +68 -0
- package/lib/word/parse/parseTcPr.d.ts +5 -0
- package/lib/word/parse/parseTcPr.js +104 -0
- package/lib/word/parse/parseTextDirection.d.ts +2 -0
- package/lib/word/parse/parseTr.d.ts +6 -0
- package/lib/word/parse/parseTr.js +53 -0
- package/lib/word/parse/parseTrHeight.d.ts +2 -0
- package/lib/word/parse/parseTrPr.d.ts +3 -0
- package/lib/word/parse/parseTrPr.js +63 -0
- package/lib/word/render/fixAbsolutePosition.d.ts +8 -0
- package/lib/word/render/renderBody.d.ts +10 -0
- package/lib/word/render/renderBody.js +211 -0
- package/lib/word/render/renderBookmark.d.ts +6 -0
- package/lib/word/render/renderBookmark.js +21 -0
- package/lib/word/render/renderBr.d.ts +8 -0
- package/lib/word/render/renderBr.js +20 -0
- package/lib/word/render/renderCustGeom.d.ts +4 -0
- package/lib/word/render/renderCustGeom.js +14 -0
- package/lib/word/render/renderDocument.d.ts +7 -0
- package/lib/word/render/renderDocument.js +18 -0
- package/lib/word/render/renderDrawing.d.ts +9 -0
- package/lib/word/render/renderDrawing.js +259 -0
- package/lib/word/render/renderFont.d.ts +5 -0
- package/lib/word/render/renderFont.js +43 -0
- package/lib/word/render/renderGeom.d.ts +4 -0
- package/lib/word/render/renderGeom.js +18 -0
- package/lib/word/render/renderHeader.d.ts +6 -0
- package/lib/word/render/renderHeader.js +44 -0
- package/lib/word/render/renderHyperLink.d.ts +7 -0
- package/lib/word/render/renderHyperLink.js +48 -0
- package/lib/word/render/renderInlineText.d.ts +6 -0
- package/lib/word/render/renderInlineText.js +43 -0
- package/lib/word/render/renderInstrText.d.ts +8 -0
- package/lib/word/render/renderInstrText.js +44 -0
- package/lib/word/render/renderMath.d.ts +3 -0
- package/lib/word/render/renderMath.js +11 -0
- package/lib/word/render/renderNoBreakHyphen.js +13 -0
- package/lib/word/render/renderNotes.d.ts +5 -0
- package/lib/word/render/renderNotes.js +81 -0
- package/lib/word/render/renderNumbering.d.ts +7 -0
- package/lib/word/render/renderNumbering.js +163 -0
- package/lib/word/render/renderParagraph.d.ts +7 -0
- package/lib/word/render/renderParagraph.js +101 -0
- package/lib/word/render/renderPict.d.ts +6 -0
- package/lib/word/render/renderRuby.d.ts +6 -0
- package/lib/word/render/renderRuby.js +57 -0
- package/lib/word/render/renderRun.d.ts +16 -0
- package/lib/word/render/renderRun.js +151 -0
- package/lib/word/render/renderSection.d.ts +7 -0
- package/lib/word/render/renderSection.js +114 -0
- package/lib/word/render/renderSeparator.js +13 -0
- package/lib/word/render/renderSoftHyphen.js +13 -0
- package/lib/word/render/renderStyle.d.ts +13 -0
- package/lib/word/render/renderStyle.js +200 -0
- package/lib/word/render/renderSym.d.ts +3 -0
- package/lib/word/render/renderSym.js +14 -0
- package/lib/word/render/renderTab.d.ts +8 -0
- package/lib/word/render/renderTab.js +27 -0
- package/lib/word/render/renderTable.d.ts +6 -0
- package/lib/word/render/renderTable.js +193 -0
- package/lib/word/render/setElementStyle.d.ts +6 -0
- package/lib/word/render/setElementStyle.js +30 -0
- package/package.json +36 -18
- package/esm/parse/Footnotes.d.ts +0 -3
- package/esm/parse/Footnotes.js +0 -25
- package/esm/parse/colorNameMap.d.ts +0 -6
- package/esm/parse/modifyColor.js +0 -106
- package/esm/parse/parseBorder.d.ts +0 -13
- package/esm/parse/parseBorder.js +0 -59
- package/esm/parse/parseCellMargin.d.ts +0 -2
- package/esm/parse/parseChildColor.d.ts +0 -5
- package/esm/parse/parseChildColor.js +0 -66
- package/esm/parse/parseColor.d.ts +0 -26
- package/esm/parse/parseColor.js +0 -126
- package/esm/parse/parseEndnotes.d.ts +0 -3
- package/esm/parse/parseEndnotes.js +0 -25
- package/esm/parse/parseFont.d.ts +0 -7
- package/esm/parse/parseInd.d.ts +0 -5
- package/esm/parse/parseInsideBorders.d.ts +0 -9
- package/esm/parse/parsePr.d.ts +0 -11
- package/esm/parse/parsePr.js +0 -422
- package/esm/parse/parseShape.d.ts +0 -10
- package/esm/parse/parseShape.js +0 -239
- package/esm/parse/parseSpacing.d.ts +0 -7
- package/esm/parse/parseTable.d.ts +0 -3
- package/esm/parse/parseTable.js +0 -62
- package/esm/parse/parseTablePr.d.ts +0 -3
- package/esm/parse/parseTablePr.js +0 -185
- package/esm/parse/parseTc.d.ts +0 -10
- package/esm/parse/parseTc.js +0 -64
- package/esm/parse/parseTcPr.d.ts +0 -5
- package/esm/parse/parseTcPr.js +0 -99
- package/esm/parse/parseTextDirection.d.ts +0 -2
- package/esm/parse/parseTr.d.ts +0 -6
- package/esm/parse/parseTr.js +0 -49
- package/esm/parse/parseTrHeight.d.ts +0 -2
- package/esm/parse/parseTrPr.d.ts +0 -3
- package/esm/parse/parseTrPr.js +0 -59
- package/esm/render/fixAbsolutePosition.d.ts +0 -8
- package/esm/render/renderBody.d.ts +0 -10
- package/esm/render/renderBody.js +0 -207
- package/esm/render/renderBookmark.d.ts +0 -6
- package/esm/render/renderBookmark.js +0 -17
- package/esm/render/renderBr.d.ts +0 -8
- package/esm/render/renderBr.js +0 -16
- package/esm/render/renderCustGeom.d.ts +0 -4
- package/esm/render/renderCustGeom.js +0 -10
- package/esm/render/renderDocument.d.ts +0 -7
- package/esm/render/renderDocument.js +0 -14
- package/esm/render/renderDrawing.d.ts +0 -9
- package/esm/render/renderDrawing.js +0 -255
- package/esm/render/renderFont.d.ts +0 -5
- package/esm/render/renderFont.js +0 -39
- package/esm/render/renderGeom.d.ts +0 -4
- package/esm/render/renderGeom.js +0 -14
- package/esm/render/renderHeader.d.ts +0 -6
- package/esm/render/renderHeader.js +0 -40
- package/esm/render/renderHyperLink.d.ts +0 -7
- package/esm/render/renderHyperLink.js +0 -44
- package/esm/render/renderInlineText.d.ts +0 -6
- package/esm/render/renderInlineText.js +0 -39
- package/esm/render/renderInstrText.d.ts +0 -8
- package/esm/render/renderInstrText.js +0 -40
- package/esm/render/renderMath.d.ts +0 -3
- package/esm/render/renderMath.js +0 -7
- package/esm/render/renderNoBreakHyphen.js +0 -9
- package/esm/render/renderNotes.d.ts +0 -5
- package/esm/render/renderNotes.js +0 -77
- package/esm/render/renderNumbering.d.ts +0 -7
- package/esm/render/renderNumbering.js +0 -159
- package/esm/render/renderParagraph.d.ts +0 -7
- package/esm/render/renderParagraph.js +0 -97
- package/esm/render/renderPict.d.ts +0 -6
- package/esm/render/renderRuby.d.ts +0 -6
- package/esm/render/renderRuby.js +0 -53
- package/esm/render/renderRun.d.ts +0 -16
- package/esm/render/renderRun.js +0 -146
- package/esm/render/renderSection.d.ts +0 -7
- package/esm/render/renderSection.js +0 -110
- package/esm/render/renderSeparator.js +0 -9
- package/esm/render/renderSoftHyphen.js +0 -9
- package/esm/render/renderStyle.d.ts +0 -13
- package/esm/render/renderStyle.js +0 -195
- package/esm/render/renderSym.d.ts +0 -3
- package/esm/render/renderSym.js +0 -10
- package/esm/render/renderTab.d.ts +0 -8
- package/esm/render/renderTab.js +0 -23
- package/esm/render/renderTable.d.ts +0 -6
- package/esm/render/renderTable.js +0 -189
- package/esm/render/setElementStyle.d.ts +0 -6
- package/esm/render/setElementStyle.js +0 -26
- package/lib/parse/Footnotes.d.ts +0 -3
- package/lib/parse/Footnotes.js +0 -29
- package/lib/parse/colorNameMap.d.ts +0 -6
- package/lib/parse/modifyColor.js +0 -110
- package/lib/parse/parseBorder.d.ts +0 -13
- package/lib/parse/parseBorder.js +0 -64
- package/lib/parse/parseCellMargin.d.ts +0 -2
- package/lib/parse/parseChildColor.d.ts +0 -5
- package/lib/parse/parseChildColor.js +0 -70
- package/lib/parse/parseColor.d.ts +0 -26
- package/lib/parse/parseColor.js +0 -133
- package/lib/parse/parseEndnotes.d.ts +0 -3
- package/lib/parse/parseEndnotes.js +0 -29
- package/lib/parse/parseFont.d.ts +0 -7
- package/lib/parse/parseInd.d.ts +0 -5
- package/lib/parse/parseInsideBorders.d.ts +0 -9
- package/lib/parse/parsePr.d.ts +0 -11
- package/lib/parse/parsePr.js +0 -426
- package/lib/parse/parseShape.d.ts +0 -10
- package/lib/parse/parseShape.js +0 -247
- package/lib/parse/parseSpacing.d.ts +0 -7
- package/lib/parse/parseTable.d.ts +0 -3
- package/lib/parse/parseTable.js +0 -66
- package/lib/parse/parseTablePr.d.ts +0 -3
- package/lib/parse/parseTablePr.js +0 -189
- package/lib/parse/parseTc.d.ts +0 -10
- package/lib/parse/parseTc.js +0 -68
- package/lib/parse/parseTcPr.d.ts +0 -5
- package/lib/parse/parseTcPr.js +0 -104
- package/lib/parse/parseTextDirection.d.ts +0 -2
- package/lib/parse/parseTr.d.ts +0 -6
- package/lib/parse/parseTr.js +0 -53
- package/lib/parse/parseTrHeight.d.ts +0 -2
- package/lib/parse/parseTrPr.d.ts +0 -3
- package/lib/parse/parseTrPr.js +0 -63
- package/lib/render/fixAbsolutePosition.d.ts +0 -8
- package/lib/render/renderBody.d.ts +0 -10
- package/lib/render/renderBody.js +0 -211
- package/lib/render/renderBookmark.d.ts +0 -6
- package/lib/render/renderBookmark.js +0 -21
- package/lib/render/renderBr.d.ts +0 -8
- package/lib/render/renderBr.js +0 -20
- package/lib/render/renderCustGeom.d.ts +0 -4
- package/lib/render/renderCustGeom.js +0 -14
- package/lib/render/renderDocument.d.ts +0 -7
- package/lib/render/renderDocument.js +0 -18
- package/lib/render/renderDrawing.d.ts +0 -9
- package/lib/render/renderDrawing.js +0 -259
- package/lib/render/renderFont.d.ts +0 -5
- package/lib/render/renderFont.js +0 -43
- package/lib/render/renderGeom.d.ts +0 -4
- package/lib/render/renderGeom.js +0 -18
- package/lib/render/renderHeader.d.ts +0 -6
- package/lib/render/renderHeader.js +0 -44
- package/lib/render/renderHyperLink.d.ts +0 -7
- package/lib/render/renderHyperLink.js +0 -48
- package/lib/render/renderInlineText.d.ts +0 -6
- package/lib/render/renderInlineText.js +0 -43
- package/lib/render/renderInstrText.d.ts +0 -8
- package/lib/render/renderInstrText.js +0 -44
- package/lib/render/renderMath.d.ts +0 -3
- package/lib/render/renderMath.js +0 -11
- package/lib/render/renderNoBreakHyphen.js +0 -13
- package/lib/render/renderNotes.d.ts +0 -5
- package/lib/render/renderNotes.js +0 -81
- package/lib/render/renderNumbering.d.ts +0 -7
- package/lib/render/renderNumbering.js +0 -163
- package/lib/render/renderParagraph.d.ts +0 -7
- package/lib/render/renderParagraph.js +0 -101
- package/lib/render/renderPict.d.ts +0 -6
- package/lib/render/renderRuby.d.ts +0 -6
- package/lib/render/renderRuby.js +0 -57
- package/lib/render/renderRun.d.ts +0 -16
- package/lib/render/renderRun.js +0 -151
- package/lib/render/renderSection.d.ts +0 -7
- package/lib/render/renderSection.js +0 -114
- package/lib/render/renderSeparator.js +0 -13
- package/lib/render/renderSoftHyphen.js +0 -13
- package/lib/render/renderStyle.d.ts +0 -13
- package/lib/render/renderStyle.js +0 -200
- package/lib/render/renderSym.d.ts +0 -3
- package/lib/render/renderSym.js +0 -14
- package/lib/render/renderTab.d.ts +0 -8
- package/lib/render/renderTab.js +0 -27
- package/lib/render/renderTable.d.ts +0 -6
- package/lib/render/renderTable.js +0 -193
- package/lib/render/setElementStyle.d.ts +0 -6
- package/lib/render/setElementStyle.js +0 -30
- /package/esm/{parse → openxml}/colorNameMap.js +0 -0
- /package/esm/{parse → word/parse}/jcToTextAlign.d.ts +0 -0
- /package/esm/{parse → word/parse}/jcToTextAlign.js +0 -0
- /package/esm/{parse → word/parse}/mergeSdt.d.ts +0 -0
- /package/esm/{parse → word/parse}/mergeSdt.js +0 -0
- /package/esm/{parse → word/parse}/modifyColor.d.ts +0 -0
- /package/esm/{parse → word/parse}/parseCellMargin.js +0 -0
- /package/esm/{parse → word/parse}/parseFont.js +0 -0
- /package/esm/{parse → word/parse}/parseInd.js +0 -0
- /package/esm/{parse → word/parse}/parseInsideBorders.js +0 -0
- /package/esm/{parse → word/parse}/parseRelationship.d.ts +0 -0
- /package/esm/{parse → word/parse}/parseRelationship.js +0 -0
- /package/esm/{parse → word/parse}/parseSdt.d.ts +0 -0
- /package/esm/{parse → word/parse}/parseSize.d.ts +0 -0
- /package/esm/{parse → word/parse}/parseSize.js +0 -0
- /package/esm/{parse → word/parse}/parseSpacing.js +0 -0
- /package/esm/{parse → word/parse}/parseTblWidth.d.ts +0 -0
- /package/esm/{parse → word/parse}/parseTblWidth.js +0 -0
- /package/esm/{parse → word/parse}/parseTextDirection.js +0 -0
- /package/esm/{parse → word/parse}/parseTrHeight.js +0 -0
- /package/esm/{render → word/render}/renderNoBreakHyphen.d.ts +0 -0
- /package/esm/{render → word/render}/renderPict.js +0 -0
- /package/esm/{render → word/render}/renderSeparator.d.ts +0 -0
- /package/esm/{render → word/render}/renderSoftHyphen.d.ts +0 -0
- /package/esm/{render → word/render}/zindex.d.ts +0 -0
- /package/lib/{parse → openxml}/colorNameMap.js +0 -0
- /package/lib/{parse → word/parse}/jcToTextAlign.d.ts +0 -0
- /package/lib/{parse → word/parse}/jcToTextAlign.js +0 -0
- /package/lib/{parse → word/parse}/mergeSdt.d.ts +0 -0
- /package/lib/{parse → word/parse}/mergeSdt.js +0 -0
- /package/lib/{parse → word/parse}/modifyColor.d.ts +0 -0
- /package/lib/{parse → word/parse}/parseCellMargin.js +0 -0
- /package/lib/{parse → word/parse}/parseFont.js +0 -0
- /package/lib/{parse → word/parse}/parseInd.js +0 -0
- /package/lib/{parse → word/parse}/parseInsideBorders.js +0 -0
- /package/lib/{parse → word/parse}/parseRelationship.d.ts +0 -0
- /package/lib/{parse → word/parse}/parseRelationship.js +0 -0
- /package/lib/{parse → word/parse}/parseSdt.d.ts +0 -0
- /package/lib/{parse → word/parse}/parseSize.d.ts +0 -0
- /package/lib/{parse → word/parse}/parseSize.js +0 -0
- /package/lib/{parse → word/parse}/parseSpacing.js +0 -0
- /package/lib/{parse → word/parse}/parseTblWidth.d.ts +0 -0
- /package/lib/{parse → word/parse}/parseTblWidth.js +0 -0
- /package/lib/{parse → word/parse}/parseTextDirection.js +0 -0
- /package/lib/{parse → word/parse}/parseTrHeight.js +0 -0
- /package/lib/{render → word/render}/renderNoBreakHyphen.d.ts +0 -0
- /package/lib/{render → word/render}/renderPict.js +0 -0
- /package/lib/{render → word/render}/renderSeparator.d.ts +0 -0
- /package/lib/{render → word/render}/renderSoftHyphen.d.ts +0 -0
- /package/lib/{render → word/render}/zindex.d.ts +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 将数字转换为大写的中文金额
|
|
3
|
+
*/
|
|
4
|
+
function amountInWords(n) {
|
|
5
|
+
var _a;
|
|
6
|
+
var maxLen = 14;
|
|
7
|
+
if (((_a = n.toString().split('.')[0]) === null || _a === void 0 ? void 0 : _a.length) > maxLen) {
|
|
8
|
+
return "\u6700\u5927\u6570\u989D\u53EA\u652F\u6301\u5230\u5146(\u65E2\u5C0F\u6570\u70B9\u524D".concat(maxLen, "\u4F4D)");
|
|
9
|
+
}
|
|
10
|
+
var fraction = ['角', '分'];
|
|
11
|
+
var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
12
|
+
var unit = [
|
|
13
|
+
['元', '万', '亿', '兆'],
|
|
14
|
+
['', '拾', '佰', '仟']
|
|
15
|
+
];
|
|
16
|
+
var head = n < 0 ? '欠' : '';
|
|
17
|
+
n = Math.abs(n);
|
|
18
|
+
var s = '';
|
|
19
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
20
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
21
|
+
}
|
|
22
|
+
s = s || '整';
|
|
23
|
+
n = Math.floor(n);
|
|
24
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
25
|
+
var p = '';
|
|
26
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
27
|
+
p = digit[n % 10] + unit[1][j] + p;
|
|
28
|
+
n = Math.floor(n / 10);
|
|
29
|
+
}
|
|
30
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
31
|
+
}
|
|
32
|
+
return (head +
|
|
33
|
+
s
|
|
34
|
+
.replace(/(零.)*零元/, '元')
|
|
35
|
+
.replace(/(零.)+/g, '零')
|
|
36
|
+
.replace(/^整$/, '零元整'));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { amountInWords };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { amountInWords } from './numfmt/amountInWords.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 应对 numfmt 不识别的情况
|
|
5
|
+
*/
|
|
6
|
+
function numfmtExtend(formatCode) {
|
|
7
|
+
var numfmtInstance = function (val) {
|
|
8
|
+
switch (formatCode) {
|
|
9
|
+
case '[DBNum2][$RMB]General;[Red][DBNum2][$RMB]General':
|
|
10
|
+
var num = parseFloat(val);
|
|
11
|
+
if (isNaN(num)) {
|
|
12
|
+
return val;
|
|
13
|
+
}
|
|
14
|
+
return amountInWords(parseFloat(num.toFixed(2)));
|
|
15
|
+
default:
|
|
16
|
+
console.warn('numfmtExtend: formatCode not found', formatCode);
|
|
17
|
+
return val;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
numfmtInstance.isDate = function () {
|
|
21
|
+
return false;
|
|
22
|
+
};
|
|
23
|
+
numfmtInstance.info = {
|
|
24
|
+
color: 0
|
|
25
|
+
};
|
|
26
|
+
return numfmtInstance;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { numfmtExtend };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 所有对数据的改动都通过这里
|
|
3
|
+
*/
|
|
4
|
+
export interface ICommand {
|
|
5
|
+
execute: () => void;
|
|
6
|
+
undo: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class ChangeRowHeightCommand implements ICommand {
|
|
9
|
+
type: 'changeRowHeight';
|
|
10
|
+
sheetIndex: string;
|
|
11
|
+
row: number;
|
|
12
|
+
height: number;
|
|
13
|
+
oldHeight: number;
|
|
14
|
+
constructor(sheetIndex: string, row: number, height: number, oldHeight: number);
|
|
15
|
+
execute(): void;
|
|
16
|
+
undo(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class CommandManager {
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Workbook } from '../../Workbook';
|
|
2
|
+
import { HitTestResult } from '../../render/selection/hitTest';
|
|
3
|
+
import { Sheet } from '../../sheet/Sheet';
|
|
4
|
+
import { CellData } from '../../types/worksheet/CellData';
|
|
5
|
+
/**
|
|
6
|
+
* 单元格编辑
|
|
7
|
+
*/
|
|
8
|
+
export declare class CellEditor {
|
|
9
|
+
/**
|
|
10
|
+
* 编辑器容器
|
|
11
|
+
*/
|
|
12
|
+
editorContainer: HTMLElement;
|
|
13
|
+
workbook: Workbook;
|
|
14
|
+
hitTestResult: HitTestResult;
|
|
15
|
+
value?: string;
|
|
16
|
+
initValue?: string;
|
|
17
|
+
cellData: CellData | undefined;
|
|
18
|
+
sheet: Sheet;
|
|
19
|
+
row: number;
|
|
20
|
+
col: number;
|
|
21
|
+
constructor(dataContainer: HTMLElement, workbook: Workbook, hitTest: HitTestResult);
|
|
22
|
+
handleInput(value: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* 关闭编辑器
|
|
25
|
+
*/
|
|
26
|
+
close(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { onClickOutside } from '../../../util/onClickOutside.js';
|
|
2
|
+
import { Input } from '../../render/ui/Input.js';
|
|
3
|
+
import { updateValue } from '../../types/worksheet/CellData.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 单元格编辑
|
|
7
|
+
*/
|
|
8
|
+
var CellEditor = /** @class */ (function () {
|
|
9
|
+
function CellEditor(dataContainer, workbook, hitTest) {
|
|
10
|
+
var _this = this;
|
|
11
|
+
var _a, _b;
|
|
12
|
+
this.workbook = workbook;
|
|
13
|
+
this.editorContainer = document.createElement('div');
|
|
14
|
+
this.editorContainer.className = 'excel-cell-editor';
|
|
15
|
+
dataContainer.appendChild(this.editorContainer);
|
|
16
|
+
this.hitTestResult = hitTest;
|
|
17
|
+
var activeSheet = this.workbook.getActiveSheet();
|
|
18
|
+
this.sheet = activeSheet;
|
|
19
|
+
this.row = hitTest.startRow;
|
|
20
|
+
this.col = hitTest.startCol;
|
|
21
|
+
var cellInfo = activeSheet.getCellInfo(hitTest.startRow, hitTest.startCol);
|
|
22
|
+
this.cellData = activeSheet.getCellData(hitTest.startRow, hitTest.startCol);
|
|
23
|
+
var _c = activeSheet.getCellDisplaySize((_a = hitTest.realRow) !== null && _a !== void 0 ? _a : hitTest.startRow, (_b = hitTest.realCol) !== null && _b !== void 0 ? _b : hitTest.startCol, hitTest.x, hitTest.y), x = _c.x, y = _c.y, width = _c.width, height = _c.height;
|
|
24
|
+
var _d = activeSheet.getRowColSize(), rowHeaderWidth = _d.rowHeaderWidth, colHeaderHeight = _d.colHeaderHeight;
|
|
25
|
+
var padding = 1;
|
|
26
|
+
x = x - rowHeaderWidth + padding;
|
|
27
|
+
y = y - colHeaderHeight + padding;
|
|
28
|
+
width = width - padding * 2;
|
|
29
|
+
height = height - padding * 2;
|
|
30
|
+
this.initValue = cellInfo.value;
|
|
31
|
+
this.value = cellInfo.value;
|
|
32
|
+
var input = new Input(this.editorContainer, '', cellInfo.value, function (value) {
|
|
33
|
+
_this.handleInput(value);
|
|
34
|
+
}, 'borderLess');
|
|
35
|
+
input.force();
|
|
36
|
+
this.editorContainer.style.left = "".concat(x, "px");
|
|
37
|
+
this.editorContainer.style.top = "".concat(y, "px");
|
|
38
|
+
this.editorContainer.style.width = "".concat(width, "px");
|
|
39
|
+
this.editorContainer.style.height = "".concat(height, "px");
|
|
40
|
+
onClickOutside(this.editorContainer, function () {
|
|
41
|
+
_this.close();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
CellEditor.prototype.handleInput = function (value) {
|
|
45
|
+
this.value = value;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* 关闭编辑器
|
|
49
|
+
*/
|
|
50
|
+
CellEditor.prototype.close = function () {
|
|
51
|
+
this.editorContainer.remove();
|
|
52
|
+
if (this.value !== undefined && this.value !== this.initValue) {
|
|
53
|
+
this.sheet.updateCellValue(this.row, this.col, updateValue(this.value, this.cellData));
|
|
54
|
+
this.workbook.uiEvent.emit('UPDATE_RANGE', this.sheet.getIndex(), {
|
|
55
|
+
startRow: this.row,
|
|
56
|
+
startCol: this.col,
|
|
57
|
+
endRow: this.row,
|
|
58
|
+
endCol: this.col
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
return CellEditor;
|
|
63
|
+
}());
|
|
64
|
+
|
|
65
|
+
export { CellEditor };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { base64ToArrayBuffer } from '../../../util/base64ToArrayBuffer.js';
|
|
2
|
+
|
|
3
|
+
/** generated by convertFileToBase64.ts, do not edit */
|
|
4
|
+
var emptyXLSX = base64ToArrayBuffer('UEsDBBQABgAIAAAAIQCkU8XPTgEAAAgEAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAlg8AAHhsL3RoZW1lL3RoZW1lMS54bWxQSwECLQAUAAYACAAAACEAyRVcrxYCAADLAwAAGAAAAAAAAAAAAAAAAACRFwAAeGwvd29ya3NoZWV0cy9zaGVldDEueG1sUEsBAi0AFAAGAAgAAAAhAO2JpPahAQAAGgMAABAAAAAAAAAAAAAAAAAA3RkAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAAbRx1j8BAABdAgAAEQAAAAAAAAAAAAAAAAC0HAAAZG9jUHJvcHMvY29yZS54bWxQSwUGAAAAAAkACQA+AgAAKh8AAAAA');
|
|
5
|
+
|
|
6
|
+
export { emptyXLSX };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { joinPath } from '../../../../util/joinPath.js';
|
|
2
|
+
|
|
3
|
+
function getRelationPath(drawingPath, relationships, rId) {
|
|
4
|
+
var relationship = relationships.find(function (relationship) { return relationship.id === rId; });
|
|
5
|
+
if (relationship) {
|
|
6
|
+
return joinPath(drawingPath, '..', relationship.target);
|
|
7
|
+
}
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { getRelationPath };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageParser } from '../../../../package/PackageParser';
|
|
2
|
+
import { XMLNode } from '../../../../util/xml';
|
|
3
|
+
import { IAnchorCommon } from '../../../types/IDrawing';
|
|
4
|
+
import { IRelationship } from '../../../types/IRelationship';
|
|
5
|
+
import { IWorkbook } from '../../../types/IWorkbook';
|
|
6
|
+
/**
|
|
7
|
+
* 解析一些 anchor 的通用属性,这些属性大多需要读取另一个文件,所以直接在这里解析简化后续操作
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseAnchorCommon(workbook: IWorkbook, parser: PackageParser, drawingPath: string, drawingNode: XMLNode, relationships: IRelationship[], anchorCommon: IAnchorCommon, element: Element): Promise<void>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { __awaiter, __generator, __values } from 'tslib';
|
|
2
|
+
import { getNodeByTagName, xml2json } from '../../../../util/xml.js';
|
|
3
|
+
import { getRelationPath } from './getRelationPath.js';
|
|
4
|
+
import { parseChart } from './parseChart.js';
|
|
5
|
+
import { parsePic } from './parsePic.js';
|
|
6
|
+
import { parseShape } from './parseShape.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 解析一些 anchor 的通用属性,这些属性大多需要读取另一个文件,所以直接在这里解析简化后续操作
|
|
10
|
+
*/
|
|
11
|
+
function parseAnchorCommon(workbook, parser, drawingPath, drawingNode, relationships, anchorCommon, element) {
|
|
12
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13
|
+
var _a, _b, child, tag, _c, chartNode, chartPath, chartXML, e_1_1;
|
|
14
|
+
var e_1, _d;
|
|
15
|
+
return __generator(this, function (_e) {
|
|
16
|
+
switch (_e.label) {
|
|
17
|
+
case 0:
|
|
18
|
+
_e.trys.push([0, 11, 12, 13]);
|
|
19
|
+
_a = __values(drawingNode.children || []), _b = _a.next();
|
|
20
|
+
_e.label = 1;
|
|
21
|
+
case 1:
|
|
22
|
+
if (!!_b.done) return [3 /*break*/, 10];
|
|
23
|
+
child = _b.value;
|
|
24
|
+
tag = child.tag;
|
|
25
|
+
_c = tag;
|
|
26
|
+
switch (_c) {
|
|
27
|
+
case 'xdr:pic': return [3 /*break*/, 2];
|
|
28
|
+
case 'xdr:sp': return [3 /*break*/, 3];
|
|
29
|
+
case 'xdr:from': return [3 /*break*/, 4];
|
|
30
|
+
case 'xdr:to': return [3 /*break*/, 4];
|
|
31
|
+
case 'xdr:clientData': return [3 /*break*/, 4];
|
|
32
|
+
case 'xdr:graphicFrame': return [3 /*break*/, 5];
|
|
33
|
+
}
|
|
34
|
+
return [3 /*break*/, 8];
|
|
35
|
+
case 2:
|
|
36
|
+
anchorCommon.pic = parsePic(child, relationships, parser, drawingPath);
|
|
37
|
+
return [3 /*break*/, 9];
|
|
38
|
+
case 3:
|
|
39
|
+
anchorCommon.shape = parseShape(workbook, child, element);
|
|
40
|
+
return [3 /*break*/, 9];
|
|
41
|
+
case 4:
|
|
42
|
+
// 这些前面已经自动解析了
|
|
43
|
+
return [3 /*break*/, 9];
|
|
44
|
+
case 5:
|
|
45
|
+
chartNode = getNodeByTagName(child, 'c:chart', true);
|
|
46
|
+
if (!chartNode) return [3 /*break*/, 7];
|
|
47
|
+
chartPath = getRelationPath(drawingPath, relationships, chartNode.attrs['r:id']);
|
|
48
|
+
if (!chartPath) return [3 /*break*/, 7];
|
|
49
|
+
return [4 /*yield*/, xml2json(parser.getString(chartPath))];
|
|
50
|
+
case 6:
|
|
51
|
+
chartXML = _e.sent();
|
|
52
|
+
anchorCommon.chartSpace = parseChart(chartXML);
|
|
53
|
+
_e.label = 7;
|
|
54
|
+
case 7: return [3 /*break*/, 9];
|
|
55
|
+
case 8:
|
|
56
|
+
console.warn("unhandled tag: ".concat(tag));
|
|
57
|
+
_e.label = 9;
|
|
58
|
+
case 9:
|
|
59
|
+
_b = _a.next();
|
|
60
|
+
return [3 /*break*/, 1];
|
|
61
|
+
case 10: return [3 /*break*/, 13];
|
|
62
|
+
case 11:
|
|
63
|
+
e_1_1 = _e.sent();
|
|
64
|
+
e_1 = { error: e_1_1 };
|
|
65
|
+
return [3 /*break*/, 13];
|
|
66
|
+
case 12:
|
|
67
|
+
try {
|
|
68
|
+
if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
return [7 /*endfinally*/];
|
|
72
|
+
case 13: return [2 /*return*/];
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { parseAnchorCommon };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { autoParse } from '../../../../common/autoParse.js';
|
|
2
|
+
import { CT_ChartSpace_Attributes } from '../../../../openxml/ChartTypes.js';
|
|
3
|
+
|
|
4
|
+
var chartId = 0;
|
|
5
|
+
function parseChart(node) {
|
|
6
|
+
var chart = autoParse(node, CT_ChartSpace_Attributes);
|
|
7
|
+
chart.gid = "chart".concat(chartId++);
|
|
8
|
+
return chart;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { parseChart };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PackageParser } from '../../../../package/PackageParser';
|
|
2
|
+
import { IDrawing } from '../../../types/IDrawing';
|
|
3
|
+
import { IWorkbook } from '../../../types/IWorkbook';
|
|
4
|
+
/**
|
|
5
|
+
* 解析 xl/drawings/drawing1.xml 文件
|
|
6
|
+
* P3155
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseDrawing(workbook: IWorkbook, parser: PackageParser, drawingPath: string): Promise<IDrawing>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { __awaiter, __generator, __read, __values } from 'tslib';
|
|
2
|
+
import { autoParse } from '../../../../common/autoParse.js';
|
|
3
|
+
import { parseRelationship } from '../../../../common/parseRelationship.js';
|
|
4
|
+
import { CT_AbsoluteAnchor_Attributes, CT_TwoCellAnchor_Attributes, CT_OneCellAnchor_Attributes } from '../../../../openxml/ExcelTypes.js';
|
|
5
|
+
import { parseXML, xml2json } from '../../../../util/xml.js';
|
|
6
|
+
import { getRelPath } from '../getRelPath.js';
|
|
7
|
+
import { parseAnchorCommon } from './parseAnchorCommon.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 解析 xl/drawings/drawing1.xml 文件
|
|
11
|
+
* P3155
|
|
12
|
+
*/
|
|
13
|
+
function parseDrawing(workbook, parser, drawingPath) {
|
|
14
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15
|
+
var drawing, drawingXML, relationships, drawingRelationPath, node, nodeElement, oneCellAnchorElements, twoCellAnchorElements, absoluteAnchorElements, _a, _b, _c, index, drawingNode, childTag, _d, oneCellAnchor, oneCellAnchorElement, twoCellAnchor, twoCellAnchorElement, absoluteAnchor, absoluteAnchorElement, e_1_1;
|
|
16
|
+
var e_1, _e;
|
|
17
|
+
return __generator(this, function (_f) {
|
|
18
|
+
switch (_f.label) {
|
|
19
|
+
case 0:
|
|
20
|
+
drawing = {
|
|
21
|
+
oneCellAnchors: [],
|
|
22
|
+
twoCellAnchors: [],
|
|
23
|
+
absoluteAnchors: []
|
|
24
|
+
};
|
|
25
|
+
drawingXML = parser.getString(drawingPath);
|
|
26
|
+
relationships = [];
|
|
27
|
+
drawingRelationPath = getRelPath(drawingPath);
|
|
28
|
+
if (!parser.fileExists(drawingRelationPath)) return [3 /*break*/, 2];
|
|
29
|
+
return [4 /*yield*/, parseRelationship(parser.getString(drawingRelationPath))];
|
|
30
|
+
case 1:
|
|
31
|
+
relationships = _f.sent();
|
|
32
|
+
_f.label = 2;
|
|
33
|
+
case 2: return [4 /*yield*/, xml2json(drawingXML)];
|
|
34
|
+
case 3:
|
|
35
|
+
node = _f.sent();
|
|
36
|
+
nodeElement = parseXML(drawingXML);
|
|
37
|
+
oneCellAnchorElements = nodeElement.getElementsByTagName('xdr:oneCellAnchor');
|
|
38
|
+
twoCellAnchorElements = nodeElement.getElementsByTagName('xdr:twoCellAnchor');
|
|
39
|
+
absoluteAnchorElements = nodeElement.getElementsByTagName('xdr:absoluteAnchor');
|
|
40
|
+
_f.label = 4;
|
|
41
|
+
case 4:
|
|
42
|
+
_f.trys.push([4, 15, 16, 17]);
|
|
43
|
+
_a = __values((node.children || []).entries()), _b = _a.next();
|
|
44
|
+
_f.label = 5;
|
|
45
|
+
case 5:
|
|
46
|
+
if (!!_b.done) return [3 /*break*/, 14];
|
|
47
|
+
_c = __read(_b.value, 2), index = _c[0], drawingNode = _c[1];
|
|
48
|
+
childTag = drawingNode.tag;
|
|
49
|
+
_d = childTag;
|
|
50
|
+
switch (_d) {
|
|
51
|
+
case 'xdr:oneCellAnchor': return [3 /*break*/, 6];
|
|
52
|
+
case 'xdr:twoCellAnchor': return [3 /*break*/, 8];
|
|
53
|
+
case 'xdr:absoluteAnchor': return [3 /*break*/, 10];
|
|
54
|
+
}
|
|
55
|
+
return [3 /*break*/, 12];
|
|
56
|
+
case 6:
|
|
57
|
+
oneCellAnchor = autoParse(drawingNode, CT_OneCellAnchor_Attributes);
|
|
58
|
+
oneCellAnchorElement = oneCellAnchorElements[index];
|
|
59
|
+
return [4 /*yield*/, parseAnchorCommon(workbook, parser, drawingPath, drawingNode, relationships, oneCellAnchor, oneCellAnchorElement)];
|
|
60
|
+
case 7:
|
|
61
|
+
_f.sent();
|
|
62
|
+
drawing.oneCellAnchors.push(oneCellAnchor);
|
|
63
|
+
return [3 /*break*/, 13];
|
|
64
|
+
case 8:
|
|
65
|
+
twoCellAnchor = autoParse(drawingNode, CT_TwoCellAnchor_Attributes);
|
|
66
|
+
twoCellAnchorElement = twoCellAnchorElements[index];
|
|
67
|
+
return [4 /*yield*/, parseAnchorCommon(workbook, parser, drawingPath, drawingNode, relationships, twoCellAnchor, twoCellAnchorElement)];
|
|
68
|
+
case 9:
|
|
69
|
+
_f.sent();
|
|
70
|
+
drawing.twoCellAnchors.push(twoCellAnchor);
|
|
71
|
+
return [3 /*break*/, 13];
|
|
72
|
+
case 10:
|
|
73
|
+
absoluteAnchor = autoParse(drawingNode, CT_AbsoluteAnchor_Attributes);
|
|
74
|
+
absoluteAnchorElement = absoluteAnchorElements[index];
|
|
75
|
+
return [4 /*yield*/, parseAnchorCommon(workbook, parser, drawingPath, drawingNode, relationships, absoluteAnchor, absoluteAnchorElement)];
|
|
76
|
+
case 11:
|
|
77
|
+
_f.sent();
|
|
78
|
+
drawing.absoluteAnchors.push(absoluteAnchor);
|
|
79
|
+
return [3 /*break*/, 13];
|
|
80
|
+
case 12:
|
|
81
|
+
console.warn("unhandled tag: ".concat(childTag));
|
|
82
|
+
_f.label = 13;
|
|
83
|
+
case 13:
|
|
84
|
+
_b = _a.next();
|
|
85
|
+
return [3 /*break*/, 5];
|
|
86
|
+
case 14: return [3 /*break*/, 17];
|
|
87
|
+
case 15:
|
|
88
|
+
e_1_1 = _f.sent();
|
|
89
|
+
e_1 = { error: e_1_1 };
|
|
90
|
+
return [3 /*break*/, 17];
|
|
91
|
+
case 16:
|
|
92
|
+
try {
|
|
93
|
+
if (_b && !_b.done && (_e = _a.return)) _e.call(_a);
|
|
94
|
+
}
|
|
95
|
+
finally { if (e_1) throw e_1.error; }
|
|
96
|
+
return [7 /*endfinally*/];
|
|
97
|
+
case 17: return [2 /*return*/, drawing];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { parseDrawing };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PackageParser } from '../../../../package/PackageParser';
|
|
2
|
+
import { XMLNode } from '../../../../util/xml';
|
|
3
|
+
import { IRelationship } from '../../../types/IRelationship';
|
|
4
|
+
export declare function parsePic(child: XMLNode, relationships: IRelationship[], parser: PackageParser, drawingPath: string): any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { autoParse } from '../../../../common/autoParse.js';
|
|
2
|
+
import { CT_Picture_Attributes } from '../../../../openxml/ExcelTypes.js';
|
|
3
|
+
import { getRelationPath } from './getRelationPath.js';
|
|
4
|
+
|
|
5
|
+
var picId = 0;
|
|
6
|
+
function parsePic(child, relationships, parser, drawingPath) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
var pic = autoParse(child, CT_Picture_Attributes);
|
|
9
|
+
var embedId = (_b = (_a = pic.blipFill) === null || _a === void 0 ? void 0 : _a.blip) === null || _b === void 0 ? void 0 : _b['r:embed'];
|
|
10
|
+
if (embedId) {
|
|
11
|
+
var imagePath = getRelationPath(drawingPath, relationships, embedId);
|
|
12
|
+
if (imagePath) {
|
|
13
|
+
var data = parser.getFileByType(imagePath, 'blob');
|
|
14
|
+
if (data && URL.createObjectURL) {
|
|
15
|
+
pic.imgURL = URL.createObjectURL(data);
|
|
16
|
+
pic.gid = "pic-".concat(picId++);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return pic;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { parsePic };
|