@a3s-lab/office 0.1.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/LICENSE +21 -0
- package/README.md +470 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/0~1403.js +245 -0
- package/dist/0~152.js +94 -0
- package/dist/0~3539.js +1856 -0
- package/dist/0~3557.js +179 -0
- package/dist/0~3635.js +302 -0
- package/dist/0~4595.js +1162 -0
- package/dist/0~5050.js +308 -0
- package/dist/0~6552.js +787 -0
- package/dist/0~7048.js +2110 -0
- package/dist/0~7614.js +1037 -0
- package/dist/0~8155.js +299 -0
- package/dist/0~9445.js +283 -0
- package/dist/0~9512.js +743 -0
- package/dist/0~document-editor.js +10967 -0
- package/dist/0~markdown-editor.js +2260 -0
- package/dist/0~pdf-viewer.js +2156 -0
- package/dist/0~presentation-editor.js +8359 -0
- package/dist/0~rslib-runtime.js +27 -0
- package/dist/0~spreadsheet-editor.js +10388 -0
- package/dist/0~use-office-draft.js +46 -0
- package/dist/0~work-document-extensions.js +2470 -0
- package/dist/0~work-document-links.js +14 -0
- package/dist/0~work-document-model-codec.js +42 -0
- package/dist/0~work-document-page-color.js +11 -0
- package/dist/0~work-document-paragraph-formatting.js +425 -0
- package/dist/0~work-docx-bibliography.js +347 -0
- package/dist/0~work-docx-export.js +1151 -0
- package/dist/0~work-docx-import.js +3116 -0
- package/dist/0~work-docx-page-color.js +42 -0
- package/dist/0~work-office-diagnostics.js +1377 -0
- package/dist/0~work-pptx-export.js +1009 -0
- package/dist/0~work-pptx-import.js +1138 -0
- package/dist/0~work-presentation-charts.js +442 -0
- package/dist/0~work-presentation-transition.js +38 -0
- package/dist/0~work-presentation-visual-scale.js +38 -0
- package/dist/0~work-spreadsheet-formula-support.js +9 -0
- package/dist/1134.js +445 -0
- package/dist/4104.js +5786 -0
- package/dist/432.js +211 -0
- package/dist/4704.js +1364 -0
- package/dist/6489.js +182 -0
- package/dist/8715.js +3959 -0
- package/dist/8728.js +723 -0
- package/dist/9356.js +10 -0
- package/dist/core.d.ts +15 -0
- package/dist/core.js +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/internal/design-system/primitives/button/button.d.ts +9 -0
- package/dist/internal/design-system/primitives/button/icon-button.d.ts +7 -0
- package/dist/internal/design-system/primitives/dialog/dialog.d.ts +12 -0
- package/dist/internal/design-system/primitives/feedback/collection-state.d.ts +9 -0
- package/dist/internal/design-system/primitives/feedback/inline-notice.d.ts +10 -0
- package/dist/internal/design-system/primitives/feedback/state-view.d.ts +13 -0
- package/dist/internal/design-system/primitives/form/field.d.ts +19 -0
- package/dist/internal/design-system/primitives/index.d.ts +14 -0
- package/dist/internal/design-system/primitives/layout/split-handle.d.ts +17 -0
- package/dist/internal/design-system/primitives/navigation/segmented-control.d.ts +19 -0
- package/dist/internal/design-system/primitives/navigation/tab-navigation.d.ts +13 -0
- package/dist/internal/design-system/primitives/navigation/tabs.d.ts +21 -0
- package/dist/internal/design-system/primitives/overlay/dialog-focus-scope.d.ts +17 -0
- package/dist/internal/design-system/primitives/overlay/popover.d.ts +34 -0
- package/dist/internal/design-system/primitives/overlay/portal-root.d.ts +1 -0
- package/dist/internal/design-system/primitives/status/status-badge.d.ts +6 -0
- package/dist/internal/features/work/components/work-document-pages.d.ts +4 -0
- package/dist/internal/features/work/components/work-editor-agent-menus.d.ts +12 -0
- package/dist/internal/features/work/components/work-editor-loading-state.d.ts +3 -0
- package/dist/internal/features/work/editors/document-changes-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/document-citation-source-form.d.ts +33 -0
- package/dist/internal/features/work/editors/document-citations-panel.d.ts +8 -0
- package/dist/internal/features/work/editors/document-columns-panel.d.ts +5 -0
- package/dist/internal/features/work/editors/document-comment-composer.d.ts +13 -0
- package/dist/internal/features/work/editors/document-comments-panel.d.ts +17 -0
- package/dist/internal/features/work/editors/document-editor-focus.d.ts +1 -0
- package/dist/internal/features/work/editors/document-editor-pagination.d.ts +3 -0
- package/dist/internal/features/work/editors/document-editor-support.d.ts +34 -0
- package/dist/internal/features/work/editors/document-editor.d.ts +20 -0
- package/dist/internal/features/work/editors/document-find-highlight.d.ts +8 -0
- package/dist/internal/features/work/editors/document-find-replace-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/document-formatting-options.d.ts +113 -0
- package/dist/internal/features/work/editors/document-home-ribbon.d.ts +9 -0
- package/dist/internal/features/work/editors/document-layout-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/document-list-gallery.d.ts +4 -0
- package/dist/internal/features/work/editors/document-navigation-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/document-page-chrome-editor.d.ts +39 -0
- package/dist/internal/features/work/editors/document-page-chrome-panel.d.ts +5 -0
- package/dist/internal/features/work/editors/document-page-chrome-ribbon.d.ts +10 -0
- package/dist/internal/features/work/editors/document-page-navigation.d.ts +14 -0
- package/dist/internal/features/work/editors/document-page-stack.d.ts +8 -0
- package/dist/internal/features/work/editors/document-pagination-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-paragraph-spacing-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-picture-ribbon.d.ts +4 -0
- package/dist/internal/features/work/editors/document-ruler-tab-stops.d.ts +12 -0
- package/dist/internal/features/work/editors/document-ruler.d.ts +15 -0
- package/dist/internal/features/work/editors/document-selection-context-menu.d.ts +22 -0
- package/dist/internal/features/work/editors/document-selection-toolbar.d.ts +8 -0
- package/dist/internal/features/work/editors/document-status-bar.d.ts +19 -0
- package/dist/internal/features/work/editors/document-style-gallery.d.ts +4 -0
- package/dist/internal/features/work/editors/document-table-insert-popover.d.ts +4 -0
- package/dist/internal/features/work/editors/document-table-ribbon.d.ts +7 -0
- package/dist/internal/features/work/editors/document-task-pane.d.ts +11 -0
- package/dist/internal/features/work/editors/document-toolbar.d.ts +100 -0
- package/dist/internal/features/work/editors/document-vertical-ruler.d.ts +6 -0
- package/dist/internal/features/work/editors/markdown-editor-focus.d.ts +2 -0
- package/dist/internal/features/work/editors/markdown-editor.d.ts +16 -0
- package/dist/internal/features/work/editors/markdown-insert-dialog.d.ts +19 -0
- package/dist/internal/features/work/editors/markdown-selection-context-menu.d.ts +14 -0
- package/dist/internal/features/work/editors/markdown-source-commands.d.ts +41 -0
- package/dist/internal/features/work/editors/markdown-status.d.ts +7 -0
- package/dist/internal/features/work/editors/markdown-toolbar.d.ts +22 -0
- package/dist/internal/features/work/editors/markdown-workspace.d.ts +26 -0
- package/dist/internal/features/work/editors/office-checkbox.d.ts +9 -0
- package/dist/internal/features/work/editors/office-color-picker.d.ts +11 -0
- package/dist/internal/features/work/editors/office-controls.d.ts +7 -0
- package/dist/internal/features/work/editors/office-dialog.d.ts +35 -0
- package/dist/internal/features/work/editors/office-editor-extension.d.ts +86 -0
- package/dist/internal/features/work/editors/office-file-data.d.ts +1 -0
- package/dist/internal/features/work/editors/office-font-families.d.ts +187 -0
- package/dist/internal/features/work/editors/office-menu-keyboard.d.ts +2 -0
- package/dist/internal/features/work/editors/office-number-field.d.ts +21 -0
- package/dist/internal/features/work/editors/office-number-normalization.d.ts +9 -0
- package/dist/internal/features/work/editors/office-select.d.ts +19 -0
- package/dist/internal/features/work/editors/office-shortcuts.d.ts +1 -0
- package/dist/internal/features/work/editors/office-slider.d.ts +10 -0
- package/dist/internal/features/work/editors/office-table-dimensions.d.ts +4 -0
- package/dist/internal/features/work/editors/office-table-insert-popover.d.ts +7 -0
- package/dist/internal/features/work/editors/office-task-pane.d.ts +7 -0
- package/dist/internal/features/work/editors/office-text-field.d.ts +20 -0
- package/dist/internal/features/work/editors/office-tiptap-extensions.d.ts +2 -0
- package/dist/internal/features/work/editors/pdf-annotation-controller.d.ts +23 -0
- package/dist/internal/features/work/editors/pdf-editor-extensions.d.ts +36 -0
- package/dist/internal/features/work/editors/pdf-thumbnail-rail.d.ts +26 -0
- package/dist/internal/features/work/editors/pdf-toolbar.d.ts +23 -0
- package/dist/internal/features/work/editors/pdf-viewer-controller.d.ts +48 -0
- package/dist/internal/features/work/editors/pdf-viewer.d.ts +11 -0
- package/dist/internal/features/work/editors/presentation-arrangement-controller.d.ts +19 -0
- package/dist/internal/features/work/editors/presentation-chart-analysis-canvas.d.ts +21 -0
- package/dist/internal/features/work/editors/presentation-chart-axis-canvas.d.ts +33 -0
- package/dist/internal/features/work/editors/presentation-chart-axis-editor.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-canvas.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-cartesian-canvas.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-chart-data-label-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/presentation-chart-data-labels.d.ts +26 -0
- package/dist/internal/features/work/editors/presentation-chart-layout-editor.d.ts +5 -0
- package/dist/internal/features/work/editors/presentation-chart-legend-canvas.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-chart-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/presentation-chart-series-analysis-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/presentation-chart-series-canvas.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-command-controller.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-command-types.d.ts +206 -0
- package/dist/internal/features/work/editors/presentation-comments-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/presentation-context-menu.d.ts +11 -0
- package/dist/internal/features/work/editors/presentation-design-panel.d.ts +13 -0
- package/dist/internal/features/work/editors/presentation-editor-focus.d.ts +12 -0
- package/dist/internal/features/work/editors/presentation-editor-operations.d.ts +10 -0
- package/dist/internal/features/work/editors/presentation-editor-types.d.ts +22 -0
- package/dist/internal/features/work/editors/presentation-editor.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-keyboard-extension.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-player.d.ts +7 -0
- package/dist/internal/features/work/editors/presentation-presenter-view.d.ts +15 -0
- package/dist/internal/features/work/editors/presentation-selection.d.ts +21 -0
- package/dist/internal/features/work/editors/presentation-slide-canvas.d.ts +26 -0
- package/dist/internal/features/work/editors/presentation-slide-thumbnail.d.ts +18 -0
- package/dist/internal/features/work/editors/presentation-status-bar.d.ts +10 -0
- package/dist/internal/features/work/editors/presentation-text-editor.d.ts +22 -0
- package/dist/internal/features/work/editors/presentation-text-formatting.d.ts +3 -0
- package/dist/internal/features/work/editors/presentation-thumbnail-rail.d.ts +20 -0
- package/dist/internal/features/work/editors/presentation-toolbar.d.ts +19 -0
- package/dist/internal/features/work/editors/presentation-transition-panel.d.ts +9 -0
- package/dist/internal/features/work/editors/presentation-workspace.d.ts +38 -0
- package/dist/internal/features/work/editors/spreadsheet-calculation-model.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-calculation-projection.d.ts +32 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-axis-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-draft.d.ts +17 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-layout-editor.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-chart-series-style-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-clipboard-shortcuts.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-command-controller.d.ts +121 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-comparison-fields.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-format-model.d.ts +72 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-format-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-conditional-threshold-fields.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-context-menu.d.ts +36 -0
- package/dist/internal/features/work/editors/spreadsheet-data-label-editor.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-editor-ribbon.d.ts +46 -0
- package/dist/internal/features/work/editors/spreadsheet-editor-support.d.ts +31 -0
- package/dist/internal/features/work/editors/spreadsheet-editor.d.ts +16 -0
- package/dist/internal/features/work/editors/spreadsheet-error-bar-editor.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-find-bar.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-find.d.ts +9 -0
- package/dist/internal/features/work/editors/spreadsheet-formula-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-header-footer-fields.d.ts +5 -0
- package/dist/internal/features/work/editors/spreadsheet-keyboard-navigation.d.ts +18 -0
- package/dist/internal/features/work/editors/spreadsheet-number-format.d.ts +11 -0
- package/dist/internal/features/work/editors/spreadsheet-pivot-panel.d.ts +10 -0
- package/dist/internal/features/work/editors/spreadsheet-print-settings-panel.d.ts +6 -0
- package/dist/internal/features/work/editors/spreadsheet-protection-panel.d.ts +7 -0
- package/dist/internal/features/work/editors/spreadsheet-sheet-bar.d.ts +17 -0
- package/dist/internal/features/work/editors/spreadsheet-sheet-model.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-trendline-editor.d.ts +8 -0
- package/dist/internal/features/work/editors/spreadsheet-workbook-panel.d.ts +16 -0
- package/dist/internal/features/work/editors/use-document-comments.d.ts +26 -0
- package/dist/internal/features/work/editors/use-document-insert-commands.d.ts +19 -0
- package/dist/internal/features/work/editors/use-document-layout-fonts.d.ts +2 -0
- package/dist/internal/features/work/editors/use-document-page-chrome.d.ts +33 -0
- package/dist/internal/features/work/editors/use-document-pagination.d.ts +46 -0
- package/dist/internal/features/work/editors/use-markdown-source-history.d.ts +16 -0
- package/dist/internal/features/work/editors/use-office-draft.d.ts +10 -0
- package/dist/internal/features/work/editors/use-office-editor-keyboard-shortcuts.d.ts +9 -0
- package/dist/internal/features/work/editors/use-office-editor-runtime.d.ts +6 -0
- package/dist/internal/features/work/editors/use-office-editor-wheel-zoom.d.ts +19 -0
- package/dist/internal/features/work/editors/use-office-history.d.ts +10 -0
- package/dist/internal/features/work/editors/use-presentation-clipboard.d.ts +22 -0
- package/dist/internal/features/work/editors/use-presentation-design-commands.d.ts +33 -0
- package/dist/internal/features/work/editors/use-presentation-element-commands.d.ts +29 -0
- package/dist/internal/features/work/editors/use-presentation-geometry.d.ts +17 -0
- package/dist/internal/features/work/editors/use-presentation-history.d.ts +12 -0
- package/dist/internal/features/work/editors/use-presentation-review-commands.d.ts +22 -0
- package/dist/internal/features/work/editors/use-presentation-selection.d.ts +11 -0
- package/dist/internal/features/work/editors/use-presentation-slide-commands.d.ts +18 -0
- package/dist/internal/features/work/editors/use-presentation-thumbnail-visibility.d.ts +4 -0
- package/dist/internal/features/work/editors/use-presentation-thumbnail-window.d.ts +17 -0
- package/dist/internal/features/work/editors/use-presentation-transform.d.ts +53 -0
- package/dist/internal/features/work/editors/use-spreadsheet-calculation.d.ts +17 -0
- package/dist/internal/features/work/editors/use-spreadsheet-workbook-sync.d.ts +10 -0
- package/dist/internal/features/work/editors/work-office-chrome.d.ts +61 -0
- package/dist/internal/features/work/editors/work-office-ribbon-overflow.d.ts +18 -0
- package/dist/internal/features/work/work-agent-proposal-apply.d.ts +8 -0
- package/dist/internal/features/work/work-agent-proposal.d.ts +55 -0
- package/dist/internal/features/work/work-agent-request.d.ts +6 -0
- package/dist/internal/features/work/work-chart-series-analysis-context.d.ts +3 -0
- package/dist/internal/features/work/work-document-caption-nodes.d.ts +13 -0
- package/dist/internal/features/work/work-document-captions.d.ts +14 -0
- package/dist/internal/features/work/work-document-changes.d.ts +35 -0
- package/dist/internal/features/work/work-document-character-formatting.d.ts +13 -0
- package/dist/internal/features/work/work-document-citation-nodes.d.ts +25 -0
- package/dist/internal/features/work/work-document-citations.d.ts +21 -0
- package/dist/internal/features/work/work-document-columns.d.ts +15 -0
- package/dist/internal/features/work/work-document-comments.d.ts +48 -0
- package/dist/internal/features/work/work-document-extensions.d.ts +11 -0
- package/dist/internal/features/work/work-document-field-node.d.ts +12 -0
- package/dist/internal/features/work/work-document-fields.d.ts +15 -0
- package/dist/internal/features/work/work-document-file-io.d.ts +4 -0
- package/dist/internal/features/work/work-document-fonts.d.ts +16 -0
- package/dist/internal/features/work/work-document-image-layout.d.ts +29 -0
- package/dist/internal/features/work/work-document-incremental-layout.d.ts +17 -0
- package/dist/internal/features/work/work-document-layout.d.ts +5 -0
- package/dist/internal/features/work/work-document-line-measurement.d.ts +24 -0
- package/dist/internal/features/work/work-document-links.d.ts +2 -0
- package/dist/internal/features/work/work-document-lists.d.ts +25 -0
- package/dist/internal/features/work/work-document-model-codec.d.ts +3 -0
- package/dist/internal/features/work/work-document-model.d.ts +12 -0
- package/dist/internal/features/work/work-document-note-nodes.d.ts +11 -0
- package/dist/internal/features/work/work-document-notes.d.ts +18 -0
- package/dist/internal/features/work/work-document-outline.d.ts +14 -0
- package/dist/internal/features/work/work-document-page-break.d.ts +2 -0
- package/dist/internal/features/work/work-document-page-chrome-commands.d.ts +15 -0
- package/dist/internal/features/work/work-document-page-chrome.d.ts +19 -0
- package/dist/internal/features/work/work-document-page-color.d.ts +3 -0
- package/dist/internal/features/work/work-document-pages.d.ts +19 -0
- package/dist/internal/features/work/work-document-pagination-decorations.d.ts +3 -0
- package/dist/internal/features/work/work-document-pagination-dom.d.ts +35 -0
- package/dist/internal/features/work/work-document-pagination-measurement.d.ts +9 -0
- package/dist/internal/features/work/work-document-pagination-types.d.ts +88 -0
- package/dist/internal/features/work/work-document-pagination.d.ts +17 -0
- package/dist/internal/features/work/work-document-paragraph-formatting.d.ts +61 -0
- package/dist/internal/features/work/work-document-search.d.ts +11 -0
- package/dist/internal/features/work/work-document-section-editor.d.ts +20 -0
- package/dist/internal/features/work/work-document-section-node.d.ts +13 -0
- package/dist/internal/features/work/work-document-section.d.ts +34 -0
- package/dist/internal/features/work/work-document-selection-menu.d.ts +54 -0
- package/dist/internal/features/work/work-document-tab-node.d.ts +6 -0
- package/dist/internal/features/work/work-document-tab-stops.d.ts +29 -0
- package/dist/internal/features/work/work-document-table-cell-formatting.d.ts +46 -0
- package/dist/internal/features/work/work-document-table-commands.d.ts +17 -0
- package/dist/internal/features/work/work-document-table-pagination.d.ts +5 -0
- package/dist/internal/features/work/work-document-table-row.d.ts +37 -0
- package/dist/internal/features/work/work-document-table-sizing.d.ts +27 -0
- package/dist/internal/features/work/work-document-text-layout.d.ts +14 -0
- package/dist/internal/features/work/work-docx-bibliography.d.ts +12 -0
- package/dist/internal/features/work/work-docx-caption-diagnostics.d.ts +6 -0
- package/dist/internal/features/work/work-docx-caption-export.d.ts +4 -0
- package/dist/internal/features/work/work-docx-caption-fields.d.ts +5 -0
- package/dist/internal/features/work/work-docx-caption-import.d.ts +20 -0
- package/dist/internal/features/work/work-docx-change-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-citation-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-citation-export.d.ts +3 -0
- package/dist/internal/features/work/work-docx-citation-import.d.ts +23 -0
- package/dist/internal/features/work/work-docx-column-export.d.ts +14 -0
- package/dist/internal/features/work/work-docx-column-import.d.ts +2 -0
- package/dist/internal/features/work/work-docx-comment-import.d.ts +14 -0
- package/dist/internal/features/work/work-docx-export-formatting.d.ts +30 -0
- package/dist/internal/features/work/work-docx-export-image.d.ts +2 -0
- package/dist/internal/features/work/work-docx-export.d.ts +2 -0
- package/dist/internal/features/work/work-docx-field-export.d.ts +2 -0
- package/dist/internal/features/work/work-docx-field-import.d.ts +16 -0
- package/dist/internal/features/work/work-docx-field-instructions.d.ts +8 -0
- package/dist/internal/features/work/work-docx-image-layout-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-import.d.ts +50 -0
- package/dist/internal/features/work/work-docx-list-import.d.ts +14 -0
- package/dist/internal/features/work/work-docx-note-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-note-import.d.ts +3 -0
- package/dist/internal/features/work/work-docx-page-chrome-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-page-chrome-import.d.ts +11 -0
- package/dist/internal/features/work/work-docx-page-color.d.ts +2 -0
- package/dist/internal/features/work/work-docx-paragraph-alignment-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-direction-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-indent-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-pagination-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-spacing-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-paragraph-styles.d.ts +18 -0
- package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +19 -0
- package/dist/internal/features/work/work-docx-tab-stop-import.d.ts +13 -0
- package/dist/internal/features/work/work-docx-table-cell-export.d.ts +4 -0
- package/dist/internal/features/work/work-docx-table-cell-import.d.ts +16 -0
- package/dist/internal/features/work/work-docx-table-row-import.d.ts +13 -0
- package/dist/internal/features/work/work-docx-table-sizing-export.d.ts +8 -0
- package/dist/internal/features/work/work-docx-table-sizing-import.d.ts +12 -0
- package/dist/internal/features/work/work-docx-theme.d.ts +9 -0
- package/dist/internal/features/work/work-file-data.d.ts +1 -0
- package/dist/internal/features/work/work-file-download.d.ts +3 -0
- package/dist/internal/features/work/work-file-io.d.ts +8 -0
- package/dist/internal/features/work/work-markdown-extensions.d.ts +19 -0
- package/dist/internal/features/work/work-markdown-file-io.d.ts +3 -0
- package/dist/internal/features/work/work-markdown-selection-menu.d.ts +57 -0
- package/dist/internal/features/work/work-office-diagnostics.d.ts +9 -0
- package/dist/internal/features/work/work-ooxml-package.d.ts +28 -0
- package/dist/internal/features/work/work-pdf-export.d.ts +23 -0
- package/dist/internal/features/work/work-pptx-chart-axes.d.ts +3 -0
- package/dist/internal/features/work/work-pptx-chart-axis-diagnostics.d.ts +5 -0
- package/dist/internal/features/work/work-pptx-chart-data-labels.d.ts +12 -0
- package/dist/internal/features/work/work-pptx-chart-import.d.ts +11 -0
- package/dist/internal/features/work/work-pptx-chart-layout-style.d.ts +15 -0
- package/dist/internal/features/work/work-pptx-chart-series-analysis.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-chart-xy.d.ts +3 -0
- package/dist/internal/features/work/work-pptx-comments.d.ts +17 -0
- package/dist/internal/features/work/work-pptx-export.d.ts +4 -0
- package/dist/internal/features/work/work-pptx-groups.d.ts +19 -0
- package/dist/internal/features/work/work-pptx-import.d.ts +6 -0
- package/dist/internal/features/work/work-pptx-layout-export.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-layout-import.d.ts +30 -0
- package/dist/internal/features/work/work-pptx-style.d.ts +13 -0
- package/dist/internal/features/work/work-pptx-transition.d.ts +13 -0
- package/dist/internal/features/work/work-presentation-agent-context.d.ts +6 -0
- package/dist/internal/features/work/work-presentation-chart-axes.d.ts +14 -0
- package/dist/internal/features/work/work-presentation-charts.d.ts +37 -0
- package/dist/internal/features/work/work-presentation-clipboard.d.ts +26 -0
- package/dist/internal/features/work/work-presentation-file-io.d.ts +15 -0
- package/dist/internal/features/work/work-presentation-groups.d.ts +17 -0
- package/dist/internal/features/work/work-presentation-layouts.d.ts +13 -0
- package/dist/internal/features/work/work-presentation-transition.d.ts +4 -0
- package/dist/internal/features/work/work-presentation-visual-scale.d.ts +2 -0
- package/dist/internal/features/work/work-repository.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-agent-context.d.ts +15 -0
- package/dist/internal/features/work/work-spreadsheet-chart-axis.d.ts +42 -0
- package/dist/internal/features/work/work-spreadsheet-chart-layout.d.ts +29 -0
- package/dist/internal/features/work/work-spreadsheet-chart-legend-svg.d.ts +18 -0
- package/dist/internal/features/work/work-spreadsheet-chart-series-layout.d.ts +24 -0
- package/dist/internal/features/work/work-spreadsheet-chart-series-style.d.ts +29 -0
- package/dist/internal/features/work/work-spreadsheet-chart-svg-utils.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-chart-svg.d.ts +3 -0
- package/dist/internal/features/work/work-spreadsheet-chart-types.d.ts +147 -0
- package/dist/internal/features/work/work-spreadsheet-chart-validation.d.ts +2 -0
- package/dist/internal/features/work/work-spreadsheet-charts.d.ts +17 -0
- package/dist/internal/features/work/work-spreadsheet-combination-chart-svg.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-comments.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-canvas.d.ts +5 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-colors.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-comparisons.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-data-bar.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-format.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-icons.d.ts +107 -0
- package/dist/internal/features/work/work-spreadsheet-conditional-values.d.ts +19 -0
- package/dist/internal/features/work/work-spreadsheet-data-label-svg.d.ts +27 -0
- package/dist/internal/features/work/work-spreadsheet-error-bar-svg.d.ts +5 -0
- package/dist/internal/features/work/work-spreadsheet-error-bars.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-formula-analysis.d.ts +30 -0
- package/dist/internal/features/work/work-spreadsheet-formula-support.d.ts +1 -0
- package/dist/internal/features/work/work-spreadsheet-formulas.d.ts +19 -0
- package/dist/internal/features/work/work-spreadsheet-header-footer.d.ts +14 -0
- package/dist/internal/features/work/work-spreadsheet-line-chart-svg.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-page-breaks.d.ts +4 -0
- package/dist/internal/features/work/work-spreadsheet-page-setup.d.ts +26 -0
- package/dist/internal/features/work/work-spreadsheet-pivot-engine.d.ts +21 -0
- package/dist/internal/features/work/work-spreadsheet-pivot-values.d.ts +7 -0
- package/dist/internal/features/work/work-spreadsheet-pivots.d.ts +27 -0
- package/dist/internal/features/work/work-spreadsheet-protection.d.ts +55 -0
- package/dist/internal/features/work/work-spreadsheet-ranges.d.ts +25 -0
- package/dist/internal/features/work/work-spreadsheet-trendline-svg.d.ts +9 -0
- package/dist/internal/features/work/work-spreadsheet-trendlines.d.ts +11 -0
- package/dist/internal/features/work/work-spreadsheet-xy-chart-axes-svg.d.ts +10 -0
- package/dist/internal/features/work/work-templates.d.ts +4 -0
- package/dist/internal/features/work/work-types.d.ts +513 -0
- package/dist/internal/features/work/work-xlsx-chart-axes.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-chart-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-chart-layout.d.ts +16 -0
- package/dist/internal/features/work/work-xlsx-chart-series-style.d.ts +6 -0
- package/dist/internal/features/work/work-xlsx-chart-values.d.ts +10 -0
- package/dist/internal/features/work/work-xlsx-charts.d.ts +32 -0
- package/dist/internal/features/work/work-xlsx-conditional-format-diagnostics.d.ts +6 -0
- package/dist/internal/features/work/work-xlsx-conditional-format-write.d.ts +11 -0
- package/dist/internal/features/work/work-xlsx-conditional-format.d.ts +29 -0
- package/dist/internal/features/work/work-xlsx-defined-names.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-drawing-geometry.d.ts +27 -0
- package/dist/internal/features/work/work-xlsx-formula-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-formulas.d.ts +40 -0
- package/dist/internal/features/work/work-xlsx-header-footer.d.ts +12 -0
- package/dist/internal/features/work/work-xlsx-images.d.ts +17 -0
- package/dist/internal/features/work/work-xlsx-interop.d.ts +39 -0
- package/dist/internal/features/work/work-xlsx-page-breaks.d.ts +7 -0
- package/dist/internal/features/work/work-xlsx-page-setup-diagnostics.d.ts +2 -0
- package/dist/internal/features/work/work-xlsx-page-setup.d.ts +5 -0
- package/dist/internal/features/work/work-xlsx-pivot-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-pivot-xml.d.ts +9 -0
- package/dist/internal/features/work/work-xlsx-pivots.d.ts +32 -0
- package/dist/internal/features/work/work-xlsx-protection.d.ts +24 -0
- package/dist/internal/features/workspace/components/workspace-context-menu.d.ts +29 -0
- package/dist/internal/features/workspace/components/workspace-text-control-selection.d.ts +7 -0
- package/dist/internal/kernel/office-kernel-client-types.d.ts +40 -0
- package/dist/internal/kernel/office-kernel-client.d.ts +4 -0
- package/dist/internal/kernel/office-kernel-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-presentation-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-protocol.d.ts +229 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-formula.d.ts +3 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-validation.d.ts +5 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback-value.d.ts +6 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-fallback.d.ts +2 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-protocol.d.ts +112 -0
- package/dist/internal/kernel/office-kernel-spreadsheet-session-fallback.d.ts +8 -0
- package/dist/internal/kernel/office-kernel-text-fallback.d.ts +10 -0
- package/dist/internal/kernel/office-kernel-version.d.ts +1 -0
- package/dist/internal/kernel/office-kernel.worker.d.ts +1 -0
- package/dist/internal/keyboard-shortcuts.d.ts +2 -0
- package/dist/internal/state/app-state.d.ts +8 -0
- package/dist/noto-naskh-arabic-regular.ttf +0 -0
- package/dist/noto-naskh-arabic.LICENSE.txt +94 -0
- package/dist/noto-sans-hans-regular.otf +0 -0
- package/dist/noto-sans-hans.LICENSE.txt +94 -0
- package/dist/noto-sans-hebrew-regular.ttf +0 -0
- package/dist/noto-sans-hebrew.LICENSE.txt +94 -0
- package/dist/noto-sans-regular.ttf +0 -0
- package/dist/noto-sans.LICENSE.txt +94 -0
- package/dist/office-kernel.wasm +0 -0
- package/dist/office-kernel.worker.js +14605 -0
- package/dist/office-surface.d.ts +10 -0
- package/dist/pdfium.LICENSE.txt +196 -0
- package/dist/pdfium.wasm +0 -0
- package/dist/pptxgen.LICENSE.txt +21 -0
- package/dist/pptxgen.bundle.js +11244 -0
- package/dist/react.d.ts +51 -0
- package/dist/react.js +1 -0
- package/dist/styles.css +17435 -0
- package/dist/styles.js +0 -0
- package/dist/vue.d.ts +282 -0
- package/dist/vue.js +231 -0
- package/dist/web-component.d.ts +98 -0
- package/dist/web-component.js +335 -0
- package/docs/browser-editor-architecture.md +947 -0
- package/package.json +165 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WorkSlide, WorkSlideChart, WorkSlideChartDataLabels, WorkSlideChartType } from './work-types';
|
|
2
|
+
export interface PptxChartDataLabelDiagnostic {
|
|
3
|
+
code: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PptxChartDataLabelReadResult {
|
|
7
|
+
dataLabels?: WorkSlideChartDataLabels;
|
|
8
|
+
diagnostics: PptxChartDataLabelDiagnostic[];
|
|
9
|
+
}
|
|
10
|
+
export declare function readPptxChartDataLabels(chartNode: Element | undefined, chartType: WorkSlideChartType): PptxChartDataLabelReadResult;
|
|
11
|
+
export declare function patchPptxChartDataLabels(buffer: ArrayBuffer, slides: readonly WorkSlide[]): Promise<ArrayBuffer>;
|
|
12
|
+
export declare function writePptxChartDataLabels(document: Document, chartNode: Element, chart: WorkSlideChart): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WorkSlideChart } from './work-types';
|
|
2
|
+
export interface PptxChartImportDiagnostic {
|
|
3
|
+
code: string;
|
|
4
|
+
feature: string;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PptxChartImportResult {
|
|
8
|
+
chart: WorkSlideChart;
|
|
9
|
+
diagnostics: PptxChartImportDiagnostic[];
|
|
10
|
+
}
|
|
11
|
+
export declare function readPptxChart(document: Document): PptxChartImportResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChartLayout } from './work-spreadsheet-chart-layout';
|
|
2
|
+
import type { WorkSlide, WorkSlideChart, WorkSlideChartSeriesStyle } from './work-types';
|
|
3
|
+
export interface PptxChartFormattingDiagnostic {
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PptxChartLayoutStyleReadResult {
|
|
8
|
+
legendOverlay?: boolean;
|
|
9
|
+
layout: WorkSpreadsheetChartLayout;
|
|
10
|
+
seriesStyles: Array<WorkSlideChartSeriesStyle | undefined>;
|
|
11
|
+
diagnostics: PptxChartFormattingDiagnostic[];
|
|
12
|
+
}
|
|
13
|
+
export declare function readPptxChartLayoutAndSeriesStyles(document: Document, chartNode: Element | undefined, chartType: WorkSlideChart['type'], seriesNodes: readonly Element[]): PptxChartLayoutStyleReadResult;
|
|
14
|
+
export declare function patchPptxChartLayoutAndSeriesStyles(buffer: ArrayBuffer, slides: readonly WorkSlide[]): Promise<ArrayBuffer>;
|
|
15
|
+
export declare function writePptxChartLayoutAndSeriesStyles(document: Document, chartNode: Element, chart: WorkSlideChart): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type WorkSlide, type WorkSlideChart, type WorkSpreadsheetErrorBars, type WorkSpreadsheetTrendline } from './work-types';
|
|
2
|
+
export interface PptxChartSeriesAnalysisDiagnostic {
|
|
3
|
+
code: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PptxChartSeriesAnalysisReadResult {
|
|
7
|
+
trendlines?: WorkSpreadsheetTrendline[];
|
|
8
|
+
errorBars?: WorkSpreadsheetErrorBars[];
|
|
9
|
+
diagnostics: PptxChartSeriesAnalysisDiagnostic[];
|
|
10
|
+
}
|
|
11
|
+
export declare function readPptxChartSeriesAnalysis(seriesNode: Element, chartType: WorkSlideChart['type']): PptxChartSeriesAnalysisReadResult;
|
|
12
|
+
export declare function patchPptxChartSeriesAnalysis(buffer: ArrayBuffer, slides: readonly WorkSlide[]): Promise<ArrayBuffer>;
|
|
13
|
+
export declare function writePptxChartSeriesAnalysis(document: Document, chartNode: Element, chart: WorkSlideChart): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { WorkSlide, WorkSlideChart } from './work-types';
|
|
2
|
+
export declare function patchPptxChartXySettings(buffer: ArrayBuffer, slides: readonly WorkSlide[]): Promise<ArrayBuffer>;
|
|
3
|
+
export declare function writePptxChartXySettings(document: Document, chartNode: Element, chart: WorkSlideChart): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type OoxmlPackage, type OoxmlRelationship } from './work-ooxml-package';
|
|
2
|
+
import type { WorkSlide, WorkSlideComment } from './work-types';
|
|
3
|
+
export interface PptxCommentAuthor {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
initials: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PptxSlideCommentReadResult {
|
|
9
|
+
comments: WorkSlideComment[];
|
|
10
|
+
hasLegacyComments: boolean;
|
|
11
|
+
hasUnsupportedThreadedComments: boolean;
|
|
12
|
+
hasUnreadableComments: boolean;
|
|
13
|
+
hasMalformedMetadata: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function loadPptxCommentAuthors(archive: OoxmlPackage, presentationRelationships: Map<string, OoxmlRelationship>): Promise<Map<string, PptxCommentAuthor>>;
|
|
16
|
+
export declare function readPptxSlideComments(archive: OoxmlPackage, relationships: Map<string, OoxmlRelationship>, authors: Map<string, PptxCommentAuthor>, slideNumber: number, slideWidthEmu: number, slideHeightEmu: number): Promise<PptxSlideCommentReadResult>;
|
|
17
|
+
export declare function patchPptxComments(buffer: ArrayBuffer, slides: readonly WorkSlide[], slideWidth: number, slideHeight: number): Promise<ArrayBuffer>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WorkSlideElement } from './work-types';
|
|
2
|
+
export type PptxExportObjectRole = 'chart' | 'image' | 'line' | 'shape' | 'table' | 'text';
|
|
3
|
+
interface PptxExportBinding {
|
|
4
|
+
displayName: string;
|
|
5
|
+
groupPath: string[];
|
|
6
|
+
groupScope: string;
|
|
7
|
+
marker: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class PptxGroupExportRegistry {
|
|
10
|
+
private readonly bindings;
|
|
11
|
+
private readonly roleCounts;
|
|
12
|
+
private markerSequence;
|
|
13
|
+
get size(): number;
|
|
14
|
+
objectName(scope: string, element: WorkSlideElement, role: PptxExportObjectRole): string | undefined;
|
|
15
|
+
binding(marker: string): PptxExportBinding | undefined;
|
|
16
|
+
values(): IterableIterator<PptxExportBinding>;
|
|
17
|
+
}
|
|
18
|
+
export declare function patchPptxNativeGroups(buffer: ArrayBuffer, registry: PptxGroupExportRegistry): Promise<ArrayBuffer>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkCompatibilityReport, WorkPresentationContent } from './work-types';
|
|
2
|
+
export interface PptxImportResult {
|
|
3
|
+
content: WorkPresentationContent;
|
|
4
|
+
compatibility: WorkCompatibilityReport;
|
|
5
|
+
}
|
|
6
|
+
export declare function importPptxPresentation(file: File): Promise<PptxImportResult>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PptxGroupExportRegistry } from './work-pptx-groups';
|
|
2
|
+
import type { WorkPresentationContent } from './work-types';
|
|
3
|
+
type PptxConstructor = typeof import('pptxgenjs').default;
|
|
4
|
+
type PptxPresentation = InstanceType<PptxConstructor>;
|
|
5
|
+
export interface PptxLayoutBinding {
|
|
6
|
+
masterName: string;
|
|
7
|
+
placeholderNames: Map<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export declare function definePptxSlideLayouts(presentation: PptxPresentation, source: WorkPresentationContent, slideWidth: number, slideHeight: number, groups: PptxGroupExportRegistry): {
|
|
10
|
+
content: WorkPresentationContent;
|
|
11
|
+
bindings: Map<string, PptxLayoutBinding>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type OoxmlPackage, type OoxmlRelationship } from './work-ooxml-package';
|
|
2
|
+
import { type PptxThemeColors } from './work-pptx-style';
|
|
3
|
+
import type { WorkSlidePlaceholder } from './work-types';
|
|
4
|
+
export interface PptxRawBox {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
rotation?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PptxDesignPart {
|
|
12
|
+
path: string;
|
|
13
|
+
document: Document;
|
|
14
|
+
relationships: Map<string, OoxmlRelationship>;
|
|
15
|
+
name: string;
|
|
16
|
+
background?: string;
|
|
17
|
+
showMasterElements: boolean;
|
|
18
|
+
sourceType?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface PptxSlideInheritance {
|
|
21
|
+
layout?: PptxDesignPart;
|
|
22
|
+
master?: PptxDesignPart;
|
|
23
|
+
placeholders: Map<string, PptxRawBox>;
|
|
24
|
+
}
|
|
25
|
+
export declare function loadPptxSlideInheritance(archive: OoxmlPackage, slideRelationships: Map<string, OoxmlRelationship>, theme: PptxThemeColors): Promise<PptxSlideInheritance>;
|
|
26
|
+
export declare function pptxRawElementBox(node: Element): PptxRawBox | undefined;
|
|
27
|
+
export declare function pptxPlaceholderBox(node: Element, placeholders: Map<string, PptxRawBox>): PptxRawBox | undefined;
|
|
28
|
+
export declare function pptxPlaceholder(node: Element): WorkSlidePlaceholder | undefined;
|
|
29
|
+
export declare function pptxShowsMasterElements(document: Document): boolean;
|
|
30
|
+
export declare function loadPptxDesignPart(archive: OoxmlPackage, path: string, theme: PptxThemeColors, fallbackName: string): Promise<PptxDesignPart | undefined>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type OoxmlPackage, type OoxmlRelationship } from './work-ooxml-package';
|
|
2
|
+
import type { WorkSlideShapeType, WorkSlideTextAlign, WorkSlideVerticalAlign } from './work-types';
|
|
3
|
+
export type PptxThemeColors = Record<string, string>;
|
|
4
|
+
export interface PptxFillValue {
|
|
5
|
+
color: string;
|
|
6
|
+
opacity?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function loadPptxTheme(archive: OoxmlPackage, presentationRelationships: Map<string, OoxmlRelationship>): Promise<PptxThemeColors>;
|
|
9
|
+
export declare function readPptxBackground(document: Document, theme: PptxThemeColors): string | undefined;
|
|
10
|
+
export declare function readPptxFill(container: ParentNode | null | undefined, theme: PptxThemeColors, fallback: string): PptxFillValue;
|
|
11
|
+
export declare function supportedPptxShapeType(value: string): WorkSlideShapeType | undefined;
|
|
12
|
+
export declare function pptxTextAlignment(value: string | null): WorkSlideTextAlign;
|
|
13
|
+
export declare function pptxVerticalAlignment(value: string | null): WorkSlideVerticalAlign;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WorkSlide, WorkSlideTransition } from './work-types';
|
|
2
|
+
export interface PptxTransitionDiagnostic {
|
|
3
|
+
code: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PptxTransitionReadResult {
|
|
7
|
+
present: boolean;
|
|
8
|
+
transition?: WorkSlideTransition;
|
|
9
|
+
diagnostics: PptxTransitionDiagnostic[];
|
|
10
|
+
}
|
|
11
|
+
export declare function readPptxTransition(document: Document): PptxTransitionReadResult;
|
|
12
|
+
export declare function patchPptxTransitions(buffer: ArrayBuffer, slides: WorkSlide[]): Promise<ArrayBuffer>;
|
|
13
|
+
export declare function writePptxTransition(document: Document, transition: WorkSlideTransition | undefined): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WorkAgentProposalTarget } from './work-agent-proposal';
|
|
2
|
+
import { type WorkSlide, type WorkSlideElement } from './work-types';
|
|
3
|
+
export declare function presentationAgentSelection(slide: WorkSlide, slideIndex: number, slideCount: number, element?: WorkSlideElement | null): string;
|
|
4
|
+
export declare function presentationAgentProposalTargets(slide: WorkSlide, element?: WorkSlideElement | null): WorkAgentProposalTarget[];
|
|
5
|
+
export declare function presentationNotesProposalTarget(slide: WorkSlide): WorkAgentProposalTarget;
|
|
6
|
+
export declare function presentationElementText(element: WorkSlideElement): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WorkSlideChart, WorkSlideChartAxes, WorkSlideChartType } from './work-types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the editable primary axes in their physical bottom/left positions.
|
|
4
|
+
* Legacy category/value title fields are migrated on read so persisted charts
|
|
5
|
+
* created before the complete axis model continue to render and export.
|
|
6
|
+
*/
|
|
7
|
+
export declare function presentationChartAxes(chart: WorkSlideChart): WorkSlideChartAxes | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maps category/X and value/Y settings by meaning when the chart type changes.
|
|
10
|
+
* Axis-less chart types keep a canonical column-style copy so settings survive
|
|
11
|
+
* a temporary switch to pie or doughnut.
|
|
12
|
+
*/
|
|
13
|
+
export declare function presentationChartAxesForType(chart: WorkSlideChart, targetType: WorkSlideChartType): WorkSlideChartAxes | undefined;
|
|
14
|
+
export declare function withPresentationChartAxes(chart: WorkSlideChart, axes: WorkSlideChartAxes | undefined): WorkSlideChart;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChartLayout } from './work-spreadsheet-chart-layout';
|
|
2
|
+
import type { WorkSlideBubbleSizeRepresents, WorkSlideChart, WorkSlideChartDataLabelPosition, WorkSlideChartDataLabels, WorkSlideChartLegendPosition, WorkSlideChartSeries, WorkSlideChartSeriesStyle, WorkSlideChartType, WorkSlideElement, WorkSlideRadarStyle, WorkSlideScatterStyle } from './work-types';
|
|
3
|
+
export declare function createPresentationChartElement(): WorkSlideElement;
|
|
4
|
+
export declare function presentationChartTypeLabel(type: WorkSlideChartType): string;
|
|
5
|
+
export declare function withPresentationChartType(chart: WorkSlideChart, type: WorkSlideChartType): WorkSlideChart;
|
|
6
|
+
export declare function withPresentationChartLayout(chart: WorkSlideChart, change?: Partial<WorkSpreadsheetChartLayout & Pick<WorkSlideChart, 'showLegend'>>): WorkSlideChart;
|
|
7
|
+
export declare function normalizePresentationChartSeriesStyle(style: WorkSlideChartSeriesStyle | undefined, type: WorkSlideChartType): WorkSlideChartSeriesStyle | undefined;
|
|
8
|
+
export declare function withPresentationChartSeriesStyle(chart: WorkSlideChart, seriesIndex: number, style: WorkSlideChartSeriesStyle | undefined): WorkSlideChart;
|
|
9
|
+
export declare function presentationChartSupportsSeriesMarkers(type: WorkSlideChartType): boolean;
|
|
10
|
+
export declare function presentationChartHasCustomSeriesStyles(chart: WorkSlideChart): boolean;
|
|
11
|
+
export declare function parsePresentationChartCategories(value: string): string[];
|
|
12
|
+
export declare function parsePresentationChartValues(value: string): number[];
|
|
13
|
+
export declare function parsePresentationChartValueDraft(value: string): number[] | null;
|
|
14
|
+
export declare function parsePresentationChartXValues(value: string): string[];
|
|
15
|
+
export declare function createPresentationChartSeries(chart: WorkSlideChart): WorkSlideChartSeries;
|
|
16
|
+
export declare function withPresentationChartSeriesAnalysis(chart: WorkSlideChart, seriesIndex: number, analysis: Pick<WorkSlideChartSeries, 'errorBars' | 'trendlines'>): WorkSlideChart;
|
|
17
|
+
export declare function presentationChartTrendlineCount(chart: WorkSlideChart): number;
|
|
18
|
+
export declare function presentationChartErrorBarCount(chart: WorkSlideChart): number;
|
|
19
|
+
export declare function normalizeDoughnutHoleSize(value: number | undefined): number;
|
|
20
|
+
export declare function normalizeRadarStyle(value: WorkSlideRadarStyle | undefined): WorkSlideRadarStyle;
|
|
21
|
+
export declare function normalizePresentationScatterStyle(value: unknown): WorkSlideScatterStyle;
|
|
22
|
+
export declare function normalizePresentationBubbleScale(value: unknown): number;
|
|
23
|
+
export declare function normalizePresentationBubbleSizeRepresents(value: unknown): WorkSlideBubbleSizeRepresents;
|
|
24
|
+
export declare function presentationChartUsesNumericXAxis(type: WorkSlideChartType): boolean;
|
|
25
|
+
export declare function presentationChartXValues(chart: WorkSlideChart): number[];
|
|
26
|
+
export declare function presentationChartBubbleSizes(series: WorkSlideChartSeries): number[];
|
|
27
|
+
export declare function normalizePresentationChartLegendPosition(value: unknown): WorkSlideChartLegendPosition;
|
|
28
|
+
export declare function presentationChartLegendPositionLabel(position: WorkSlideChartLegendPosition): string;
|
|
29
|
+
export declare function presentationChartShowsLegend(chart: WorkSlideChart): boolean;
|
|
30
|
+
export declare function presentationChartSupportsAxisTitles(chart: Pick<WorkSlideChart, 'type'>): boolean;
|
|
31
|
+
export declare function presentationChartDataLabelPositions(type: WorkSlideChartType): readonly WorkSlideChartDataLabelPosition[];
|
|
32
|
+
export declare function normalizePresentationChartDataLabelPosition(value: unknown, type: WorkSlideChartType): WorkSlideChartDataLabelPosition;
|
|
33
|
+
export declare function normalizePresentationChartDataLabels(source: WorkSlideChartDataLabels, type: WorkSlideChartType): WorkSlideChartDataLabels;
|
|
34
|
+
export declare function withPresentationChartDataLabels(chart: WorkSlideChart, dataLabels: WorkSlideChartDataLabels | undefined): WorkSlideChart;
|
|
35
|
+
export declare function presentationChartHasDataLabels(chart: WorkSlideChart): boolean;
|
|
36
|
+
export declare function presentationChartDataLabelPositionLabel(position: WorkSlideChartDataLabelPosition): string;
|
|
37
|
+
export declare function presentationChartDataLabelText(chart: WorkSlideChart, seriesIndex: number, pointIndex: number): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { WorkSlide, WorkSlideElement } from './work-types';
|
|
2
|
+
export declare const PRESENTATION_OBJECT_OFFSET_STEP = 5;
|
|
3
|
+
export type WorkPresentationClipboardPayload = {
|
|
4
|
+
kind: 'element';
|
|
5
|
+
element: WorkSlideElement;
|
|
6
|
+
} | {
|
|
7
|
+
kind: 'elements';
|
|
8
|
+
elements: WorkSlideElement[];
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'slide';
|
|
11
|
+
slide: WorkSlide;
|
|
12
|
+
};
|
|
13
|
+
export interface WorkPresentationClipboardRead {
|
|
14
|
+
payload: WorkPresentationClipboardPayload;
|
|
15
|
+
offset: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function copyPresentationElement(element: WorkSlideElement): void;
|
|
18
|
+
export declare function copyPresentationElements(elements: readonly WorkSlideElement[]): void;
|
|
19
|
+
export declare function copyPresentationSlide(slide: WorkSlide): void;
|
|
20
|
+
export declare function takePresentationClipboard(): WorkPresentationClipboardRead | null;
|
|
21
|
+
export declare function hasPresentationClipboard(): boolean;
|
|
22
|
+
export declare function clearPresentationClipboard(): void;
|
|
23
|
+
export declare function clonePresentationElementForPaste(element: WorkSlideElement, offset: number): WorkSlideElement;
|
|
24
|
+
export declare function clonePresentationElementsForPaste(elements: readonly WorkSlideElement[], offset: number): WorkSlideElement[];
|
|
25
|
+
export declare function clonePresentationSlideForPaste(slide: WorkSlide, existingSlideNames?: readonly string[]): WorkSlide;
|
|
26
|
+
export declare function nextPresentationSlideCopyName(sourceName: string, existingSlideNames: readonly string[]): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WorkArtifact } from './work-types';
|
|
2
|
+
type PptxConstructor = typeof import('pptxgenjs').default;
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
PptxGenJS?: PptxConstructor;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export interface WorkPresentationExportOptions {
|
|
9
|
+
pptxRuntimeUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultPptxRuntimeUrl: string;
|
|
12
|
+
export declare function importWorkPresentationFile(file: File): Promise<WorkArtifact>;
|
|
13
|
+
export declare function exportWorkPresentationArtifact(artifact: WorkArtifact, options?: WorkPresentationExportOptions): Promise<void>;
|
|
14
|
+
export declare function createWorkPresentationBlob(artifact: WorkArtifact, options?: WorkPresentationExportOptions): Promise<Blob>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WorkSlideElement } from './work-types';
|
|
2
|
+
export interface PresentationSelectionUnit {
|
|
3
|
+
key: string;
|
|
4
|
+
groupId?: string;
|
|
5
|
+
elements: WorkSlideElement[];
|
|
6
|
+
elementIds: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare function expandPresentationGroupSelection(elements: readonly WorkSlideElement[], selectedIds: readonly string[]): string[];
|
|
9
|
+
export declare function presentationSelectionUnits(elements: readonly WorkSlideElement[], selectedIds: readonly string[]): PresentationSelectionUnit[];
|
|
10
|
+
export declare function presentationSelectionUnitCount(elements: readonly WorkSlideElement[], selectedIds: readonly string[]): number;
|
|
11
|
+
export declare function canGroupPresentationElements(elements: readonly WorkSlideElement[], selectedIds: readonly string[]): boolean;
|
|
12
|
+
export declare function canUngroupPresentationElements(elements: readonly WorkSlideElement[], selectedIds: readonly string[]): boolean;
|
|
13
|
+
export declare function groupPresentationElements(elements: readonly WorkSlideElement[], selectedIds: readonly string[], groupId: string): WorkSlideElement[];
|
|
14
|
+
export declare function ungroupPresentationElements(elements: readonly WorkSlideElement[], selectedIds: readonly string[]): WorkSlideElement[];
|
|
15
|
+
export declare function remapPresentationGroupPaths(elements: readonly WorkSlideElement[]): WorkSlideElement[];
|
|
16
|
+
export declare function topPresentationGroupId(element: WorkSlideElement): string | undefined;
|
|
17
|
+
export declare function presentationGroupPath(element: WorkSlideElement): string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WorkPresentationContent, WorkPresentationLayout, WorkPresentationMaster, WorkSlide, WorkSlideElement } from './work-types';
|
|
2
|
+
export declare const DEFAULT_PRESENTATION_MASTER_ID = "presentation-master-default";
|
|
3
|
+
export declare const DEFAULT_PRESENTATION_LAYOUT_ID = "presentation-layout-default";
|
|
4
|
+
export interface WorkPresentationSlideView {
|
|
5
|
+
background: string;
|
|
6
|
+
inheritedElements: WorkSlideElement[];
|
|
7
|
+
placeholderElements: WorkSlideElement[];
|
|
8
|
+
master?: WorkPresentationMaster;
|
|
9
|
+
layout?: WorkPresentationLayout;
|
|
10
|
+
}
|
|
11
|
+
export declare function withPresentationDesign(content: WorkPresentationContent): WorkPresentationContent;
|
|
12
|
+
export declare function presentationSlideView(content: WorkPresentationContent, slide: WorkSlide): WorkPresentationSlideView;
|
|
13
|
+
export declare function applyPresentationLayout(content: WorkPresentationContent, slideId: string, layoutId: string): WorkPresentationContent;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WorkSlideTransition, WorkSlideTransitionType } from './work-types';
|
|
2
|
+
export declare function createWorkSlideTransition(type: WorkSlideTransitionType, previous?: WorkSlideTransition): WorkSlideTransition;
|
|
3
|
+
export declare function slideTransitionDurationMilliseconds(transition: WorkSlideTransition | undefined): number;
|
|
4
|
+
export declare function workSlideTransitionsEqual(left: WorkSlideTransition | undefined, right: WorkSlideTransition | undefined): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WorkArtifact } from './work-types';
|
|
2
|
+
export declare function rememberWorkSourceBlob(artifactId: string, source: Blob): void;
|
|
3
|
+
export declare function forgetWorkSourceBlob(artifactId: string): void;
|
|
4
|
+
export declare function readWorkSourceBlob(artifact: WorkArtifact): Promise<Blob>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Cell, Selection } from '@fortune-sheet/core';
|
|
2
|
+
import type { WorkAgentProposalTarget } from './work-agent-proposal';
|
|
3
|
+
import { type WorkSpreadsheetContent } from './work-types';
|
|
4
|
+
export interface WorkSpreadsheetAgentSelection {
|
|
5
|
+
sheetId: string;
|
|
6
|
+
sheetName: string;
|
|
7
|
+
reference: string;
|
|
8
|
+
cellCount: number;
|
|
9
|
+
context: string;
|
|
10
|
+
clipboard: string;
|
|
11
|
+
truncated: boolean;
|
|
12
|
+
proposalTargets: WorkAgentProposalTarget[];
|
|
13
|
+
}
|
|
14
|
+
export declare function spreadsheetAgentSelection(content: WorkSpreadsheetContent, sheetId: string, selection: Pick<Selection, 'row' | 'column'>, maximumCells?: number): WorkSpreadsheetAgentSelection | null;
|
|
15
|
+
export declare function spreadsheetCellSourceText(cell: Cell | null): string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChartAxes, type WorkSpreadsheetChartAxis, type WorkSpreadsheetChartAxisPosition, type WorkSpreadsheetChartType } from './work-types';
|
|
2
|
+
export declare function workSpreadsheetChartAxisIsValueAxis(chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition): boolean;
|
|
3
|
+
export declare function workSpreadsheetChartAxisIsCategoryAxis(chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition): boolean;
|
|
4
|
+
export declare function workSpreadsheetChartAxisShowsMajorGridlinesByDefault(chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition): boolean;
|
|
5
|
+
export declare function workSpreadsheetChartAxisDefaultLabelPosition(chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition): NonNullable<WorkSpreadsheetChartAxis['labelPosition']>;
|
|
6
|
+
export declare function workSpreadsheetChartAxisPositionLabel(position: WorkSpreadsheetChartAxisPosition): string;
|
|
7
|
+
export declare function workSpreadsheetChartAxisLabelPositionLabel(position: NonNullable<WorkSpreadsheetChartAxis['labelPosition']>): string;
|
|
8
|
+
export declare function workSpreadsheetChartAxisTickMarkLabel(tickMark: NonNullable<WorkSpreadsheetChartAxis['majorTickMark']>): string;
|
|
9
|
+
export declare function normalizeWorkSpreadsheetChartAxes(source: WorkSpreadsheetChartAxes | undefined, chartType: WorkSpreadsheetChartType, hasSecondaryAxes?: boolean): WorkSpreadsheetChartAxes | undefined;
|
|
10
|
+
export interface SpreadsheetChartAxisScale {
|
|
11
|
+
minimum: number;
|
|
12
|
+
maximum: number;
|
|
13
|
+
span: number;
|
|
14
|
+
majorUnit?: number;
|
|
15
|
+
ticks: number[];
|
|
16
|
+
}
|
|
17
|
+
interface SpreadsheetChartAxisScaleOptions {
|
|
18
|
+
includeZero?: boolean;
|
|
19
|
+
paddingRatio?: number;
|
|
20
|
+
}
|
|
21
|
+
interface SpreadsheetChartPlotBounds {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}
|
|
27
|
+
export interface SpreadsheetChartAxisLabelLayout {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
textAnchor: 'start' | 'middle' | 'end';
|
|
31
|
+
}
|
|
32
|
+
export declare function spreadsheetChartAxisDisplayAttributes(axis: WorkSpreadsheetChartAxis | undefined, chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition): string;
|
|
33
|
+
export declare function spreadsheetChartAxisValueRatio(value: number, scale: SpreadsheetChartAxisScale, axis: WorkSpreadsheetChartAxis | undefined): number;
|
|
34
|
+
export declare function spreadsheetChartCategoryVisualIndex(index: number, count: number, axis: WorkSpreadsheetChartAxis | undefined): number;
|
|
35
|
+
export declare function spreadsheetChartCategoryLabelVisible(index: number, count: number, axis: WorkSpreadsheetChartAxis | undefined): boolean;
|
|
36
|
+
export declare function spreadsheetChartAxisLabelLayout(axis: WorkSpreadsheetChartAxis | undefined, chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition, plot: SpreadsheetChartPlotBounds, tickX: number, tickY: number): SpreadsheetChartAxisLabelLayout | null;
|
|
37
|
+
export declare function spreadsheetChartMajorTickSvg(axis: WorkSpreadsheetChartAxis | undefined, position: WorkSpreadsheetChartAxisPosition, index: number, x: number, y: number): string;
|
|
38
|
+
export declare function spreadsheetChartAxisScale(values: readonly number[], axis: WorkSpreadsheetChartAxis | undefined, options?: SpreadsheetChartAxisScaleOptions): SpreadsheetChartAxisScale;
|
|
39
|
+
export declare function spreadsheetChartAxisGridlinesVisible(axis: WorkSpreadsheetChartAxis | undefined, chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition): boolean;
|
|
40
|
+
export declare function spreadsheetChartAxisScaleAttributes(axis: WorkSpreadsheetChartAxis | undefined, scale: SpreadsheetChartAxisScale, chartType: WorkSpreadsheetChartType, position: WorkSpreadsheetChartAxisPosition): string;
|
|
41
|
+
export declare function formatSpreadsheetChartAxisNumber(value: number, formatCode: string | undefined): string;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { WorkSpreadsheetChartType } from './work-types';
|
|
2
|
+
export type WorkSpreadsheetChartLegendPosition = 'right' | 'left' | 'top' | 'bottom' | 'topRight';
|
|
3
|
+
export type WorkSpreadsheetChartGrouping = 'clustered' | 'standard' | 'stacked' | 'percentStacked';
|
|
4
|
+
export interface WorkSpreadsheetChartLayout {
|
|
5
|
+
legendPosition?: WorkSpreadsheetChartLegendPosition;
|
|
6
|
+
legendOverlay?: boolean;
|
|
7
|
+
grouping?: WorkSpreadsheetChartGrouping;
|
|
8
|
+
gapWidth?: number;
|
|
9
|
+
overlap?: number;
|
|
10
|
+
smoothLines?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type WorkSpreadsheetChartLayoutSource = WorkSpreadsheetChartLayout & {
|
|
13
|
+
type: WorkSpreadsheetChartType;
|
|
14
|
+
};
|
|
15
|
+
export declare function normalizeWorkSpreadsheetChartLegendPosition(value: unknown): WorkSpreadsheetChartLegendPosition;
|
|
16
|
+
export declare function normalizeWorkSpreadsheetChartLegendOverlay(value: unknown): boolean;
|
|
17
|
+
export declare function workSpreadsheetChartSupportsGrouping(type: WorkSpreadsheetChartType): boolean;
|
|
18
|
+
export declare function workSpreadsheetChartSupportsBarSpacing(type: WorkSpreadsheetChartType): boolean;
|
|
19
|
+
export declare function workSpreadsheetChartSupportsSmoothLines(type: WorkSpreadsheetChartType): boolean;
|
|
20
|
+
export declare function workSpreadsheetChartDefaultGrouping(type: WorkSpreadsheetChartType): WorkSpreadsheetChartGrouping;
|
|
21
|
+
export declare function normalizeWorkSpreadsheetChartGrouping(value: unknown, type: WorkSpreadsheetChartType): WorkSpreadsheetChartGrouping;
|
|
22
|
+
export declare function workSpreadsheetChartGroupingIsStacked(grouping: WorkSpreadsheetChartGrouping): boolean;
|
|
23
|
+
export declare function normalizeWorkSpreadsheetChartGapWidth(value: unknown): number;
|
|
24
|
+
export declare function normalizeWorkSpreadsheetChartOverlap(value: unknown, grouping: WorkSpreadsheetChartGrouping): number;
|
|
25
|
+
export declare function normalizeWorkSpreadsheetChartSmoothLines(value: unknown): boolean;
|
|
26
|
+
export declare function normalizeWorkSpreadsheetChartLayout(source: WorkSpreadsheetChartLayoutSource): WorkSpreadsheetChartLayout;
|
|
27
|
+
export declare function workSpreadsheetChartSupportsSeriesAnalysis(source: WorkSpreadsheetChartLayoutSource): boolean;
|
|
28
|
+
export declare function workSpreadsheetChartLegendPositionLabel(position: WorkSpreadsheetChartLegendPosition): string;
|
|
29
|
+
export declare function workSpreadsheetChartGroupingLabel(grouping: WorkSpreadsheetChartGrouping): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { WorkSpreadsheetChart } from './work-types';
|
|
2
|
+
export interface SpreadsheetChartPlotBounds {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
interface SpreadsheetChartLegendFrame {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
titleHeight: number;
|
|
12
|
+
}
|
|
13
|
+
export interface SpreadsheetChartLegendLayout {
|
|
14
|
+
plot: SpreadsheetChartPlotBounds;
|
|
15
|
+
svg: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function spreadsheetChartLegendLayout(chart: WorkSpreadsheetChart, sourcePlot: SpreadsheetChartPlotBounds, frame: SpreadsheetChartLegendFrame): SpreadsheetChartLegendLayout;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type WorkSpreadsheetChartGrouping } from './work-spreadsheet-chart-layout';
|
|
2
|
+
import type { WorkSpreadsheetChart } from './work-types';
|
|
3
|
+
type SpreadsheetChartSeriesLayoutSource = Pick<WorkSpreadsheetChart, 'categories' | 'grouping' | 'series' | 'type'>;
|
|
4
|
+
export interface SpreadsheetChartSeriesLayoutPoint {
|
|
5
|
+
categoryIndex: number;
|
|
6
|
+
rawValue: number;
|
|
7
|
+
start: number;
|
|
8
|
+
end: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SpreadsheetChartSeriesLayout {
|
|
11
|
+
grouping: WorkSpreadsheetChartGrouping;
|
|
12
|
+
stacked: boolean;
|
|
13
|
+
categoryCount: number;
|
|
14
|
+
series: SpreadsheetChartSeriesLayoutPoint[][];
|
|
15
|
+
scaleValues: number[];
|
|
16
|
+
}
|
|
17
|
+
export interface SpreadsheetChartBarGeometry {
|
|
18
|
+
barSize: number;
|
|
19
|
+
renderedSize: number;
|
|
20
|
+
offset: (seriesIndex: number) => number;
|
|
21
|
+
}
|
|
22
|
+
export declare function spreadsheetChartSeriesLayout(chart: SpreadsheetChartSeriesLayoutSource): SpreadsheetChartSeriesLayout;
|
|
23
|
+
export declare function spreadsheetChartBarGeometry(groupSize: number, seriesCount: number, chart: Pick<WorkSpreadsheetChart, 'gapWidth' | 'overlap' | 'grouping' | 'type'>, maximumBarSize: number): SpreadsheetChartBarGeometry;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { WorkSpreadsheetChartLineDash, WorkSpreadsheetChartMarkerSymbol, WorkSpreadsheetChartSeries, WorkSpreadsheetChartSeriesStyle } from './work-types';
|
|
2
|
+
export interface SpreadsheetChartSeriesFillStyle {
|
|
3
|
+
color: string;
|
|
4
|
+
opacity: number;
|
|
5
|
+
attributes: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SpreadsheetChartSeriesLineStyle {
|
|
8
|
+
color: string;
|
|
9
|
+
width: number;
|
|
10
|
+
dash: WorkSpreadsheetChartLineDash;
|
|
11
|
+
attributes: string;
|
|
12
|
+
}
|
|
13
|
+
interface SpreadsheetChartMarkerOptions {
|
|
14
|
+
visible: boolean;
|
|
15
|
+
defaultSize?: number;
|
|
16
|
+
attributes?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function normalizeWorkSpreadsheetChartSeriesStyle(source: WorkSpreadsheetChartSeriesStyle | null | undefined | Record<string, unknown>): WorkSpreadsheetChartSeriesStyle | undefined;
|
|
19
|
+
export declare function normalizeWorkSpreadsheetChartColor(value: unknown): string | undefined;
|
|
20
|
+
export declare function defaultWorkSpreadsheetChartSeriesStyle(seriesIndex: number): WorkSpreadsheetChartSeriesStyle;
|
|
21
|
+
export declare function workSpreadsheetChartSeriesDefaultColor(seriesIndex: number): string;
|
|
22
|
+
export declare function spreadsheetChartSeriesFillStyle(series: WorkSpreadsheetChartSeries, seriesIndex: number, defaultOpacity?: number, defaultColor?: string): SpreadsheetChartSeriesFillStyle;
|
|
23
|
+
export declare function spreadsheetChartSeriesLineStyle(series: WorkSpreadsheetChartSeries, seriesIndex: number, defaultWidth: number, defaultColor?: string): SpreadsheetChartSeriesLineStyle;
|
|
24
|
+
export declare function spreadsheetChartSeriesLegendColor(series: WorkSpreadsheetChartSeries, seriesIndex: number): string;
|
|
25
|
+
export declare function spreadsheetChartSeriesMarkerSvg(series: WorkSpreadsheetChartSeries, seriesIndex: number, x: number, y: number, options: SpreadsheetChartMarkerOptions): string;
|
|
26
|
+
export declare function spreadsheetChartSeriesStyleContext(style: WorkSpreadsheetChartSeriesStyle | undefined): string;
|
|
27
|
+
export declare function workSpreadsheetChartLineDashLabel(dash: WorkSpreadsheetChartLineDash): string;
|
|
28
|
+
export declare function workSpreadsheetChartMarkerSymbolLabel(symbol: WorkSpreadsheetChartMarkerSymbol): string;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const WORK_SPREADSHEET_CHART_COLORS: readonly ["#4f6bed", "#e66c37", "#8f95a3", "#f4b41a", "#36a2ae", "#6a9f4e"];
|
|
2
|
+
export declare function finiteChartNumber(value: number): number;
|
|
3
|
+
export declare function compactChartNumber(value: number): string;
|
|
4
|
+
export declare function truncateChartText(value: string, length: number): string;
|
|
5
|
+
export declare function roundChartNumber(value: number): number;
|
|
6
|
+
export declare function clampChartNumber(value: number, minimum: number, maximum: number): number;
|
|
7
|
+
export declare function escapeChartXml(value: string): string;
|