@docmentis/udoc-viewer 0.7.20 → 0.8.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/API-COMPARISON.md +441 -0
- package/LICENSE-APACHE +202 -0
- package/LICENSE-MIT +21 -0
- package/README.md +23 -1220
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +7 -0
- package/dist/version.js.map +1 -0
- package/dist/worker/worker-source.d.ts +3 -0
- package/dist/worker/worker-source.d.ts.map +1 -0
- package/dist/worker/worker-source.js +11 -0
- package/dist/worker/worker.d.ts +2 -0
- package/dist/worker/worker.d.ts.map +1 -0
- package/dist/worker/worker.js +5 -0
- package/dist/worker/worker.js.map +1 -0
- package/package.json +48 -59
- package/dist/package.json +0 -79
- package/dist/src/UDocClient.d.ts +0 -730
- package/dist/src/UDocClient.d.ts.map +0 -1
- package/dist/src/UDocClient.js +0 -649
- package/dist/src/UDocClient.js.map +0 -1
- package/dist/src/UDocViewer.d.ts +0 -883
- package/dist/src/UDocViewer.d.ts.map +0 -1
- package/dist/src/UDocViewer.js +0 -2180
- package/dist/src/UDocViewer.js.map +0 -1
- package/dist/src/fonts.d.ts +0 -47
- package/dist/src/fonts.d.ts.map +0 -1
- package/dist/src/fonts.js +0 -49
- package/dist/src/fonts.js.map +0 -1
- package/dist/src/index.d.ts +0 -13
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -5
- package/dist/src/index.js.map +0 -1
- package/dist/src/meta-url.d.ts +0 -2
- package/dist/src/meta-url.d.ts.map +0 -1
- package/dist/src/meta-url.js +0 -10
- package/dist/src/meta-url.js.map +0 -1
- package/dist/src/performance/PerformanceCounter.d.ts +0 -132
- package/dist/src/performance/PerformanceCounter.d.ts.map +0 -1
- package/dist/src/performance/PerformanceCounter.js +0 -129
- package/dist/src/performance/PerformanceCounter.js.map +0 -1
- package/dist/src/performance/index.d.ts +0 -2
- package/dist/src/performance/index.d.ts.map +0 -1
- package/dist/src/performance/index.js +0 -2
- package/dist/src/performance/index.js.map +0 -1
- package/dist/src/ui/framework/component.d.ts +0 -68
- package/dist/src/ui/framework/component.d.ts.map +0 -1
- package/dist/src/ui/framework/component.js +0 -97
- package/dist/src/ui/framework/component.js.map +0 -1
- package/dist/src/ui/framework/dom.d.ts +0 -19
- package/dist/src/ui/framework/dom.d.ts.map +0 -1
- package/dist/src/ui/framework/dom.js +0 -29
- package/dist/src/ui/framework/dom.js.map +0 -1
- package/dist/src/ui/framework/events.d.ts +0 -18
- package/dist/src/ui/framework/events.d.ts.map +0 -1
- package/dist/src/ui/framework/events.js +0 -23
- package/dist/src/ui/framework/events.js.map +0 -1
- package/dist/src/ui/framework/index.d.ts +0 -15
- package/dist/src/ui/framework/index.d.ts.map +0 -1
- package/dist/src/ui/framework/index.js +0 -15
- package/dist/src/ui/framework/index.js.map +0 -1
- package/dist/src/ui/framework/selectors.d.ts +0 -51
- package/dist/src/ui/framework/selectors.d.ts.map +0 -1
- package/dist/src/ui/framework/selectors.js +0 -28
- package/dist/src/ui/framework/selectors.js.map +0 -1
- package/dist/src/ui/framework/store.d.ts +0 -44
- package/dist/src/ui/framework/store.d.ts.map +0 -1
- package/dist/src/ui/framework/store.js +0 -79
- package/dist/src/ui/framework/store.js.map +0 -1
- package/dist/src/ui/viewer/a11y.d.ts +0 -26
- package/dist/src/ui/viewer/a11y.d.ts.map +0 -1
- package/dist/src/ui/viewer/a11y.js +0 -116
- package/dist/src/ui/viewer/a11y.js.map +0 -1
- package/dist/src/ui/viewer/actions.d.ts +0 -308
- package/dist/src/ui/viewer/actions.d.ts.map +0 -1
- package/dist/src/ui/viewer/actions.js +0 -2
- package/dist/src/ui/viewer/actions.js.map +0 -1
- package/dist/src/ui/viewer/animation-presets.d.ts +0 -37
- package/dist/src/ui/viewer/animation-presets.d.ts.map +0 -1
- package/dist/src/ui/viewer/animation-presets.js +0 -123
- package/dist/src/ui/viewer/animation-presets.js.map +0 -1
- package/dist/src/ui/viewer/animation.d.ts +0 -162
- package/dist/src/ui/viewer/animation.d.ts.map +0 -1
- package/dist/src/ui/viewer/animation.js +0 -506
- package/dist/src/ui/viewer/animation.js.map +0 -1
- package/dist/src/ui/viewer/annotation/LinkRenderer.d.ts +0 -9
- package/dist/src/ui/viewer/annotation/LinkRenderer.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/LinkRenderer.js +0 -17
- package/dist/src/ui/viewer/annotation/LinkRenderer.js.map +0 -1
- package/dist/src/ui/viewer/annotation/MarkupRenderer.d.ts +0 -21
- package/dist/src/ui/viewer/annotation/MarkupRenderer.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/MarkupRenderer.js +0 -136
- package/dist/src/ui/viewer/annotation/MarkupRenderer.js.map +0 -1
- package/dist/src/ui/viewer/annotation/ShapeRenderer.d.ts +0 -33
- package/dist/src/ui/viewer/annotation/ShapeRenderer.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/ShapeRenderer.js +0 -379
- package/dist/src/ui/viewer/annotation/ShapeRenderer.js.map +0 -1
- package/dist/src/ui/viewer/annotation/TextRenderer.d.ts +0 -23
- package/dist/src/ui/viewer/annotation/TextRenderer.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/TextRenderer.js +0 -196
- package/dist/src/ui/viewer/annotation/TextRenderer.js.map +0 -1
- package/dist/src/ui/viewer/annotation/index.d.ts +0 -9
- package/dist/src/ui/viewer/annotation/index.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/index.js +0 -10
- package/dist/src/ui/viewer/annotation/index.js.map +0 -1
- package/dist/src/ui/viewer/annotation/propertyUtils.d.ts +0 -29
- package/dist/src/ui/viewer/annotation/propertyUtils.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/propertyUtils.js +0 -151
- package/dist/src/ui/viewer/annotation/propertyUtils.js.map +0 -1
- package/dist/src/ui/viewer/annotation/render.d.ts +0 -24
- package/dist/src/ui/viewer/annotation/render.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/render.js +0 -191
- package/dist/src/ui/viewer/annotation/render.js.map +0 -1
- package/dist/src/ui/viewer/annotation/types.d.ts +0 -309
- package/dist/src/ui/viewer/annotation/types.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/types.js +0 -7
- package/dist/src/ui/viewer/annotation/types.js.map +0 -1
- package/dist/src/ui/viewer/annotation/utils.d.ts +0 -75
- package/dist/src/ui/viewer/annotation/utils.d.ts.map +0 -1
- package/dist/src/ui/viewer/annotation/utils.js +0 -250
- package/dist/src/ui/viewer/annotation/utils.js.map +0 -1
- package/dist/src/ui/viewer/components/AnnotationPanel.d.ts +0 -20
- package/dist/src/ui/viewer/components/AnnotationPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/AnnotationPanel.js +0 -276
- package/dist/src/ui/viewer/components/AnnotationPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/AttachmentsPanel.d.ts +0 -8
- package/dist/src/ui/viewer/components/AttachmentsPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/AttachmentsPanel.js +0 -16
- package/dist/src/ui/viewer/components/AttachmentsPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/BookmarksPanel.d.ts +0 -8
- package/dist/src/ui/viewer/components/BookmarksPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/BookmarksPanel.js +0 -16
- package/dist/src/ui/viewer/components/BookmarksPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/Branding.d.ts +0 -49
- package/dist/src/ui/viewer/components/Branding.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/Branding.js +0 -334
- package/dist/src/ui/viewer/components/Branding.js.map +0 -1
- package/dist/src/ui/viewer/components/ColorSelect.d.ts +0 -26
- package/dist/src/ui/viewer/components/ColorSelect.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/ColorSelect.js +0 -120
- package/dist/src/ui/viewer/components/ColorSelect.js.map +0 -1
- package/dist/src/ui/viewer/components/FloatingToolbar.d.ts +0 -10
- package/dist/src/ui/viewer/components/FloatingToolbar.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/FloatingToolbar.js +0 -396
- package/dist/src/ui/viewer/components/FloatingToolbar.js.map +0 -1
- package/dist/src/ui/viewer/components/FontsPanel.d.ts +0 -12
- package/dist/src/ui/viewer/components/FontsPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/FontsPanel.js +0 -141
- package/dist/src/ui/viewer/components/FontsPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/LayersPanel.d.ts +0 -12
- package/dist/src/ui/viewer/components/LayersPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/LayersPanel.js +0 -139
- package/dist/src/ui/viewer/components/LayersPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/LeftPanel.d.ts +0 -11
- package/dist/src/ui/viewer/components/LeftPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/LeftPanel.js +0 -296
- package/dist/src/ui/viewer/components/LeftPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/LoadingOverlay.d.ts +0 -13
- package/dist/src/ui/viewer/components/LoadingOverlay.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/LoadingOverlay.js +0 -146
- package/dist/src/ui/viewer/components/LoadingOverlay.js.map +0 -1
- package/dist/src/ui/viewer/components/NumberInput.d.ts +0 -32
- package/dist/src/ui/viewer/components/NumberInput.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/NumberInput.js +0 -101
- package/dist/src/ui/viewer/components/NumberInput.js.map +0 -1
- package/dist/src/ui/viewer/components/OutlinePanel.d.ts +0 -11
- package/dist/src/ui/viewer/components/OutlinePanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/OutlinePanel.js +0 -307
- package/dist/src/ui/viewer/components/OutlinePanel.js.map +0 -1
- package/dist/src/ui/viewer/components/PasswordDialog.d.ts +0 -16
- package/dist/src/ui/viewer/components/PasswordDialog.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/PasswordDialog.js +0 -179
- package/dist/src/ui/viewer/components/PasswordDialog.js.map +0 -1
- package/dist/src/ui/viewer/components/PermitNoticeOverlay.d.ts +0 -27
- package/dist/src/ui/viewer/components/PermitNoticeOverlay.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/PermitNoticeOverlay.js +0 -79
- package/dist/src/ui/viewer/components/PermitNoticeOverlay.js.map +0 -1
- package/dist/src/ui/viewer/components/PrintDialog.d.ts +0 -34
- package/dist/src/ui/viewer/components/PrintDialog.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/PrintDialog.js +0 -317
- package/dist/src/ui/viewer/components/PrintDialog.js.map +0 -1
- package/dist/src/ui/viewer/components/RightPanel.d.ts +0 -10
- package/dist/src/ui/viewer/components/RightPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/RightPanel.js +0 -154
- package/dist/src/ui/viewer/components/RightPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/SearchPanel.d.ts +0 -21
- package/dist/src/ui/viewer/components/SearchPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/SearchPanel.js +0 -323
- package/dist/src/ui/viewer/components/SearchPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/SheetTabBar.d.ts +0 -9
- package/dist/src/ui/viewer/components/SheetTabBar.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/SheetTabBar.js +0 -57
- package/dist/src/ui/viewer/components/SheetTabBar.js.map +0 -1
- package/dist/src/ui/viewer/components/Spread.d.ts +0 -85
- package/dist/src/ui/viewer/components/Spread.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/Spread.js +0 -749
- package/dist/src/ui/viewer/components/Spread.js.map +0 -1
- package/dist/src/ui/viewer/components/SubToolbar.d.ts +0 -11
- package/dist/src/ui/viewer/components/SubToolbar.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/SubToolbar.js +0 -722
- package/dist/src/ui/viewer/components/SubToolbar.js.map +0 -1
- package/dist/src/ui/viewer/components/ThumbnailPanel.d.ts +0 -12
- package/dist/src/ui/viewer/components/ThumbnailPanel.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/ThumbnailPanel.js +0 -290
- package/dist/src/ui/viewer/components/ThumbnailPanel.js.map +0 -1
- package/dist/src/ui/viewer/components/Toolbar.d.ts +0 -12
- package/dist/src/ui/viewer/components/Toolbar.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/Toolbar.js +0 -761
- package/dist/src/ui/viewer/components/Toolbar.js.map +0 -1
- package/dist/src/ui/viewer/components/ViewModeMenu.d.ts +0 -10
- package/dist/src/ui/viewer/components/ViewModeMenu.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/ViewModeMenu.js +0 -206
- package/dist/src/ui/viewer/components/ViewModeMenu.js.map +0 -1
- package/dist/src/ui/viewer/components/Viewport.d.ts +0 -28
- package/dist/src/ui/viewer/components/Viewport.d.ts.map +0 -1
- package/dist/src/ui/viewer/components/Viewport.js +0 -1721
- package/dist/src/ui/viewer/components/Viewport.js.map +0 -1
- package/dist/src/ui/viewer/effects.d.ts +0 -8
- package/dist/src/ui/viewer/effects.d.ts.map +0 -1
- package/dist/src/ui/viewer/effects.js +0 -452
- package/dist/src/ui/viewer/effects.js.map +0 -1
- package/dist/src/ui/viewer/i18n/ar.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/ar.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/ar.js +0 -198
- package/dist/src/ui/viewer/i18n/ar.js.map +0 -1
- package/dist/src/ui/viewer/i18n/de.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/de.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/de.js +0 -198
- package/dist/src/ui/viewer/i18n/de.js.map +0 -1
- package/dist/src/ui/viewer/i18n/en.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/en.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/en.js +0 -200
- package/dist/src/ui/viewer/i18n/en.js.map +0 -1
- package/dist/src/ui/viewer/i18n/es.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/es.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/es.js +0 -198
- package/dist/src/ui/viewer/i18n/es.js.map +0 -1
- package/dist/src/ui/viewer/i18n/fr.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/fr.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/fr.js +0 -198
- package/dist/src/ui/viewer/i18n/fr.js.map +0 -1
- package/dist/src/ui/viewer/i18n/index.d.ts +0 -27
- package/dist/src/ui/viewer/i18n/index.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/index.js +0 -88
- package/dist/src/ui/viewer/i18n/index.js.map +0 -1
- package/dist/src/ui/viewer/i18n/ja.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/ja.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/ja.js +0 -198
- package/dist/src/ui/viewer/i18n/ja.js.map +0 -1
- package/dist/src/ui/viewer/i18n/ko.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/ko.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/ko.js +0 -198
- package/dist/src/ui/viewer/i18n/ko.js.map +0 -1
- package/dist/src/ui/viewer/i18n/pt-BR.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/pt-BR.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/pt-BR.js +0 -198
- package/dist/src/ui/viewer/i18n/pt-BR.js.map +0 -1
- package/dist/src/ui/viewer/i18n/ru.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/ru.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/ru.js +0 -198
- package/dist/src/ui/viewer/i18n/ru.js.map +0 -1
- package/dist/src/ui/viewer/i18n/types.d.ts +0 -176
- package/dist/src/ui/viewer/i18n/types.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/types.js +0 -2
- package/dist/src/ui/viewer/i18n/types.js.map +0 -1
- package/dist/src/ui/viewer/i18n/zh-CN.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/zh-CN.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/zh-CN.js +0 -198
- package/dist/src/ui/viewer/i18n/zh-CN.js.map +0 -1
- package/dist/src/ui/viewer/i18n/zh-TW.d.ts +0 -3
- package/dist/src/ui/viewer/i18n/zh-TW.d.ts.map +0 -1
- package/dist/src/ui/viewer/i18n/zh-TW.js +0 -198
- package/dist/src/ui/viewer/i18n/zh-TW.js.map +0 -1
- package/dist/src/ui/viewer/icons.d.ts +0 -77
- package/dist/src/ui/viewer/icons.d.ts.map +0 -1
- package/dist/src/ui/viewer/icons.js +0 -109
- package/dist/src/ui/viewer/icons.js.map +0 -1
- package/dist/src/ui/viewer/index.d.ts +0 -6
- package/dist/src/ui/viewer/index.d.ts.map +0 -1
- package/dist/src/ui/viewer/index.js +0 -6
- package/dist/src/ui/viewer/index.js.map +0 -1
- package/dist/src/ui/viewer/layout/index.d.ts +0 -3
- package/dist/src/ui/viewer/layout/index.d.ts.map +0 -1
- package/dist/src/ui/viewer/layout/index.js +0 -3
- package/dist/src/ui/viewer/layout/index.js.map +0 -1
- package/dist/src/ui/viewer/layout/pixelAlign.d.ts +0 -8
- package/dist/src/ui/viewer/layout/pixelAlign.d.ts.map +0 -1
- package/dist/src/ui/viewer/layout/pixelAlign.js +0 -42
- package/dist/src/ui/viewer/layout/pixelAlign.js.map +0 -1
- package/dist/src/ui/viewer/layout/spreadLayout.d.ts +0 -155
- package/dist/src/ui/viewer/layout/spreadLayout.d.ts.map +0 -1
- package/dist/src/ui/viewer/layout/spreadLayout.js +0 -574
- package/dist/src/ui/viewer/layout/spreadLayout.js.map +0 -1
- package/dist/src/ui/viewer/navigation.d.ts +0 -91
- package/dist/src/ui/viewer/navigation.d.ts.map +0 -1
- package/dist/src/ui/viewer/navigation.js +0 -59
- package/dist/src/ui/viewer/navigation.js.map +0 -1
- package/dist/src/ui/viewer/reducer.d.ts +0 -4
- package/dist/src/ui/viewer/reducer.d.ts.map +0 -1
- package/dist/src/ui/viewer/reducer.js +0 -841
- package/dist/src/ui/viewer/reducer.js.map +0 -1
- package/dist/src/ui/viewer/search/index.d.ts +0 -2
- package/dist/src/ui/viewer/search/index.d.ts.map +0 -1
- package/dist/src/ui/viewer/search/index.js +0 -2
- package/dist/src/ui/viewer/search/index.js.map +0 -1
- package/dist/src/ui/viewer/search/search.d.ts +0 -31
- package/dist/src/ui/viewer/search/search.d.ts.map +0 -1
- package/dist/src/ui/viewer/search/search.js +0 -446
- package/dist/src/ui/viewer/search/search.js.map +0 -1
- package/dist/src/ui/viewer/shell.d.ts +0 -65
- package/dist/src/ui/viewer/shell.d.ts.map +0 -1
- package/dist/src/ui/viewer/shell.js +0 -366
- package/dist/src/ui/viewer/shell.js.map +0 -1
- package/dist/src/ui/viewer/state.d.ts +0 -313
- package/dist/src/ui/viewer/state.d.ts.map +0 -1
- package/dist/src/ui/viewer/state.js +0 -157
- package/dist/src/ui/viewer/state.js.map +0 -1
- package/dist/src/ui/viewer/styles-inline.d.ts +0 -2
- package/dist/src/ui/viewer/styles-inline.d.ts.map +0 -1
- package/dist/src/ui/viewer/styles-inline.js +0 -3526
- package/dist/src/ui/viewer/styles-inline.js.map +0 -1
- package/dist/src/ui/viewer/text/index.d.ts +0 -6
- package/dist/src/ui/viewer/text/index.d.ts.map +0 -1
- package/dist/src/ui/viewer/text/index.js +0 -6
- package/dist/src/ui/viewer/text/index.js.map +0 -1
- package/dist/src/ui/viewer/text/render.d.ts +0 -18
- package/dist/src/ui/viewer/text/render.d.ts.map +0 -1
- package/dist/src/ui/viewer/text/render.js +0 -480
- package/dist/src/ui/viewer/text/render.js.map +0 -1
- package/dist/src/ui/viewer/text/selection.d.ts +0 -12
- package/dist/src/ui/viewer/text/selection.d.ts.map +0 -1
- package/dist/src/ui/viewer/text/selection.js +0 -69
- package/dist/src/ui/viewer/text/selection.js.map +0 -1
- package/dist/src/ui/viewer/tools/AnnotationDrawController.d.ts +0 -21
- package/dist/src/ui/viewer/tools/AnnotationDrawController.d.ts.map +0 -1
- package/dist/src/ui/viewer/tools/AnnotationDrawController.js +0 -410
- package/dist/src/ui/viewer/tools/AnnotationDrawController.js.map +0 -1
- package/dist/src/ui/viewer/tools/AnnotationSelectController.d.ts +0 -22
- package/dist/src/ui/viewer/tools/AnnotationSelectController.d.ts.map +0 -1
- package/dist/src/ui/viewer/tools/AnnotationSelectController.js +0 -378
- package/dist/src/ui/viewer/tools/AnnotationSelectController.js.map +0 -1
- package/dist/src/ui/viewer/tools/AnnotationUndoManager.d.ts +0 -29
- package/dist/src/ui/viewer/tools/AnnotationUndoManager.d.ts.map +0 -1
- package/dist/src/ui/viewer/tools/AnnotationUndoManager.js +0 -144
- package/dist/src/ui/viewer/tools/AnnotationUndoManager.js.map +0 -1
- package/dist/src/ui/viewer/tools/ViewToolController.d.ts +0 -20
- package/dist/src/ui/viewer/tools/ViewToolController.d.ts.map +0 -1
- package/dist/src/ui/viewer/tools/ViewToolController.js +0 -179
- package/dist/src/ui/viewer/tools/ViewToolController.js.map +0 -1
- package/dist/src/ui/viewer/transition-gl.d.ts +0 -25
- package/dist/src/ui/viewer/transition-gl.d.ts.map +0 -1
- package/dist/src/ui/viewer/transition-gl.js +0 -823
- package/dist/src/ui/viewer/transition-gl.js.map +0 -1
- package/dist/src/ui/viewer/transition.d.ts +0 -26
- package/dist/src/ui/viewer/transition.d.ts.map +0 -1
- package/dist/src/ui/viewer/transition.js +0 -1383
- package/dist/src/ui/viewer/transition.js.map +0 -1
- package/dist/src/wasm/LICENSE +0 -112
- package/dist/src/wasm/udoc.d.ts +0 -1338
- package/dist/src/wasm/udoc.js +0 -2645
- package/dist/src/wasm/udoc_bg.wasm +0 -0
- package/dist/src/wasm/udoc_bg.wasm.d.ts +0 -58
- package/dist/src/worker/WorkerClient.d.ts +0 -489
- package/dist/src/worker/WorkerClient.d.ts.map +0 -1
- package/dist/src/worker/WorkerClient.js +0 -1383
- package/dist/src/worker/WorkerClient.js.map +0 -1
- package/dist/src/worker/index.d.ts +0 -4
- package/dist/src/worker/index.d.ts.map +0 -1
- package/dist/src/worker/index.js +0 -2
- package/dist/src/worker/index.js.map +0 -1
- package/dist/src/worker/wasmError.d.ts +0 -17
- package/dist/src/worker/wasmError.d.ts.map +0 -1
- package/dist/src/worker/wasmError.js +0 -28
- package/dist/src/worker/wasmError.js.map +0 -1
- package/dist/src/worker/worker-inline.d.ts +0 -2
- package/dist/src/worker/worker-inline.d.ts.map +0 -1
- package/dist/src/worker/worker-inline.js +0 -2
- package/dist/src/worker/worker-inline.js.map +0 -1
- package/dist/src/worker/worker.d.ts +0 -530
- package/dist/src/worker/worker.d.ts.map +0 -1
- package/dist/src/worker/worker.js +0 -2935
- package/dist/src/worker/worker.js.map +0 -1
package/dist/src/wasm/udoc.d.ts
DELETED
|
@@ -1,1338 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* A contiguous group of pages sharing a stitching layout.
|
|
5
|
-
*
|
|
6
|
-
* Viewers build one stitched canvas per group (e.g., one panel per Excel
|
|
7
|
-
* sheet). Per-page `tilePos` values on `JsPageInfo` are local coordinates
|
|
8
|
-
* within the group.
|
|
9
|
-
*/
|
|
10
|
-
export interface JsPageGroup {
|
|
11
|
-
/**
|
|
12
|
-
* Display label (sheet name for XLSX). Absent for unnamed linear groups.
|
|
13
|
-
*/
|
|
14
|
-
name?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Global index of the first page in the group.
|
|
17
|
-
*/
|
|
18
|
-
startPageIndex: number;
|
|
19
|
-
/**
|
|
20
|
-
* Number of pages in the group.
|
|
21
|
-
*/
|
|
22
|
-
pageCount: number;
|
|
23
|
-
/**
|
|
24
|
-
* Stitching layout (discriminated union tagged by `type`).
|
|
25
|
-
*/
|
|
26
|
-
layout: JsPageGroupLayout;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* A pick specification from JavaScript.
|
|
31
|
-
*/
|
|
32
|
-
export interface JsPick {
|
|
33
|
-
/**
|
|
34
|
-
* Document index (0-based, referring to documents in doc_ids array)
|
|
35
|
-
*/
|
|
36
|
-
doc: number;
|
|
37
|
-
/**
|
|
38
|
-
* Page range string (0-based, e.g., \"0-2,4\")
|
|
39
|
-
*/
|
|
40
|
-
pages: string;
|
|
41
|
-
/**
|
|
42
|
-
* Optional rotation in degrees (0, 90, 180, or 270)
|
|
43
|
-
*/
|
|
44
|
-
rotation: number | undefined;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* A simple rectangle for serialization to JavaScript.
|
|
49
|
-
*/
|
|
50
|
-
export interface JsRect {
|
|
51
|
-
x: number;
|
|
52
|
-
y: number;
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* A single effect applied to one target.
|
|
59
|
-
*/
|
|
60
|
-
export interface JsAnimationEffect {
|
|
61
|
-
/**
|
|
62
|
-
* The shape whose layers this effect animates.
|
|
63
|
-
*/
|
|
64
|
-
shapeKey: number;
|
|
65
|
-
/**
|
|
66
|
-
* What part of the shape the effect covers.
|
|
67
|
-
*/
|
|
68
|
-
target: JsAnimationTarget;
|
|
69
|
-
class: JsEffectClass;
|
|
70
|
-
/**
|
|
71
|
-
* What the effect\'s behaviors do, as described by the file itself.
|
|
72
|
-
* Prefer this over the preset ids, which are an opaque catalog.
|
|
73
|
-
*/
|
|
74
|
-
behavior?: JsEffectBehavior;
|
|
75
|
-
/**
|
|
76
|
-
* PowerPoint preset id, for the viewer\'s effect catalog.
|
|
77
|
-
*/
|
|
78
|
-
presetId?: number;
|
|
79
|
-
/**
|
|
80
|
-
* PowerPoint preset subtype, usually a direction or variant.
|
|
81
|
-
*/
|
|
82
|
-
presetSubtype?: number;
|
|
83
|
-
/**
|
|
84
|
-
* Start offset from the beginning of the step, in milliseconds.
|
|
85
|
-
*/
|
|
86
|
-
startMs: number;
|
|
87
|
-
durationMs: number;
|
|
88
|
-
/**
|
|
89
|
-
* Iterations to play, or `null` to repeat until the step is left.
|
|
90
|
-
*/
|
|
91
|
-
repeatCount: number | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* Fraction of the duration spent easing in, 0–1.
|
|
94
|
-
*/
|
|
95
|
-
accelerate: number;
|
|
96
|
-
/**
|
|
97
|
-
* Fraction of the duration spent easing out, 0–1.
|
|
98
|
-
*/
|
|
99
|
-
decelerate: number;
|
|
100
|
-
autoReverse: boolean;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* A slide\'s build sequence: one entry in `steps` per click.
|
|
105
|
-
*/
|
|
106
|
-
export interface JsSlideAnimation {
|
|
107
|
-
steps: JsAnimationStep[];
|
|
108
|
-
/**
|
|
109
|
-
* Time-tree constructs recognized but not represented, for diagnostics.
|
|
110
|
-
*/
|
|
111
|
-
skipped: string[];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Annotation for JavaScript serialization.
|
|
116
|
-
*/
|
|
117
|
-
export interface JsAnnotation extends JsAnnotationType {
|
|
118
|
-
/**
|
|
119
|
-
* Bounding rectangle in page coordinates.
|
|
120
|
-
*/
|
|
121
|
-
bounds: JsRect;
|
|
122
|
-
/**
|
|
123
|
-
* Reply annotations nested under this annotation.
|
|
124
|
-
* These are comments/replies displayed in comment threads.
|
|
125
|
-
*/
|
|
126
|
-
replies?: JsAnnotation[];
|
|
127
|
-
/**
|
|
128
|
-
* Metadata for markup annotations (author, subject, contents, state).
|
|
129
|
-
*/
|
|
130
|
-
metadata?: JsMarkupMetadata;
|
|
131
|
-
/**
|
|
132
|
-
* Unique annotation name/identifier (NM field).
|
|
133
|
-
*/
|
|
134
|
-
name?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Last modification date (M field).
|
|
137
|
-
*/
|
|
138
|
-
modificationDate?: string;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Annotation type for JavaScript serialization.
|
|
143
|
-
*/
|
|
144
|
-
export type JsAnnotationType = { type: "link"; action: JsLinkAction } | { type: "highlight"; quads: JsQuad[]; color?: JsColor; opacity?: number } | { type: "underline"; quads: JsQuad[]; color?: JsColor; opacity?: number } | { type: "strikeOut"; quads: JsQuad[]; color?: JsColor; opacity?: number } | { type: "squiggly"; quads: JsQuad[]; color?: JsColor; opacity?: number } | { type: "text"; icon: string; open: boolean; color?: JsColor; opacity?: number } | { type: "freeText"; contents?: string; justification: string; defaultAppearance?: string; color?: JsColor; borderColor?: JsColor; calloutLine?: JsPoint[]; opacity?: number; defaultStyle?: string; lineEnding?: string; rectDifferences?: JsRectDifferences } | { type: "stamp"; name?: string; hasCustomAppearance: boolean; color?: JsColor; opacity?: number } | { type: "line"; start: JsPoint; end: JsPoint; startEnding: string; endEnding: string; color?: JsColor; interiorColor?: JsColor; borderWidth?: number; borderStyle: string; dashPattern?: number[]; opacity?: number; leaderLength?: number; leaderExtension?: number; leaderOffset?: number; caption?: boolean; captionPosition?: string; captionOffset?: [number, number] } | { type: "square"; color?: JsColor; interiorColor?: JsColor; borderWidth?: number; borderStyle: string; dashPattern?: number[]; opacity?: number; rectDifferences?: JsRectDifferences } | { type: "circle"; color?: JsColor; interiorColor?: JsColor; borderWidth?: number; borderStyle: string; dashPattern?: number[]; opacity?: number; rectDifferences?: JsRectDifferences } | { type: "polygon"; vertices: JsPoint[]; color?: JsColor; interiorColor?: JsColor; borderWidth?: number; borderStyle: string; dashPattern?: number[]; startEnding: string; endEnding: string; opacity?: number } | { type: "polyLine"; vertices: JsPoint[]; color?: JsColor; interiorColor?: JsColor; borderWidth?: number; borderStyle: string; dashPattern?: number[]; startEnding: string; endEnding: string; opacity?: number } | { type: "ink"; inkList: JsPoint[][]; color?: JsColor; borderWidth?: number; borderStyle: string; dashPattern?: number[]; opacity?: number } | { type: "caret"; symbol: string; color?: JsColor; opacity?: number; rectDifferences?: JsRectDifferences } | { type: "redact"; quads: JsQuad[]; interiorColor?: JsColor; overlayText?: string; justification: string; repeat: boolean; color?: JsColor; opacity?: number; defaultAppearance?: string };
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Annotations grouped by page index (as string keys).
|
|
148
|
-
*/
|
|
149
|
-
export type JsAnnotationsByPage = Record<string, JsAnnotation[]>;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Destination display parameters for JavaScript serialization.
|
|
153
|
-
*/
|
|
154
|
-
export type JsDestinationDisplay = { type: "xyz"; left: number | undefined; top: number | undefined; zoom: number | undefined } | { type: "fit" } | { type: "fitH"; top: number | undefined } | { type: "fitV"; left: number | undefined } | { type: "fitR"; left: number; top: number; right: number; bottom: number } | { type: "fitB" } | { type: "fitBH"; top: number | undefined } | { type: "fitBV"; left: number | undefined };
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Destination for JavaScript serialization.
|
|
158
|
-
*/
|
|
159
|
-
export interface JsDestination {
|
|
160
|
-
pageIndex: number;
|
|
161
|
-
display: JsDestinationDisplay;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Effect category, which determines the target\'s resting state.
|
|
166
|
-
*/
|
|
167
|
-
export type JsEffectClass = "entrance" | "exit" | "emphasis" | "motionPath" | "verb" | "mediaCall";
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Everything one click sets in motion.
|
|
171
|
-
*/
|
|
172
|
-
export interface JsAnimationStep {
|
|
173
|
-
effects: JsAnimationEffect[];
|
|
174
|
-
/**
|
|
175
|
-
* How long the whole step runs, in milliseconds.
|
|
176
|
-
*/
|
|
177
|
-
durationMs: number;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Extracted font info for JavaScript.
|
|
182
|
-
*/
|
|
183
|
-
export interface JsExtractedFont {
|
|
184
|
-
name: string;
|
|
185
|
-
fontType: string;
|
|
186
|
-
extension: string;
|
|
187
|
-
data: number[];
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Extracted image info for JavaScript.
|
|
192
|
-
*/
|
|
193
|
-
export interface JsExtractedImage {
|
|
194
|
-
name: string;
|
|
195
|
-
format: string;
|
|
196
|
-
width: number | undefined;
|
|
197
|
-
height: number | undefined;
|
|
198
|
-
data: number[];
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Font info returned by `parseFontInfo`.
|
|
203
|
-
*/
|
|
204
|
-
export interface JsParsedFontInfo {
|
|
205
|
-
typeface: string;
|
|
206
|
-
bold: boolean;
|
|
207
|
-
italic: boolean;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Font registration entry from JavaScript.
|
|
212
|
-
*/
|
|
213
|
-
export interface JsFontRegistration {
|
|
214
|
-
typeface: string;
|
|
215
|
-
bold: boolean;
|
|
216
|
-
italic: boolean;
|
|
217
|
-
url: string;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Font source for JavaScript serialization.
|
|
222
|
-
*/
|
|
223
|
-
export type JsFontSource = "embedded" | "standard" | "googleFonts" | "url" | "local" | { custom: string };
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Font spec for JavaScript serialization.
|
|
227
|
-
*/
|
|
228
|
-
export type JsFontSpec = { typeface: string; bold: boolean; italic: boolean } | { fontId: string };
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Font usage entry for JavaScript serialization.
|
|
232
|
-
*/
|
|
233
|
-
export interface JsFontUsageEntry {
|
|
234
|
-
spec: JsFontSpec;
|
|
235
|
-
resolved: JsResolvedFontInfo;
|
|
236
|
-
fallbacks: JsResolvedFontInfo[];
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Link action for JavaScript serialization.
|
|
241
|
-
*/
|
|
242
|
-
export type JsLinkAction = { actionType: "goTo"; destination: JsDestination } | { actionType: "uri"; uri: string };
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Markup metadata for JavaScript serialization (author, subject, contents, state).
|
|
246
|
-
*/
|
|
247
|
-
export interface JsMarkupMetadata {
|
|
248
|
-
author?: string;
|
|
249
|
-
subject?: string;
|
|
250
|
-
contents?: string;
|
|
251
|
-
/**
|
|
252
|
-
* Annotation state (e.g., \"Accepted\", \"Rejected\", \"Completed\", \"Marked\").
|
|
253
|
-
*/
|
|
254
|
-
state?: string;
|
|
255
|
-
/**
|
|
256
|
-
* State model (e.g., \"Review\" or \"Marked\").
|
|
257
|
-
*/
|
|
258
|
-
stateModel?: string;
|
|
259
|
-
creationDate?: string;
|
|
260
|
-
/**
|
|
261
|
-
* Reply type: \"reply\" or \"group\".
|
|
262
|
-
*/
|
|
263
|
-
replyType?: string;
|
|
264
|
-
intent?: string;
|
|
265
|
-
richContents?: string;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Nested `Vec<Vec<T>>` can\'t cross the WASM boundary directly, so we use a
|
|
270
|
-
* transparent Tsify wrapper.
|
|
271
|
-
*/
|
|
272
|
-
export type JsCompositions = JsPick[][];
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* One layer of a page, rasterized on its own so it can be animated.
|
|
276
|
-
*
|
|
277
|
-
* Layers arrive back-to-front; drawing them in order at `(x, y)` over a
|
|
278
|
-
* transparent surface reproduces the full page.
|
|
279
|
-
*/
|
|
280
|
-
export interface JsAnimationLayer {
|
|
281
|
-
/**
|
|
282
|
-
* The animated shape this layer belongs to, absent for static content.
|
|
283
|
-
* Layers sharing a key must be animated together.
|
|
284
|
-
*/
|
|
285
|
-
shapeKey?: number;
|
|
286
|
-
/**
|
|
287
|
-
* Left edge of the cropped raster within the page, in device pixels.
|
|
288
|
-
*/
|
|
289
|
-
x: number;
|
|
290
|
-
/**
|
|
291
|
-
* Top edge of the cropped raster within the page, in device pixels.
|
|
292
|
-
*/
|
|
293
|
-
y: number;
|
|
294
|
-
width: number;
|
|
295
|
-
height: number;
|
|
296
|
-
/**
|
|
297
|
-
* Premultiplied RGBA pixels, `width * height * 4` bytes long.
|
|
298
|
-
*
|
|
299
|
-
* Serialized as bytes rather than a plain `Vec`, so this crosses into JS
|
|
300
|
-
* as a `Uint8Array` whose buffer the worker can transfer. A layer raster
|
|
301
|
-
* is megabytes; a number array would be ruinous.
|
|
302
|
-
*/
|
|
303
|
-
rgba: Uint8Array;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Outline item for JavaScript serialization.
|
|
308
|
-
*/
|
|
309
|
-
export interface JsOutlineItem {
|
|
310
|
-
title: string;
|
|
311
|
-
destination?: JsDestination;
|
|
312
|
-
children: JsOutlineItem[];
|
|
313
|
-
/**
|
|
314
|
-
* Whether this item should be initially collapsed in the viewer.
|
|
315
|
-
*/
|
|
316
|
-
initiallyCollapsed: boolean;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Outline section info for split_by_outline results.
|
|
321
|
-
*/
|
|
322
|
-
export interface JsOutlineSection {
|
|
323
|
-
title: string;
|
|
324
|
-
index: number;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Page info for serialization to JavaScript.
|
|
329
|
-
*/
|
|
330
|
-
export interface JsPageInfo {
|
|
331
|
-
width: number;
|
|
332
|
-
height: number;
|
|
333
|
-
/**
|
|
334
|
-
* Rotation in degrees (0, 90, 180, or 270)
|
|
335
|
-
*/
|
|
336
|
-
rotation: number;
|
|
337
|
-
/**
|
|
338
|
-
* Transition effect metadata (None when no transition is defined).
|
|
339
|
-
*/
|
|
340
|
-
transition?: JsPageTransition;
|
|
341
|
-
/**
|
|
342
|
-
* Content area for continuous mode cropping (DOCX body bounds, XLSX grid area).
|
|
343
|
-
* Absent for PDF/PPTX where the full page is the content.
|
|
344
|
-
*/
|
|
345
|
-
contentRect?: JsRect;
|
|
346
|
-
/**
|
|
347
|
-
* Tile position in a 2D page grid (XLSX only).
|
|
348
|
-
* Absent for linear formats (PDF, PPTX, DOCX).
|
|
349
|
-
*/
|
|
350
|
-
tilePos?: JsTilePos;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Page transition info for serialization to JavaScript.
|
|
355
|
-
*
|
|
356
|
-
* The `effect` field is a discriminated union tagged by `type`, e.g.:
|
|
357
|
-
* `{ effect: { type: \"fade\", throughBlack: true }, durationMs: 500 }`
|
|
358
|
-
*/
|
|
359
|
-
export interface JsPageTransition {
|
|
360
|
-
/**
|
|
361
|
-
* The visual transition effect (discriminated union tagged by `type`).
|
|
362
|
-
*/
|
|
363
|
-
effect: JsTransitionEffect;
|
|
364
|
-
/**
|
|
365
|
-
* Duration of the transition animation in milliseconds.
|
|
366
|
-
*/
|
|
367
|
-
durationMs?: number;
|
|
368
|
-
/**
|
|
369
|
-
* Whether clicking advances to the next page.
|
|
370
|
-
*/
|
|
371
|
-
advanceOnClick?: boolean;
|
|
372
|
-
/**
|
|
373
|
-
* Auto-advance after this many milliseconds.
|
|
374
|
-
*/
|
|
375
|
-
advanceAfterMs?: number;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Point for JavaScript serialization.
|
|
380
|
-
*/
|
|
381
|
-
export interface JsPoint {
|
|
382
|
-
x: number;
|
|
383
|
-
y: number;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Quadrilateral for JavaScript serialization (used in text markup annotations).
|
|
388
|
-
*/
|
|
389
|
-
export interface JsQuad {
|
|
390
|
-
/**
|
|
391
|
-
* Four corner points: [bottom-left, bottom-right, top-right, top-left]
|
|
392
|
-
*/
|
|
393
|
-
points: [JsPoint, JsPoint, JsPoint, JsPoint];
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* RGB color for JavaScript serialization (values 0.0-1.0).
|
|
398
|
-
*/
|
|
399
|
-
export interface JsColor {
|
|
400
|
-
r: number;
|
|
401
|
-
g: number;
|
|
402
|
-
b: number;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Rectangle differences for JavaScript serialization.
|
|
407
|
-
*/
|
|
408
|
-
export interface JsRectDifferences {
|
|
409
|
-
left: number;
|
|
410
|
-
bottom: number;
|
|
411
|
-
right: number;
|
|
412
|
-
top: number;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Rectangle for JavaScript serialization.
|
|
417
|
-
*/
|
|
418
|
-
export interface JsRect {
|
|
419
|
-
x: number;
|
|
420
|
-
y: number;
|
|
421
|
-
width: number;
|
|
422
|
-
height: number;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* Resolved font info for JavaScript serialization.
|
|
427
|
-
*/
|
|
428
|
-
export interface JsResolvedFontInfo {
|
|
429
|
-
familyName: string;
|
|
430
|
-
postscriptName?: string;
|
|
431
|
-
source: JsFontSource;
|
|
432
|
-
bold: boolean;
|
|
433
|
-
italic: boolean;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Result from pdf_split_by_outline.
|
|
438
|
-
*/
|
|
439
|
-
export interface JsSplitByOutlineResult {
|
|
440
|
-
documentIds: string[];
|
|
441
|
-
sections: JsOutlineSection[];
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* Result returned to JavaScript after license validation.
|
|
446
|
-
*/
|
|
447
|
-
export interface LicenseResult {
|
|
448
|
-
/**
|
|
449
|
-
* Whether the license is valid.
|
|
450
|
-
*/
|
|
451
|
-
valid: boolean;
|
|
452
|
-
/**
|
|
453
|
-
* Error message if validation failed.
|
|
454
|
-
*/
|
|
455
|
-
error?: string;
|
|
456
|
-
/**
|
|
457
|
-
* Enabled features.
|
|
458
|
-
*/
|
|
459
|
-
features: string[];
|
|
460
|
-
/**
|
|
461
|
-
* Numeric limits.
|
|
462
|
-
*/
|
|
463
|
-
limits: Record<string, number>;
|
|
464
|
-
/**
|
|
465
|
-
* Organization name.
|
|
466
|
-
*/
|
|
467
|
-
organization?: string;
|
|
468
|
-
/**
|
|
469
|
-
* Expiry timestamp (Unix seconds), if set.
|
|
470
|
-
*/
|
|
471
|
-
expiresAt?: number;
|
|
472
|
-
/**
|
|
473
|
-
* Upgrade window cutoff (Unix seconds), if set.
|
|
474
|
-
*/
|
|
475
|
-
upgradeUntil?: number;
|
|
476
|
-
/**
|
|
477
|
-
* Unix-seconds release date of this WASM build.
|
|
478
|
-
*/
|
|
479
|
-
wasmReleaseDate: number;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* Stitching layout of a `JsPageGroup` (discriminated union tagged by `type`).
|
|
484
|
-
*/
|
|
485
|
-
export type JsPageGroupLayout = { type: "linear" } | { type: "tiled"; rows: number; cols: number };
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* Text run content.
|
|
489
|
-
*
|
|
490
|
-
* `fontSize`, `ascent` and `descent` are in the run\'s own text space, before
|
|
491
|
-
* `JsLayoutRun.transform` is applied. For reflow layouts (DOCX/PPTX/XLSX/CSV)
|
|
492
|
-
* that transform is identity, so they are already page-space points. For PDF
|
|
493
|
-
* the transform carries the scale of the text matrix and CTM, so the raw
|
|
494
|
-
* `fontSize` is the operand of the `Tf` operator, not the rendered size —
|
|
495
|
-
* use `effectiveFontSize` for that.
|
|
496
|
-
*/
|
|
497
|
-
export type JsLayoutRunContent = { type: "glyphs"; text: string; fontSize: number; effectiveFontSize: number; ascent: number; descent: number; glyphs: JsLayoutGlyph[] } | { type: "space"; advance: number; fontSize: number; effectiveFontSize: number; ascent: number; descent: number } | { type: "tab"; advance: number; fontSize: number; effectiveFontSize: number; ascent: number; descent: number } | { type: "paragraphEnd"; advance: number } | { type: "break" } | { type: "inlineDrawing"; width: number; height: number };
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Tile position in a 2D page grid.
|
|
501
|
-
*/
|
|
502
|
-
export interface JsTilePos {
|
|
503
|
-
row: number;
|
|
504
|
-
col: number;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Transition effect as a discriminated union (tagged by `type`).
|
|
509
|
-
*/
|
|
510
|
-
export type JsTransitionEffect = { type: "blinds"; orientation: JsOrientation } | { type: "checker"; orientation: JsOrientation } | { type: "circle" } | { type: "dissolve" } | { type: "comb"; orientation: JsOrientation } | { type: "cover"; direction: JsEightDirection } | { type: "cut"; throughBlack: boolean } | { type: "diamond" } | { type: "fade"; throughBlack: boolean } | { type: "newsflash" } | { type: "plus" } | { type: "pull"; direction: JsEightDirection } | { type: "push"; direction: JsSideDirection } | { type: "random" } | { type: "randomBar"; orientation: JsOrientation } | { type: "split"; orientation: JsOrientation; inOut: JsInOutDirection } | { type: "strips"; direction: JsCornerDirection } | { type: "wedge" } | { type: "wheel"; spokes: number } | { type: "wipe"; direction: JsSideDirection } | { type: "zoom"; inOut: JsInOutDirection } | { type: "box"; inOut: JsInOutDirection } | { type: "glitter"; direction: JsSideDirection; pattern: JsGlitterPattern } | { type: "fly"; direction: JsSideDirection } | { type: "uncover"; direction: JsEightDirection } | { type: "replace" } | { type: "vortex"; direction: JsSideDirection } | { type: "switch"; direction: JsSideDirection } | { type: "flip"; direction: JsSideDirection } | { type: "ripple"; direction: JsRippleDirection } | { type: "honeycomb" } | { type: "prism"; direction: JsSideDirection; isContent: boolean; isInverted: boolean } | { type: "doors"; orientation: JsOrientation } | { type: "window"; orientation: JsOrientation } | { type: "ferris"; direction: JsSideDirection } | { type: "gallery"; direction: JsSideDirection } | { type: "conveyor"; direction: JsSideDirection } | { type: "pan"; direction: JsSideDirection } | { type: "warp"; inOut: JsInOutDirection } | { type: "flythrough"; inOut: JsInOutDirection; hasBounce: boolean } | { type: "flash" } | { type: "shred"; pattern: JsShredPattern; inOut: JsInOutDirection } | { type: "reveal"; throughBlack: boolean; direction: JsSideDirection } | { type: "wheelReverse"; spokes: number } | { type: "morph"; option: JsMorphOption };
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* Visibility group info for serialization to JavaScript.
|
|
514
|
-
*/
|
|
515
|
-
export interface JsVisibilityGroup {
|
|
516
|
-
id: string;
|
|
517
|
-
name: string;
|
|
518
|
-
visible: boolean;
|
|
519
|
-
locked: boolean;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* What an effect\'s behaviors do (discriminated union tagged by `type`).
|
|
524
|
-
*/
|
|
525
|
-
export type JsEffectBehavior = { type: "instant" } | { type: "filter"; name: string; option: string | undefined } | { type: "move" } | { type: "scale" } | { type: "rotate" } | { type: "color" };
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* What part of a shape an effect covers (discriminated union tagged by `type`).
|
|
529
|
-
*/
|
|
530
|
-
export type JsAnimationTarget = { type: "shape" } | { type: "background" } | { type: "paragraphs"; start: number; end: number };
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* What part of the page a frame represents.
|
|
534
|
-
*/
|
|
535
|
-
export type JsLayoutFrameType = "body" | "header" | "footer" | "shape";
|
|
536
|
-
|
|
537
|
-
export interface JsLayoutFrame {
|
|
538
|
-
/**
|
|
539
|
-
* What part of the page this frame is.
|
|
540
|
-
*
|
|
541
|
-
* Word and Excel documents are laid out by the engine, so their frames
|
|
542
|
-
* are tagged `body`, `header` or `footer`. PDF and PowerPoint frames
|
|
543
|
-
* come from the file itself and are always `shape` — a PowerPoint shape
|
|
544
|
-
* or a PDF content object.
|
|
545
|
-
*/
|
|
546
|
-
type: JsLayoutFrameType;
|
|
547
|
-
transform: JsTransform;
|
|
548
|
-
parcel?: JsLayoutParcel;
|
|
549
|
-
/**
|
|
550
|
-
* Source shape that produced this frame (PPTX `cNvPr/@id`).
|
|
551
|
-
*
|
|
552
|
-
* Lets the viewer line up a frame\'s text layout with the animation
|
|
553
|
-
* layer for the same shape, which is how paragraph builds find the
|
|
554
|
-
* band to clip.
|
|
555
|
-
*/
|
|
556
|
-
shapeKey?: number;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
export interface JsLayoutGlyph {
|
|
560
|
-
x: number;
|
|
561
|
-
y: number;
|
|
562
|
-
advance: number;
|
|
563
|
-
/**
|
|
564
|
-
* Byte offset of this glyph\'s source character relative to the parent run\'s text.
|
|
565
|
-
*/
|
|
566
|
-
offset: number;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export interface JsLayoutGrid {
|
|
570
|
-
x: number;
|
|
571
|
-
y: number;
|
|
572
|
-
width: number;
|
|
573
|
-
height: number;
|
|
574
|
-
scale: number;
|
|
575
|
-
columns: JsLayoutGridColumn[];
|
|
576
|
-
rows: JsLayoutGridRow[];
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
export interface JsLayoutGridCell {
|
|
580
|
-
colIndex: number;
|
|
581
|
-
x: number;
|
|
582
|
-
y: number;
|
|
583
|
-
width: number;
|
|
584
|
-
height: number;
|
|
585
|
-
parcel?: JsLayoutParcel;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
export interface JsLayoutGridColumn {
|
|
589
|
-
x: number;
|
|
590
|
-
width: number;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export interface JsLayoutGridRow {
|
|
594
|
-
y: number;
|
|
595
|
-
height: number;
|
|
596
|
-
cells: JsLayoutGridCell[];
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export interface JsLayoutLine {
|
|
600
|
-
y: number;
|
|
601
|
-
width: number;
|
|
602
|
-
height: number;
|
|
603
|
-
spaceBefore: number;
|
|
604
|
-
spaceAfter: number;
|
|
605
|
-
isFirstLineOfPara: boolean;
|
|
606
|
-
isLastLineOfPara: boolean;
|
|
607
|
-
content: JsLayoutLineContent;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
export interface JsLayoutPage {
|
|
611
|
-
width: number;
|
|
612
|
-
height: number;
|
|
613
|
-
frames: JsLayoutFrame[];
|
|
614
|
-
grid?: JsLayoutGrid;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
export interface JsLayoutParcel {
|
|
618
|
-
x: number;
|
|
619
|
-
y: number;
|
|
620
|
-
width: number;
|
|
621
|
-
height: number;
|
|
622
|
-
lines: JsLayoutLine[];
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
export interface JsLayoutRun {
|
|
626
|
-
x: number;
|
|
627
|
-
width: number;
|
|
628
|
-
transform: JsTransform;
|
|
629
|
-
content: JsLayoutRunContent;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
export interface JsLayoutRunList {
|
|
633
|
-
baseline: number;
|
|
634
|
-
width: number;
|
|
635
|
-
height: number;
|
|
636
|
-
runs: JsLayoutRun[];
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export interface JsLayoutTable {
|
|
640
|
-
width: number;
|
|
641
|
-
height: number;
|
|
642
|
-
columns: JsLayoutTableColumn[];
|
|
643
|
-
rows: JsLayoutTableRow[];
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
export interface JsLayoutTableCell {
|
|
647
|
-
colIndex: number;
|
|
648
|
-
colSpan: number;
|
|
649
|
-
rowSpan: number;
|
|
650
|
-
x: number;
|
|
651
|
-
y: number;
|
|
652
|
-
width: number;
|
|
653
|
-
height: number;
|
|
654
|
-
parcel?: JsLayoutParcel;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
export interface JsLayoutTableColumn {
|
|
658
|
-
x: number;
|
|
659
|
-
width: number;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
export interface JsLayoutTableRow {
|
|
663
|
-
y: number;
|
|
664
|
-
height: number;
|
|
665
|
-
cells: JsLayoutTableCell[];
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
export interface JsTransform {
|
|
669
|
-
scaleX: number;
|
|
670
|
-
skewY: number;
|
|
671
|
-
skewX: number;
|
|
672
|
-
scaleY: number;
|
|
673
|
-
translateX: number;
|
|
674
|
-
translateY: number;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export interface JsViewerPreferences {
|
|
678
|
-
layoutMode?: JsViewerLayoutMode;
|
|
679
|
-
scrollMode?: JsViewerScrollMode;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
export type JsCornerDirection = "leftUp" | "rightUp" | "leftDown" | "rightDown";
|
|
683
|
-
|
|
684
|
-
export type JsEightDirection = "left" | "right" | "up" | "down" | "leftUp" | "rightUp" | "leftDown" | "rightDown";
|
|
685
|
-
|
|
686
|
-
export type JsGlitterPattern = "diamond" | "hexagon";
|
|
687
|
-
|
|
688
|
-
export type JsInOutDirection = "in" | "out";
|
|
689
|
-
|
|
690
|
-
export type JsLayoutLineContent = ({ type: "runList" } & JsLayoutRunList) | ({ type: "table" } & JsLayoutTable);
|
|
691
|
-
|
|
692
|
-
export type JsMorphOption = "byObject" | "byWord" | "byChar";
|
|
693
|
-
|
|
694
|
-
export type JsOrientation = "horizontal" | "vertical";
|
|
695
|
-
|
|
696
|
-
export type JsRippleDirection = "center" | "leftUp" | "rightUp" | "leftDown" | "rightDown";
|
|
697
|
-
|
|
698
|
-
export type JsShredPattern = "strip" | "rectangle";
|
|
699
|
-
|
|
700
|
-
export type JsSideDirection = "left" | "right" | "up" | "down";
|
|
701
|
-
|
|
702
|
-
export type JsViewerLayoutMode = "single-page" | "double-page-odd-right" | "double-page-odd-left";
|
|
703
|
-
|
|
704
|
-
export type JsViewerScrollMode = "spread" | "continuous";
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Universal document viewer.
|
|
709
|
-
*
|
|
710
|
-
* Loads, stores, and renders PDF documents. Each document is identified by a unique ID.
|
|
711
|
-
*/
|
|
712
|
-
export class Wasm {
|
|
713
|
-
free(): void;
|
|
714
|
-
[Symbol.dispose](): void;
|
|
715
|
-
/**
|
|
716
|
-
* Get info for all pages in one call.
|
|
717
|
-
*
|
|
718
|
-
* Returns an array of `PageInfo` objects, one per page.
|
|
719
|
-
* More efficient than calling `page_info` for each page.
|
|
720
|
-
*/
|
|
721
|
-
all_page_info(id: string): JsPageInfo[];
|
|
722
|
-
/**
|
|
723
|
-
* Authenticate with a password to unlock an encrypted document.
|
|
724
|
-
*
|
|
725
|
-
* # Arguments
|
|
726
|
-
* * `id` - Document ID
|
|
727
|
-
* * `password` - Password to try
|
|
728
|
-
*
|
|
729
|
-
* # Returns
|
|
730
|
-
* `true` if authentication succeeded, `false` if the password was incorrect.
|
|
731
|
-
*/
|
|
732
|
-
authenticate(id: string, password: string): boolean;
|
|
733
|
-
/**
|
|
734
|
-
* Disable telemetry reporting.
|
|
735
|
-
*
|
|
736
|
-
* Only takes effect if the current license includes the `no_telemetry`
|
|
737
|
-
* feature flag. Returns `true` if telemetry was disabled, `false` if the
|
|
738
|
-
* license does not permit it.
|
|
739
|
-
*/
|
|
740
|
-
disable_telemetry(): boolean;
|
|
741
|
-
/**
|
|
742
|
-
* Get the format of a loaded document.
|
|
743
|
-
*
|
|
744
|
-
* Returns one of: "pdf", "docx", "pptx", "xlsx", "csv", "image".
|
|
745
|
-
*/
|
|
746
|
-
document_format(id: string): string;
|
|
747
|
-
/**
|
|
748
|
-
* Get all document IDs.
|
|
749
|
-
*/
|
|
750
|
-
document_ids(): string[];
|
|
751
|
-
/**
|
|
752
|
-
* Enable Google Fonts.
|
|
753
|
-
*
|
|
754
|
-
* When enabled, fonts that are not embedded in the document will be
|
|
755
|
-
* automatically fetched from Google Fonts during rendering. Google Fonts
|
|
756
|
-
* are resolved after any URL fonts registered via `registerFonts`.
|
|
757
|
-
*
|
|
758
|
-
* Call this before loading documents.
|
|
759
|
-
*
|
|
760
|
-
* # Example (JavaScript)
|
|
761
|
-
* ```js
|
|
762
|
-
* udoc.enableGoogleFonts();
|
|
763
|
-
* const docId = udoc.loadPptx(pptxBytes);
|
|
764
|
-
* const pixels = udoc.renderPageToRgba(docId, 0, 800, 600);
|
|
765
|
-
* ```
|
|
766
|
-
*/
|
|
767
|
-
enableGoogleFonts(): void;
|
|
768
|
-
/**
|
|
769
|
-
* Get all annotations in the document, grouped by page index.
|
|
770
|
-
*
|
|
771
|
-
* Returns an object mapping page indices (as strings) to arrays of annotations.
|
|
772
|
-
*/
|
|
773
|
-
get_all_annotations(id: string): JsAnnotationsByPage;
|
|
774
|
-
/**
|
|
775
|
-
* Get the raw file bytes of a document.
|
|
776
|
-
*
|
|
777
|
-
* Returns the original file data for the document.
|
|
778
|
-
*/
|
|
779
|
-
get_bytes(id: string): Uint8Array;
|
|
780
|
-
/**
|
|
781
|
-
* Get font usage information for a document.
|
|
782
|
-
*
|
|
783
|
-
* Returns an array of `FontUsageEntry` objects describing how each font
|
|
784
|
-
* spec in the document was resolved, including primary resolution and
|
|
785
|
-
* any glyph-fallback fonts used during text shaping.
|
|
786
|
-
*
|
|
787
|
-
* This information is populated during layout — call after rendering at
|
|
788
|
-
* least one page to get results.
|
|
789
|
-
*
|
|
790
|
-
* # Arguments
|
|
791
|
-
* * `id` - Document ID
|
|
792
|
-
*
|
|
793
|
-
* # Returns
|
|
794
|
-
* `FontUsageEntry[]` — see TypeScript types for shape.
|
|
795
|
-
*/
|
|
796
|
-
get_font_usage(id: string): JsFontUsageEntry[];
|
|
797
|
-
/**
|
|
798
|
-
* Get the layout model for a specific page.
|
|
799
|
-
*
|
|
800
|
-
* Returns the hierarchical layout structure (frames, parcels, lines, runs,
|
|
801
|
-
* glyphs, tables, grids) without building the full display list. This is
|
|
802
|
-
* more efficient than `get_page_text` for text selection/search and
|
|
803
|
-
* preserves semantic structure (paragraphs, tables, etc.).
|
|
804
|
-
*
|
|
805
|
-
* All coordinates are in points (1/72 inch). The viewer should scale by
|
|
806
|
-
* `canvasWidth / layoutPage.width` to convert to pixels.
|
|
807
|
-
*/
|
|
808
|
-
get_layout_page(id: string, page_index: number): JsLayoutPage;
|
|
809
|
-
/**
|
|
810
|
-
* Get a numeric limit from the current license.
|
|
811
|
-
*
|
|
812
|
-
* Returns the limit value if set in the license, otherwise returns the default.
|
|
813
|
-
*/
|
|
814
|
-
get_limit(limit_name: string, _default: bigint): bigint;
|
|
815
|
-
/**
|
|
816
|
-
* Get the document outline (bookmarks/table of contents).
|
|
817
|
-
*
|
|
818
|
-
* Returns an array of outline items, where each item has:
|
|
819
|
-
* - `title`: Display text for the item
|
|
820
|
-
* - `destination`: Optional navigation destination with `pageIndex` and display parameters
|
|
821
|
-
* - `children`: Nested child items
|
|
822
|
-
*
|
|
823
|
-
* Returns an empty array if the document has no outline.
|
|
824
|
-
*/
|
|
825
|
-
get_outline(id: string): JsOutlineItem[];
|
|
826
|
-
/**
|
|
827
|
-
* Get annotations for a specific page.
|
|
828
|
-
*
|
|
829
|
-
* Returns an array of annotation objects for the given page.
|
|
830
|
-
* Uses per-page loading for efficiency (only loads the requested page).
|
|
831
|
-
*
|
|
832
|
-
* All geometry fields on the returned annotations (`bounds`, `quads`,
|
|
833
|
-
* `vertices`, `inkList`, `start`/`end`, …) are in the page's unrotated
|
|
834
|
-
* MediaBox coordinate space — origin top-left, PDF points, +y downward
|
|
835
|
-
* — regardless of the page's `/Rotate` value. The viewer applies
|
|
836
|
-
* rotation as a display transform on top. This matches the input space
|
|
837
|
-
* expected by `pdf_save_annotations`, so the round-trip is consistent.
|
|
838
|
-
*/
|
|
839
|
-
get_page_annotations(id: string, page_index: number): JsAnnotation[];
|
|
840
|
-
/**
|
|
841
|
-
* Get all visibility groups for a document.
|
|
842
|
-
*
|
|
843
|
-
* Returns an array of objects, each containing:
|
|
844
|
-
* - `id`: Unique identifier string
|
|
845
|
-
* - `name`: Display name for UI
|
|
846
|
-
* - `visible`: Whether the group is currently visible
|
|
847
|
-
*
|
|
848
|
-
* Returns an empty array for documents without visibility groups.
|
|
849
|
-
*/
|
|
850
|
-
get_visibility_groups(id: string): JsVisibilityGroup[];
|
|
851
|
-
/**
|
|
852
|
-
* Check if a document with the given ID exists.
|
|
853
|
-
*/
|
|
854
|
-
has_document(id: string): boolean;
|
|
855
|
-
/**
|
|
856
|
-
* Check if a feature is enabled by the current license.
|
|
857
|
-
*/
|
|
858
|
-
has_feature(feature: string): boolean;
|
|
859
|
-
/**
|
|
860
|
-
* Check whether the GPU render backend is available.
|
|
861
|
-
*/
|
|
862
|
-
has_gpu(): boolean;
|
|
863
|
-
/**
|
|
864
|
-
* Initialize the GPU render backend (Vello + WebGPU).
|
|
865
|
-
*
|
|
866
|
-
* This is async because wgpu device initialization requires yielding
|
|
867
|
-
* to the browser event loop. Call this once after construction.
|
|
868
|
-
* Returns `true` if GPU initialization succeeded, `false` if no
|
|
869
|
-
* WebGPU adapter is available (the CPU backend remains usable).
|
|
870
|
-
*/
|
|
871
|
-
init_gpu(): Promise<boolean>;
|
|
872
|
-
/**
|
|
873
|
-
* Get current license status.
|
|
874
|
-
*/
|
|
875
|
-
license_status(): LicenseResult;
|
|
876
|
-
/**
|
|
877
|
-
* Load a document by auto-detecting its format from the file contents.
|
|
878
|
-
*
|
|
879
|
-
* When `format` is supplied (one of `"pdf"`, `"docx"`, `"pptx"`, `"xlsx"`,
|
|
880
|
-
* `"csv"`, `"image"`), it is authoritative and the matching loader is used
|
|
881
|
-
* directly — the viewer is expected to know the format (from extension, MIME
|
|
882
|
-
* type, or user choice). This is the only way to open formats with no magic
|
|
883
|
-
* bytes, such as CSV. When `format` is `None`, the format is detected from
|
|
884
|
-
* magic bytes:
|
|
885
|
-
* - `%PDF` → PDF
|
|
886
|
-
* - `PK\x03\x04` (ZIP) → inspects ZIP entries for `word/` (DOCX), `ppt/` (PPTX), or `xl/` (XLSX)
|
|
887
|
-
* - Image magic bytes (JPEG, PNG, GIF, BMP, TIFF, WebP) → Image
|
|
888
|
-
*
|
|
889
|
-
* # Arguments
|
|
890
|
-
* * `bytes` - Raw file data
|
|
891
|
-
* * `format` - Optional explicit format hint; falls back to magic-byte
|
|
892
|
-
* detection when `None`.
|
|
893
|
-
*
|
|
894
|
-
* # Returns
|
|
895
|
-
* A unique document ID that can be used to reference this document.
|
|
896
|
-
*
|
|
897
|
-
* # Permit enforcement
|
|
898
|
-
* This is the single, gated document-open entry point. For
|
|
899
|
-
* free/unlicensed usage it requires a valid server-signed permit (fetched
|
|
900
|
-
* and verified inside WASM) before the document is opened; commercial
|
|
901
|
-
* licensed usage skips the permit entirely. The per-format loaders are
|
|
902
|
-
* private so there is no ungated open path.
|
|
903
|
-
*/
|
|
904
|
-
load(bytes: Uint8Array, format?: string | null): Promise<string>;
|
|
905
|
-
/**
|
|
906
|
-
* Check if a document requires a password to open.
|
|
907
|
-
*
|
|
908
|
-
* Returns `true` if the document is encrypted and requires authentication
|
|
909
|
-
* before pages can be loaded or rendered.
|
|
910
|
-
*/
|
|
911
|
-
needs_password(id: string): boolean;
|
|
912
|
-
/**
|
|
913
|
-
* Create a new document viewer.
|
|
914
|
-
*
|
|
915
|
-
* # Arguments
|
|
916
|
-
* * `domain` - Hostname of the embedding page (e.g. from `window.location.hostname`)
|
|
917
|
-
* * `viewer_version` - SDK version string
|
|
918
|
-
*/
|
|
919
|
-
constructor(domain: string, viewer_version: string);
|
|
920
|
-
/**
|
|
921
|
-
* Get the page count of a document.
|
|
922
|
-
*/
|
|
923
|
-
page_count(id: string): number;
|
|
924
|
-
/**
|
|
925
|
-
* Get the page groups for a document.
|
|
926
|
-
*
|
|
927
|
-
* Each group covers a contiguous range of global page indices with a
|
|
928
|
-
* shared stitching layout. Use this to build per-group canvases (e.g.,
|
|
929
|
-
* one panel per Excel sheet) and group-named sidebars.
|
|
930
|
-
*
|
|
931
|
-
* - PDF/DOCX: one `linear` group covering all pages, no name.
|
|
932
|
-
* - PPTX: one `linear` group (per-section groups once sections are modeled).
|
|
933
|
-
* - XLSX: one `tiled` group per sheet with the sheet name and page-grid dimensions.
|
|
934
|
-
*/
|
|
935
|
-
page_groups(id: string): JsPageGroup[];
|
|
936
|
-
/**
|
|
937
|
-
* Get info for a specific page.
|
|
938
|
-
*/
|
|
939
|
-
page_info(id: string, page_index: number): JsPageInfo;
|
|
940
|
-
/**
|
|
941
|
-
* Compose new PDF documents by cherry-picking pages from source documents.
|
|
942
|
-
*
|
|
943
|
-
* The original documents remain unchanged.
|
|
944
|
-
*
|
|
945
|
-
* # Arguments
|
|
946
|
-
* * `compositions` - Array of compositions. Each composition is an array of picks.
|
|
947
|
-
* Each pick is `{ doc: docIndex, pages: "0-2,4" }` where `docIndex` is the index
|
|
948
|
-
* in the `doc_ids` array and `pages` is a page range string (0-based).
|
|
949
|
-
* * `doc_ids` - Array of document IDs to use as sources (order matters for doc indices)
|
|
950
|
-
*
|
|
951
|
-
* # Example
|
|
952
|
-
* ```js
|
|
953
|
-
* // Create two documents: first has pages 0-2 from doc A, second has page 0 from A and 1 from B
|
|
954
|
-
* const newDocIds = udoc.pdf_compose(
|
|
955
|
-
* [
|
|
956
|
-
* [{ doc: 0, pages: "0-2" }],
|
|
957
|
-
* [{ doc: 0, pages: "0" }, { doc: 1, pages: "1" }]
|
|
958
|
-
* ],
|
|
959
|
-
* ["doc_0", "doc_1"]
|
|
960
|
-
* );
|
|
961
|
-
* ```
|
|
962
|
-
*
|
|
963
|
-
* # Returns
|
|
964
|
-
* Array of IDs for the newly created documents (one per composition).
|
|
965
|
-
*/
|
|
966
|
-
pdf_compose(compositions: JsCompositions, doc_ids: string[]): string[];
|
|
967
|
-
/**
|
|
968
|
-
* Compress a PDF document.
|
|
969
|
-
*
|
|
970
|
-
* Saves the document with full compression options enabled:
|
|
971
|
-
* - Compress stream data using FlateDecode
|
|
972
|
-
* - Pack objects into compressed object streams (PDF 1.5+)
|
|
973
|
-
* - Use compressed xref streams (PDF 1.5+)
|
|
974
|
-
* - Remove unreferenced objects
|
|
975
|
-
*
|
|
976
|
-
* # Arguments
|
|
977
|
-
* * `doc_id` - Document ID to compress
|
|
978
|
-
*
|
|
979
|
-
* # Returns
|
|
980
|
-
* Compressed PDF data as Uint8Array
|
|
981
|
-
*/
|
|
982
|
-
pdf_compress(doc_id: string): Uint8Array;
|
|
983
|
-
/**
|
|
984
|
-
* Decompress a PDF document.
|
|
985
|
-
*
|
|
986
|
-
* Removes all filter encodings from streams, resulting in raw,
|
|
987
|
-
* uncompressed stream data. Useful for debugging or inspection.
|
|
988
|
-
*
|
|
989
|
-
* # Arguments
|
|
990
|
-
* * `doc_id` - Document ID to decompress
|
|
991
|
-
*
|
|
992
|
-
* # Returns
|
|
993
|
-
* Decompressed PDF data as Uint8Array
|
|
994
|
-
*/
|
|
995
|
-
pdf_decompress(doc_id: string): Uint8Array;
|
|
996
|
-
/**
|
|
997
|
-
* Extract all embedded fonts from a PDF document.
|
|
998
|
-
*
|
|
999
|
-
* # Arguments
|
|
1000
|
-
* * `doc_id` - Document ID to extract fonts from
|
|
1001
|
-
*
|
|
1002
|
-
* # Returns
|
|
1003
|
-
* Array of extracted font objects, each with:
|
|
1004
|
-
* - `name`: Font name from the resource dictionary
|
|
1005
|
-
* - `fontType`: Font type (Type1, TrueType, etc.)
|
|
1006
|
-
* - `extension`: File extension (ttf, cff, t1, etc.)
|
|
1007
|
-
* - `data`: Raw font data as Uint8Array
|
|
1008
|
-
*/
|
|
1009
|
-
pdf_extract_fonts(doc_id: string): JsExtractedFont[];
|
|
1010
|
-
/**
|
|
1011
|
-
* Extract all embedded images from a PDF document.
|
|
1012
|
-
*
|
|
1013
|
-
* # Arguments
|
|
1014
|
-
* * `doc_id` - Document ID to extract images from
|
|
1015
|
-
* * `convert_raw_to_png` - When true, converts raw pixel data to PNG format
|
|
1016
|
-
*
|
|
1017
|
-
* # Returns
|
|
1018
|
-
* Array of extracted image objects, each with:
|
|
1019
|
-
* - `name`: Image name from the resource dictionary
|
|
1020
|
-
* - `format`: Image format (jpeg, png, jp2, etc.)
|
|
1021
|
-
* - `width`: Width in pixels
|
|
1022
|
-
* - `height`: Height in pixels
|
|
1023
|
-
* - `data`: Raw image data as Uint8Array
|
|
1024
|
-
*/
|
|
1025
|
-
pdf_extract_images(doc_id: string, convert_raw_to_png: boolean): JsExtractedImage[];
|
|
1026
|
-
/**
|
|
1027
|
-
* Save annotations back to a PDF document.
|
|
1028
|
-
*
|
|
1029
|
-
* Takes the current document and a set of annotations (grouped by page),
|
|
1030
|
-
* writes them into the PDF's annotation structures, and returns the
|
|
1031
|
-
* modified PDF bytes.
|
|
1032
|
-
*
|
|
1033
|
-
* # Coordinate space
|
|
1034
|
-
*
|
|
1035
|
-
* Every geometry field on the supplied annotations (`bounds`, `quads`,
|
|
1036
|
-
* `vertices`, `inkList`, `start`/`end`, `calloutLine`, …) must be in
|
|
1037
|
-
* the page's **unrotated MediaBox** coordinate space:
|
|
1038
|
-
*
|
|
1039
|
-
* - Origin = MediaBox top-left of the page in its natural (pre-`/Rotate`)
|
|
1040
|
-
* orientation. `(0, 0)` does not move when the page is displayed
|
|
1041
|
-
* rotated 90°/180°/270°.
|
|
1042
|
-
* - Units = PDF points (1/72 inch).
|
|
1043
|
-
* - Axes = `+x` right, `+y` downward (Y-flipped relative to PDF's native
|
|
1044
|
-
* bottom-up `/Rect`; this function performs the flip on the way out).
|
|
1045
|
-
* - `CropBox` is ignored — coordinates are MediaBox-relative even when
|
|
1046
|
-
* the page's CropBox trims the visible area.
|
|
1047
|
-
*
|
|
1048
|
-
* This is the same space returned by `get_page_annotations` /
|
|
1049
|
-
* `get_all_annotations`, so a load-edit-save round-trip is consistent.
|
|
1050
|
-
* Pages with no existing `/Annots` array are handled automatically: any
|
|
1051
|
-
* pre-existing array is cleared and a fresh one is created.
|
|
1052
|
-
*
|
|
1053
|
-
* # Arguments
|
|
1054
|
-
* * `doc_id` - Document ID
|
|
1055
|
-
* * `annotations_by_page` - Object mapping page indices (as strings) to
|
|
1056
|
-
* arrays of annotation objects. Same schema as returned by
|
|
1057
|
-
* `get_all_annotations`.
|
|
1058
|
-
*
|
|
1059
|
-
* # Returns
|
|
1060
|
-
* The modified PDF file bytes with annotations saved.
|
|
1061
|
-
*
|
|
1062
|
-
* # Example (JavaScript)
|
|
1063
|
-
* ```js
|
|
1064
|
-
* const annotations = udoc.get_all_annotations(docId);
|
|
1065
|
-
* // ... viewer edits annotations ...
|
|
1066
|
-
* const pdfBytes = udoc.pdf_save_annotations(docId, annotations);
|
|
1067
|
-
* ```
|
|
1068
|
-
*/
|
|
1069
|
-
pdf_save_annotations(doc_id: string, annotations_by_page: JsAnnotationsByPage): Uint8Array;
|
|
1070
|
-
/**
|
|
1071
|
-
* Split a PDF document by its outline (bookmarks) structure.
|
|
1072
|
-
*
|
|
1073
|
-
* Creates multiple documents, one for each outline section at the specified level.
|
|
1074
|
-
*
|
|
1075
|
-
* # Arguments
|
|
1076
|
-
* * `doc_id` - Document ID to split
|
|
1077
|
-
* * `max_level` - Maximum outline level to consider (1 = top level only)
|
|
1078
|
-
* * `split_mid_page` - When true, filters page content when sections share a page
|
|
1079
|
-
*
|
|
1080
|
-
* # Returns
|
|
1081
|
-
* Object with:
|
|
1082
|
-
* - `documentIds`: Array of IDs for the newly created documents
|
|
1083
|
-
* - `sections`: Array of section info objects with `title`, `startPage`, `level`
|
|
1084
|
-
*/
|
|
1085
|
-
pdf_split_by_outline(doc_id: string, max_level: number, split_mid_page: boolean): JsSplitByOutlineResult;
|
|
1086
|
-
/**
|
|
1087
|
-
* Register font URLs.
|
|
1088
|
-
*
|
|
1089
|
-
* The caller provides a list of all available fonts with their download
|
|
1090
|
-
* URLs. During layout, when the engine needs a font, it is fetched from
|
|
1091
|
-
* the URL, parsed, and cached for reuse.
|
|
1092
|
-
*
|
|
1093
|
-
* Call this before loading documents. Registered fonts are automatically
|
|
1094
|
-
* applied to every document loaded afterward. URL fonts are always
|
|
1095
|
-
* resolved before Google Fonts.
|
|
1096
|
-
*
|
|
1097
|
-
* # Arguments
|
|
1098
|
-
* * `fonts` - Array of font entries: `[{ typeface: "Roboto", bold: false, italic: false, url: "https://..." }, ...]`
|
|
1099
|
-
*
|
|
1100
|
-
* # Example (JavaScript)
|
|
1101
|
-
* ```js
|
|
1102
|
-
* // Register available fonts before loading documents
|
|
1103
|
-
* udoc.registerFonts([
|
|
1104
|
-
* { typeface: "Roboto", bold: false, italic: false, url: "https://cdn.example.com/Roboto-Regular.woff2" },
|
|
1105
|
-
* { typeface: "Roboto", bold: true, italic: false, url: "https://cdn.example.com/Roboto-Bold.woff2" },
|
|
1106
|
-
* ]);
|
|
1107
|
-
*
|
|
1108
|
-
* // Load and render - fonts are fetched on demand during layout
|
|
1109
|
-
* const docId = udoc.loadPptx(pptxBytes);
|
|
1110
|
-
* const pixels = udoc.renderPageToRgba(docId, 0, 800, 600);
|
|
1111
|
-
* ```
|
|
1112
|
-
*/
|
|
1113
|
-
registerFonts(fonts: JsFontRegistration[]): void;
|
|
1114
|
-
/**
|
|
1115
|
-
* Remove a document by ID.
|
|
1116
|
-
*
|
|
1117
|
-
* Returns true if the document was removed, false if it didn't exist.
|
|
1118
|
-
*/
|
|
1119
|
-
remove_document(id: string): boolean;
|
|
1120
|
-
/**
|
|
1121
|
-
* Render a page using the GPU backend (Vello + WebGPU).
|
|
1122
|
-
*
|
|
1123
|
-
* Returns raw RGBA pixel data in premultiplied alpha format,
|
|
1124
|
-
* identical to `render_page_to_rgba` but GPU-accelerated.
|
|
1125
|
-
*
|
|
1126
|
-
* # Errors
|
|
1127
|
-
* Returns an error if the GPU backend is not initialized
|
|
1128
|
-
* (call `init_gpu()` first), if the document is not found,
|
|
1129
|
-
* or if rendering fails.
|
|
1130
|
-
*/
|
|
1131
|
-
render_page_gpu(id: string, page_index: number, width: number, height: number): Promise<Uint8Array>;
|
|
1132
|
-
/**
|
|
1133
|
-
* Render a page as separate animation layers, back-to-front.
|
|
1134
|
-
*
|
|
1135
|
-
* Each animated shape gets its own layer and each run of static frames
|
|
1136
|
-
* between them gets another, so drawing the layers in order reproduces
|
|
1137
|
-
* the page exactly while leaving each animated shape independently
|
|
1138
|
-
* transformable. Rasters are cropped to their content; `x` and `y` give
|
|
1139
|
-
* the offset within the page.
|
|
1140
|
-
*
|
|
1141
|
-
* Returns `undefined` when the page has no animations — render it with
|
|
1142
|
-
* `render_page_to_rgba` instead.
|
|
1143
|
-
*/
|
|
1144
|
-
render_page_layers(id: string, page_index: number, width: number, height: number): JsAnimationLayer[] | undefined;
|
|
1145
|
-
/**
|
|
1146
|
-
* Render a page to PNG bytes.
|
|
1147
|
-
*
|
|
1148
|
-
* # Arguments
|
|
1149
|
-
* * `id` - Document ID
|
|
1150
|
-
* * `page_index` - Zero-based page index
|
|
1151
|
-
* * `width` - Output width in pixels
|
|
1152
|
-
* * `height` - Output height in pixels
|
|
1153
|
-
*
|
|
1154
|
-
* # Returns
|
|
1155
|
-
* PNG-encoded image data as a byte array.
|
|
1156
|
-
*/
|
|
1157
|
-
render_page_to_png(id: string, page_index: number, width: number, height: number): Uint8Array;
|
|
1158
|
-
/**
|
|
1159
|
-
* Render a page to raw RGBA pixel data.
|
|
1160
|
-
*
|
|
1161
|
-
* The returned data is in premultiplied alpha format, suitable for
|
|
1162
|
-
* use with `ImageData` and canvas rendering.
|
|
1163
|
-
*
|
|
1164
|
-
* # Arguments
|
|
1165
|
-
* * `id` - Document ID
|
|
1166
|
-
* * `page_index` - Zero-based page index
|
|
1167
|
-
* * `width` - Output width in pixels
|
|
1168
|
-
* * `height` - Output height in pixels
|
|
1169
|
-
*
|
|
1170
|
-
* # Returns
|
|
1171
|
-
* Raw RGBA pixel data (width * height * 4 bytes).
|
|
1172
|
-
*/
|
|
1173
|
-
render_page_to_rgba(id: string, page_index: number, width: number, height: number): Uint8Array;
|
|
1174
|
-
/**
|
|
1175
|
-
* Set the license key.
|
|
1176
|
-
*
|
|
1177
|
-
* # Arguments
|
|
1178
|
-
* * `license_key` - The license key string
|
|
1179
|
-
*
|
|
1180
|
-
* # Returns
|
|
1181
|
-
* License validation result as JSON.
|
|
1182
|
-
*/
|
|
1183
|
-
set_license(license_key: string): LicenseResult;
|
|
1184
|
-
/**
|
|
1185
|
-
* Set the visibility of a specific visibility group.
|
|
1186
|
-
*
|
|
1187
|
-
* # Arguments
|
|
1188
|
-
* * `id` - Document ID
|
|
1189
|
-
* * `group_id` - Visibility group ID
|
|
1190
|
-
* * `visible` - Whether the group should be visible
|
|
1191
|
-
*
|
|
1192
|
-
* Returns `true` if the group was found and updated, `false` if not found.
|
|
1193
|
-
*/
|
|
1194
|
-
set_visibility_group_visible(id: string, group_id: string, visible: boolean): boolean;
|
|
1195
|
-
/**
|
|
1196
|
-
* Set the anonymous distinct ID for telemetry tracking.
|
|
1197
|
-
*
|
|
1198
|
-
* Call this after `new()` once the ID has been read from localStorage
|
|
1199
|
-
* (or generated). Must be called before loading documents so that
|
|
1200
|
-
* telemetry events include the correct metadata.
|
|
1201
|
-
*
|
|
1202
|
-
* # Arguments
|
|
1203
|
-
* * `distinct_id` - Anonymous UUID for per-user tracking (persisted in localStorage)
|
|
1204
|
-
*/
|
|
1205
|
-
setup_telemetry(distinct_id: string): void;
|
|
1206
|
-
/**
|
|
1207
|
-
* Get the build sequence of a page (PPTX slide animations).
|
|
1208
|
-
*
|
|
1209
|
-
* Returns `undefined` for pages without animations, which is every page
|
|
1210
|
-
* of a PDF, DOCX or XLSX and most PPTX slides. Loading is lazy — unlike
|
|
1211
|
-
* transitions on `page_info`, this triggers a full page load, so call it
|
|
1212
|
-
* only for the page being displayed.
|
|
1213
|
-
*/
|
|
1214
|
-
slide_animation(id: string, page_index: number): JsSlideAnimation | undefined;
|
|
1215
|
-
/**
|
|
1216
|
-
* Get viewer preferences embedded in the document.
|
|
1217
|
-
*
|
|
1218
|
-
* Returns a `JsViewerPreferences` with optional fields:
|
|
1219
|
-
* - `layoutMode`: `"single-page"` | `"double-page-odd-right"` | `"double-page-odd-left"`
|
|
1220
|
-
* - `scrollMode`: `"spread"` | `"continuous"`
|
|
1221
|
-
*/
|
|
1222
|
-
viewer_preferences(id: string): JsViewerPreferences;
|
|
1223
|
-
/**
|
|
1224
|
-
* Get the number of documents currently loaded.
|
|
1225
|
-
*/
|
|
1226
|
-
readonly document_count: number;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
/**
|
|
1230
|
-
* Parse font binary data and return font metadata.
|
|
1231
|
-
*
|
|
1232
|
-
* Accepts raw font bytes (TTF, OTF, WOFF, WOFF2) and returns the typeface
|
|
1233
|
-
* name, bold, and italic flags. Customers can use this to inspect font files,
|
|
1234
|
-
* store the metadata alongside the binary in their own database, and later
|
|
1235
|
-
* use it to craft entries for `registerFonts`.
|
|
1236
|
-
*
|
|
1237
|
-
* # Arguments
|
|
1238
|
-
* * `data` - Raw font binary data
|
|
1239
|
-
*
|
|
1240
|
-
* # Returns
|
|
1241
|
-
* An object with `{ typeface: string, bold: boolean, italic: boolean }`.
|
|
1242
|
-
*
|
|
1243
|
-
* # Example (JavaScript)
|
|
1244
|
-
* ```js
|
|
1245
|
-
* const fontBytes = new Uint8Array(await fetch("Roboto-Bold.woff2").then(r => r.arrayBuffer()));
|
|
1246
|
-
* const info = parseFontInfo(fontBytes);
|
|
1247
|
-
* // info = { typeface: "Roboto", bold: true, italic: false }
|
|
1248
|
-
*
|
|
1249
|
-
* // Store info + fontBytes in your database, then later:
|
|
1250
|
-
* udoc.registerFonts([
|
|
1251
|
-
* { typeface: info.typeface, bold: info.bold, italic: info.italic, url: "https://..." },
|
|
1252
|
-
* ]);
|
|
1253
|
-
* ```
|
|
1254
|
-
*/
|
|
1255
|
-
export function parseFontInfo(data: Uint8Array): JsParsedFontInfo;
|
|
1256
|
-
|
|
1257
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
1258
|
-
|
|
1259
|
-
export interface InitOutput {
|
|
1260
|
-
readonly memory: WebAssembly.Memory;
|
|
1261
|
-
readonly __wbg_wasm_free: (a: number, b: number) => void;
|
|
1262
|
-
readonly parseFontInfo: (a: number, b: number, c: number) => void;
|
|
1263
|
-
readonly wasm_all_page_info: (a: number, b: number, c: number, d: number) => void;
|
|
1264
|
-
readonly wasm_authenticate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1265
|
-
readonly wasm_disable_telemetry: (a: number) => number;
|
|
1266
|
-
readonly wasm_document_count: (a: number) => number;
|
|
1267
|
-
readonly wasm_document_format: (a: number, b: number, c: number, d: number) => void;
|
|
1268
|
-
readonly wasm_document_ids: (a: number, b: number) => void;
|
|
1269
|
-
readonly wasm_enableGoogleFonts: (a: number) => void;
|
|
1270
|
-
readonly wasm_get_all_annotations: (a: number, b: number, c: number, d: number) => void;
|
|
1271
|
-
readonly wasm_get_bytes: (a: number, b: number, c: number, d: number) => void;
|
|
1272
|
-
readonly wasm_get_font_usage: (a: number, b: number, c: number, d: number) => void;
|
|
1273
|
-
readonly wasm_get_layout_page: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1274
|
-
readonly wasm_get_limit: (a: number, b: number, c: number, d: bigint) => bigint;
|
|
1275
|
-
readonly wasm_get_outline: (a: number, b: number, c: number, d: number) => void;
|
|
1276
|
-
readonly wasm_get_page_annotations: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1277
|
-
readonly wasm_get_visibility_groups: (a: number, b: number, c: number, d: number) => void;
|
|
1278
|
-
readonly wasm_has_document: (a: number, b: number, c: number) => number;
|
|
1279
|
-
readonly wasm_has_feature: (a: number, b: number, c: number) => number;
|
|
1280
|
-
readonly wasm_has_gpu: (a: number) => number;
|
|
1281
|
-
readonly wasm_init_gpu: (a: number) => number;
|
|
1282
|
-
readonly wasm_license_status: (a: number) => number;
|
|
1283
|
-
readonly wasm_load: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
1284
|
-
readonly wasm_needs_password: (a: number, b: number, c: number, d: number) => void;
|
|
1285
|
-
readonly wasm_new: (a: number, b: number, c: number, d: number) => number;
|
|
1286
|
-
readonly wasm_page_count: (a: number, b: number, c: number, d: number) => void;
|
|
1287
|
-
readonly wasm_page_groups: (a: number, b: number, c: number, d: number) => void;
|
|
1288
|
-
readonly wasm_page_info: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1289
|
-
readonly wasm_pdf_compose: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1290
|
-
readonly wasm_pdf_compress: (a: number, b: number, c: number, d: number) => void;
|
|
1291
|
-
readonly wasm_pdf_decompress: (a: number, b: number, c: number, d: number) => void;
|
|
1292
|
-
readonly wasm_pdf_extract_fonts: (a: number, b: number, c: number, d: number) => void;
|
|
1293
|
-
readonly wasm_pdf_extract_images: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1294
|
-
readonly wasm_pdf_save_annotations: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1295
|
-
readonly wasm_pdf_split_by_outline: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1296
|
-
readonly wasm_registerFonts: (a: number, b: number, c: number, d: number) => void;
|
|
1297
|
-
readonly wasm_remove_document: (a: number, b: number, c: number) => number;
|
|
1298
|
-
readonly wasm_render_page_gpu: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1299
|
-
readonly wasm_render_page_layers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1300
|
-
readonly wasm_render_page_to_png: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1301
|
-
readonly wasm_render_page_to_rgba: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1302
|
-
readonly wasm_set_license: (a: number, b: number, c: number) => number;
|
|
1303
|
-
readonly wasm_set_visibility_group_visible: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1304
|
-
readonly wasm_setup_telemetry: (a: number, b: number, c: number) => void;
|
|
1305
|
-
readonly wasm_slide_animation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1306
|
-
readonly wasm_viewer_preferences: (a: number, b: number, c: number, d: number) => void;
|
|
1307
|
-
readonly __wasm_bindgen_func_elem_34709: (a: number, b: number, c: number, d: number) => void;
|
|
1308
|
-
readonly __wasm_bindgen_func_elem_34711: (a: number, b: number, c: number, d: number) => void;
|
|
1309
|
-
readonly __wasm_bindgen_func_elem_3678: (a: number, b: number, c: number) => void;
|
|
1310
|
-
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
1311
|
-
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
1312
|
-
readonly __wbindgen_export3: (a: number) => void;
|
|
1313
|
-
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
1314
|
-
readonly __wbindgen_export5: (a: number, b: number) => void;
|
|
1315
|
-
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
1319
|
-
|
|
1320
|
-
/**
|
|
1321
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
1322
|
-
* a precompiled `WebAssembly.Module`.
|
|
1323
|
-
*
|
|
1324
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1325
|
-
*
|
|
1326
|
-
* @returns {InitOutput}
|
|
1327
|
-
*/
|
|
1328
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
1329
|
-
|
|
1330
|
-
/**
|
|
1331
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1332
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1333
|
-
*
|
|
1334
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1335
|
-
*
|
|
1336
|
-
* @returns {Promise<InitOutput>}
|
|
1337
|
-
*/
|
|
1338
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|