@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
|
@@ -1,749 +0,0 @@
|
|
|
1
|
-
import { makeRenderKey } from "../../../worker/index.js";
|
|
2
|
-
import { getPointsToPixels } from "../state";
|
|
3
|
-
import { getDevicePixelRatio, getEffectiveDpr, toCssPixels, toDevicePixels, snapToDevice } from "../layout";
|
|
4
|
-
import { renderAnnotationsToLayer } from "../annotation";
|
|
5
|
-
import { renderTextToLayer, attachSelectionController } from "../text";
|
|
6
|
-
import { createBranding } from "./Branding";
|
|
7
|
-
function normalizeRotation(rotation) {
|
|
8
|
-
switch (rotation) {
|
|
9
|
-
case 90:
|
|
10
|
-
case 180:
|
|
11
|
-
case 270:
|
|
12
|
-
return rotation;
|
|
13
|
-
default:
|
|
14
|
-
return 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function rotateSize(size, rotation) {
|
|
18
|
-
const normalized = normalizeRotation(rotation);
|
|
19
|
-
if (normalized === 90 || normalized === 270) {
|
|
20
|
-
return { width: size.height, height: size.width };
|
|
21
|
-
}
|
|
22
|
-
return size;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Combine document rotation with user rotation to get effective rotation.
|
|
26
|
-
* Both rotations are in degrees (0, 90, 180, 270).
|
|
27
|
-
*/
|
|
28
|
-
function combineRotation(documentRotation, userRotation) {
|
|
29
|
-
const combined = (documentRotation + userRotation) % 360;
|
|
30
|
-
return normalizeRotation(combined);
|
|
31
|
-
}
|
|
32
|
-
function formatCssSize(value) {
|
|
33
|
-
return `${value.toFixed(3)}px`;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Spread component - renders one or two pages side by side.
|
|
37
|
-
* Empty slots render as blank placeholders that preserve layout.
|
|
38
|
-
*/
|
|
39
|
-
export function createSpread(data, showAttribution = true, i18n, customPageOverlay) {
|
|
40
|
-
const el = document.createElement("div");
|
|
41
|
-
el.className = "udoc-spread";
|
|
42
|
-
el.dataset.spreadIndex = String(data.index);
|
|
43
|
-
// Wrapper groups page slots for seamless connection and CSS centering
|
|
44
|
-
const wrapper = document.createElement("div");
|
|
45
|
-
wrapper.className = "udoc-spread__wrapper";
|
|
46
|
-
el.appendChild(wrapper);
|
|
47
|
-
const slotElements = [];
|
|
48
|
-
let mounted = false;
|
|
49
|
-
for (const slot of data.slots) {
|
|
50
|
-
const slotEl = createSlotElement(slot);
|
|
51
|
-
slotElements.push(slotEl);
|
|
52
|
-
wrapper.appendChild(slotEl.container);
|
|
53
|
-
}
|
|
54
|
-
function createSlotElement(pageNumber) {
|
|
55
|
-
const container = document.createElement("div");
|
|
56
|
-
container.className = "udoc-spread__slot";
|
|
57
|
-
container.style.position = "relative";
|
|
58
|
-
container.style.overflow = "hidden";
|
|
59
|
-
if (pageNumber !== null) {
|
|
60
|
-
container.dataset.page = String(pageNumber);
|
|
61
|
-
container.setAttribute("role", "group");
|
|
62
|
-
container.setAttribute("aria-label", i18n ? i18n.t("spread.pageLabel", { page: pageNumber }) : `Page ${pageNumber}`);
|
|
63
|
-
// Delay showing the loading indicator — if render completes quickly
|
|
64
|
-
// (cached/prerendered), the user never sees it.
|
|
65
|
-
const loadingTimer = setTimeout(() => {
|
|
66
|
-
container.classList.add("udoc-spread__slot--loading");
|
|
67
|
-
}, 200);
|
|
68
|
-
// Preview canvas (behind main canvas) — shows low-res preview while full-res renders
|
|
69
|
-
const previewCanvas = document.createElement("canvas");
|
|
70
|
-
previewCanvas.className = "udoc-spread__preview-canvas";
|
|
71
|
-
previewCanvas.style.position = "absolute";
|
|
72
|
-
previewCanvas.style.transformOrigin = "center";
|
|
73
|
-
previewCanvas.style.display = "none";
|
|
74
|
-
previewCanvas.setAttribute("aria-hidden", "true");
|
|
75
|
-
container.appendChild(previewCanvas);
|
|
76
|
-
const canvas = document.createElement("canvas");
|
|
77
|
-
canvas.className = "udoc-spread__canvas";
|
|
78
|
-
canvas.style.position = "absolute";
|
|
79
|
-
canvas.style.transformOrigin = "center";
|
|
80
|
-
canvas.setAttribute("aria-label", i18n ? i18n.t("spread.pageContent", { page: pageNumber }) : `Page ${pageNumber} content`);
|
|
81
|
-
canvas.textContent = i18n ? i18n.t("spread.pageLabel", { page: pageNumber }) : `Page ${pageNumber}`;
|
|
82
|
-
container.appendChild(canvas);
|
|
83
|
-
// Animation layer host (above canvas, below text) — holds the
|
|
84
|
-
// per-shape canvases while a PPTX build sequence is playing.
|
|
85
|
-
const animationLayerHost = document.createElement("div");
|
|
86
|
-
animationLayerHost.className = "udoc-spread__animation-layer-host";
|
|
87
|
-
animationLayerHost.style.position = "absolute";
|
|
88
|
-
animationLayerHost.style.transformOrigin = "center";
|
|
89
|
-
animationLayerHost.style.pointerEvents = "none";
|
|
90
|
-
animationLayerHost.style.display = "none";
|
|
91
|
-
animationLayerHost.setAttribute("aria-hidden", "true");
|
|
92
|
-
container.appendChild(animationLayerHost);
|
|
93
|
-
// Text layer (above canvas, below annotations) - for text selection
|
|
94
|
-
const textLayer = document.createElement("div");
|
|
95
|
-
textLayer.className = "udoc-spread__text-layer";
|
|
96
|
-
textLayer.style.position = "absolute";
|
|
97
|
-
textLayer.style.transformOrigin = "center";
|
|
98
|
-
container.appendChild(textLayer);
|
|
99
|
-
// Attach selection controller to prevent selection reversal in gaps
|
|
100
|
-
const cleanupSelectionController = attachSelectionController(textLayer);
|
|
101
|
-
// Annotation layer (above text layer)
|
|
102
|
-
const annotationLayer = document.createElement("div");
|
|
103
|
-
annotationLayer.className = "udoc-spread__annotation-layer";
|
|
104
|
-
annotationLayer.style.position = "absolute";
|
|
105
|
-
annotationLayer.style.transformOrigin = "center";
|
|
106
|
-
annotationLayer.style.pointerEvents = "none";
|
|
107
|
-
container.appendChild(annotationLayer);
|
|
108
|
-
// Search highlight layer (above annotation layer)
|
|
109
|
-
const searchHighlightLayer = document.createElement("div");
|
|
110
|
-
searchHighlightLayer.className = "udoc-spread__search-highlight-layer";
|
|
111
|
-
searchHighlightLayer.style.position = "absolute";
|
|
112
|
-
searchHighlightLayer.style.transformOrigin = "center";
|
|
113
|
-
searchHighlightLayer.style.pointerEvents = "none";
|
|
114
|
-
container.appendChild(searchHighlightLayer);
|
|
115
|
-
// Custom page overlay layer (top-most — above every built-in layer).
|
|
116
|
-
// Host fills this via the `customPageOverlay` option; layer is
|
|
117
|
-
// pointer-events: none so individual host elements opt in.
|
|
118
|
-
const customPageOverlayLayer = document.createElement("div");
|
|
119
|
-
customPageOverlayLayer.className = "udoc-spread__custom-page-overlay-layer";
|
|
120
|
-
customPageOverlayLayer.style.position = "absolute";
|
|
121
|
-
customPageOverlayLayer.style.transformOrigin = "center";
|
|
122
|
-
customPageOverlayLayer.style.pointerEvents = "none";
|
|
123
|
-
container.appendChild(customPageOverlayLayer);
|
|
124
|
-
// Rendering indicator with optional brand logo.
|
|
125
|
-
// Outer wrapper handles positioning + slot-loading-state visibility
|
|
126
|
-
// in light DOM (with a per-instance random class so it can't be
|
|
127
|
-
// statically targeted). The logo itself lives inside a closed
|
|
128
|
-
// shadow root via createBranding.
|
|
129
|
-
let brandingHandle = null;
|
|
130
|
-
{
|
|
131
|
-
const indicatorClass = "_" + Math.random().toString(36).slice(2, 10) + Math.random().toString(36).slice(2, 10);
|
|
132
|
-
const textClass = "_" + Math.random().toString(36).slice(2, 10);
|
|
133
|
-
const indicatorStyle = document.createElement("style");
|
|
134
|
-
indicatorStyle.textContent = `
|
|
135
|
-
.${indicatorClass} {
|
|
136
|
-
position: absolute;
|
|
137
|
-
left: 50%;
|
|
138
|
-
top: 50%;
|
|
139
|
-
transform: translate(-50%, -50%);
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
align-items: center;
|
|
143
|
-
gap: 6px;
|
|
144
|
-
pointer-events: none;
|
|
145
|
-
z-index: 1;
|
|
146
|
-
user-select: none;
|
|
147
|
-
opacity: 0.5;
|
|
148
|
-
}
|
|
149
|
-
.${textClass} {
|
|
150
|
-
font-size: 11px;
|
|
151
|
-
font-weight: 500;
|
|
152
|
-
color: #0f172a;
|
|
153
|
-
}
|
|
154
|
-
.udoc-viewer-dark .${textClass} {
|
|
155
|
-
color: #e2e8f0;
|
|
156
|
-
}
|
|
157
|
-
.udoc-spread__slot:not(.udoc-spread__slot--loading) .${indicatorClass} {
|
|
158
|
-
display: none;
|
|
159
|
-
}
|
|
160
|
-
`;
|
|
161
|
-
container.appendChild(indicatorStyle);
|
|
162
|
-
const renderingLabel = i18n ? i18n.t("spread.rendering") : "Rendering...";
|
|
163
|
-
const indicator = document.createElement("div");
|
|
164
|
-
indicator.className = indicatorClass;
|
|
165
|
-
if (showAttribution) {
|
|
166
|
-
brandingHandle = createBranding({ variant: "spread-indicator" });
|
|
167
|
-
indicator.appendChild(brandingHandle.el);
|
|
168
|
-
}
|
|
169
|
-
const span = document.createElement("span");
|
|
170
|
-
span.className = textClass;
|
|
171
|
-
span.textContent = renderingLabel;
|
|
172
|
-
indicator.appendChild(span);
|
|
173
|
-
container.appendChild(indicator);
|
|
174
|
-
brandingHandle?.start();
|
|
175
|
-
}
|
|
176
|
-
const cleanupAttrObserver = brandingHandle ? () => brandingHandle.destroy() : null;
|
|
177
|
-
return {
|
|
178
|
-
container,
|
|
179
|
-
canvas,
|
|
180
|
-
previewCanvas,
|
|
181
|
-
animationLayerHost,
|
|
182
|
-
textLayer,
|
|
183
|
-
annotationLayer,
|
|
184
|
-
searchHighlightLayer,
|
|
185
|
-
customPageOverlayLayer,
|
|
186
|
-
pageNumber,
|
|
187
|
-
renderKey: "",
|
|
188
|
-
pendingKey: null,
|
|
189
|
-
previewRenderKey: "",
|
|
190
|
-
renderToken: 0,
|
|
191
|
-
loadingTimer,
|
|
192
|
-
cssWidth: 0,
|
|
193
|
-
cssHeight: 0,
|
|
194
|
-
lastAnnotations: null,
|
|
195
|
-
lastAnnotationScale: 0,
|
|
196
|
-
lastHighlightedBounds: null,
|
|
197
|
-
lastTextLayout: null,
|
|
198
|
-
lastTextScale: 0,
|
|
199
|
-
cleanupSelectionController,
|
|
200
|
-
cleanupAttrObserver,
|
|
201
|
-
lastSearchMatches: null,
|
|
202
|
-
lastSearchActiveIndex: -1,
|
|
203
|
-
lastSearchScale: 0,
|
|
204
|
-
customPageOverlayInvoked: false,
|
|
205
|
-
cleanupCustomPageOverlay: null,
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
container.classList.add("udoc-spread__slot--empty");
|
|
209
|
-
return {
|
|
210
|
-
container,
|
|
211
|
-
canvas: null,
|
|
212
|
-
previewCanvas: null,
|
|
213
|
-
animationLayerHost: null,
|
|
214
|
-
textLayer: null,
|
|
215
|
-
annotationLayer: null,
|
|
216
|
-
searchHighlightLayer: null,
|
|
217
|
-
customPageOverlayLayer: null,
|
|
218
|
-
pageNumber: null,
|
|
219
|
-
renderKey: "",
|
|
220
|
-
pendingKey: null,
|
|
221
|
-
previewRenderKey: "",
|
|
222
|
-
renderToken: 0,
|
|
223
|
-
loadingTimer: null,
|
|
224
|
-
cssWidth: 0,
|
|
225
|
-
cssHeight: 0,
|
|
226
|
-
lastAnnotations: null,
|
|
227
|
-
lastAnnotationScale: 0,
|
|
228
|
-
lastHighlightedBounds: null,
|
|
229
|
-
lastTextLayout: null,
|
|
230
|
-
lastTextScale: 0,
|
|
231
|
-
cleanupSelectionController: null,
|
|
232
|
-
cleanupAttrObserver: null,
|
|
233
|
-
lastSearchMatches: null,
|
|
234
|
-
lastSearchActiveIndex: -1,
|
|
235
|
-
lastSearchScale: 0,
|
|
236
|
-
customPageOverlayInvoked: false,
|
|
237
|
-
cleanupCustomPageOverlay: null,
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
function updateLayout(options) {
|
|
241
|
-
const dpr = getDevicePixelRatio();
|
|
242
|
-
const pointsToPixels = getPointsToPixels(options.dpi);
|
|
243
|
-
const userRotation = normalizeRotation(options.rotation);
|
|
244
|
-
const cropMode = options.cropMode ?? "none";
|
|
245
|
-
const gapCss = toCssPixels(toDevicePixels(options.pageSpacing, dpr), dpr);
|
|
246
|
-
wrapper.style.gap = `${gapCss}px`;
|
|
247
|
-
let referenceSize = null;
|
|
248
|
-
for (const slotEl of slotElements) {
|
|
249
|
-
if (slotEl.pageNumber === null)
|
|
250
|
-
continue;
|
|
251
|
-
const pageInfo = options.pageInfos[slotEl.pageNumber - 1];
|
|
252
|
-
if (pageInfo) {
|
|
253
|
-
referenceSize = {
|
|
254
|
-
width: pageInfo.width * pointsToPixels * options.scale,
|
|
255
|
-
height: pageInfo.height * pointsToPixels * options.scale,
|
|
256
|
-
};
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
for (const slotEl of slotElements) {
|
|
261
|
-
const pageInfo = slotEl.pageNumber === null ? null : options.pageInfos[slotEl.pageNumber - 1];
|
|
262
|
-
const baseSize = pageInfo
|
|
263
|
-
? {
|
|
264
|
-
width: pageInfo.width * pointsToPixels * options.scale,
|
|
265
|
-
height: pageInfo.height * pointsToPixels * options.scale,
|
|
266
|
-
}
|
|
267
|
-
: referenceSize;
|
|
268
|
-
if (!baseSize) {
|
|
269
|
-
slotEl.container.style.width = "0px";
|
|
270
|
-
slotEl.container.style.height = "0px";
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
// Combine document rotation (from PDF) with user rotation (viewer setting)
|
|
274
|
-
const documentRotation = normalizeRotation((pageInfo?.rotation ?? 0));
|
|
275
|
-
const effectiveRotation = combineRotation(documentRotation, userRotation);
|
|
276
|
-
const baseWidthDevice = toDevicePixels(baseSize.width, dpr);
|
|
277
|
-
const baseHeightDevice = toDevicePixels(baseSize.height, dpr);
|
|
278
|
-
const rotatedSize = rotateSize({ width: baseWidthDevice, height: baseHeightDevice }, effectiveRotation);
|
|
279
|
-
slotEl.cssWidth = toCssPixels(baseWidthDevice, dpr);
|
|
280
|
-
slotEl.cssHeight = toCssPixels(baseHeightDevice, dpr);
|
|
281
|
-
// Crop the container based on cropMode and contentRect
|
|
282
|
-
const cr = cropMode !== "none" && pageInfo?.contentRect ? pageInfo.contentRect : null;
|
|
283
|
-
let containerWidth;
|
|
284
|
-
let containerHeight;
|
|
285
|
-
let cropOffsetLeft = 0;
|
|
286
|
-
let cropOffsetTop = 0;
|
|
287
|
-
if (cr) {
|
|
288
|
-
// Content rect offset/size in CSS pixels (pre-rotation)
|
|
289
|
-
const crLeft = cr.x * pointsToPixels * options.scale;
|
|
290
|
-
const crTop = cr.y * pointsToPixels * options.scale;
|
|
291
|
-
const crWidth = cr.width * pointsToPixels * options.scale;
|
|
292
|
-
const crHeight = cr.height * pointsToPixels * options.scale;
|
|
293
|
-
const crWidthDevice = toDevicePixels(crWidth, dpr);
|
|
294
|
-
const crHeightDevice = toDevicePixels(crHeight, dpr);
|
|
295
|
-
if (cropMode === "vertical") {
|
|
296
|
-
// Vertical crop only: keep full page width, crop top/bottom
|
|
297
|
-
const crRotatedHeight = rotateSize({ width: crWidthDevice, height: crHeightDevice }, effectiveRotation);
|
|
298
|
-
containerWidth = toCssPixels(rotatedSize.width, dpr);
|
|
299
|
-
containerHeight = toCssPixels(crRotatedHeight.height, dpr);
|
|
300
|
-
const crTopDevice = toDevicePixels(crTop, dpr);
|
|
301
|
-
// Offset canvas vertically to show content area
|
|
302
|
-
switch (effectiveRotation) {
|
|
303
|
-
case 0:
|
|
304
|
-
cropOffsetTop = -toCssPixels(crTopDevice, dpr);
|
|
305
|
-
break;
|
|
306
|
-
case 90:
|
|
307
|
-
// When rotated 90°, original top becomes left
|
|
308
|
-
cropOffsetTop = -(slotEl.cssWidth -
|
|
309
|
-
toCssPixels(toDevicePixels(crLeft, dpr), dpr) -
|
|
310
|
-
toCssPixels(crWidthDevice, dpr));
|
|
311
|
-
break;
|
|
312
|
-
case 180:
|
|
313
|
-
cropOffsetTop = -(slotEl.cssHeight -
|
|
314
|
-
toCssPixels(crTopDevice, dpr) -
|
|
315
|
-
toCssPixels(crHeightDevice, dpr));
|
|
316
|
-
break;
|
|
317
|
-
case 270:
|
|
318
|
-
cropOffsetTop = -toCssPixels(toDevicePixels(crLeft, dpr), dpr);
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
// Full crop: crop all four sides
|
|
324
|
-
const crRotated = rotateSize({ width: crWidthDevice, height: crHeightDevice }, effectiveRotation);
|
|
325
|
-
containerWidth = toCssPixels(crRotated.width, dpr);
|
|
326
|
-
containerHeight = toCssPixels(crRotated.height, dpr);
|
|
327
|
-
const crLeftDevice = toDevicePixels(crLeft, dpr);
|
|
328
|
-
const crTopDevice = toDevicePixels(crTop, dpr);
|
|
329
|
-
switch (effectiveRotation) {
|
|
330
|
-
case 0:
|
|
331
|
-
cropOffsetLeft = -toCssPixels(crLeftDevice, dpr);
|
|
332
|
-
cropOffsetTop = -toCssPixels(crTopDevice, dpr);
|
|
333
|
-
break;
|
|
334
|
-
case 90:
|
|
335
|
-
cropOffsetLeft = -toCssPixels(crTopDevice, dpr);
|
|
336
|
-
cropOffsetTop = -(slotEl.cssWidth -
|
|
337
|
-
toCssPixels(crLeftDevice, dpr) -
|
|
338
|
-
toCssPixels(crWidthDevice, dpr));
|
|
339
|
-
break;
|
|
340
|
-
case 180:
|
|
341
|
-
cropOffsetLeft = -(slotEl.cssWidth -
|
|
342
|
-
toCssPixels(crLeftDevice, dpr) -
|
|
343
|
-
toCssPixels(crWidthDevice, dpr));
|
|
344
|
-
cropOffsetTop = -(slotEl.cssHeight -
|
|
345
|
-
toCssPixels(crTopDevice, dpr) -
|
|
346
|
-
toCssPixels(crHeightDevice, dpr));
|
|
347
|
-
break;
|
|
348
|
-
case 270:
|
|
349
|
-
cropOffsetLeft = -(slotEl.cssHeight -
|
|
350
|
-
toCssPixels(crTopDevice, dpr) -
|
|
351
|
-
toCssPixels(crHeightDevice, dpr));
|
|
352
|
-
cropOffsetTop = -toCssPixels(crLeftDevice, dpr);
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
containerWidth = toCssPixels(rotatedSize.width, dpr);
|
|
359
|
-
containerHeight = toCssPixels(rotatedSize.height, dpr);
|
|
360
|
-
}
|
|
361
|
-
slotEl.container.style.width = formatCssSize(containerWidth);
|
|
362
|
-
slotEl.container.style.height = formatCssSize(containerHeight);
|
|
363
|
-
// Canvas position: center if no crop, offset if cropping
|
|
364
|
-
let centerLeft;
|
|
365
|
-
let centerTop;
|
|
366
|
-
if (cr) {
|
|
367
|
-
centerLeft = cropOffsetLeft;
|
|
368
|
-
centerTop = cropOffsetTop;
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
centerLeft = snapToDevice((containerWidth - slotEl.cssWidth) / 2, dpr);
|
|
372
|
-
centerTop = snapToDevice((containerHeight - slotEl.cssHeight) / 2, dpr);
|
|
373
|
-
}
|
|
374
|
-
if (slotEl.previewCanvas) {
|
|
375
|
-
slotEl.previewCanvas.style.width = formatCssSize(slotEl.cssWidth);
|
|
376
|
-
slotEl.previewCanvas.style.height = formatCssSize(slotEl.cssHeight);
|
|
377
|
-
slotEl.previewCanvas.style.left = formatCssSize(centerLeft);
|
|
378
|
-
slotEl.previewCanvas.style.top = formatCssSize(centerTop);
|
|
379
|
-
slotEl.previewCanvas.style.transform =
|
|
380
|
-
effectiveRotation === 0 ? "none" : `rotate(${effectiveRotation}deg)`;
|
|
381
|
-
}
|
|
382
|
-
if (slotEl.canvas) {
|
|
383
|
-
slotEl.canvas.style.width = formatCssSize(slotEl.cssWidth);
|
|
384
|
-
slotEl.canvas.style.height = formatCssSize(slotEl.cssHeight);
|
|
385
|
-
slotEl.canvas.style.left = formatCssSize(centerLeft);
|
|
386
|
-
slotEl.canvas.style.top = formatCssSize(centerTop);
|
|
387
|
-
slotEl.canvas.style.transform = effectiveRotation === 0 ? "none" : `rotate(${effectiveRotation}deg)`;
|
|
388
|
-
}
|
|
389
|
-
// Keep the animation host aligned with the canvas it replaces
|
|
390
|
-
if (slotEl.animationLayerHost) {
|
|
391
|
-
slotEl.animationLayerHost.style.width = formatCssSize(slotEl.cssWidth);
|
|
392
|
-
slotEl.animationLayerHost.style.height = formatCssSize(slotEl.cssHeight);
|
|
393
|
-
slotEl.animationLayerHost.style.left = formatCssSize(centerLeft);
|
|
394
|
-
slotEl.animationLayerHost.style.top = formatCssSize(centerTop);
|
|
395
|
-
slotEl.animationLayerHost.style.transform =
|
|
396
|
-
effectiveRotation === 0 ? "none" : `rotate(${effectiveRotation}deg)`;
|
|
397
|
-
}
|
|
398
|
-
// Update text layer to match canvas position/transform
|
|
399
|
-
if (slotEl.textLayer) {
|
|
400
|
-
slotEl.textLayer.style.width = formatCssSize(slotEl.cssWidth);
|
|
401
|
-
slotEl.textLayer.style.height = formatCssSize(slotEl.cssHeight);
|
|
402
|
-
slotEl.textLayer.style.left = formatCssSize(centerLeft);
|
|
403
|
-
slotEl.textLayer.style.top = formatCssSize(centerTop);
|
|
404
|
-
slotEl.textLayer.style.transform = effectiveRotation === 0 ? "none" : `rotate(${effectiveRotation}deg)`;
|
|
405
|
-
}
|
|
406
|
-
// Update annotation layer to match canvas position/transform
|
|
407
|
-
if (slotEl.annotationLayer) {
|
|
408
|
-
slotEl.annotationLayer.style.width = formatCssSize(slotEl.cssWidth);
|
|
409
|
-
slotEl.annotationLayer.style.height = formatCssSize(slotEl.cssHeight);
|
|
410
|
-
slotEl.annotationLayer.style.left = formatCssSize(centerLeft);
|
|
411
|
-
slotEl.annotationLayer.style.top = formatCssSize(centerTop);
|
|
412
|
-
slotEl.annotationLayer.style.transform =
|
|
413
|
-
effectiveRotation === 0 ? "none" : `rotate(${effectiveRotation}deg)`;
|
|
414
|
-
}
|
|
415
|
-
// Update search highlight layer to match canvas position/transform
|
|
416
|
-
if (slotEl.searchHighlightLayer) {
|
|
417
|
-
slotEl.searchHighlightLayer.style.width = formatCssSize(slotEl.cssWidth);
|
|
418
|
-
slotEl.searchHighlightLayer.style.height = formatCssSize(slotEl.cssHeight);
|
|
419
|
-
slotEl.searchHighlightLayer.style.left = formatCssSize(centerLeft);
|
|
420
|
-
slotEl.searchHighlightLayer.style.top = formatCssSize(centerTop);
|
|
421
|
-
slotEl.searchHighlightLayer.style.transform =
|
|
422
|
-
effectiveRotation === 0 ? "none" : `rotate(${effectiveRotation}deg)`;
|
|
423
|
-
}
|
|
424
|
-
// Update custom page overlay layer to match canvas position/transform
|
|
425
|
-
if (slotEl.customPageOverlayLayer) {
|
|
426
|
-
slotEl.customPageOverlayLayer.style.width = formatCssSize(slotEl.cssWidth);
|
|
427
|
-
slotEl.customPageOverlayLayer.style.height = formatCssSize(slotEl.cssHeight);
|
|
428
|
-
slotEl.customPageOverlayLayer.style.left = formatCssSize(centerLeft);
|
|
429
|
-
slotEl.customPageOverlayLayer.style.top = formatCssSize(centerTop);
|
|
430
|
-
slotEl.customPageOverlayLayer.style.transform =
|
|
431
|
-
effectiveRotation === 0 ? "none" : `rotate(${effectiveRotation}deg)`;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
function drawToCanvas(canvas, result, slotEl, dpr) {
|
|
436
|
-
let targetWidth;
|
|
437
|
-
let targetHeight;
|
|
438
|
-
if (slotEl.cssWidth > 0 && slotEl.cssHeight > 0) {
|
|
439
|
-
targetWidth = Math.max(1, Math.round(slotEl.cssWidth * dpr));
|
|
440
|
-
targetHeight = Math.max(1, Math.round(slotEl.cssHeight * dpr));
|
|
441
|
-
canvas.style.width = formatCssSize(slotEl.cssWidth);
|
|
442
|
-
canvas.style.height = formatCssSize(slotEl.cssHeight);
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
targetWidth = result.width;
|
|
446
|
-
targetHeight = result.height;
|
|
447
|
-
}
|
|
448
|
-
if (canvas.width !== targetWidth)
|
|
449
|
-
canvas.width = targetWidth;
|
|
450
|
-
if (canvas.height !== targetHeight)
|
|
451
|
-
canvas.height = targetHeight;
|
|
452
|
-
const ctx = canvas.getContext("2d");
|
|
453
|
-
if (ctx) {
|
|
454
|
-
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
455
|
-
if (canvas.width === result.width && canvas.height === result.height) {
|
|
456
|
-
ctx.drawImage(result.bitmap, 0, 0);
|
|
457
|
-
}
|
|
458
|
-
else {
|
|
459
|
-
ctx.drawImage(result.bitmap, 0, 0, canvas.width, canvas.height);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
/** Scale factor for low-res preview renders (relative to full-res) */
|
|
464
|
-
const PREVIEW_SCALE = 0.15;
|
|
465
|
-
/** Set to true to enable low-res preview rendering while full-res loads */
|
|
466
|
-
const PREVIEW_ENABLED = false;
|
|
467
|
-
async function render(workerClient, options) {
|
|
468
|
-
const dpr = getDevicePixelRatio();
|
|
469
|
-
const pointsToPixels = getPointsToPixels(options.dpi);
|
|
470
|
-
for (const slotEl of slotElements) {
|
|
471
|
-
if (slotEl.pageNumber === null || slotEl.canvas === null) {
|
|
472
|
-
slotEl.renderKey = "";
|
|
473
|
-
slotEl.pendingKey = null;
|
|
474
|
-
continue;
|
|
475
|
-
}
|
|
476
|
-
// Clamp DPR so the canvas stays within iOS Safari's 16M-pixel / 4096px limit at high zoom.
|
|
477
|
-
const effDpr = getEffectiveDpr(slotEl.cssWidth, slotEl.cssHeight, dpr);
|
|
478
|
-
const renderScale = pointsToPixels * options.scale * effDpr;
|
|
479
|
-
const key = makeRenderKey(options.docId, slotEl.pageNumber, "page", renderScale);
|
|
480
|
-
if (slotEl.renderKey === key || slotEl.pendingKey === key)
|
|
481
|
-
continue;
|
|
482
|
-
const token = ++slotEl.renderToken;
|
|
483
|
-
slotEl.pendingKey = key;
|
|
484
|
-
// Request low-res preview if no content is shown yet
|
|
485
|
-
if (PREVIEW_ENABLED && slotEl.previewCanvas && slotEl.renderKey === "") {
|
|
486
|
-
const previewRenderScale = renderScale * PREVIEW_SCALE;
|
|
487
|
-
const previewKey = makeRenderKey(options.docId, slotEl.pageNumber, "preview", previewRenderScale);
|
|
488
|
-
if (slotEl.previewRenderKey !== previewKey) {
|
|
489
|
-
workerClient
|
|
490
|
-
.requestRender({
|
|
491
|
-
docId: options.docId,
|
|
492
|
-
page: slotEl.pageNumber,
|
|
493
|
-
type: "preview",
|
|
494
|
-
scale: previewRenderScale,
|
|
495
|
-
})
|
|
496
|
-
.then((result) => {
|
|
497
|
-
if (!mounted || slotEl.renderToken !== token)
|
|
498
|
-
return;
|
|
499
|
-
// Only show preview if full-res hasn't arrived yet
|
|
500
|
-
if (slotEl.renderKey === key)
|
|
501
|
-
return;
|
|
502
|
-
drawToCanvas(slotEl.previewCanvas, result, slotEl, effDpr);
|
|
503
|
-
slotEl.previewCanvas.style.display = "block";
|
|
504
|
-
slotEl.previewRenderKey = previewKey;
|
|
505
|
-
if (slotEl.loadingTimer) {
|
|
506
|
-
clearTimeout(slotEl.loadingTimer);
|
|
507
|
-
slotEl.loadingTimer = null;
|
|
508
|
-
}
|
|
509
|
-
slotEl.container.classList.remove("udoc-spread__slot--loading");
|
|
510
|
-
})
|
|
511
|
-
.catch(() => {
|
|
512
|
-
/* ignore preview failures */
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
try {
|
|
517
|
-
const result = await workerClient.requestRender({
|
|
518
|
-
docId: options.docId,
|
|
519
|
-
page: slotEl.pageNumber,
|
|
520
|
-
type: "page",
|
|
521
|
-
scale: renderScale,
|
|
522
|
-
});
|
|
523
|
-
if (!mounted || slotEl.renderToken !== token) {
|
|
524
|
-
if (slotEl.pendingKey === key)
|
|
525
|
-
slotEl.pendingKey = null;
|
|
526
|
-
continue;
|
|
527
|
-
}
|
|
528
|
-
drawToCanvas(slotEl.canvas, result, slotEl, effDpr);
|
|
529
|
-
if (slotEl.loadingTimer) {
|
|
530
|
-
clearTimeout(slotEl.loadingTimer);
|
|
531
|
-
slotEl.loadingTimer = null;
|
|
532
|
-
}
|
|
533
|
-
slotEl.container.classList.remove("udoc-spread__slot--loading");
|
|
534
|
-
// Hide preview canvas now that full-res is ready
|
|
535
|
-
if (slotEl.previewCanvas) {
|
|
536
|
-
slotEl.previewCanvas.style.display = "none";
|
|
537
|
-
}
|
|
538
|
-
slotEl.previewRenderKey = "";
|
|
539
|
-
slotEl.renderKey = key;
|
|
540
|
-
}
|
|
541
|
-
catch (error) {
|
|
542
|
-
if (mounted && !(error instanceof Error && error.message === "Request cancelled")) {
|
|
543
|
-
console.error(`Spread render failed for page ${slotEl.pageNumber}:`, error);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
finally {
|
|
547
|
-
if (slotEl.pendingKey === key)
|
|
548
|
-
slotEl.pendingKey = null;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
function mount(container) {
|
|
553
|
-
container.appendChild(el);
|
|
554
|
-
mounted = true;
|
|
555
|
-
}
|
|
556
|
-
function destroy() {
|
|
557
|
-
mounted = false;
|
|
558
|
-
for (const slotEl of slotElements) {
|
|
559
|
-
slotEl.renderKey = "";
|
|
560
|
-
slotEl.pendingKey = null;
|
|
561
|
-
slotEl.renderToken = 0;
|
|
562
|
-
// Cleanup selection controller event listeners
|
|
563
|
-
if (slotEl.cleanupSelectionController) {
|
|
564
|
-
slotEl.cleanupSelectionController();
|
|
565
|
-
slotEl.cleanupSelectionController = null;
|
|
566
|
-
}
|
|
567
|
-
if (slotEl.cleanupAttrObserver) {
|
|
568
|
-
slotEl.cleanupAttrObserver();
|
|
569
|
-
slotEl.cleanupAttrObserver = null;
|
|
570
|
-
}
|
|
571
|
-
if (slotEl.cleanupCustomPageOverlay) {
|
|
572
|
-
try {
|
|
573
|
-
slotEl.cleanupCustomPageOverlay();
|
|
574
|
-
}
|
|
575
|
-
catch (e) {
|
|
576
|
-
console.error("Custom page overlay cleanup threw:", e);
|
|
577
|
-
}
|
|
578
|
-
slotEl.cleanupCustomPageOverlay = null;
|
|
579
|
-
}
|
|
580
|
-
slotEl.customPageOverlayInvoked = false;
|
|
581
|
-
}
|
|
582
|
-
el.remove();
|
|
583
|
-
}
|
|
584
|
-
function getElement() {
|
|
585
|
-
return el;
|
|
586
|
-
}
|
|
587
|
-
function getData() {
|
|
588
|
-
return data;
|
|
589
|
-
}
|
|
590
|
-
function updateAnnotations(annotations, options, highlightedAnnotation) {
|
|
591
|
-
const pointsToPixels = getPointsToPixels(options.dpi);
|
|
592
|
-
const scale = pointsToPixels * options.scale;
|
|
593
|
-
for (const slotEl of slotElements) {
|
|
594
|
-
if (!slotEl.annotationLayer || slotEl.pageNumber === null)
|
|
595
|
-
continue;
|
|
596
|
-
// pageNumber is 1-based, annotations map is 0-based
|
|
597
|
-
const pageIndex = slotEl.pageNumber - 1;
|
|
598
|
-
const pageAnnotations = annotations.get(pageIndex);
|
|
599
|
-
// Check if this page has a highlighted annotation
|
|
600
|
-
const highlightBounds = highlightedAnnotation?.pageIndex === pageIndex ? highlightedAnnotation.bounds : null;
|
|
601
|
-
// Skip if annotations, scale, and highlight haven't changed
|
|
602
|
-
// Use epsilon comparison for scale to prevent oscillation from floating-point drift
|
|
603
|
-
const scaleUnchanged = Math.abs(scale - slotEl.lastAnnotationScale) < 0.0001;
|
|
604
|
-
if (pageAnnotations === slotEl.lastAnnotations &&
|
|
605
|
-
scaleUnchanged &&
|
|
606
|
-
highlightBounds === slotEl.lastHighlightedBounds) {
|
|
607
|
-
continue;
|
|
608
|
-
}
|
|
609
|
-
// Render and cache
|
|
610
|
-
renderAnnotationsToLayer(slotEl.annotationLayer, pageAnnotations || [], scale, highlightBounds);
|
|
611
|
-
slotEl.lastAnnotations = pageAnnotations ?? null;
|
|
612
|
-
slotEl.lastAnnotationScale = scale;
|
|
613
|
-
slotEl.lastHighlightedBounds = highlightBounds;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function updateTextLayer(textContent, options) {
|
|
617
|
-
const pointsToPixels = getPointsToPixels(options.dpi);
|
|
618
|
-
const scale = pointsToPixels * options.scale;
|
|
619
|
-
for (const slotEl of slotElements) {
|
|
620
|
-
if (!slotEl.textLayer || slotEl.pageNumber === null)
|
|
621
|
-
continue;
|
|
622
|
-
const pageIndex = slotEl.pageNumber - 1;
|
|
623
|
-
const layout = textContent.get(pageIndex) ?? null;
|
|
624
|
-
const pageInfo = options.pageInfos[pageIndex];
|
|
625
|
-
const scaleUnchanged = Math.abs(scale - slotEl.lastTextScale) < 0.0001;
|
|
626
|
-
if (layout === slotEl.lastTextLayout && scaleUnchanged) {
|
|
627
|
-
continue;
|
|
628
|
-
}
|
|
629
|
-
const pageHeight = pageInfo?.height ?? 0;
|
|
630
|
-
renderTextToLayer(slotEl.textLayer, layout, scale, pageHeight);
|
|
631
|
-
slotEl.lastTextLayout = layout;
|
|
632
|
-
slotEl.lastTextScale = scale;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
function updateSearchHighlights(matches, activeIndex, options) {
|
|
636
|
-
const pointsToPixels = getPointsToPixels(options.dpi);
|
|
637
|
-
const scale = pointsToPixels * options.scale;
|
|
638
|
-
for (const slotEl of slotElements) {
|
|
639
|
-
if (!slotEl.searchHighlightLayer || slotEl.pageNumber === null)
|
|
640
|
-
continue;
|
|
641
|
-
const pageIndex = slotEl.pageNumber - 1;
|
|
642
|
-
const scaleUnchanged = Math.abs(scale - slotEl.lastSearchScale) < 0.0001;
|
|
643
|
-
// Skip if nothing changed
|
|
644
|
-
if (matches === slotEl.lastSearchMatches &&
|
|
645
|
-
activeIndex === slotEl.lastSearchActiveIndex &&
|
|
646
|
-
scaleUnchanged) {
|
|
647
|
-
continue;
|
|
648
|
-
}
|
|
649
|
-
// Clear and re-render
|
|
650
|
-
slotEl.searchHighlightLayer.innerHTML = "";
|
|
651
|
-
for (let i = 0; i < matches.length; i++) {
|
|
652
|
-
const match = matches[i];
|
|
653
|
-
if (match.pageIndex !== pageIndex)
|
|
654
|
-
continue;
|
|
655
|
-
const isActive = i === activeIndex;
|
|
656
|
-
for (const rect of match.rects) {
|
|
657
|
-
const highlightEl = document.createElement("div");
|
|
658
|
-
highlightEl.className = isActive
|
|
659
|
-
? "udoc-search-highlight udoc-search-highlight--active"
|
|
660
|
-
: "udoc-search-highlight";
|
|
661
|
-
highlightEl.style.position = "absolute";
|
|
662
|
-
highlightEl.style.left = `${rect.x * scale}px`;
|
|
663
|
-
highlightEl.style.top = `${rect.y * scale}px`;
|
|
664
|
-
highlightEl.style.width = `${rect.width * scale}px`;
|
|
665
|
-
highlightEl.style.height = `${rect.height * scale}px`;
|
|
666
|
-
if (Math.abs(rect.angle) > 0.1) {
|
|
667
|
-
highlightEl.style.transformOrigin = "0 0";
|
|
668
|
-
highlightEl.style.transform = `rotate(${rect.angle}deg)`;
|
|
669
|
-
}
|
|
670
|
-
slotEl.searchHighlightLayer.appendChild(highlightEl);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
slotEl.lastSearchMatches = matches;
|
|
674
|
-
slotEl.lastSearchActiveIndex = activeIndex;
|
|
675
|
-
slotEl.lastSearchScale = scale;
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Invoke the host's custom page overlay renderer for each newly-visible
|
|
680
|
-
* slot. Called once per slot lifetime; the cleanup function the host
|
|
681
|
-
* returns runs when the slot is destroyed.
|
|
682
|
-
*/
|
|
683
|
-
function updateCustomPageOverlay(options) {
|
|
684
|
-
if (!customPageOverlay)
|
|
685
|
-
return;
|
|
686
|
-
const pointsToPixels = getPointsToPixels(options.dpi);
|
|
687
|
-
const scale = pointsToPixels * options.scale;
|
|
688
|
-
for (const slotEl of slotElements) {
|
|
689
|
-
if (!slotEl.customPageOverlayLayer || slotEl.pageNumber === null)
|
|
690
|
-
continue;
|
|
691
|
-
if (slotEl.customPageOverlayInvoked)
|
|
692
|
-
continue;
|
|
693
|
-
const pageIndex = slotEl.pageNumber - 1;
|
|
694
|
-
try {
|
|
695
|
-
const cleanup = customPageOverlay(pageIndex, slotEl.customPageOverlayLayer, scale);
|
|
696
|
-
slotEl.cleanupCustomPageOverlay = typeof cleanup === "function" ? cleanup : null;
|
|
697
|
-
}
|
|
698
|
-
catch (e) {
|
|
699
|
-
console.error(`Custom page overlay renderer threw for page ${pageIndex}:`, e);
|
|
700
|
-
}
|
|
701
|
-
slotEl.customPageOverlayInvoked = true;
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
function resetRenderKeys() {
|
|
705
|
-
for (const slotEl of slotElements) {
|
|
706
|
-
slotEl.renderKey = "";
|
|
707
|
-
slotEl.pendingKey = null;
|
|
708
|
-
slotEl.previewRenderKey = "";
|
|
709
|
-
if (slotEl.previewCanvas) {
|
|
710
|
-
slotEl.previewCanvas.style.display = "none";
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* Elements a slide build needs: the host its layers mount into and the
|
|
716
|
-
* plain canvas they stand in for. Null when the page is not in this spread.
|
|
717
|
-
*/
|
|
718
|
-
function getAnimationTargets(pageNumber) {
|
|
719
|
-
for (const slotEl of slotElements) {
|
|
720
|
-
if (slotEl.pageNumber !== pageNumber)
|
|
721
|
-
continue;
|
|
722
|
-
if (!slotEl.animationLayerHost || !slotEl.canvas)
|
|
723
|
-
return null;
|
|
724
|
-
return {
|
|
725
|
-
host: slotEl.animationLayerHost,
|
|
726
|
-
canvas: slotEl.canvas,
|
|
727
|
-
cssWidth: slotEl.cssWidth,
|
|
728
|
-
cssHeight: slotEl.cssHeight,
|
|
729
|
-
};
|
|
730
|
-
}
|
|
731
|
-
return null;
|
|
732
|
-
}
|
|
733
|
-
return {
|
|
734
|
-
el,
|
|
735
|
-
mount,
|
|
736
|
-
destroy,
|
|
737
|
-
render,
|
|
738
|
-
getAnimationTargets,
|
|
739
|
-
updateLayout,
|
|
740
|
-
updateAnnotations,
|
|
741
|
-
updateTextLayer,
|
|
742
|
-
updateSearchHighlights,
|
|
743
|
-
updateCustomPageOverlay,
|
|
744
|
-
resetRenderKeys,
|
|
745
|
-
getElement,
|
|
746
|
-
getData,
|
|
747
|
-
};
|
|
748
|
-
}
|
|
749
|
-
//# sourceMappingURL=Spread.js.map
|