@cj-tech-master/excelts 9.4.2 → 9.5.0
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/dist/browser/index.browser.d.ts +8 -5
- package/dist/browser/index.browser.js +19 -1
- package/dist/browser/index.d.ts +4 -2
- package/dist/browser/index.js +9 -1
- package/dist/browser/modules/excel/chart/cache-populator.d.ts +49 -0
- package/dist/browser/modules/excel/chart/cache-populator.js +1171 -0
- package/dist/browser/modules/excel/chart/chart-api.d.ts +92 -0
- package/dist/browser/modules/excel/chart/chart-api.js +364 -0
- package/dist/browser/modules/excel/chart/chart-builder.d.ts +48 -0
- package/dist/browser/modules/excel/chart/chart-builder.js +2432 -0
- package/dist/browser/modules/excel/chart/chart-ex-builder.d.ts +36 -0
- package/dist/browser/modules/excel/chart/chart-ex-builder.js +903 -0
- package/dist/browser/modules/excel/chart/chart-ex-parser.d.ts +8 -0
- package/dist/browser/modules/excel/chart/chart-ex-parser.js +1205 -0
- package/dist/browser/modules/excel/chart/chart-ex-renderer.d.ts +187 -0
- package/dist/browser/modules/excel/chart/chart-ex-renderer.js +5352 -0
- package/dist/browser/modules/excel/chart/chart-ex-types.d.ts +531 -0
- package/dist/browser/modules/excel/chart/chart-ex-types.js +11 -0
- package/dist/browser/modules/excel/chart/chart-images.d.ts +78 -0
- package/dist/browser/modules/excel/chart/chart-images.js +363 -0
- package/dist/browser/modules/excel/chart/chart-presets.d.ts +392 -0
- package/dist/browser/modules/excel/chart/chart-presets.js +179 -0
- package/dist/browser/modules/excel/chart/chart-renderer.d.ts +550 -0
- package/dist/browser/modules/excel/chart/chart-renderer.js +6440 -0
- package/dist/browser/modules/excel/chart/chart-sidecar.d.ts +21 -0
- package/dist/browser/modules/excel/chart/chart-sidecar.js +427 -0
- package/dist/browser/modules/excel/chart/chart-utils.d.ts +306 -0
- package/dist/browser/modules/excel/chart/chart-utils.js +821 -0
- package/dist/browser/modules/excel/chart/chart.d.ts +504 -0
- package/dist/browser/modules/excel/chart/chart.js +1320 -0
- package/dist/browser/modules/excel/chart/glyph-rasterizer.d.ts +62 -0
- package/dist/browser/modules/excel/chart/glyph-rasterizer.js +658 -0
- package/dist/browser/modules/excel/chart/index.d.ts +54 -0
- package/dist/browser/modules/excel/chart/index.js +46 -0
- package/dist/browser/modules/excel/chart/install.d.ts +44 -0
- package/dist/browser/modules/excel/chart/install.js +91 -0
- package/dist/browser/modules/excel/chart/shape-properties.d.ts +156 -0
- package/dist/browser/modules/excel/chart/shape-properties.js +1557 -0
- package/dist/browser/modules/excel/chart/stroke-font.d.ts +36 -0
- package/dist/browser/modules/excel/chart/stroke-font.js +1556 -0
- package/dist/browser/modules/excel/chart/topojson.d.ts +98 -0
- package/dist/browser/modules/excel/chart/topojson.js +236 -0
- package/dist/browser/modules/excel/chart/types.d.ts +2559 -0
- package/dist/browser/modules/excel/chart/types.js +8 -0
- package/dist/browser/modules/excel/chart-host-registry.d.ts +157 -0
- package/dist/browser/modules/excel/chart-host-registry.js +90 -0
- package/dist/browser/modules/excel/chartsheet.d.ts +102 -0
- package/dist/browser/modules/excel/chartsheet.js +196 -0
- package/dist/browser/modules/excel/defined-names.d.ts +35 -0
- package/dist/browser/modules/excel/defined-names.js +44 -4
- package/dist/browser/modules/excel/errors.d.ts +6 -0
- package/dist/browser/modules/excel/errors.js +9 -0
- package/dist/browser/modules/excel/form-control.d.ts +6 -0
- package/dist/browser/modules/excel/form-control.js +17 -0
- package/dist/browser/modules/excel/image.js +12 -2
- package/dist/browser/modules/excel/pivot-chart.d.ts +7 -0
- package/dist/browser/modules/excel/pivot-chart.js +53 -0
- package/dist/browser/modules/excel/pivot-table.d.ts +55 -0
- package/dist/browser/modules/excel/pivot-table.js +35 -0
- package/dist/browser/modules/excel/range.js +5 -1
- package/dist/browser/modules/excel/sparkline/index.d.ts +7 -0
- package/dist/browser/modules/excel/sparkline/index.js +7 -0
- package/dist/browser/modules/excel/sparkline/sparkline.d.ts +206 -0
- package/dist/browser/modules/excel/sparkline/sparkline.js +750 -0
- package/dist/browser/modules/excel/stream/worksheet-writer.js +3 -2
- package/dist/browser/modules/excel/table.js +42 -6
- package/dist/browser/modules/excel/types.d.ts +72 -0
- package/dist/browser/modules/excel/utils/address.d.ts +18 -0
- package/dist/browser/modules/excel/utils/address.js +28 -0
- package/dist/browser/modules/excel/utils/drawing-utils.js +11 -6
- package/dist/browser/modules/excel/utils/guid.d.ts +15 -0
- package/dist/browser/modules/excel/utils/guid.js +35 -0
- package/dist/browser/modules/excel/utils/ooxml-paths.d.ts +74 -0
- package/dist/browser/modules/excel/utils/ooxml-paths.js +206 -9
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart-sidecar.d.ts +35 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart-sidecar.js +101 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart.d.ts +32 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart.js +2125 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chartsheet.d.ts +9 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chartsheet.js +26 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-content-types.d.ts +16 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-content-types.js +181 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-drawing.d.ts +34 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-drawing.js +267 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-pivot.d.ts +14 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-pivot.js +104 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-relationships.d.ts +18 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-relationships.js +184 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-structure.d.ts +21 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-structure.js +56 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-styles.d.ts +15 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-styles.js +89 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-table.d.ts +31 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-table.js +177 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-workbook.d.ts +19 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-workbook.js +163 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-worksheet.d.ts +25 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-worksheet.js +569 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/context.d.ts +85 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/context.js +191 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/index.d.ts +31 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/index.js +102 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/path-utils.d.ts +67 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/path-utils.js +156 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/reporter.d.ts +41 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/reporter.js +61 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/types.d.ts +109 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/types.js +12 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/xml-utils.d.ts +38 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/xml-utils.js +100 -0
- package/dist/browser/modules/excel/workbook.browser.d.ts +248 -30
- package/dist/browser/modules/excel/workbook.browser.js +966 -31
- package/dist/browser/modules/excel/workbook.d.ts +43 -0
- package/dist/browser/modules/excel/workbook.js +48 -0
- package/dist/browser/modules/excel/worksheet.d.ts +157 -3
- package/dist/browser/modules/excel/worksheet.js +394 -35
- package/dist/browser/modules/excel/xlsx/rel-type.d.ts +40 -0
- package/dist/browser/modules/excel/xlsx/rel-type.js +41 -1
- package/dist/browser/modules/excel/xlsx/xform/book/defined-name-xform.d.ts +1 -0
- package/dist/browser/modules/excel/xlsx/xform/book/defined-name-xform.js +11 -2
- package/dist/browser/modules/excel/xlsx/xform/book/external-link-xform.js +12 -10
- package/dist/browser/modules/excel/xlsx/xform/book/workbook-xform.js +96 -22
- package/dist/browser/modules/excel/xlsx/xform/chart/chart-space-xform.d.ts +353 -0
- package/dist/browser/modules/excel/xlsx/xform/chart/chart-space-xform.js +6000 -0
- package/dist/browser/modules/excel/xlsx/xform/comment/threaded-comments-xform.d.ts +60 -0
- package/dist/browser/modules/excel/xlsx/xform/comment/threaded-comments-xform.js +213 -0
- package/dist/browser/modules/excel/xlsx/xform/core/content-types-xform.js +150 -11
- package/dist/browser/modules/excel/xlsx/xform/drawing/absolute-anchor-xform.js +20 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/drawing-xform.d.ts +30 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/drawing-xform.js +109 -5
- package/dist/browser/modules/excel/xlsx/xform/drawing/graphic-frame-xform.d.ts +54 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/graphic-frame-xform.js +225 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.d.ts +3 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +18 -3
- package/dist/browser/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.d.ts +46 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +294 -12
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.d.ts +13 -2
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +32 -6
- package/dist/browser/modules/excel/xlsx/xform/sheet/chartsheet-xform.d.ts +185 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/chartsheet-xform.js +441 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/ext-lst-xform.d.ts +1 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +51 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/worksheet-xform.js +196 -20
- package/dist/browser/modules/excel/xlsx/xform/table/auto-filter-xform.js +16 -1
- package/dist/browser/modules/excel/xlsx/xform/table/table-column-xform.js +17 -2
- package/dist/browser/modules/excel/xlsx/xform/xsd-values.d.ts +63 -0
- package/dist/browser/modules/excel/xlsx/xform/xsd-values.js +101 -0
- package/dist/browser/modules/excel/xlsx/xlsx.browser.d.ts +115 -21
- package/dist/browser/modules/excel/xlsx/xlsx.browser.js +4422 -78
- package/dist/browser/modules/pdf/builder/document-builder.d.ts +74 -0
- package/dist/browser/modules/pdf/builder/document-builder.js +507 -2
- package/dist/browser/modules/pdf/builder/pdf-editor.js +48 -3
- package/dist/browser/modules/pdf/excel-bridge.d.ts +69 -0
- package/dist/browser/modules/pdf/excel-bridge.js +683 -12
- package/dist/browser/modules/pdf/font/font-manager.d.ts +25 -0
- package/dist/browser/modules/pdf/font/font-manager.js +39 -0
- package/dist/browser/modules/pdf/index.d.ts +5 -2
- package/dist/browser/modules/pdf/index.js +3 -1
- package/dist/browser/modules/pdf/render/chart-surface.d.ts +33 -0
- package/dist/browser/modules/pdf/render/chart-surface.js +200 -0
- package/dist/browser/modules/pdf/render/layout-engine.d.ts +22 -1
- package/dist/browser/modules/pdf/render/layout-engine.js +436 -56
- package/dist/browser/modules/pdf/render/page-renderer.js +169 -28
- package/dist/browser/modules/pdf/render/pdf-exporter.js +117 -7
- package/dist/browser/modules/pdf/types.d.ts +227 -23
- package/dist/browser/modules/pdf/types.js +4 -0
- package/dist/browser/modules/pdf/word-bridge.d.ts +47 -0
- package/dist/browser/modules/pdf/word-bridge.js +304 -0
- package/dist/browser/modules/word/constants.d.ts +179 -0
- package/dist/browser/modules/word/constants.js +231 -0
- package/dist/browser/modules/word/content-types.d.ts +27 -0
- package/dist/browser/modules/word/content-types.js +53 -0
- package/dist/browser/modules/word/digital-signatures.d.ts +87 -0
- package/dist/browser/modules/word/digital-signatures.js +134 -0
- package/dist/browser/modules/word/document.d.ts +728 -0
- package/dist/browser/modules/word/document.js +1795 -0
- package/dist/browser/modules/word/docx-packager.d.ts +14 -0
- package/dist/browser/modules/word/docx-packager.js +822 -0
- package/dist/browser/modules/word/docx-reader.d.ts +11 -0
- package/dist/browser/modules/word/docx-reader.js +4929 -0
- package/dist/browser/modules/word/encryption.d.ts +102 -0
- package/dist/browser/modules/word/encryption.js +274 -0
- package/dist/browser/modules/word/errors.d.ts +49 -0
- package/dist/browser/modules/word/errors.js +68 -0
- package/dist/browser/modules/word/font-obfuscation.d.ts +31 -0
- package/dist/browser/modules/word/font-obfuscation.js +83 -0
- package/dist/browser/modules/word/html-renderer.d.ts +38 -0
- package/dist/browser/modules/word/html-renderer.js +782 -0
- package/dist/browser/modules/word/index.base.d.ts +19 -0
- package/dist/browser/modules/word/index.base.js +51 -0
- package/dist/browser/modules/word/index.browser.d.ts +4 -0
- package/dist/browser/modules/word/index.browser.js +4 -0
- package/dist/browser/modules/word/index.d.ts +4 -0
- package/dist/browser/modules/word/index.js +4 -0
- package/dist/browser/modules/word/internal-utils.d.ts +23 -0
- package/dist/browser/modules/word/internal-utils.js +54 -0
- package/dist/browser/modules/word/relationships.d.ts +31 -0
- package/dist/browser/modules/word/relationships.js +56 -0
- package/dist/browser/modules/word/types.d.ts +2325 -0
- package/dist/browser/modules/word/types.js +10 -0
- package/dist/browser/modules/word/units.d.ts +49 -0
- package/dist/browser/modules/word/units.js +111 -0
- package/dist/browser/modules/word/writers/chart-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/chart-writer.js +385 -0
- package/dist/browser/modules/word/writers/checkbox-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/checkbox-writer.js +42 -0
- package/dist/browser/modules/word/writers/comment-writer.d.ts +15 -0
- package/dist/browser/modules/word/writers/comment-writer.js +70 -0
- package/dist/browser/modules/word/writers/document-writer.d.ts +16 -0
- package/dist/browser/modules/word/writers/document-writer.js +461 -0
- package/dist/browser/modules/word/writers/footnote-writer.d.ts +11 -0
- package/dist/browser/modules/word/writers/footnote-writer.js +72 -0
- package/dist/browser/modules/word/writers/header-footer-writer.d.ts +13 -0
- package/dist/browser/modules/word/writers/header-footer-writer.js +129 -0
- package/dist/browser/modules/word/writers/image-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/image-writer.js +185 -0
- package/dist/browser/modules/word/writers/math-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/math-writer.js +428 -0
- package/dist/browser/modules/word/writers/numbering-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/numbering-writer.js +125 -0
- package/dist/browser/modules/word/writers/paragraph-writer.d.ts +13 -0
- package/dist/browser/modules/word/writers/paragraph-writer.js +516 -0
- package/dist/browser/modules/word/writers/parts-writer.d.ts +26 -0
- package/dist/browser/modules/word/writers/parts-writer.js +660 -0
- package/dist/browser/modules/word/writers/run-writer.d.ts +15 -0
- package/dist/browser/modules/word/writers/run-writer.js +649 -0
- package/dist/browser/modules/word/writers/section-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/section-writer.js +238 -0
- package/dist/browser/modules/word/writers/styles-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/styles-writer.js +242 -0
- package/dist/browser/modules/word/writers/table-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/table-writer.js +503 -0
- package/dist/browser/modules/word/writers/textbox-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/textbox-writer.js +53 -0
- package/dist/browser/modules/word/writers/toc-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/toc-writer.js +79 -0
- package/dist/browser/modules/xml/encode.d.ts +56 -7
- package/dist/browser/modules/xml/encode.js +157 -11
- package/dist/cjs/index.js +13 -2
- package/dist/cjs/modules/excel/chart/cache-populator.js +1178 -0
- package/dist/cjs/modules/excel/chart/chart-api.js +371 -0
- package/dist/cjs/modules/excel/chart/chart-builder.js +2440 -0
- package/dist/cjs/modules/excel/chart/chart-ex-builder.js +907 -0
- package/dist/cjs/modules/excel/chart/chart-ex-parser.js +1208 -0
- package/dist/cjs/modules/excel/chart/chart-ex-renderer.js +5364 -0
- package/dist/cjs/modules/excel/chart/chart-ex-types.js +12 -0
- package/dist/cjs/modules/excel/chart/chart-images.js +366 -0
- package/dist/cjs/modules/excel/chart/chart-presets.js +184 -0
- package/dist/cjs/modules/excel/chart/chart-renderer.js +6450 -0
- package/dist/cjs/modules/excel/chart/chart-sidecar.js +433 -0
- package/dist/cjs/modules/excel/chart/chart-utils.js +845 -0
- package/dist/cjs/modules/excel/chart/chart.js +1324 -0
- package/dist/cjs/modules/excel/chart/glyph-rasterizer.js +664 -0
- package/dist/cjs/modules/excel/chart/index.js +101 -0
- package/dist/cjs/modules/excel/chart/install.js +95 -0
- package/dist/cjs/modules/excel/chart/shape-properties.js +1577 -0
- package/dist/cjs/modules/excel/chart/stroke-font.js +1559 -0
- package/dist/cjs/modules/excel/chart/topojson.js +239 -0
- package/dist/cjs/modules/excel/chart/types.js +9 -0
- package/dist/cjs/modules/excel/chart-host-registry.js +96 -0
- package/dist/cjs/modules/excel/chartsheet.js +199 -0
- package/dist/cjs/modules/excel/defined-names.js +44 -4
- package/dist/cjs/modules/excel/errors.js +11 -1
- package/dist/cjs/modules/excel/form-control.js +17 -0
- package/dist/cjs/modules/excel/image.js +12 -2
- package/dist/cjs/modules/excel/pivot-chart.js +56 -0
- package/dist/cjs/modules/excel/pivot-table.js +35 -0
- package/dist/cjs/modules/excel/range.js +5 -1
- package/dist/cjs/modules/excel/sparkline/index.js +23 -0
- package/dist/cjs/modules/excel/sparkline/sparkline.js +756 -0
- package/dist/cjs/modules/excel/stream/worksheet-writer.js +3 -2
- package/dist/cjs/modules/excel/table.js +42 -6
- package/dist/cjs/modules/excel/utils/address.js +29 -0
- package/dist/cjs/modules/excel/utils/drawing-utils.js +11 -6
- package/dist/cjs/modules/excel/utils/guid.js +38 -0
- package/dist/cjs/modules/excel/utils/ooxml-paths.js +246 -9
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-chart-sidecar.js +103 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-chart.js +2128 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-chartsheet.js +29 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-content-types.js +184 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-drawing.js +270 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-pivot.js +107 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-relationships.js +188 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-structure.js +60 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-styles.js +92 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-table.js +180 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-workbook.js +166 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-worksheet.js +572 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/context.js +196 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/index.js +105 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/path-utils.js +168 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/reporter.js +66 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/types.js +13 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/xml-utils.js +110 -0
- package/dist/cjs/modules/excel/workbook.browser.js +973 -38
- package/dist/cjs/modules/excel/workbook.js +48 -0
- package/dist/cjs/modules/excel/worksheet.js +393 -34
- package/dist/cjs/modules/excel/xlsx/rel-type.js +41 -1
- package/dist/cjs/modules/excel/xlsx/xform/book/defined-name-xform.js +11 -2
- package/dist/cjs/modules/excel/xlsx/xform/book/external-link-xform.js +12 -10
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-xform.js +96 -22
- package/dist/cjs/modules/excel/xlsx/xform/chart/chart-space-xform.js +6003 -0
- package/dist/cjs/modules/excel/xlsx/xform/comment/threaded-comments-xform.js +219 -0
- package/dist/cjs/modules/excel/xlsx/xform/core/content-types-xform.js +149 -10
- package/dist/cjs/modules/excel/xlsx/xform/drawing/absolute-anchor-xform.js +20 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/drawing-xform.js +109 -5
- package/dist/cjs/modules/excel/xlsx/xform/drawing/graphic-frame-xform.js +228 -0
- package/dist/cjs/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +18 -3
- package/dist/cjs/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +294 -12
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +32 -6
- package/dist/cjs/modules/excel/xlsx/xform/sheet/chartsheet-xform.js +444 -0
- package/dist/cjs/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +51 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/worksheet-xform.js +195 -19
- package/dist/cjs/modules/excel/xlsx/xform/table/auto-filter-xform.js +16 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/table-column-xform.js +17 -2
- package/dist/cjs/modules/excel/xlsx/xform/xsd-values.js +106 -0
- package/dist/cjs/modules/excel/xlsx/xlsx.browser.js +4420 -76
- package/dist/cjs/modules/pdf/builder/document-builder.js +506 -1
- package/dist/cjs/modules/pdf/builder/pdf-editor.js +48 -3
- package/dist/cjs/modules/pdf/excel-bridge.js +684 -12
- package/dist/cjs/modules/pdf/font/font-manager.js +39 -0
- package/dist/cjs/modules/pdf/index.js +5 -1
- package/dist/cjs/modules/pdf/render/chart-surface.js +203 -0
- package/dist/cjs/modules/pdf/render/layout-engine.js +437 -56
- package/dist/cjs/modules/pdf/render/page-renderer.js +169 -28
- package/dist/cjs/modules/pdf/render/pdf-exporter.js +115 -5
- package/dist/cjs/modules/pdf/types.js +5 -0
- package/dist/cjs/modules/pdf/word-bridge.js +307 -0
- package/dist/cjs/modules/word/constants.js +234 -0
- package/dist/cjs/modules/word/content-types.js +57 -0
- package/dist/cjs/modules/word/digital-signatures.js +140 -0
- package/dist/cjs/modules/word/document.js +1909 -0
- package/dist/cjs/modules/word/docx-packager.js +825 -0
- package/dist/cjs/modules/word/docx-reader.js +4932 -0
- package/dist/cjs/modules/word/encryption.js +282 -0
- package/dist/cjs/modules/word/errors.js +88 -0
- package/dist/cjs/modules/word/font-obfuscation.js +88 -0
- package/dist/cjs/modules/word/html-renderer.js +785 -0
- package/dist/cjs/modules/word/index.base.js +199 -0
- package/dist/cjs/modules/word/index.browser.js +20 -0
- package/dist/cjs/modules/word/index.js +20 -0
- package/dist/cjs/modules/word/internal-utils.js +59 -0
- package/dist/cjs/modules/word/relationships.js +60 -0
- package/dist/cjs/modules/word/types.js +11 -0
- package/dist/cjs/modules/word/units.js +135 -0
- package/dist/cjs/modules/word/writers/chart-writer.js +388 -0
- package/dist/cjs/modules/word/writers/checkbox-writer.js +45 -0
- package/dist/cjs/modules/word/writers/comment-writer.js +74 -0
- package/dist/cjs/modules/word/writers/document-writer.js +465 -0
- package/dist/cjs/modules/word/writers/footnote-writer.js +76 -0
- package/dist/cjs/modules/word/writers/header-footer-writer.js +134 -0
- package/dist/cjs/modules/word/writers/image-writer.js +188 -0
- package/dist/cjs/modules/word/writers/math-writer.js +431 -0
- package/dist/cjs/modules/word/writers/numbering-writer.js +128 -0
- package/dist/cjs/modules/word/writers/paragraph-writer.js +521 -0
- package/dist/cjs/modules/word/writers/parts-writer.js +671 -0
- package/dist/cjs/modules/word/writers/run-writer.js +655 -0
- package/dist/cjs/modules/word/writers/section-writer.js +241 -0
- package/dist/cjs/modules/word/writers/styles-writer.js +245 -0
- package/dist/cjs/modules/word/writers/table-writer.js +506 -0
- package/dist/cjs/modules/word/writers/textbox-writer.js +56 -0
- package/dist/cjs/modules/word/writers/toc-writer.js +82 -0
- package/dist/cjs/modules/xml/encode.js +158 -11
- package/dist/esm/index.browser.js +20 -2
- package/dist/esm/index.js +9 -1
- package/dist/esm/modules/excel/chart/cache-populator.js +1171 -0
- package/dist/esm/modules/excel/chart/chart-api.js +364 -0
- package/dist/esm/modules/excel/chart/chart-builder.js +2432 -0
- package/dist/esm/modules/excel/chart/chart-ex-builder.js +903 -0
- package/dist/esm/modules/excel/chart/chart-ex-parser.js +1205 -0
- package/dist/esm/modules/excel/chart/chart-ex-renderer.js +5352 -0
- package/dist/esm/modules/excel/chart/chart-ex-types.js +11 -0
- package/dist/esm/modules/excel/chart/chart-images.js +363 -0
- package/dist/esm/modules/excel/chart/chart-presets.js +179 -0
- package/dist/esm/modules/excel/chart/chart-renderer.js +6440 -0
- package/dist/esm/modules/excel/chart/chart-sidecar.js +427 -0
- package/dist/esm/modules/excel/chart/chart-utils.js +821 -0
- package/dist/esm/modules/excel/chart/chart.js +1320 -0
- package/dist/esm/modules/excel/chart/glyph-rasterizer.js +658 -0
- package/dist/esm/modules/excel/chart/index.js +46 -0
- package/dist/esm/modules/excel/chart/install.js +91 -0
- package/dist/esm/modules/excel/chart/shape-properties.js +1557 -0
- package/dist/esm/modules/excel/chart/stroke-font.js +1556 -0
- package/dist/esm/modules/excel/chart/topojson.js +236 -0
- package/dist/esm/modules/excel/chart/types.js +8 -0
- package/dist/esm/modules/excel/chart-host-registry.js +90 -0
- package/dist/esm/modules/excel/chartsheet.js +196 -0
- package/dist/esm/modules/excel/defined-names.js +44 -4
- package/dist/esm/modules/excel/errors.js +9 -0
- package/dist/esm/modules/excel/form-control.js +17 -0
- package/dist/esm/modules/excel/image.js +12 -2
- package/dist/esm/modules/excel/pivot-chart.js +53 -0
- package/dist/esm/modules/excel/pivot-table.js +35 -0
- package/dist/esm/modules/excel/range.js +5 -1
- package/dist/esm/modules/excel/sparkline/index.js +7 -0
- package/dist/esm/modules/excel/sparkline/sparkline.js +750 -0
- package/dist/esm/modules/excel/stream/worksheet-writer.js +3 -2
- package/dist/esm/modules/excel/table.js +42 -6
- package/dist/esm/modules/excel/utils/address.js +28 -0
- package/dist/esm/modules/excel/utils/drawing-utils.js +11 -6
- package/dist/esm/modules/excel/utils/guid.js +35 -0
- package/dist/esm/modules/excel/utils/ooxml-paths.js +206 -9
- package/dist/esm/modules/excel/utils/ooxml-validator/check-chart-sidecar.js +101 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-chart.js +2125 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-chartsheet.js +26 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-content-types.js +181 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-drawing.js +267 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-pivot.js +104 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-relationships.js +184 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-structure.js +56 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-styles.js +89 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-table.js +177 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-workbook.js +163 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-worksheet.js +569 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/context.js +191 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/index.js +102 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/path-utils.js +156 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/reporter.js +61 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/types.js +12 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/xml-utils.js +100 -0
- package/dist/esm/modules/excel/workbook.browser.js +969 -34
- package/dist/esm/modules/excel/workbook.js +48 -0
- package/dist/esm/modules/excel/worksheet.js +394 -35
- package/dist/esm/modules/excel/xlsx/rel-type.js +41 -1
- package/dist/esm/modules/excel/xlsx/xform/book/defined-name-xform.js +11 -2
- package/dist/esm/modules/excel/xlsx/xform/book/external-link-xform.js +12 -10
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-xform.js +96 -22
- package/dist/esm/modules/excel/xlsx/xform/chart/chart-space-xform.js +6000 -0
- package/dist/esm/modules/excel/xlsx/xform/comment/threaded-comments-xform.js +213 -0
- package/dist/esm/modules/excel/xlsx/xform/core/content-types-xform.js +150 -11
- package/dist/esm/modules/excel/xlsx/xform/drawing/absolute-anchor-xform.js +20 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/drawing-xform.js +109 -5
- package/dist/esm/modules/excel/xlsx/xform/drawing/graphic-frame-xform.js +225 -0
- package/dist/esm/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +18 -3
- package/dist/esm/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +294 -12
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +32 -6
- package/dist/esm/modules/excel/xlsx/xform/sheet/chartsheet-xform.js +441 -0
- package/dist/esm/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +51 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/worksheet-xform.js +196 -20
- package/dist/esm/modules/excel/xlsx/xform/table/auto-filter-xform.js +16 -1
- package/dist/esm/modules/excel/xlsx/xform/table/table-column-xform.js +17 -2
- package/dist/esm/modules/excel/xlsx/xform/xsd-values.js +101 -0
- package/dist/esm/modules/excel/xlsx/xlsx.browser.js +4422 -78
- package/dist/esm/modules/pdf/builder/document-builder.js +507 -2
- package/dist/esm/modules/pdf/builder/pdf-editor.js +48 -3
- package/dist/esm/modules/pdf/excel-bridge.js +683 -12
- package/dist/esm/modules/pdf/font/font-manager.js +39 -0
- package/dist/esm/modules/pdf/index.js +3 -1
- package/dist/esm/modules/pdf/render/chart-surface.js +200 -0
- package/dist/esm/modules/pdf/render/layout-engine.js +436 -56
- package/dist/esm/modules/pdf/render/page-renderer.js +169 -28
- package/dist/esm/modules/pdf/render/pdf-exporter.js +117 -7
- package/dist/esm/modules/pdf/types.js +4 -0
- package/dist/esm/modules/pdf/word-bridge.js +304 -0
- package/dist/esm/modules/word/constants.js +231 -0
- package/dist/esm/modules/word/content-types.js +53 -0
- package/dist/esm/modules/word/digital-signatures.js +134 -0
- package/dist/esm/modules/word/document.js +1795 -0
- package/dist/esm/modules/word/docx-packager.js +822 -0
- package/dist/esm/modules/word/docx-reader.js +4929 -0
- package/dist/esm/modules/word/encryption.js +274 -0
- package/dist/esm/modules/word/errors.js +68 -0
- package/dist/esm/modules/word/font-obfuscation.js +83 -0
- package/dist/esm/modules/word/html-renderer.js +782 -0
- package/dist/esm/modules/word/index.base.js +51 -0
- package/dist/esm/modules/word/index.browser.js +4 -0
- package/dist/esm/modules/word/index.js +4 -0
- package/dist/esm/modules/word/internal-utils.js +54 -0
- package/dist/esm/modules/word/relationships.js +56 -0
- package/dist/esm/modules/word/types.js +10 -0
- package/dist/esm/modules/word/units.js +111 -0
- package/dist/esm/modules/word/writers/chart-writer.js +385 -0
- package/dist/esm/modules/word/writers/checkbox-writer.js +42 -0
- package/dist/esm/modules/word/writers/comment-writer.js +70 -0
- package/dist/esm/modules/word/writers/document-writer.js +461 -0
- package/dist/esm/modules/word/writers/footnote-writer.js +72 -0
- package/dist/esm/modules/word/writers/header-footer-writer.js +129 -0
- package/dist/esm/modules/word/writers/image-writer.js +185 -0
- package/dist/esm/modules/word/writers/math-writer.js +428 -0
- package/dist/esm/modules/word/writers/numbering-writer.js +125 -0
- package/dist/esm/modules/word/writers/paragraph-writer.js +516 -0
- package/dist/esm/modules/word/writers/parts-writer.js +660 -0
- package/dist/esm/modules/word/writers/run-writer.js +649 -0
- package/dist/esm/modules/word/writers/section-writer.js +238 -0
- package/dist/esm/modules/word/writers/styles-writer.js +242 -0
- package/dist/esm/modules/word/writers/table-writer.js +503 -0
- package/dist/esm/modules/word/writers/textbox-writer.js +53 -0
- package/dist/esm/modules/word/writers/toc-writer.js +79 -0
- package/dist/esm/modules/xml/encode.js +157 -11
- package/dist/iife/excelts.iife.js +11789 -687
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +52 -44
- package/dist/types/index.browser.d.ts +8 -5
- package/dist/types/index.d.ts +4 -2
- package/dist/types/modules/excel/chart/cache-populator.d.ts +49 -0
- package/dist/types/modules/excel/chart/chart-api.d.ts +92 -0
- package/dist/types/modules/excel/chart/chart-builder.d.ts +48 -0
- package/dist/types/modules/excel/chart/chart-ex-builder.d.ts +36 -0
- package/dist/types/modules/excel/chart/chart-ex-parser.d.ts +8 -0
- package/dist/types/modules/excel/chart/chart-ex-renderer.d.ts +187 -0
- package/dist/types/modules/excel/chart/chart-ex-types.d.ts +531 -0
- package/dist/types/modules/excel/chart/chart-images.d.ts +78 -0
- package/dist/types/modules/excel/chart/chart-presets.d.ts +392 -0
- package/dist/types/modules/excel/chart/chart-renderer.d.ts +550 -0
- package/dist/types/modules/excel/chart/chart-sidecar.d.ts +21 -0
- package/dist/types/modules/excel/chart/chart-utils.d.ts +306 -0
- package/dist/types/modules/excel/chart/chart.d.ts +504 -0
- package/dist/types/modules/excel/chart/glyph-rasterizer.d.ts +62 -0
- package/dist/types/modules/excel/chart/index.d.ts +54 -0
- package/dist/types/modules/excel/chart/install.d.ts +44 -0
- package/dist/types/modules/excel/chart/shape-properties.d.ts +156 -0
- package/dist/types/modules/excel/chart/stroke-font.d.ts +36 -0
- package/dist/types/modules/excel/chart/topojson.d.ts +98 -0
- package/dist/types/modules/excel/chart/types.d.ts +2559 -0
- package/dist/types/modules/excel/chart-host-registry.d.ts +157 -0
- package/dist/types/modules/excel/chartsheet.d.ts +102 -0
- package/dist/types/modules/excel/defined-names.d.ts +35 -0
- package/dist/types/modules/excel/errors.d.ts +6 -0
- package/dist/types/modules/excel/form-control.d.ts +6 -0
- package/dist/types/modules/excel/pivot-chart.d.ts +7 -0
- package/dist/types/modules/excel/pivot-table.d.ts +55 -0
- package/dist/types/modules/excel/sparkline/index.d.ts +7 -0
- package/dist/types/modules/excel/sparkline/sparkline.d.ts +206 -0
- package/dist/types/modules/excel/types.d.ts +72 -0
- package/dist/types/modules/excel/utils/address.d.ts +18 -0
- package/dist/types/modules/excel/utils/guid.d.ts +15 -0
- package/dist/types/modules/excel/utils/ooxml-paths.d.ts +74 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-chart-sidecar.d.ts +35 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-chart.d.ts +32 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-chartsheet.d.ts +9 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-content-types.d.ts +16 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-drawing.d.ts +34 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-pivot.d.ts +14 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-relationships.d.ts +18 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-structure.d.ts +21 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-styles.d.ts +15 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-table.d.ts +31 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-workbook.d.ts +19 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-worksheet.d.ts +25 -0
- package/dist/types/modules/excel/utils/ooxml-validator/context.d.ts +85 -0
- package/dist/types/modules/excel/utils/ooxml-validator/index.d.ts +31 -0
- package/dist/types/modules/excel/utils/ooxml-validator/path-utils.d.ts +67 -0
- package/dist/types/modules/excel/utils/ooxml-validator/reporter.d.ts +41 -0
- package/dist/types/modules/excel/utils/ooxml-validator/types.d.ts +109 -0
- package/dist/types/modules/excel/utils/ooxml-validator/xml-utils.d.ts +38 -0
- package/dist/types/modules/excel/workbook.browser.d.ts +248 -30
- package/dist/types/modules/excel/workbook.d.ts +43 -0
- package/dist/types/modules/excel/worksheet.d.ts +157 -3
- package/dist/types/modules/excel/xlsx/rel-type.d.ts +40 -0
- package/dist/types/modules/excel/xlsx/xform/book/defined-name-xform.d.ts +1 -0
- package/dist/types/modules/excel/xlsx/xform/chart/chart-space-xform.d.ts +353 -0
- package/dist/types/modules/excel/xlsx/xform/comment/threaded-comments-xform.d.ts +60 -0
- package/dist/types/modules/excel/xlsx/xform/drawing/drawing-xform.d.ts +30 -0
- package/dist/types/modules/excel/xlsx/xform/drawing/graphic-frame-xform.d.ts +54 -0
- package/dist/types/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.d.ts +3 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.d.ts +46 -0
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.d.ts +13 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/chartsheet-xform.d.ts +185 -0
- package/dist/types/modules/excel/xlsx/xform/sheet/ext-lst-xform.d.ts +1 -0
- package/dist/types/modules/excel/xlsx/xform/xsd-values.d.ts +63 -0
- package/dist/types/modules/excel/xlsx/xlsx.browser.d.ts +115 -21
- package/dist/types/modules/pdf/builder/document-builder.d.ts +74 -0
- package/dist/types/modules/pdf/excel-bridge.d.ts +69 -0
- package/dist/types/modules/pdf/font/font-manager.d.ts +25 -0
- package/dist/types/modules/pdf/index.d.ts +5 -2
- package/dist/types/modules/pdf/render/chart-surface.d.ts +33 -0
- package/dist/types/modules/pdf/render/layout-engine.d.ts +22 -1
- package/dist/types/modules/pdf/types.d.ts +227 -23
- package/dist/types/modules/pdf/word-bridge.d.ts +47 -0
- package/dist/types/modules/word/constants.d.ts +179 -0
- package/dist/types/modules/word/content-types.d.ts +27 -0
- package/dist/types/modules/word/digital-signatures.d.ts +87 -0
- package/dist/types/modules/word/document.d.ts +728 -0
- package/dist/types/modules/word/docx-packager.d.ts +14 -0
- package/dist/types/modules/word/docx-reader.d.ts +11 -0
- package/dist/types/modules/word/encryption.d.ts +102 -0
- package/dist/types/modules/word/errors.d.ts +49 -0
- package/dist/types/modules/word/font-obfuscation.d.ts +31 -0
- package/dist/types/modules/word/html-renderer.d.ts +38 -0
- package/dist/types/modules/word/index.base.d.ts +19 -0
- package/dist/types/modules/word/index.browser.d.ts +4 -0
- package/dist/types/modules/word/index.d.ts +4 -0
- package/dist/types/modules/word/internal-utils.d.ts +23 -0
- package/dist/types/modules/word/relationships.d.ts +31 -0
- package/dist/types/modules/word/types.d.ts +2325 -0
- package/dist/types/modules/word/units.d.ts +49 -0
- package/dist/types/modules/word/writers/chart-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/checkbox-writer.d.ts +9 -0
- package/dist/types/modules/word/writers/comment-writer.d.ts +15 -0
- package/dist/types/modules/word/writers/document-writer.d.ts +16 -0
- package/dist/types/modules/word/writers/footnote-writer.d.ts +11 -0
- package/dist/types/modules/word/writers/header-footer-writer.d.ts +13 -0
- package/dist/types/modules/word/writers/image-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/math-writer.d.ts +9 -0
- package/dist/types/modules/word/writers/numbering-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/paragraph-writer.d.ts +13 -0
- package/dist/types/modules/word/writers/parts-writer.d.ts +26 -0
- package/dist/types/modules/word/writers/run-writer.d.ts +15 -0
- package/dist/types/modules/word/writers/section-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/styles-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/table-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/textbox-writer.d.ts +9 -0
- package/dist/types/modules/word/writers/toc-writer.d.ts +9 -0
- package/dist/types/modules/xml/encode.d.ts +56 -7
- package/package.json +29 -11
- package/dist/browser/modules/excel/utils/ooxml-validator.d.ts +0 -48
- package/dist/browser/modules/excel/utils/ooxml-validator.js +0 -493
- package/dist/browser/modules/excel/utils/passthrough-manager.d.ts +0 -77
- package/dist/browser/modules/excel/utils/passthrough-manager.js +0 -129
- package/dist/cjs/modules/excel/utils/ooxml-validator.js +0 -499
- package/dist/cjs/modules/excel/utils/passthrough-manager.js +0 -133
- package/dist/esm/modules/excel/utils/ooxml-validator.js +0 -493
- package/dist/esm/modules/excel/utils/passthrough-manager.js +0 -129
- package/dist/types/modules/excel/utils/ooxml-validator.d.ts +0 -48
- package/dist/types/modules/excel/utils/passthrough-manager.d.ts +0 -77
|
@@ -38,6 +38,15 @@ export declare class FontManager {
|
|
|
38
38
|
private nextEmbeddedId;
|
|
39
39
|
private type3CodePoints;
|
|
40
40
|
private _type3Result;
|
|
41
|
+
/**
|
|
42
|
+
* Every distinct unknown font family passed to `resolveFont` since this
|
|
43
|
+
* manager was constructed. A "family" counts as unknown when it isn't
|
|
44
|
+
* in `FONT_FAMILY_MAP` and isn't the canonical "helvetica"/"times"/
|
|
45
|
+
* "courier" identifier. Populated as a set so a document that repeats
|
|
46
|
+
* the same missing family across hundreds of text runs still produces
|
|
47
|
+
* a single diagnostic.
|
|
48
|
+
*/
|
|
49
|
+
private _unknownFontFamilies;
|
|
41
50
|
/**
|
|
42
51
|
* Register an embedded TrueType font for use.
|
|
43
52
|
* When set, all text rendering uses this font instead of standard fonts.
|
|
@@ -47,6 +56,22 @@ export declare class FontManager {
|
|
|
47
56
|
* Check if an embedded font is available.
|
|
48
57
|
*/
|
|
49
58
|
hasEmbeddedFont(): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Read-only view of the non-WinAnsi code points encountered so far when
|
|
61
|
+
* no font is embedded. Used by callers (`PdfDocumentBuilder.build()`)
|
|
62
|
+
* to decide whether to auto-discover a system font before the Type3
|
|
63
|
+
* fallback kicks in. Returns a defensive copy so consumers cannot
|
|
64
|
+
* mutate the internal set.
|
|
65
|
+
*/
|
|
66
|
+
getType3CodePoints(): Set<number>;
|
|
67
|
+
/**
|
|
68
|
+
* Read-only view of the font families `resolveFont` saw but could not
|
|
69
|
+
* map to a standard Type1 (Helvetica/Times/Courier) base. Consumers
|
|
70
|
+
* use this to emit one diagnostic per distinct missing family at
|
|
71
|
+
* build time rather than one per text run. The set is deduplicated
|
|
72
|
+
* and preserves the exact casing the caller supplied.
|
|
73
|
+
*/
|
|
74
|
+
getUnknownFontFamilies(): Set<string>;
|
|
50
75
|
/**
|
|
51
76
|
* Get the embedded font's resource name (if registered).
|
|
52
77
|
*/
|
|
@@ -125,6 +125,16 @@ export class FontManager {
|
|
|
125
125
|
// --- Type3 fallback font tracking ---
|
|
126
126
|
this.type3CodePoints = new Set();
|
|
127
127
|
this._type3Result = null;
|
|
128
|
+
// --- Diagnostic tracking (consumed by writers that surface warnings) ---
|
|
129
|
+
/**
|
|
130
|
+
* Every distinct unknown font family passed to `resolveFont` since this
|
|
131
|
+
* manager was constructed. A "family" counts as unknown when it isn't
|
|
132
|
+
* in `FONT_FAMILY_MAP` and isn't the canonical "helvetica"/"times"/
|
|
133
|
+
* "courier" identifier. Populated as a set so a document that repeats
|
|
134
|
+
* the same missing family across hundreds of text runs still produces
|
|
135
|
+
* a single diagnostic.
|
|
136
|
+
*/
|
|
137
|
+
this._unknownFontFamilies = new Set();
|
|
128
138
|
/** Stored after writeFontResources is called */
|
|
129
139
|
this._embeddedResult = null;
|
|
130
140
|
}
|
|
@@ -146,6 +156,26 @@ export class FontManager {
|
|
|
146
156
|
hasEmbeddedFont() {
|
|
147
157
|
return this.embeddedFont !== null;
|
|
148
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Read-only view of the non-WinAnsi code points encountered so far when
|
|
161
|
+
* no font is embedded. Used by callers (`PdfDocumentBuilder.build()`)
|
|
162
|
+
* to decide whether to auto-discover a system font before the Type3
|
|
163
|
+
* fallback kicks in. Returns a defensive copy so consumers cannot
|
|
164
|
+
* mutate the internal set.
|
|
165
|
+
*/
|
|
166
|
+
getType3CodePoints() {
|
|
167
|
+
return new Set(this.type3CodePoints);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Read-only view of the font families `resolveFont` saw but could not
|
|
171
|
+
* map to a standard Type1 (Helvetica/Times/Courier) base. Consumers
|
|
172
|
+
* use this to emit one diagnostic per distinct missing family at
|
|
173
|
+
* build time rather than one per text run. The set is deduplicated
|
|
174
|
+
* and preserves the exact casing the caller supplied.
|
|
175
|
+
*/
|
|
176
|
+
getUnknownFontFamilies() {
|
|
177
|
+
return new Set(this._unknownFontFamilies);
|
|
178
|
+
}
|
|
149
179
|
/**
|
|
150
180
|
* Get the embedded font's resource name (if registered).
|
|
151
181
|
*/
|
|
@@ -203,6 +233,15 @@ export class FontManager {
|
|
|
203
233
|
if (this.embeddedFont) {
|
|
204
234
|
return this.embeddedResourceName;
|
|
205
235
|
}
|
|
236
|
+
// Record unknown families so writers can emit a single diagnostic
|
|
237
|
+
// at build time instead of spamming one warning per text run.
|
|
238
|
+
// The canonical base-name keys are kept in FONT_FAMILY_MAP; anything
|
|
239
|
+
// not present will `?? "Helvetica"` in `resolveBaseFont` — that's the
|
|
240
|
+
// trigger for a "family not recognised" diagnostic.
|
|
241
|
+
const lowerKey = fontFamily.toLowerCase().trim();
|
|
242
|
+
if (lowerKey && FONT_FAMILY_MAP[lowerKey] === undefined) {
|
|
243
|
+
this._unknownFontFamilies.add(fontFamily);
|
|
244
|
+
}
|
|
206
245
|
const pdfFontName = resolvePdfFontName(fontFamily, bold, italic);
|
|
207
246
|
return this.ensureFont(pdfFontName);
|
|
208
247
|
}
|
|
@@ -43,7 +43,10 @@
|
|
|
43
43
|
/** Standalone PDF generation — accepts plain arrays, sheet objects, or workbooks. */
|
|
44
44
|
export { pdf } from "./pdf.js";
|
|
45
45
|
/** Excel-to-PDF conversion — accepts an Excel Workbook instance. */
|
|
46
|
-
export { excelToPdf } from "./excel-bridge.js";
|
|
46
|
+
export { excelToPdf, chartToPdf, type ChartToPdfOptions } from "./excel-bridge.js";
|
|
47
|
+
/** Word-to-PDF conversion — accepts a DocxDocument. */
|
|
48
|
+
export { docxToPdf } from "./word-bridge.js";
|
|
49
|
+
export type { DocxToPdfOptions } from "./word-bridge.js";
|
|
47
50
|
/** Read a PDF file and extract text, images, and metadata. */
|
|
48
51
|
export { readPdf } from "./reader/pdf-reader.js";
|
|
49
52
|
/** Build PDFs with free text positioning, vector drawing, and images. */
|
|
@@ -63,7 +66,7 @@ export type { PdfAnnotation, PdfRect } from "./reader/annotation-extractor.js";
|
|
|
63
66
|
export type { PdfFormField, PdfFormFieldType } from "./reader/form-extractor.js";
|
|
64
67
|
export type { PdfBookmark } from "./reader/bookmark-extractor.js";
|
|
65
68
|
export type { PdfTable, PdfTableRow, PdfTableCell } from "./reader/table-extractor.js";
|
|
66
|
-
export type { PageOptions, DrawTextOptions, DrawRectOptions, DrawCircleOptions, DrawEllipseOptions, DrawLineOptions, DrawPathOptions, DrawImageOptions, DocumentMetadata, PathOp, TocOptions, AnnotationType, AnnotationOptions, TextMarkupAnnotationOptions, TextAnnotationOptions, FreeTextAnnotationOptions, StampAnnotationOptions, FormFieldOptions, TextFieldOptions, CheckboxOptions, DropdownOptions, RadioGroupOptions, PdfSignatureOptions } from "./builder/document-builder.js";
|
|
69
|
+
export type { PageOptions, DrawSvgOptions, DrawTextOptions, DrawRectOptions, DrawCircleOptions, DrawEllipseOptions, DrawLineOptions, DrawPathOptions, DrawImageOptions, DocumentMetadata, PathOp, TocOptions, AnnotationType, AnnotationOptions, TextMarkupAnnotationOptions, TextAnnotationOptions, FreeTextAnnotationOptions, StampAnnotationOptions, FormFieldOptions, TextFieldOptions, CheckboxOptions, DropdownOptions, RadioGroupOptions, PdfSignatureOptions } from "./builder/document-builder.js";
|
|
67
70
|
export type { LoadOptions } from "./builder/pdf-editor.js";
|
|
68
71
|
export type { SignatureVerificationResult, CmsSignedData, SignOptions, Asn1Node } from "./core/digital-signature.js";
|
|
69
72
|
export { PdfError, PdfRenderError, PdfFontError, PdfStructureError, isPdfError } from "./errors.js";
|
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
/** Standalone PDF generation — accepts plain arrays, sheet objects, or workbooks. */
|
|
47
47
|
export { pdf } from "./pdf.js";
|
|
48
48
|
/** Excel-to-PDF conversion — accepts an Excel Workbook instance. */
|
|
49
|
-
export { excelToPdf } from "./excel-bridge.js";
|
|
49
|
+
export { excelToPdf, chartToPdf } from "./excel-bridge.js";
|
|
50
|
+
/** Word-to-PDF conversion — accepts a DocxDocument. */
|
|
51
|
+
export { docxToPdf } from "./word-bridge.js";
|
|
50
52
|
// =============================================================================
|
|
51
53
|
// Public API — Reading
|
|
52
54
|
// =============================================================================
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapter that exposes a {@link PdfChartDrawingSurface} on top of a raw
|
|
3
|
+
* {@link PdfContentStream}, letting the page-level exporter forward a chart's
|
|
4
|
+
* vector drawing callback into the same stream that renders the spreadsheet
|
|
5
|
+
* cells.
|
|
6
|
+
*
|
|
7
|
+
* Why this exists: the `chartToPdf` helper in `excel-bridge.ts` renders a
|
|
8
|
+
* single chart onto a `PdfDocumentBuilder` page (which natively implements
|
|
9
|
+
* the chart surface). For workbook-level `excelToPdf`, rendering happens via
|
|
10
|
+
* `pdf-exporter.ts` + `PdfContentStream`, which predate the chart surface.
|
|
11
|
+
* The adapter bridges the two worlds so a chart can be drawn at any
|
|
12
|
+
* `(x, y, width, height)` rect on an already-populated page without
|
|
13
|
+
* refactoring the exporter pipeline.
|
|
14
|
+
*
|
|
15
|
+
* All coordinates are PDF points with **bottom-left origin** — matching the
|
|
16
|
+
* convention the chart renderer emits after its internal Y-flip (see
|
|
17
|
+
* `translateScene` in `@excel/chart/chart-renderer.ts`).
|
|
18
|
+
*/
|
|
19
|
+
import type { PdfContentStream } from "../core/pdf-stream.js";
|
|
20
|
+
import type { FontManager } from "../font/font-manager.js";
|
|
21
|
+
import type { PdfChartDrawingSurface } from "../types.js";
|
|
22
|
+
/**
|
|
23
|
+
* Build a {@link PdfChartDrawingSurface} that forwards to the given content
|
|
24
|
+
* stream. The returned surface is stateful — callers should not mix it with
|
|
25
|
+
* direct stream mutations for the duration of chart rendering.
|
|
26
|
+
*
|
|
27
|
+
* @param stream Content stream receiving the drawing operators.
|
|
28
|
+
* @param fontManager Font manager used for text layout and Type3 fallback.
|
|
29
|
+
* @param alphaValues Shared set that accumulates transparency values for
|
|
30
|
+
* later `ExtGState` registration. The surface adds any
|
|
31
|
+
* `color.a` values it observes to this set.
|
|
32
|
+
*/
|
|
33
|
+
export declare function createChartSurface(stream: PdfContentStream, fontManager: FontManager, alphaValues: Set<number>): PdfChartDrawingSurface;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapter that exposes a {@link PdfChartDrawingSurface} on top of a raw
|
|
3
|
+
* {@link PdfContentStream}, letting the page-level exporter forward a chart's
|
|
4
|
+
* vector drawing callback into the same stream that renders the spreadsheet
|
|
5
|
+
* cells.
|
|
6
|
+
*
|
|
7
|
+
* Why this exists: the `chartToPdf` helper in `excel-bridge.ts` renders a
|
|
8
|
+
* single chart onto a `PdfDocumentBuilder` page (which natively implements
|
|
9
|
+
* the chart surface). For workbook-level `excelToPdf`, rendering happens via
|
|
10
|
+
* `pdf-exporter.ts` + `PdfContentStream`, which predate the chart surface.
|
|
11
|
+
* The adapter bridges the two worlds so a chart can be drawn at any
|
|
12
|
+
* `(x, y, width, height)` rect on an already-populated page without
|
|
13
|
+
* refactoring the exporter pipeline.
|
|
14
|
+
*
|
|
15
|
+
* All coordinates are PDF points with **bottom-left origin** — matching the
|
|
16
|
+
* convention the chart renderer emits after its internal Y-flip (see
|
|
17
|
+
* `translateScene` in `@excel/chart/chart-renderer.ts`).
|
|
18
|
+
*/
|
|
19
|
+
import { resolvePdfFontName } from "../font/font-manager.js";
|
|
20
|
+
import { alphaGsName, emitTextWithMatrix } from "./page-renderer.js";
|
|
21
|
+
/**
|
|
22
|
+
* Build a {@link PdfChartDrawingSurface} that forwards to the given content
|
|
23
|
+
* stream. The returned surface is stateful — callers should not mix it with
|
|
24
|
+
* direct stream mutations for the duration of chart rendering.
|
|
25
|
+
*
|
|
26
|
+
* @param stream Content stream receiving the drawing operators.
|
|
27
|
+
* @param fontManager Font manager used for text layout and Type3 fallback.
|
|
28
|
+
* @param alphaValues Shared set that accumulates transparency values for
|
|
29
|
+
* later `ExtGState` registration. The surface adds any
|
|
30
|
+
* `color.a` values it observes to this set.
|
|
31
|
+
*/
|
|
32
|
+
export function createChartSurface(stream, fontManager, alphaValues) {
|
|
33
|
+
const applyAlpha = (color) => {
|
|
34
|
+
if (color?.a !== undefined && color.a < 1) {
|
|
35
|
+
alphaValues.add(color.a);
|
|
36
|
+
stream.setGraphicsState(alphaGsName(color.a));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const paintFillStroke = (options) => {
|
|
40
|
+
const { fill, stroke, lineWidth } = options;
|
|
41
|
+
if (fill) {
|
|
42
|
+
stream.setFillColor(fill);
|
|
43
|
+
applyAlpha(fill);
|
|
44
|
+
}
|
|
45
|
+
if (stroke) {
|
|
46
|
+
stream.setStrokeColor(stroke);
|
|
47
|
+
// When fill applied a sub-1 alpha but stroke is fully opaque (no
|
|
48
|
+
// `a` field or `a >= 1`), we must explicitly restore opaque alpha
|
|
49
|
+
// so the stroke is not drawn with the fill's transparency. The
|
|
50
|
+
// ExtGState set by `applyAlpha(fill)` applies to both fill and
|
|
51
|
+
// stroke operations in PDF; without this reset the stroke leaks
|
|
52
|
+
// the fill's alpha.
|
|
53
|
+
const strokeNeedsAlpha = stroke.a !== undefined && stroke.a < 1;
|
|
54
|
+
const fillAppliedAlpha = fill?.a !== undefined && fill.a < 1;
|
|
55
|
+
if (strokeNeedsAlpha) {
|
|
56
|
+
applyAlpha(stroke);
|
|
57
|
+
}
|
|
58
|
+
else if (fillAppliedAlpha) {
|
|
59
|
+
// Reset to fully opaque for the stroke
|
|
60
|
+
alphaValues.add(1);
|
|
61
|
+
stream.setGraphicsState(alphaGsName(1));
|
|
62
|
+
}
|
|
63
|
+
if (lineWidth !== undefined) {
|
|
64
|
+
stream.setLineWidth(lineWidth);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (fill && stroke) {
|
|
68
|
+
stream.fillAndStroke();
|
|
69
|
+
}
|
|
70
|
+
else if (fill) {
|
|
71
|
+
stream.fill();
|
|
72
|
+
}
|
|
73
|
+
else if (stroke) {
|
|
74
|
+
stream.stroke();
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
stream.endPath();
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
return {
|
|
81
|
+
drawRect(options) {
|
|
82
|
+
const { x, y, width, height, fill, stroke, lineWidth } = options;
|
|
83
|
+
stream.save();
|
|
84
|
+
stream.rect(x, y, width, height);
|
|
85
|
+
paintFillStroke({ fill, stroke, lineWidth });
|
|
86
|
+
stream.restore();
|
|
87
|
+
return this;
|
|
88
|
+
},
|
|
89
|
+
drawLine(options) {
|
|
90
|
+
const { x1, y1, x2, y2, color, lineWidth, dashPattern } = options;
|
|
91
|
+
stream.save();
|
|
92
|
+
if (color) {
|
|
93
|
+
stream.setStrokeColor(color);
|
|
94
|
+
applyAlpha(color);
|
|
95
|
+
}
|
|
96
|
+
if (lineWidth !== undefined) {
|
|
97
|
+
stream.setLineWidth(lineWidth);
|
|
98
|
+
}
|
|
99
|
+
if (dashPattern && dashPattern.length > 0) {
|
|
100
|
+
stream.setDashPattern(dashPattern);
|
|
101
|
+
}
|
|
102
|
+
stream.moveTo(x1, y1).lineTo(x2, y2).stroke();
|
|
103
|
+
stream.restore();
|
|
104
|
+
return this;
|
|
105
|
+
},
|
|
106
|
+
drawText(text, options) {
|
|
107
|
+
if (!text) {
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
const fontSize = options.fontSize ?? 10;
|
|
111
|
+
const color = options.color ?? { r: 0, g: 0, b: 0 };
|
|
112
|
+
const bold = options.bold ?? false;
|
|
113
|
+
const italic = options.italic ?? false;
|
|
114
|
+
const fontFamily = options.fontFamily ?? "Helvetica";
|
|
115
|
+
const anchor = options.anchor ?? "start";
|
|
116
|
+
const rotation = options.rotation ?? 0;
|
|
117
|
+
const resourceName = resolveResourceName(fontManager, fontFamily, bold, italic);
|
|
118
|
+
const useType3 = fontManager.hasType3Fonts() && !fontManager.hasEmbeddedFont();
|
|
119
|
+
// Resolve anchor into an x-shift along the text baseline direction.
|
|
120
|
+
// We measure with the primary resource; mixed-font runs use the
|
|
121
|
+
// same width estimate, which is correct for Latin-dominant chart
|
|
122
|
+
// labels and close enough for CJK fallbacks.
|
|
123
|
+
const measuredWidth = fontManager.measureText(text, resourceName, fontSize);
|
|
124
|
+
let anchorShift = 0;
|
|
125
|
+
if (anchor === "middle") {
|
|
126
|
+
anchorShift = -measuredWidth / 2;
|
|
127
|
+
}
|
|
128
|
+
else if (anchor === "end") {
|
|
129
|
+
anchorShift = -measuredWidth;
|
|
130
|
+
}
|
|
131
|
+
stream.save();
|
|
132
|
+
stream.setFillColor(color);
|
|
133
|
+
applyAlpha(color);
|
|
134
|
+
if (rotation === 0) {
|
|
135
|
+
emitTextWithMatrix(stream, text, 1, 0, 0, 1, options.x + anchorShift, options.y, resourceName, fontSize, fontManager, useType3);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
// Rotation: chart callers pass degrees clockwise (the interface
|
|
139
|
+
// is documented that way in `ChartPdfDrawingSurface.drawText`).
|
|
140
|
+
// PDF's text matrix rotates counter-clockwise with positive
|
|
141
|
+
// angle, so negate. The 2×3 matrix (a, b, c, d, tx, ty) rotates
|
|
142
|
+
// around the origin then translates; to rotate around the
|
|
143
|
+
// anchor point we translate there first (tx, ty) and push the
|
|
144
|
+
// anchor shift into the local frame (x component).
|
|
145
|
+
const theta = (-rotation * Math.PI) / 180;
|
|
146
|
+
const cos = Math.cos(theta);
|
|
147
|
+
const sin = Math.sin(theta);
|
|
148
|
+
emitTextWithMatrix(stream, text, cos, sin, -sin, cos, options.x + cos * anchorShift, options.y + sin * anchorShift, resourceName, fontSize, fontManager, useType3);
|
|
149
|
+
}
|
|
150
|
+
stream.restore();
|
|
151
|
+
return this;
|
|
152
|
+
},
|
|
153
|
+
drawCircle(options) {
|
|
154
|
+
const { cx, cy, r, fill, stroke, lineWidth } = options;
|
|
155
|
+
stream.save();
|
|
156
|
+
stream.circle(cx, cy, r);
|
|
157
|
+
paintFillStroke({ fill, stroke, lineWidth });
|
|
158
|
+
stream.restore();
|
|
159
|
+
return this;
|
|
160
|
+
},
|
|
161
|
+
drawPath(ops, options) {
|
|
162
|
+
stream.save();
|
|
163
|
+
for (const op of ops) {
|
|
164
|
+
switch (op.op) {
|
|
165
|
+
case "move":
|
|
166
|
+
stream.moveTo(op.x, op.y);
|
|
167
|
+
break;
|
|
168
|
+
case "line":
|
|
169
|
+
stream.lineTo(op.x, op.y);
|
|
170
|
+
break;
|
|
171
|
+
case "curve":
|
|
172
|
+
stream.curveTo(op.x1, op.y1, op.x2, op.y2, op.x3, op.y3);
|
|
173
|
+
break;
|
|
174
|
+
case "close":
|
|
175
|
+
stream.closePath();
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
if (options?.closePath) {
|
|
180
|
+
stream.closePath();
|
|
181
|
+
}
|
|
182
|
+
if (options?.dashPattern && options.dashPattern.length > 0) {
|
|
183
|
+
stream.setDashPattern(options.dashPattern);
|
|
184
|
+
}
|
|
185
|
+
paintFillStroke({
|
|
186
|
+
fill: options?.fill,
|
|
187
|
+
stroke: options?.stroke,
|
|
188
|
+
lineWidth: options?.lineWidth
|
|
189
|
+
});
|
|
190
|
+
stream.restore();
|
|
191
|
+
return this;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
function resolveResourceName(fontManager, fontFamily, bold, italic) {
|
|
196
|
+
if (fontManager.hasEmbeddedFont()) {
|
|
197
|
+
return fontManager.getEmbeddedResourceName();
|
|
198
|
+
}
|
|
199
|
+
return fontManager.ensureFont(resolvePdfFontName(fontFamily, bold, italic));
|
|
200
|
+
}
|
|
@@ -17,12 +17,33 @@
|
|
|
17
17
|
* - Skip hidden rows and columns
|
|
18
18
|
*/
|
|
19
19
|
import type { FontManager } from "../font/font-manager.js";
|
|
20
|
-
import type { PdfSheetData, ResolvedPdfOptions, LayoutPage, LayoutCell, LayoutBorder } from "../types.js";
|
|
20
|
+
import type { PdfSheetData, PdfChartsheetData, ResolvedPdfOptions, LayoutPage, LayoutCell, LayoutBorder } from "../types.js";
|
|
21
21
|
/**
|
|
22
22
|
* Compute the layout for a sheet across one or more PDF pages.
|
|
23
23
|
* Yields to the event loop between each output page.
|
|
24
24
|
*/
|
|
25
25
|
export declare function layoutSheet(sheet: PdfSheetData, options: ResolvedPdfOptions, fontManager: FontManager): Promise<LayoutPage[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Produce the layout for a chartsheet — a single PDF page whose entire
|
|
28
|
+
* content area is covered by one chart.
|
|
29
|
+
*
|
|
30
|
+
* Chartsheets have no row/column grid, so we bypass the cell-layout
|
|
31
|
+
* pipeline entirely. Page dimensions come from `options.pageSize`, with
|
|
32
|
+
* orientation overridden by the chartsheet's own `orientation` field
|
|
33
|
+
* (Excel's chartsheet convention defaults to landscape; see the
|
|
34
|
+
* `CHARTSHEET_EMU_CX/CY` constants that define the drawing canvas in
|
|
35
|
+
* `xlsx.browser.ts`).
|
|
36
|
+
*
|
|
37
|
+
* The returned LayoutPage has:
|
|
38
|
+
* - `cells = []` (no grid to render)
|
|
39
|
+
* - `charts` containing one full-content-area chart
|
|
40
|
+
* - all other cell-grid arrays empty
|
|
41
|
+
*
|
|
42
|
+
* The existing `renderSinglePage` in `pdf-exporter.ts` already handles
|
|
43
|
+
* pages with zero cells and a non-empty `charts` array via the shared
|
|
44
|
+
* chart-rendering path, so no exporter changes are needed here.
|
|
45
|
+
*/
|
|
46
|
+
export declare function layoutChartsheet(sheet: PdfChartsheetData, documentOptions: ResolvedPdfOptions): LayoutPage[];
|
|
26
47
|
export declare function paginateRows(rowHeights: number[], availableHeight: number, repeatRowCount: number, rowBreaks: Set<number>): number[][];
|
|
27
48
|
/**
|
|
28
49
|
* Border precedence weight.
|