@docmentis/udoc-viewer 0.7.20 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import type { OutlineItem, NavigationTarget, ScrollAlignment } from "./navigation";
|
|
2
|
-
import type { Annotation } from "./annotation";
|
|
3
|
-
import type { LayoutPage } from "../../worker/index.js";
|
|
4
|
-
import type { PageInfo, PageGroup } from "../../worker/index.js";
|
|
5
|
-
/** A single search match with its location and geometry. */
|
|
6
|
-
export interface SearchMatch {
|
|
7
|
-
/** 0-based page index. */
|
|
8
|
-
pageIndex: number;
|
|
9
|
-
/** Character offset within the concatenated page text. */
|
|
10
|
-
charOffset: number;
|
|
11
|
-
/** Length of the matched text. */
|
|
12
|
-
length: number;
|
|
13
|
-
/** Bounding rectangles for this match (in PDF points, for highlight rendering). */
|
|
14
|
-
rects: Array<{
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
angle: number;
|
|
20
|
-
}>;
|
|
21
|
-
/** Context snippet: [before, match, after] text for display in result list. */
|
|
22
|
-
context: [string, string, string];
|
|
23
|
-
}
|
|
24
|
-
export interface VisibilityGroup {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
visible: boolean;
|
|
28
|
-
locked: boolean;
|
|
29
|
-
}
|
|
30
|
-
export type LeftPanelTab = "thumbnail" | "outline" | "bookmarks" | "layers" | "attachments" | "fonts";
|
|
31
|
-
export type RightPanelTab = "search" | "comments";
|
|
32
|
-
export type PanelTab = LeftPanelTab | RightPanelTab;
|
|
33
|
-
/** Canonical render order for the left-panel tab strip. */
|
|
34
|
-
export declare const LEFT_PANEL_TABS: readonly LeftPanelTab[];
|
|
35
|
-
export declare function isLeftPanelTab(tab: PanelTab): tab is LeftPanelTab;
|
|
36
|
-
export type ViewMode = "paged" | "continuous";
|
|
37
|
-
export type ScrollMode = "spread" | "continuous";
|
|
38
|
-
export type LayoutMode = "single-page" | "double-page" | "double-page-odd-right" | "double-page-odd-left";
|
|
39
|
-
export type ZoomMode = "fit-spread-width" | "fit-spread-width-max" | "fit-spread-height" | "fit-spread" | "custom";
|
|
40
|
-
export type PageRotation = 0 | 90 | 180 | 270;
|
|
41
|
-
export type SpacingMode = "all" | "none" | "spread-only" | "page-only";
|
|
42
|
-
export type ThemeMode = "light" | "dark" | "system";
|
|
43
|
-
/** Top-level tool category — the discriminant of `ActiveTool` and the key for `disabledTools`. */
|
|
44
|
-
export type ToolKind = "pointer" | "hand" | "zoom" | "annotate" | "markup";
|
|
45
|
-
/** Individual annotation sub-tools */
|
|
46
|
-
export type AnnotateSubTool = "select" | "freehand" | "line" | "arrow" | "rectangle" | "ellipse" | "polygon" | "polyline";
|
|
47
|
-
/** Individual markup sub-tools */
|
|
48
|
-
export type MarkupSubTool = "select" | "highlight" | "underline" | "strikethrough" | "squiggly";
|
|
49
|
-
/** Any sub-tool — used as a key for `toolOptions`. */
|
|
50
|
-
export type SubTool = AnnotateSubTool | MarkupSubTool;
|
|
51
|
-
/**
|
|
52
|
-
* The currently active tool, as a tagged union. Whether a variant has a `sub`
|
|
53
|
-
* is itself the simple-vs-tool-set distinction — pointer/hand/zoom carry no
|
|
54
|
-
* sub-tool, annotate/markup carry the sub for their family.
|
|
55
|
-
*/
|
|
56
|
-
export type ActiveTool = {
|
|
57
|
-
kind: "pointer";
|
|
58
|
-
} | {
|
|
59
|
-
kind: "hand";
|
|
60
|
-
} | {
|
|
61
|
-
kind: "zoom";
|
|
62
|
-
} | {
|
|
63
|
-
kind: "annotate";
|
|
64
|
-
sub: AnnotateSubTool;
|
|
65
|
-
} | {
|
|
66
|
-
kind: "markup";
|
|
67
|
-
sub: MarkupSubTool;
|
|
68
|
-
};
|
|
69
|
-
/** Line dash style */
|
|
70
|
-
export type LineStyle = "solid" | "dashed" | "dotted";
|
|
71
|
-
/** Arrow head style */
|
|
72
|
-
export type ArrowHeadStyle = "none" | "open" | "closed";
|
|
73
|
-
/** Per-tool drawing options */
|
|
74
|
-
export interface ToolOptions {
|
|
75
|
-
strokeColor: string;
|
|
76
|
-
fillColor: string | null;
|
|
77
|
-
strokeWidth: number;
|
|
78
|
-
opacity: number;
|
|
79
|
-
fontSize: number;
|
|
80
|
-
lineStyle: LineStyle;
|
|
81
|
-
arrowHeadStart: ArrowHeadStyle;
|
|
82
|
-
arrowHeadEnd: ArrowHeadStyle;
|
|
83
|
-
}
|
|
84
|
-
/** Default tool options */
|
|
85
|
-
export declare const DEFAULT_TOOL_OPTIONS: ToolOptions;
|
|
86
|
-
/** Check if a tool kind has an associated sub-toolbar. */
|
|
87
|
-
export declare function isToolSetKind(kind: ToolKind): kind is "annotate" | "markup";
|
|
88
|
-
/** Document format as detected during loading */
|
|
89
|
-
export type DocumentFormat = "pdf" | "pptx" | "docx" | "xlsx" | "csv" | "image";
|
|
90
|
-
/** Formats that support annotation editing */
|
|
91
|
-
export declare const ANNOTATION_FORMATS: ReadonlySet<DocumentFormat>;
|
|
92
|
-
/** Spreadsheet formats that render as sheets with page groups */
|
|
93
|
-
export declare const SPREADSHEET_FORMATS: ReadonlySet<DocumentFormat>;
|
|
94
|
-
/** Whether a format renders as a spreadsheet (sheet tabs, grid layout). */
|
|
95
|
-
export declare function isSpreadsheetFormat(format: DocumentFormat | null): boolean;
|
|
96
|
-
/** Subset of view mode state that can be overridden per format */
|
|
97
|
-
export interface ViewModeDefaults {
|
|
98
|
-
viewMode?: ViewMode;
|
|
99
|
-
scrollMode?: ScrollMode;
|
|
100
|
-
layoutMode?: LayoutMode;
|
|
101
|
-
zoomMode?: ZoomMode;
|
|
102
|
-
zoom?: number;
|
|
103
|
-
effectiveZoom?: number | null;
|
|
104
|
-
pageRotation?: PageRotation;
|
|
105
|
-
spacingMode?: SpacingMode;
|
|
106
|
-
pageSpacing?: number;
|
|
107
|
-
spreadSpacing?: number;
|
|
108
|
-
}
|
|
109
|
-
/** Returns format-specific view mode defaults */
|
|
110
|
-
export declare function getFormatDefaults(format: DocumentFormat): ViewModeDefaults;
|
|
111
|
-
/** Default zoom steps for zoom in/out actions */
|
|
112
|
-
export declare const DEFAULT_ZOOM_STEPS: readonly [0.1, 0.25, 0.5, 0.75, 1, 1.25, 1.5, 2, 3, 4, 5];
|
|
113
|
-
export type { PageInfo };
|
|
114
|
-
/** PDF points are defined at 72 DPI */
|
|
115
|
-
export declare const PDF_DPI = 72;
|
|
116
|
-
/** Default display DPI (CSS standard) */
|
|
117
|
-
export declare const DEFAULT_DPI = 96;
|
|
118
|
-
/** Scale factor to convert PDF points to pixels at 100% zoom */
|
|
119
|
-
export declare const POINTS_TO_PIXELS: number;
|
|
120
|
-
/** Calculate the scale factor for a given display DPI */
|
|
121
|
-
export declare function getPointsToPixels(dpi: number): number;
|
|
122
|
-
export interface ZoomAnchor {
|
|
123
|
-
/** Click position relative to viewport (0-1 range) */
|
|
124
|
-
viewX: number;
|
|
125
|
-
viewY: number;
|
|
126
|
-
/** Scroll position before zoom */
|
|
127
|
-
scrollLeft: number;
|
|
128
|
-
scrollTop: number;
|
|
129
|
-
/** Scroll content dimensions before zoom */
|
|
130
|
-
scrollWidth: number;
|
|
131
|
-
scrollHeight: number;
|
|
132
|
-
}
|
|
133
|
-
/** A message shown over the viewer area when a free-tier permit blocks rendering. */
|
|
134
|
-
export interface PermitNotice {
|
|
135
|
-
/** Short heading. */
|
|
136
|
-
title: string;
|
|
137
|
-
/** Explanatory body text. */
|
|
138
|
-
body: string;
|
|
139
|
-
}
|
|
140
|
-
export interface ViewerState {
|
|
141
|
-
doc: {
|
|
142
|
-
id: string;
|
|
143
|
-
} | null;
|
|
144
|
-
documentFormat: DocumentFormat | null;
|
|
145
|
-
page: number;
|
|
146
|
-
pageCount: number;
|
|
147
|
-
pageInfos: readonly PageInfo[];
|
|
148
|
-
/** Stitching groups (one per XLSX sheet, one `linear` group for other formats). */
|
|
149
|
-
pageGroups: readonly PageGroup[];
|
|
150
|
-
/** Index of the currently active group (used for multi-sheet XLSX). */
|
|
151
|
-
activeGroupIndex: number;
|
|
152
|
-
/** Whether the document requires a password to open */
|
|
153
|
-
needsPassword: boolean;
|
|
154
|
-
/** Error message when password authentication fails */
|
|
155
|
-
passwordError: string | null;
|
|
156
|
-
/** Whether authentication is currently in progress */
|
|
157
|
-
isAuthenticating: boolean;
|
|
158
|
-
/** Permit notice shown over the viewer area (quota block or verification error); null = none. */
|
|
159
|
-
permitNotice: PermitNotice | null;
|
|
160
|
-
/** Document outline/bookmarks (null = not loaded yet) */
|
|
161
|
-
outline: OutlineItem[] | null;
|
|
162
|
-
/** Whether outline is currently being loaded */
|
|
163
|
-
outlineLoading: boolean;
|
|
164
|
-
/** Visibility groups (null = not loaded yet) */
|
|
165
|
-
visibilityGroups: VisibilityGroup[] | null;
|
|
166
|
-
/** Whether visibility groups are currently being loaded */
|
|
167
|
-
visibilityGroupsLoading: boolean;
|
|
168
|
-
/** Annotations by page index (0-based). Undefined = not loaded, [] = loaded but empty */
|
|
169
|
-
pageAnnotations: Map<number, Annotation[]>;
|
|
170
|
-
/** Set of page indices currently being loaded */
|
|
171
|
-
annotationsLoading: Set<number>;
|
|
172
|
-
/** Page layouts by page index (0-based). Undefined = not loaded yet */
|
|
173
|
-
pageText: Map<number, LayoutPage>;
|
|
174
|
-
/** Set of page indices currently being loaded */
|
|
175
|
-
textLoading: Set<number>;
|
|
176
|
-
/** Set of page indices that failed to load (prevents retry loops) */
|
|
177
|
-
textFailed: Set<number>;
|
|
178
|
-
/** Target for navigation (null = no pending navigation) */
|
|
179
|
-
navigationTarget: NavigationTarget | null;
|
|
180
|
-
/** Default scroll alignment for navigation (outline, links, goToDestination) */
|
|
181
|
-
navigationScrollAlignment: ScrollAlignment;
|
|
182
|
-
/** Default scroll alignment for search result navigation */
|
|
183
|
-
searchScrollAlignment: ScrollAlignment;
|
|
184
|
-
viewMode: ViewMode;
|
|
185
|
-
scrollMode: ScrollMode;
|
|
186
|
-
layoutMode: LayoutMode;
|
|
187
|
-
zoomMode: ZoomMode;
|
|
188
|
-
zoom: number;
|
|
189
|
-
/** Derived zoom for fit modes (null when not applicable). */
|
|
190
|
-
effectiveZoom: number | null;
|
|
191
|
-
zoomSteps: readonly number[];
|
|
192
|
-
pageRotation: PageRotation;
|
|
193
|
-
spacingMode: SpacingMode;
|
|
194
|
-
dpi: number;
|
|
195
|
-
pageSpacing: number;
|
|
196
|
-
spreadSpacing: number;
|
|
197
|
-
/** Width of thumbnail images in CSS pixels */
|
|
198
|
-
thumbnailWidth: number;
|
|
199
|
-
activePanel: PanelTab | null;
|
|
200
|
-
/** Left panel width in pixels (null = use CSS default) */
|
|
201
|
-
leftPanelWidth: number | null;
|
|
202
|
-
/** Right panel width in pixels (null = use CSS default) */
|
|
203
|
-
rightPanelWidth: number | null;
|
|
204
|
-
/** Whether the top toolbar is visible */
|
|
205
|
-
toolbarVisible: boolean;
|
|
206
|
-
/** Whether the floating toolbar (page nav + zoom) is visible */
|
|
207
|
-
floatingToolbarVisible: boolean;
|
|
208
|
-
/** Whether the left panel area is visible */
|
|
209
|
-
leftPanelVisible: boolean;
|
|
210
|
-
/** Whether the right panel area is visible */
|
|
211
|
-
rightPanelVisible: boolean;
|
|
212
|
-
/** Set of panel tabs that are disabled (removed from the UI) */
|
|
213
|
-
disabledPanels: ReadonlySet<PanelTab>;
|
|
214
|
-
/** Whether the fullscreen button is visible in the toolbar */
|
|
215
|
-
fullscreenButtonVisible: boolean;
|
|
216
|
-
/** Whether the download button is visible in the toolbar */
|
|
217
|
-
downloadButtonVisible: boolean;
|
|
218
|
-
/** Whether the print button is visible in the toolbar */
|
|
219
|
-
printButtonVisible: boolean;
|
|
220
|
-
/** Current color theme mode */
|
|
221
|
-
theme: ThemeMode;
|
|
222
|
-
/** Whether the theme toggle button is hidden */
|
|
223
|
-
themeSwitchingDisabled: boolean;
|
|
224
|
-
/** Whether text selection is disabled */
|
|
225
|
-
textSelectionDisabled: boolean;
|
|
226
|
-
/** Whether slide transition animations are enabled (PPTX only) */
|
|
227
|
-
transitionsEnabled: boolean;
|
|
228
|
-
/** Whether slide build sequences are enabled (PPTX only) */
|
|
229
|
-
animationsEnabled: boolean;
|
|
230
|
-
/** Minimum zoom level */
|
|
231
|
-
minZoom: number;
|
|
232
|
-
/** Maximum zoom level */
|
|
233
|
-
maxZoom: number;
|
|
234
|
-
/** Currently highlighted annotation (null = none) */
|
|
235
|
-
highlightedAnnotation: {
|
|
236
|
-
pageIndex: number;
|
|
237
|
-
bounds: {
|
|
238
|
-
x: number;
|
|
239
|
-
y: number;
|
|
240
|
-
width: number;
|
|
241
|
-
height: number;
|
|
242
|
-
};
|
|
243
|
-
} | null;
|
|
244
|
-
/** Whether the viewer is in fullscreen mode */
|
|
245
|
-
isFullscreen: boolean;
|
|
246
|
-
/** Current search query string */
|
|
247
|
-
searchQuery: string;
|
|
248
|
-
/** Whether search is case-sensitive */
|
|
249
|
-
searchCaseSensitive: boolean;
|
|
250
|
-
/** Whether fuzzy matching is enabled (normalizes whitespace/control characters) */
|
|
251
|
-
searchFuzzy: boolean;
|
|
252
|
-
/** All search matches across all pages */
|
|
253
|
-
searchMatches: SearchMatch[];
|
|
254
|
-
/** Index of the currently active/focused match (-1 = none) */
|
|
255
|
-
searchActiveIndex: number;
|
|
256
|
-
/** Incremented each time the user explicitly navigates to a match. */
|
|
257
|
-
searchNavGen: number;
|
|
258
|
-
/** Per-call scroll alignment override for the current search navigation (cleared after use). */
|
|
259
|
-
searchNavScrollAlignment: ScrollAlignment | null;
|
|
260
|
-
/**
|
|
261
|
-
* Optional page range to restrict search to (inclusive, 0-based).
|
|
262
|
-
* When non-null, both text loading and match collection are limited to
|
|
263
|
-
* pages in [start, end]. null means search all pages.
|
|
264
|
-
*/
|
|
265
|
-
searchPageRange: {
|
|
266
|
-
start: number;
|
|
267
|
-
end: number;
|
|
268
|
-
} | null;
|
|
269
|
-
/** Whether all page text has been loaded for search */
|
|
270
|
-
searchTextLoaded: boolean;
|
|
271
|
-
/** Whether search text is currently being loaded */
|
|
272
|
-
searchTextLoading: boolean;
|
|
273
|
-
/** Whether document is currently being downloaded or print is being prepared */
|
|
274
|
-
isDownloading: boolean;
|
|
275
|
-
/** Download progress: loaded bytes */
|
|
276
|
-
downloadLoaded: number;
|
|
277
|
-
/** Download progress: total bytes (0 if unknown) */
|
|
278
|
-
downloadTotal: number;
|
|
279
|
-
/** Whether document is being processed (WASM load, page info extraction) after download */
|
|
280
|
-
isProcessing: boolean;
|
|
281
|
-
/** Whether print preparation is in progress */
|
|
282
|
-
isPrinting: boolean;
|
|
283
|
-
/** Print progress: current page being rendered (1-based) */
|
|
284
|
-
printCurrentPage: number;
|
|
285
|
-
/** Print progress: total pages to render */
|
|
286
|
-
printTotalPages: number;
|
|
287
|
-
/** Whether the print dialog is visible */
|
|
288
|
-
showPrintDialog: boolean;
|
|
289
|
-
/** When true, panel open/close should skip CSS transitions (reset automatically after one frame) */
|
|
290
|
-
panelTransitionsDisabled: boolean;
|
|
291
|
-
/** Set of page indices that have been modified by user annotation edits */
|
|
292
|
-
annotationsDirtyPages: ReadonlySet<number>;
|
|
293
|
-
/** Currently selected annotation for editing (null = none) */
|
|
294
|
-
selectedAnnotation: {
|
|
295
|
-
pageIndex: number;
|
|
296
|
-
annotationIndex: number;
|
|
297
|
-
} | null;
|
|
298
|
-
/** Anchor data from zoom tool click, consumed by Viewport to scroll to click point */
|
|
299
|
-
zoomAnchor: ZoomAnchor | null;
|
|
300
|
-
/** Set of tool kinds that are disabled (hidden from the UI). */
|
|
301
|
-
disabledTools: ReadonlySet<ToolKind>;
|
|
302
|
-
/** Currently active tool — tagged union; sub is present iff kind is a tool set. */
|
|
303
|
-
activeTool: ActiveTool;
|
|
304
|
-
/** Remembers the last-used sub-tool per tool set */
|
|
305
|
-
lastSubToolPerSet: {
|
|
306
|
-
annotate: AnnotateSubTool;
|
|
307
|
-
markup: MarkupSubTool;
|
|
308
|
-
};
|
|
309
|
-
/** Per-sub-tool persistent options */
|
|
310
|
-
toolOptions: Record<string, ToolOptions>;
|
|
311
|
-
}
|
|
312
|
-
export declare const initialState: ViewerState;
|
|
313
|
-
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/ui/viewer/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMjE,4DAA4D;AAC5D,MAAM,WAAW,WAAW;IACxB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,mFAAmF;IACnF,KAAK,EAAE,KAAK,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MA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G1B,CAAC"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/** Canonical render order for the left-panel tab strip. */
|
|
2
|
-
export const LEFT_PANEL_TABS = [
|
|
3
|
-
"thumbnail",
|
|
4
|
-
"outline",
|
|
5
|
-
"bookmarks",
|
|
6
|
-
"layers",
|
|
7
|
-
"attachments",
|
|
8
|
-
"fonts",
|
|
9
|
-
];
|
|
10
|
-
const LEFT_TABS_SET = new Set(LEFT_PANEL_TABS);
|
|
11
|
-
export function isLeftPanelTab(tab) {
|
|
12
|
-
return LEFT_TABS_SET.has(tab);
|
|
13
|
-
}
|
|
14
|
-
/** Default tool options */
|
|
15
|
-
export const DEFAULT_TOOL_OPTIONS = {
|
|
16
|
-
strokeColor: "#ff0000",
|
|
17
|
-
fillColor: null,
|
|
18
|
-
strokeWidth: 2,
|
|
19
|
-
opacity: 1,
|
|
20
|
-
fontSize: 16,
|
|
21
|
-
lineStyle: "solid",
|
|
22
|
-
arrowHeadStart: "none",
|
|
23
|
-
arrowHeadEnd: "open",
|
|
24
|
-
};
|
|
25
|
-
/** Check if a tool kind has an associated sub-toolbar. */
|
|
26
|
-
export function isToolSetKind(kind) {
|
|
27
|
-
return kind === "annotate" || kind === "markup";
|
|
28
|
-
}
|
|
29
|
-
/** Formats that support annotation editing */
|
|
30
|
-
export const ANNOTATION_FORMATS = new Set(["pdf"]);
|
|
31
|
-
/** Spreadsheet formats that render as sheets with page groups */
|
|
32
|
-
export const SPREADSHEET_FORMATS = new Set(["xlsx", "csv"]);
|
|
33
|
-
/** Whether a format renders as a spreadsheet (sheet tabs, grid layout). */
|
|
34
|
-
export function isSpreadsheetFormat(format) {
|
|
35
|
-
return format !== null && SPREADSHEET_FORMATS.has(format);
|
|
36
|
-
}
|
|
37
|
-
/** Returns format-specific view mode defaults */
|
|
38
|
-
export function getFormatDefaults(format) {
|
|
39
|
-
switch (format) {
|
|
40
|
-
case "pdf":
|
|
41
|
-
return { viewMode: "paged", scrollMode: "continuous", zoomMode: "fit-spread-width-max" };
|
|
42
|
-
case "docx":
|
|
43
|
-
return { viewMode: "paged", scrollMode: "continuous", zoomMode: "fit-spread-width-max" };
|
|
44
|
-
case "xlsx":
|
|
45
|
-
case "csv":
|
|
46
|
-
return {
|
|
47
|
-
viewMode: "continuous",
|
|
48
|
-
scrollMode: "continuous",
|
|
49
|
-
layoutMode: "single-page",
|
|
50
|
-
spacingMode: "none",
|
|
51
|
-
zoomMode: "fit-spread-width-max",
|
|
52
|
-
};
|
|
53
|
-
case "pptx":
|
|
54
|
-
case "image":
|
|
55
|
-
return { viewMode: "paged", scrollMode: "spread", zoomMode: "fit-spread" };
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/** Default zoom steps for zoom in/out actions */
|
|
59
|
-
export const DEFAULT_ZOOM_STEPS = [0.1, 0.25, 0.5, 0.75, 1, 1.25, 1.5, 2, 3, 4, 5];
|
|
60
|
-
// -----------------------------------------------------------------------------
|
|
61
|
-
// DPI and scaling constants
|
|
62
|
-
// -----------------------------------------------------------------------------
|
|
63
|
-
/** PDF points are defined at 72 DPI */
|
|
64
|
-
export const PDF_DPI = 72;
|
|
65
|
-
/** Default display DPI (CSS standard) */
|
|
66
|
-
export const DEFAULT_DPI = 96;
|
|
67
|
-
/** Scale factor to convert PDF points to pixels at 100% zoom */
|
|
68
|
-
export const POINTS_TO_PIXELS = DEFAULT_DPI / PDF_DPI; // 1.333...
|
|
69
|
-
/** Calculate the scale factor for a given display DPI */
|
|
70
|
-
export function getPointsToPixels(dpi) {
|
|
71
|
-
return dpi / PDF_DPI;
|
|
72
|
-
}
|
|
73
|
-
export const initialState = {
|
|
74
|
-
doc: null,
|
|
75
|
-
documentFormat: null,
|
|
76
|
-
page: 1,
|
|
77
|
-
pageCount: 0,
|
|
78
|
-
pageInfos: [],
|
|
79
|
-
pageGroups: [],
|
|
80
|
-
activeGroupIndex: 0,
|
|
81
|
-
needsPassword: false,
|
|
82
|
-
passwordError: null,
|
|
83
|
-
isAuthenticating: false,
|
|
84
|
-
permitNotice: null,
|
|
85
|
-
outline: null,
|
|
86
|
-
outlineLoading: false,
|
|
87
|
-
visibilityGroups: null,
|
|
88
|
-
visibilityGroupsLoading: false,
|
|
89
|
-
pageAnnotations: new Map(),
|
|
90
|
-
annotationsLoading: new Set(),
|
|
91
|
-
pageText: new Map(),
|
|
92
|
-
textLoading: new Set(),
|
|
93
|
-
textFailed: new Set(),
|
|
94
|
-
navigationTarget: null,
|
|
95
|
-
navigationScrollAlignment: "top",
|
|
96
|
-
searchScrollAlignment: "center",
|
|
97
|
-
viewMode: "paged",
|
|
98
|
-
scrollMode: "continuous",
|
|
99
|
-
layoutMode: "single-page",
|
|
100
|
-
zoomMode: "fit-spread-width",
|
|
101
|
-
zoom: 1,
|
|
102
|
-
effectiveZoom: null,
|
|
103
|
-
zoomSteps: DEFAULT_ZOOM_STEPS,
|
|
104
|
-
pageRotation: 0,
|
|
105
|
-
spacingMode: "all",
|
|
106
|
-
dpi: DEFAULT_DPI,
|
|
107
|
-
pageSpacing: 20,
|
|
108
|
-
spreadSpacing: 20,
|
|
109
|
-
thumbnailWidth: 150,
|
|
110
|
-
activePanel: null,
|
|
111
|
-
leftPanelWidth: null,
|
|
112
|
-
rightPanelWidth: null,
|
|
113
|
-
toolbarVisible: true,
|
|
114
|
-
floatingToolbarVisible: true,
|
|
115
|
-
leftPanelVisible: true,
|
|
116
|
-
rightPanelVisible: true,
|
|
117
|
-
disabledPanels: new Set(),
|
|
118
|
-
fullscreenButtonVisible: true,
|
|
119
|
-
downloadButtonVisible: true,
|
|
120
|
-
printButtonVisible: true,
|
|
121
|
-
theme: "light",
|
|
122
|
-
themeSwitchingDisabled: false,
|
|
123
|
-
textSelectionDisabled: false,
|
|
124
|
-
transitionsEnabled: false,
|
|
125
|
-
animationsEnabled: false,
|
|
126
|
-
minZoom: DEFAULT_ZOOM_STEPS[0],
|
|
127
|
-
maxZoom: DEFAULT_ZOOM_STEPS[DEFAULT_ZOOM_STEPS.length - 1],
|
|
128
|
-
highlightedAnnotation: null,
|
|
129
|
-
isFullscreen: false,
|
|
130
|
-
searchQuery: "",
|
|
131
|
-
searchCaseSensitive: false,
|
|
132
|
-
searchFuzzy: false,
|
|
133
|
-
searchMatches: [],
|
|
134
|
-
searchActiveIndex: -1,
|
|
135
|
-
searchNavGen: 0,
|
|
136
|
-
searchNavScrollAlignment: null,
|
|
137
|
-
searchPageRange: null,
|
|
138
|
-
searchTextLoaded: false,
|
|
139
|
-
searchTextLoading: false,
|
|
140
|
-
isDownloading: false,
|
|
141
|
-
downloadLoaded: 0,
|
|
142
|
-
downloadTotal: 0,
|
|
143
|
-
isProcessing: false,
|
|
144
|
-
isPrinting: false,
|
|
145
|
-
printCurrentPage: 0,
|
|
146
|
-
printTotalPages: 0,
|
|
147
|
-
showPrintDialog: false,
|
|
148
|
-
panelTransitionsDisabled: false,
|
|
149
|
-
annotationsDirtyPages: new Set(),
|
|
150
|
-
selectedAnnotation: null,
|
|
151
|
-
zoomAnchor: null,
|
|
152
|
-
disabledTools: new Set(["annotate", "markup"]),
|
|
153
|
-
activeTool: { kind: "pointer" },
|
|
154
|
-
lastSubToolPerSet: { annotate: "freehand", markup: "highlight" },
|
|
155
|
-
toolOptions: {},
|
|
156
|
-
};
|
|
157
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/ui/viewer/state.ts"],"names":[],"mappings":"AA0CA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,eAAe,GAA4B;IACpD,WAAW;IACX,SAAS;IACT,WAAW;IACX,QAAQ;IACR,aAAa;IACb,OAAO;CACV,CAAC;AAEF,MAAM,aAAa,GAA0B,IAAI,GAAG,CAAC,eAAe,CAAC,CAAC;AACtE,MAAM,UAAU,cAAc,CAAC,GAAa;IACxC,OAAO,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAClC,CAAC;AAoED,2BAA2B;AAC3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