@docmentis/udoc-viewer 0.7.19 → 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,334 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* "Powered by docMentis" branding component.
|
|
3
|
-
*
|
|
4
|
-
* Hardened against host-page CSS injection that tries to suppress the mark:
|
|
5
|
-
*
|
|
6
|
-
* - Visual content lives inside a closed shadow root, so external CSS
|
|
7
|
-
* (including `!important` rules) cannot select anything visible.
|
|
8
|
-
* - The light-DOM host wrapper carries a per-instance random class name,
|
|
9
|
-
* so attacker stylesheets cannot statically target it.
|
|
10
|
-
* - The literal docmentis.com URL is not rendered in any `href` attribute;
|
|
11
|
-
* a click handler decodes it from a base64 `data-h` attribute at runtime,
|
|
12
|
-
* defeating `a[href*="docmentis.com"]` selectors.
|
|
13
|
-
* - A MutationObserver re-inserts the host if it is removed from its parent.
|
|
14
|
-
* - For the persistent `viewport-corner` variant, a runtime visibility check
|
|
15
|
-
* (IntersectionObserver + ~2s setInterval inspection of getBoundingClientRect
|
|
16
|
-
* and getComputedStyle) trips a `udoc:branding-suppressed` CustomEvent and
|
|
17
|
-
* invokes the caller's onSuppressed hook so a watermark fallback can engage.
|
|
18
|
-
*
|
|
19
|
-
* Defense-in-depth, not silver bullets: a determined attacker with arbitrary
|
|
20
|
-
* JS access to the page can still tamper. The shadow root blocks CSS attacks;
|
|
21
|
-
* the visibility tripwire converts any successful suppression into a signal
|
|
22
|
-
* that downstream code (e.g. a rasterized watermark) can react to.
|
|
23
|
-
*/
|
|
24
|
-
// Capture `attachShadow` and `getComputedStyle` at module evaluation time so
|
|
25
|
-
// later prototype patching by the host page does not affect us. Guarded for
|
|
26
|
-
// non-DOM environments (SSR/Node) where the module may be imported but
|
|
27
|
-
// `createBranding` will never be invoked.
|
|
28
|
-
const __attachShadow = typeof Element !== "undefined" ? Element.prototype.attachShadow : undefined;
|
|
29
|
-
const __getComputedStyle = typeof window !== "undefined" ? window.getComputedStyle.bind(window) : undefined;
|
|
30
|
-
// "https://docmentis.com" — held base64 so `a[href*="docmentis.com"]` and
|
|
31
|
-
// text-scans of the bundle do not find it on the rendered element.
|
|
32
|
-
const ATTRIBUTION_URL_B64 = "aHR0cHM6Ly9kb2NtZW50aXMuY29t";
|
|
33
|
-
// SVG of the "docMentis" wordmark; used by the loading and spread variants.
|
|
34
|
-
// Inside the closed shadow root, stable class names are fine.
|
|
35
|
-
const LOGO_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0.4 11.2 247.3 39.4" width="124" height="20" aria-hidden="true"><path d="M13.92 48.58L13.92 48.58Q10.61 48.58 7.99 46.94Q5.38 45.31 3.89 42.43Q2.40 39.55 2.40 35.95L2.40 35.95Q2.40 32.26 3.91 29.40Q5.42 26.54 8.09 24.89Q10.75 23.23 14.06 23.23L14.06 23.23Q16.66 23.23 18.62 24.19Q20.59 25.15 21.79 26.93L21.79 26.93L21.79 13.44L28.27 13.44L28.27 48L22.51 48L21.79 44.69L21.79 44.69Q21.07 45.70 19.99 46.61Q18.91 47.52 17.42 48.05Q15.94 48.58 13.92 48.58ZM15.46 42.91L15.46 42.91Q17.38 42.91 18.84 42.02Q20.30 41.14 21.12 39.55Q21.94 37.97 21.94 35.90L21.94 35.90Q21.94 33.84 21.12 32.26Q20.30 30.67 18.84 29.78Q17.38 28.90 15.46 28.90L15.46 28.90Q13.63 28.90 12.14 29.78Q10.66 30.67 9.82 32.26Q8.98 33.84 8.98 35.86L8.98 35.86Q8.98 37.97 9.82 39.55Q10.66 41.14 12.12 42.02Q13.58 42.91 15.46 42.91ZM46.03 48.58L46.03 48.58Q42.58 48.58 39.82 46.97Q37.06 45.36 35.45 42.50Q33.84 39.65 33.84 35.95L33.84 35.95Q33.84 32.16 35.45 29.30Q37.06 26.45 39.84 24.84Q42.62 23.23 46.08 23.23L46.08 23.23Q49.58 23.23 52.34 24.84Q55.10 26.45 56.71 29.30Q58.32 32.16 58.32 35.90L58.32 35.90Q58.32 39.65 56.71 42.50Q55.10 45.36 52.32 46.97Q49.54 48.58 46.03 48.58ZM46.03 42.96L46.03 42.96Q47.66 42.96 48.94 42.19Q50.21 41.42 50.95 39.84Q51.70 38.26 51.70 35.90L51.70 35.90Q51.70 33.55 50.95 31.99Q50.21 30.43 48.94 29.64Q47.66 28.85 46.08 28.85L46.08 28.85Q44.54 28.85 43.25 29.64Q41.95 30.43 41.21 31.99Q40.46 33.55 40.46 35.90L40.46 35.90Q40.46 38.26 41.21 39.84Q41.95 41.42 43.22 42.19Q44.50 42.96 46.03 42.96ZM75.60 48.58L75.60 48.58Q71.95 48.58 69.12 46.94Q66.29 45.31 64.70 42.48Q63.12 39.65 63.12 36L63.12 36Q63.12 32.26 64.70 29.40Q66.29 26.54 69.12 24.89Q71.95 23.23 75.60 23.23L75.60 23.23Q80.26 23.23 83.42 25.68Q86.59 28.13 87.46 32.40L87.46 32.40L80.59 32.40Q80.16 30.72 78.79 29.76Q77.42 28.80 75.55 28.80L75.55 28.80Q73.87 28.80 72.55 29.64Q71.23 30.48 70.49 32.09Q69.74 33.70 69.74 35.90L69.74 35.90Q69.74 37.58 70.18 38.90Q70.61 40.22 71.38 41.16Q72.14 42.10 73.22 42.58Q74.30 43.06 75.55 43.06L75.55 43.06Q76.80 43.06 77.83 42.62Q78.86 42.19 79.58 41.40Q80.30 40.61 80.59 39.46L80.59 39.46L87.46 39.46Q86.59 43.63 83.40 46.10Q80.21 48.58 75.60 48.58Z" class="logo-doc"/><path d="M97.25 48L90.77 48L90.77 14.40L98.50 14.40L108.77 35.38L108.77 35.38L118.94 14.40L126.67 14.40L126.67 48L120.19 48L120.19 25.44L120.19 25.44L111.31 43.30L106.18 43.30L97.25 25.44L97.25 25.44L97.25 48ZM144.77 48.58L144.77 48.58Q141.12 48.58 138.31 47.02Q135.50 45.46 133.94 42.65Q132.38 39.84 132.38 36.14L132.38 36.14Q132.38 32.35 133.94 29.45Q135.50 26.54 138.29 24.89Q141.07 23.23 144.77 23.23L144.77 23.23Q148.37 23.23 151.06 24.82Q153.74 26.40 155.23 29.09Q156.72 31.78 156.72 35.18L156.72 35.18Q156.72 35.66 156.72 36.26Q156.72 36.86 156.62 37.49L156.62 37.49L136.99 37.49L136.99 33.55L150.19 33.55Q150.05 31.20 148.54 29.86Q147.02 28.51 144.77 28.51L144.77 28.51Q143.14 28.51 141.74 29.26Q140.35 30 139.56 31.54Q138.77 33.07 138.77 35.42L138.77 35.42L138.77 36.82Q138.77 38.78 139.51 40.25Q140.26 41.71 141.60 42.50Q142.94 43.30 144.72 43.30L144.72 43.30Q146.50 43.30 147.67 42.53Q148.85 41.76 149.42 40.56L149.42 40.56L156.05 40.56Q155.38 42.82 153.79 44.64Q152.21 46.46 149.90 47.52Q147.60 48.58 144.77 48.58ZM168.53 48L162.05 48L162.05 23.81L167.76 23.81L168.24 27.74L168.24 27.74Q169.34 25.73 171.38 24.48Q173.42 23.23 176.26 23.23L176.26 23.23Q179.28 23.23 181.34 24.48Q183.41 25.73 184.49 28.13Q185.57 30.53 185.57 34.03L185.57 34.03L185.57 48L179.14 48L179.14 34.66Q179.14 31.78 177.91 30.24Q176.69 28.70 174.14 28.70L174.14 28.70Q172.51 28.70 171.24 29.47Q169.97 30.24 169.25 31.66Q168.53 33.07 168.53 35.09L168.53 35.09L168.53 48ZM206.93 48L202.56 48Q200.02 48 198.12 47.21Q196.22 46.42 195.17 44.57Q194.11 42.72 194.11 39.50L194.11 39.50L194.11 29.23L189.98 29.23L189.98 23.81L194.11 23.81L194.83 17.23L200.59 17.23L200.59 23.81L206.98 23.81L206.98 29.23L200.59 29.23L200.59 39.60Q200.59 41.23 201.31 41.86Q202.03 42.48 203.76 42.48L203.76 42.48L206.93 42.48L206.93 48ZM219.07 48L212.59 48L212.59 23.81L219.07 23.81L219.07 48ZM215.86 20.50L215.86 20.50Q214.13 20.50 213.00 19.46Q211.87 18.43 211.87 16.85L211.87 16.85Q211.87 15.26 213.00 14.23Q214.13 13.20 215.86 13.20L215.86 13.20Q217.63 13.20 218.76 14.23Q219.89 15.26 219.89 16.85L219.89 16.85Q219.89 18.43 218.76 19.46Q217.63 20.50 215.86 20.50ZM235.49 48.58L235.49 48.58Q232.18 48.58 229.73 47.52Q227.28 46.46 225.89 44.59Q224.50 42.72 224.30 40.37L224.30 40.37L230.74 40.37Q230.98 41.28 231.55 42.02Q232.13 42.77 233.09 43.20Q234.05 43.63 235.39 43.63L235.39 43.63Q236.69 43.63 237.50 43.27Q238.32 42.91 238.73 42.29Q239.14 41.66 239.14 40.99L239.14 40.99Q239.14 39.98 238.56 39.43Q237.98 38.88 236.88 38.54Q235.78 38.21 234.19 37.87L234.19 37.87Q232.46 37.54 230.81 37.03Q229.15 36.53 227.86 35.76Q226.56 34.99 225.79 33.79Q225.02 32.59 225.02 30.82L225.02 30.82Q225.02 28.66 226.18 26.95Q227.33 25.25 229.54 24.24Q231.74 23.23 234.86 23.23L234.86 23.23Q239.23 23.23 241.78 25.20Q244.32 27.17 244.80 30.62L244.80 30.62L238.70 30.62Q238.42 29.52 237.43 28.87Q236.45 28.22 234.82 28.22L234.82 28.22Q233.09 28.22 232.18 28.85Q231.26 29.47 231.26 30.48L231.26 30.48Q231.26 31.15 231.86 31.68Q232.46 32.21 233.57 32.57Q234.67 32.93 236.26 33.26L236.26 33.26Q239.04 33.84 241.15 34.58Q243.26 35.33 244.46 36.70Q245.66 38.06 245.66 40.66L245.66 40.66Q245.66 42.96 244.42 44.76Q243.17 46.56 240.89 47.57Q238.61 48.58 235.49 48.58Z" class="logo-mentis"/></svg>`;
|
|
36
|
-
const LIGHT_DOC_FILL = "#0f172a";
|
|
37
|
-
const LIGHT_MENTIS_FILL = "#4f46e5";
|
|
38
|
-
const DARK_DOC_FILL = "#e2e8f0";
|
|
39
|
-
const DARK_MENTIS_FILL = "#818cf8";
|
|
40
|
-
const SUPPRESSED_EVENT = "udoc:branding-suppressed";
|
|
41
|
-
const TRIPWIRE_INTERVAL_MS = 2000;
|
|
42
|
-
// Thresholds for "this is too small / faded to count as visible".
|
|
43
|
-
const MIN_VISIBLE_OPACITY = 0.05;
|
|
44
|
-
const MIN_VISIBLE_WIDTH_PX = 24;
|
|
45
|
-
const MIN_VISIBLE_HEIGHT_PX = 8;
|
|
46
|
-
export function createBranding(opts) {
|
|
47
|
-
// Per-instance random class — defeats static `.<known-name> { display: none }`
|
|
48
|
-
// attacks against the light-DOM wrapper.
|
|
49
|
-
const hostClass = "_b" + Math.random().toString(36).slice(2, 11);
|
|
50
|
-
const host = document.createElement("div");
|
|
51
|
-
host.className = hostClass;
|
|
52
|
-
const shadow = __attachShadow.call(host, { mode: "closed" });
|
|
53
|
-
const style = document.createElement("style");
|
|
54
|
-
style.textContent = buildShadowCss(opts.variant);
|
|
55
|
-
shadow.appendChild(style);
|
|
56
|
-
// The visible link: a <button role="link"> rather than <a href> so that
|
|
57
|
-
// `a[href*="docmentis.com"]` selectors find nothing even if the attacker
|
|
58
|
-
// pierces the shadow boundary.
|
|
59
|
-
const link = document.createElement("button");
|
|
60
|
-
link.type = "button";
|
|
61
|
-
link.className = "link";
|
|
62
|
-
link.setAttribute("role", "link");
|
|
63
|
-
link.setAttribute("aria-label", "Powered by docMentis");
|
|
64
|
-
link.setAttribute("part", "link");
|
|
65
|
-
link.dataset.h = ATTRIBUTION_URL_B64;
|
|
66
|
-
link.addEventListener("click", (e) => {
|
|
67
|
-
e.preventDefault();
|
|
68
|
-
e.stopPropagation();
|
|
69
|
-
try {
|
|
70
|
-
const url = atob(link.dataset.h ?? "");
|
|
71
|
-
window.open(url, "_blank", "noopener,noreferrer");
|
|
72
|
-
}
|
|
73
|
-
catch {
|
|
74
|
-
// ignore decode failures
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
if (opts.variant === "viewport-corner") {
|
|
78
|
-
// Compact "Powered by docMentis" text badge.
|
|
79
|
-
link.innerHTML = `Powered by <span class="logo-doc">doc</span><span class="logo-mentis">Mentis</span>`;
|
|
80
|
-
shadow.appendChild(link);
|
|
81
|
-
}
|
|
82
|
-
else if (opts.variant === "loading-block") {
|
|
83
|
-
link.innerHTML = LOGO_SVG;
|
|
84
|
-
shadow.appendChild(link);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
// spread-indicator: logo-only, non-interactive. The caller wraps this
|
|
88
|
-
// alongside a "Rendering..." label in its own indicator container.
|
|
89
|
-
link.innerHTML = LOGO_SVG;
|
|
90
|
-
link.setAttribute("tabindex", "-1");
|
|
91
|
-
shadow.appendChild(link);
|
|
92
|
-
}
|
|
93
|
-
// ---- Light-DOM hardening on the host ----
|
|
94
|
-
// Inline !important styles win against external !important rules (CSS spec).
|
|
95
|
-
// We re-apply these whenever the host's style attribute is touched.
|
|
96
|
-
function applyHostInlineStyles() {
|
|
97
|
-
const decls = [
|
|
98
|
-
"visibility: visible !important",
|
|
99
|
-
"opacity: 1 !important",
|
|
100
|
-
"clip: auto !important",
|
|
101
|
-
"clip-path: none !important",
|
|
102
|
-
"filter: none !important",
|
|
103
|
-
"pointer-events: auto !important",
|
|
104
|
-
// Variant-specific layout. Crucially these include !important `display`
|
|
105
|
-
// so that an external `display: none !important` cannot collapse us.
|
|
106
|
-
];
|
|
107
|
-
if (opts.variant === "viewport-corner") {
|
|
108
|
-
decls.push("display: inline-flex !important", "position: absolute !important", "right: 18px !important", "bottom: 4px !important", "z-index: 10 !important");
|
|
109
|
-
}
|
|
110
|
-
else if (opts.variant === "loading-block") {
|
|
111
|
-
decls.push("display: inline-flex !important", "margin-top: 12px !important");
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
// spread-indicator: the host has no positioning of its own; the
|
|
115
|
-
// caller's wrapper handles placement and visibility.
|
|
116
|
-
decls.push("display: inline-flex !important");
|
|
117
|
-
}
|
|
118
|
-
host.style.cssText = decls.join(";");
|
|
119
|
-
}
|
|
120
|
-
applyHostInlineStyles();
|
|
121
|
-
// ---- Theme sync ----
|
|
122
|
-
// Custom properties inside the shadow read theme colors. We mirror the
|
|
123
|
-
// viewer's `udoc-viewer-dark` class onto a `data-dark` attribute on the
|
|
124
|
-
// host so `:host([data-dark])` shadow rules can pick it up.
|
|
125
|
-
let themeObserver = null;
|
|
126
|
-
function setupThemeSync() {
|
|
127
|
-
const root = host.closest(".udoc-viewer-root");
|
|
128
|
-
if (!root)
|
|
129
|
-
return;
|
|
130
|
-
const apply = () => {
|
|
131
|
-
if (root.classList.contains("udoc-viewer-dark")) {
|
|
132
|
-
host.setAttribute("data-dark", "");
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
host.removeAttribute("data-dark");
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
apply();
|
|
139
|
-
themeObserver = new MutationObserver(apply);
|
|
140
|
-
themeObserver.observe(root, { attributes: true, attributeFilter: ["class"] });
|
|
141
|
-
}
|
|
142
|
-
// ---- Tamper restoration ----
|
|
143
|
-
// Re-insert the host if the attacker (or our own re-render) removes it.
|
|
144
|
-
// We deliberately do NOT observe attribute mutations on the host: doing so
|
|
145
|
-
// creates a feedback loop because our own `style.cssText` writes count as
|
|
146
|
-
// mutations. The closed shadow root blocks the CSS-injection attack we
|
|
147
|
-
// care about, and the periodic tripwire check (viewport-corner only)
|
|
148
|
-
// re-applies inline styles every 2s if anything has drifted.
|
|
149
|
-
let parentRef = null;
|
|
150
|
-
let parentObserver = null;
|
|
151
|
-
function setupTamperProtection() {
|
|
152
|
-
parentRef = host.parentNode;
|
|
153
|
-
if (!parentRef)
|
|
154
|
-
return;
|
|
155
|
-
parentObserver = new MutationObserver(() => {
|
|
156
|
-
if (parentRef && !parentRef.contains(host)) {
|
|
157
|
-
parentRef.appendChild(host);
|
|
158
|
-
applyHostInlineStyles();
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
parentObserver.observe(parentRef, { childList: true });
|
|
162
|
-
}
|
|
163
|
-
// ---- Visibility tripwire ----
|
|
164
|
-
let tripwireInterval = null;
|
|
165
|
-
let intersectionObserver = null;
|
|
166
|
-
let suppressed = false;
|
|
167
|
-
function trigger(reason) {
|
|
168
|
-
if (suppressed)
|
|
169
|
-
return;
|
|
170
|
-
suppressed = true;
|
|
171
|
-
try {
|
|
172
|
-
host.dispatchEvent(new CustomEvent(SUPPRESSED_EVENT, {
|
|
173
|
-
bubbles: true,
|
|
174
|
-
composed: true,
|
|
175
|
-
detail: { reason, variant: opts.variant },
|
|
176
|
-
}));
|
|
177
|
-
}
|
|
178
|
-
catch {
|
|
179
|
-
// ignore
|
|
180
|
-
}
|
|
181
|
-
try {
|
|
182
|
-
opts.onSuppressed?.({ reason });
|
|
183
|
-
}
|
|
184
|
-
catch {
|
|
185
|
-
// ignore handler errors
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function checkVisibility() {
|
|
189
|
-
if (suppressed)
|
|
190
|
-
return;
|
|
191
|
-
if (!host.isConnected) {
|
|
192
|
-
trigger("host-disconnected");
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
// Reapply hardening before measuring so we don't flag transient drift.
|
|
196
|
-
if (host.className !== hostClass)
|
|
197
|
-
host.className = hostClass;
|
|
198
|
-
applyHostInlineStyles();
|
|
199
|
-
const cs = __getComputedStyle(host);
|
|
200
|
-
const rect = host.getBoundingClientRect();
|
|
201
|
-
if (cs.display === "none")
|
|
202
|
-
return trigger("display:none");
|
|
203
|
-
if (cs.visibility === "hidden" || cs.visibility === "collapse")
|
|
204
|
-
return trigger(`visibility:${cs.visibility}`);
|
|
205
|
-
if (parseFloat(cs.opacity) < MIN_VISIBLE_OPACITY)
|
|
206
|
-
return trigger(`opacity:${cs.opacity}`);
|
|
207
|
-
if (cs.clip !== "auto" && cs.clip !== "")
|
|
208
|
-
return trigger(`clip:${cs.clip}`);
|
|
209
|
-
if (cs.clipPath && cs.clipPath !== "none")
|
|
210
|
-
return trigger(`clip-path:${cs.clipPath}`);
|
|
211
|
-
if (rect.width < MIN_VISIBLE_WIDTH_PX)
|
|
212
|
-
return trigger(`width:${rect.width}`);
|
|
213
|
-
if (rect.height < MIN_VISIBLE_HEIGHT_PX)
|
|
214
|
-
return trigger(`height:${rect.height}`);
|
|
215
|
-
// font-size collapse hides the viewport-corner text badge specifically.
|
|
216
|
-
if (opts.variant === "viewport-corner" && parseFloat(cs.fontSize) < 6)
|
|
217
|
-
return trigger(`font-size:${cs.fontSize}`);
|
|
218
|
-
// transform: scale(0) reduces the painted area to a point.
|
|
219
|
-
if (cs.transform && cs.transform !== "none") {
|
|
220
|
-
const m = cs.transform.match(/matrix\(([-0-9.,\s]+)\)/);
|
|
221
|
-
if (m) {
|
|
222
|
-
const parts = m[1].split(",").map((s) => parseFloat(s.trim()));
|
|
223
|
-
const a = parts[0];
|
|
224
|
-
const d = parts[3];
|
|
225
|
-
if (Math.abs(a) < 0.05 || Math.abs(d) < 0.05)
|
|
226
|
-
return trigger(`transform:${cs.transform}`);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function setupTripwire() {
|
|
231
|
-
if (opts.variant !== "viewport-corner")
|
|
232
|
-
return;
|
|
233
|
-
// Initial check after a frame so layout has settled.
|
|
234
|
-
requestAnimationFrame(checkVisibility);
|
|
235
|
-
tripwireInterval = setInterval(checkVisibility, TRIPWIRE_INTERVAL_MS);
|
|
236
|
-
try {
|
|
237
|
-
intersectionObserver = new IntersectionObserver(() => checkVisibility(), {
|
|
238
|
-
threshold: [0, 0.01, 0.5, 1],
|
|
239
|
-
});
|
|
240
|
-
intersectionObserver.observe(host);
|
|
241
|
-
}
|
|
242
|
-
catch {
|
|
243
|
-
// IntersectionObserver should be available in all supported browsers
|
|
244
|
-
// (Chrome 51+, Firefox 55+, Safari 12.1+); ignore if not.
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function start() {
|
|
248
|
-
setupThemeSync();
|
|
249
|
-
setupTamperProtection();
|
|
250
|
-
setupTripwire();
|
|
251
|
-
}
|
|
252
|
-
function destroy() {
|
|
253
|
-
themeObserver?.disconnect();
|
|
254
|
-
parentObserver?.disconnect();
|
|
255
|
-
intersectionObserver?.disconnect();
|
|
256
|
-
if (tripwireInterval !== null)
|
|
257
|
-
clearInterval(tripwireInterval);
|
|
258
|
-
host.remove();
|
|
259
|
-
}
|
|
260
|
-
return { el: host, start, destroy };
|
|
261
|
-
}
|
|
262
|
-
function buildShadowCss(variant) {
|
|
263
|
-
// Let font-family / line-height inherit naturally from the host page so
|
|
264
|
-
// the branding visually matches the rest of the viewer (which also inherits).
|
|
265
|
-
const common = `
|
|
266
|
-
:host, :host * {
|
|
267
|
-
box-sizing: border-box;
|
|
268
|
-
}
|
|
269
|
-
.link {
|
|
270
|
-
all: unset;
|
|
271
|
-
cursor: pointer;
|
|
272
|
-
font-size: 12px;
|
|
273
|
-
font-weight: 500;
|
|
274
|
-
color: ${LIGHT_DOC_FILL};
|
|
275
|
-
text-decoration: none;
|
|
276
|
-
}
|
|
277
|
-
:host([data-dark]) .link {
|
|
278
|
-
color: ${DARK_DOC_FILL};
|
|
279
|
-
}
|
|
280
|
-
.logo-doc { fill: ${LIGHT_DOC_FILL}; }
|
|
281
|
-
.logo-mentis { fill: ${LIGHT_MENTIS_FILL}; font-weight: 700; }
|
|
282
|
-
:host([data-dark]) .logo-doc { fill: ${DARK_DOC_FILL}; }
|
|
283
|
-
:host([data-dark]) .logo-mentis { fill: ${DARK_MENTIS_FILL}; }
|
|
284
|
-
`;
|
|
285
|
-
if (variant === "viewport-corner") {
|
|
286
|
-
return `${common}
|
|
287
|
-
.link {
|
|
288
|
-
display: inline-block;
|
|
289
|
-
padding: 2px 6px;
|
|
290
|
-
opacity: 0.5;
|
|
291
|
-
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
|
|
292
|
-
white-space: nowrap;
|
|
293
|
-
transition: opacity 0.15s ease;
|
|
294
|
-
}
|
|
295
|
-
.link:hover, .link:focus-visible { opacity: 1.0; }
|
|
296
|
-
:host([data-dark]) .link { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
|
|
297
|
-
.logo-doc, .logo-mentis { font-weight: 700; }
|
|
298
|
-
.logo-doc { color: ${LIGHT_DOC_FILL}; fill: ${LIGHT_DOC_FILL}; }
|
|
299
|
-
.logo-mentis { color: ${LIGHT_MENTIS_FILL}; fill: ${LIGHT_MENTIS_FILL}; }
|
|
300
|
-
:host([data-dark]) .logo-doc { color: ${DARK_DOC_FILL}; fill: ${DARK_DOC_FILL}; }
|
|
301
|
-
:host([data-dark]) .logo-mentis { color: ${DARK_MENTIS_FILL}; fill: ${DARK_MENTIS_FILL}; }
|
|
302
|
-
`;
|
|
303
|
-
}
|
|
304
|
-
if (variant === "loading-block") {
|
|
305
|
-
return `${common}
|
|
306
|
-
.link {
|
|
307
|
-
display: inline-block;
|
|
308
|
-
margin: 0;
|
|
309
|
-
padding: 0;
|
|
310
|
-
}
|
|
311
|
-
svg {
|
|
312
|
-
display: block;
|
|
313
|
-
width: 124px;
|
|
314
|
-
height: 20px;
|
|
315
|
-
}
|
|
316
|
-
`;
|
|
317
|
-
}
|
|
318
|
-
// spread-indicator (logo only)
|
|
319
|
-
return `${common}
|
|
320
|
-
.link {
|
|
321
|
-
display: inline-block;
|
|
322
|
-
cursor: default;
|
|
323
|
-
pointer-events: none;
|
|
324
|
-
padding: 0;
|
|
325
|
-
margin: 0;
|
|
326
|
-
}
|
|
327
|
-
svg {
|
|
328
|
-
display: block;
|
|
329
|
-
width: 124px;
|
|
330
|
-
height: 20px;
|
|
331
|
-
}
|
|
332
|
-
`;
|
|
333
|
-
}
|
|
334
|
-
//# sourceMappingURL=Branding.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Branding.js","sourceRoot":"","sources":["../../../../../src/ui/viewer/components/Branding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,6EAA6E;AAC7E,4EAA4E;AAC5E,uEAAuE;AACvE,0CAA0C;AAC1C,MAAM,cAAc,GAChB,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAE,SAAmB,CAAC;AAC3F,MAAM,kBAAkB,GACpB,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAE,SAAmB,CAAC;AAEhG,0EAA0E;AAC1E,mEAAmE;AACnE,MAAM,mBAAmB,GAAG,8BAA8B,CAAC;AAE3D,4EAA4E;AAC5E,8DAA8D;AAC9D,MAAM,QAAQ,GAAG,+0KAA+0K,CAAC;AAEj2K,MAAM,cAAc,GAAG,SAAS,CAAC;AACjC,MAAM,iBAAiB,GAAG,SAAS,CAAC;AACpC,MAAM,aAAa,GAAG,SAAS,CAAC;AAChC,MAAM,gBAAgB,GAAG,SAAS,CAAC;AA2BnC,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AACpD,MAAM,oBAAoB,GAAG,IAAI,CAAC;AAClC,kEAAkE;AAClE,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACjC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEhC,MAAM,UAAU,cAAc,CAAC,IAAqB;IAChD,+EAA+E;IAC/E,yCAAyC;IACzC,MAAM,SAA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ACxB,aAAa,EAAE,CAAC;IACpB,CAAC;IAED,SAAS,OAAO;QACZ,aAAa,EAAE,UAAU,EAAE,CAAC;QAC5B,cAAc,EAAE,UAAU,EAAE,CAAC;QAC7B,oBAAoB,EAAE,UAAU,EAAE,CAAC;QACnC,IAAI,gBAAgB,KAAK,IAAI;YAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAC/D,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AACxC,CAAC;AAED,SAAS,cAAc,CAAC,OAAwB;IAC5C,wEAAwE;IACxE,8EAA8E;IAC9E,MAAM,MAAM,GAAG;;;;;;;;;qBASE,cAAc;;;;qBAId,aAAa;;4BAEN,cAAc;+BACX,iBAAiB;+CACD,aAAa;kDACV,gBAAgB;KAC7D,CAAC;IAEF,IAAI,OAAO,KAAK,iBAAiB,EAAE,CAAC;QAChC,OAAO,GAAG,MAAM;;;;;;;;;;;;iCAYS,cAAc,WAAW,cAAc;oCACpC,iBAAiB,WAAW,iBAAiB;oDAC7B,aAAa,WAAW,aAAa;uDAClC,gBAAgB,WAAW,gBAAgB;SACzF,CAAC;IACN,CAAC;IACD,IAAI,OAAO,KAAK,eAAe,EAAE,CAAC;QAC9B,OAAO,GAAG,MAAM;;;;;;;;;;;SAWf,CAAC;IACN,CAAC;IACD,+BAA+B;IAC/B,OAAO,GAAG,MAAM;;;;;;;;;;;;;KAaf,CAAC;AACN,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reusable color select component with a trigger button and floating panel.
|
|
3
|
-
* Supports "stroke" variant (outlined rings) and "fill" variant (solid discs).
|
|
4
|
-
*/
|
|
5
|
-
export interface ColorSelectConfig {
|
|
6
|
-
variant: "stroke" | "fill";
|
|
7
|
-
label: string;
|
|
8
|
-
noneLabel: string;
|
|
9
|
-
onChange: (color: string | null) => void;
|
|
10
|
-
/** Called when a color is selected (to close external panel state, etc.) */
|
|
11
|
-
onSelect?: () => void;
|
|
12
|
-
}
|
|
13
|
-
export interface ColorSelectInstance {
|
|
14
|
-
/** Trigger button — place in the subtoolbar */
|
|
15
|
-
el: HTMLButtonElement;
|
|
16
|
-
/** Floating panel — mount to subtoolbar-slot container */
|
|
17
|
-
panel: HTMLElement;
|
|
18
|
-
/** Update displayed color without firing onChange */
|
|
19
|
-
update(color: string | null): void;
|
|
20
|
-
open(anchorRect: DOMRect, containerRect: DOMRect): void;
|
|
21
|
-
close(): void;
|
|
22
|
-
isOpen(): boolean;
|
|
23
|
-
destroy(): void;
|
|
24
|
-
}
|
|
25
|
-
export declare function createColorSelect(config: ColorSelectConfig): ColorSelectInstance;
|
|
26
|
-
//# sourceMappingURL=ColorSelect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ColorSelect.d.ts","sourceRoot":"","sources":["../../../../../src/ui/viewer/components/ColorSelect.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoBH,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAChC,+CAA+C;IAC/C,EAAE,EAAE,iBAAiB,CAAC;IACtB,0DAA0D;IAC1D,KAAK,EAAE,WAAW,CAAC;IACnB,qDAAqD;IACrD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IACxD,KAAK,IAAI,IAAI,CAAC;IACd,MAAM,IAAI,OAAO,CAAC;IAClB,OAAO,IAAI,IAAI,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,mBAAmB,CAuHhF"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reusable color select component with a trigger button and floating panel.
|
|
3
|
-
* Supports "stroke" variant (outlined rings) and "fill" variant (solid discs).
|
|
4
|
-
*/
|
|
5
|
-
const COLOR_PRESETS = [
|
|
6
|
-
{ hex: "#ff0000", name: "Red" },
|
|
7
|
-
{ hex: "#ff8800", name: "Orange" },
|
|
8
|
-
{ hex: "#ffcc00", name: "Yellow" },
|
|
9
|
-
{ hex: "#88cc00", name: "Lime" },
|
|
10
|
-
{ hex: "#00cc00", name: "Green" },
|
|
11
|
-
{ hex: "#00cccc", name: "Cyan" },
|
|
12
|
-
{ hex: "#0088ff", name: "Blue" },
|
|
13
|
-
{ hex: "#8800ff", name: "Purple" },
|
|
14
|
-
{ hex: "#ff00cc", name: "Pink" },
|
|
15
|
-
{ hex: "#884400", name: "Brown" },
|
|
16
|
-
{ hex: "#000000", name: "Black" },
|
|
17
|
-
{ hex: "#444444", name: "Dark Gray" },
|
|
18
|
-
{ hex: "#999999", name: "Gray" },
|
|
19
|
-
{ hex: "#cccccc", name: "Light Gray" },
|
|
20
|
-
{ hex: "#ffffff", name: "White" },
|
|
21
|
-
];
|
|
22
|
-
export function createColorSelect(config) {
|
|
23
|
-
let currentColor = null;
|
|
24
|
-
// ---- Trigger button ----
|
|
25
|
-
const el = document.createElement("button");
|
|
26
|
-
el.className = "udoc-subtoolbar__dropdown-trigger";
|
|
27
|
-
el.title = config.label;
|
|
28
|
-
const swatch = document.createElement("span");
|
|
29
|
-
swatch.className = "udoc-subtoolbar__color-swatch";
|
|
30
|
-
const arrow = document.createElement("span");
|
|
31
|
-
arrow.className = "udoc-subtoolbar__dropdown-arrow";
|
|
32
|
-
arrow.textContent = "\u25BE";
|
|
33
|
-
el.append(swatch, arrow);
|
|
34
|
-
// ---- Floating panel ----
|
|
35
|
-
const panel = document.createElement("div");
|
|
36
|
-
panel.className = "udoc-color-panel";
|
|
37
|
-
panel.addEventListener("click", (e) => e.stopPropagation());
|
|
38
|
-
// ---- Update trigger swatch ----
|
|
39
|
-
function updateSwatch(color) {
|
|
40
|
-
swatch.classList.remove("udoc-subtoolbar__color-swatch--stroke", "udoc-subtoolbar__color-swatch--stroke-none", "udoc-subtoolbar__color-swatch--fill", "udoc-subtoolbar__color-swatch--fill-none");
|
|
41
|
-
swatch.style.removeProperty("--swatch-color");
|
|
42
|
-
if (config.variant === "stroke") {
|
|
43
|
-
swatch.classList.add("udoc-subtoolbar__color-swatch--stroke");
|
|
44
|
-
if (color)
|
|
45
|
-
swatch.style.setProperty("--swatch-color", color);
|
|
46
|
-
else
|
|
47
|
-
swatch.classList.add("udoc-subtoolbar__color-swatch--stroke-none");
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
swatch.classList.add("udoc-subtoolbar__color-swatch--fill");
|
|
51
|
-
if (color)
|
|
52
|
-
swatch.style.setProperty("--swatch-color", color);
|
|
53
|
-
else
|
|
54
|
-
swatch.classList.add("udoc-subtoolbar__color-swatch--fill-none");
|
|
55
|
-
}
|
|
56
|
-
el.setAttribute("aria-label", `${config.label} ${color ?? "none"}`);
|
|
57
|
-
}
|
|
58
|
-
// ---- Rebuild panel grid ----
|
|
59
|
-
function rebuildPanel(color) {
|
|
60
|
-
panel.innerHTML = "";
|
|
61
|
-
const grid = document.createElement("div");
|
|
62
|
-
grid.className = "udoc-color-panel__grid";
|
|
63
|
-
grid.classList.add(config.variant === "stroke" ? "udoc-color-panel__grid--stroke" : "udoc-color-panel__grid--fill");
|
|
64
|
-
// None option
|
|
65
|
-
const noBtn = document.createElement("button");
|
|
66
|
-
noBtn.className = "udoc-color-panel__swatch udoc-color-panel__swatch--none";
|
|
67
|
-
noBtn.classList.add(config.variant === "stroke"
|
|
68
|
-
? "udoc-color-panel__swatch--none-stroke"
|
|
69
|
-
: "udoc-color-panel__swatch--none-fill");
|
|
70
|
-
if (color === null)
|
|
71
|
-
noBtn.classList.add("udoc-color-panel__swatch--active");
|
|
72
|
-
noBtn.title = config.noneLabel;
|
|
73
|
-
noBtn.addEventListener("click", (e) => {
|
|
74
|
-
e.stopPropagation();
|
|
75
|
-
config.onSelect?.();
|
|
76
|
-
config.onChange(null);
|
|
77
|
-
});
|
|
78
|
-
grid.appendChild(noBtn);
|
|
79
|
-
for (const preset of COLOR_PRESETS) {
|
|
80
|
-
const sw = document.createElement("button");
|
|
81
|
-
sw.className = "udoc-color-panel__swatch";
|
|
82
|
-
if (color === preset.hex)
|
|
83
|
-
sw.classList.add("udoc-color-panel__swatch--active");
|
|
84
|
-
sw.style.setProperty("--swatch-color", preset.hex);
|
|
85
|
-
sw.title = preset.name;
|
|
86
|
-
sw.addEventListener("click", (e) => {
|
|
87
|
-
e.stopPropagation();
|
|
88
|
-
config.onSelect?.();
|
|
89
|
-
config.onChange(preset.hex);
|
|
90
|
-
});
|
|
91
|
-
grid.appendChild(sw);
|
|
92
|
-
}
|
|
93
|
-
panel.appendChild(grid);
|
|
94
|
-
}
|
|
95
|
-
// ---- Public API ----
|
|
96
|
-
function update(color) {
|
|
97
|
-
currentColor = color;
|
|
98
|
-
updateSwatch(color);
|
|
99
|
-
rebuildPanel(color);
|
|
100
|
-
}
|
|
101
|
-
function open(anchorRect, containerRect) {
|
|
102
|
-
panel.style.left = `${anchorRect.left - containerRect.left}px`;
|
|
103
|
-
panel.classList.add("udoc-color-panel--open");
|
|
104
|
-
}
|
|
105
|
-
function close() {
|
|
106
|
-
panel.classList.remove("udoc-color-panel--open");
|
|
107
|
-
}
|
|
108
|
-
function isOpen() {
|
|
109
|
-
return panel.classList.contains("udoc-color-panel--open");
|
|
110
|
-
}
|
|
111
|
-
function destroy() {
|
|
112
|
-
el.remove();
|
|
113
|
-
panel.remove();
|
|
114
|
-
}
|
|
115
|
-
// Initial render
|
|
116
|
-
updateSwatch(currentColor);
|
|
117
|
-
rebuildPanel(currentColor);
|
|
118
|
-
return { el, panel, update, open, close, isOpen, destroy };
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=ColorSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ColorSelect.js","sourceRoot":"","sources":["../../../../../src/ui/viewer/components/ColorSelect.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,aAAa,GAAoC;IACnD,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE;IAC/B,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;IACjC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;IACjC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;IACjC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE;IACrC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;IAChC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE;IACtC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;CACpC,CAAC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AE,aAAsB;QACrD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,UAAU,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,IAAI,CAAC;QAC/D,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IAClD,CAAC;IAED,SAAS,KAAK;QACV,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IACrD,CAAC;IAED,SAAS,MAAM;QACX,OAAO,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IAC9D,CAAC;IAED,SAAS,OAAO;QACZ,EAAE,CAAC,MAAM,EAAE,CAAC;QACZ,KAAK,CAAC,MAAM,EAAE,CAAC;IACnB,CAAC;IAED,iBAAiB;IACjB,YAAY,CAAC,YAAY,CAAC,CAAC;IAC3B,YAAY,CAAC,YAAY,CAAC,CAAC;IAE3B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC/D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Store } from "../../framework/store";
|
|
2
|
-
import type { ViewerState } from "../state";
|
|
3
|
-
import type { Action } from "../actions";
|
|
4
|
-
import type { I18n } from "../i18n/index.js";
|
|
5
|
-
export declare function createFloatingToolbar(): {
|
|
6
|
-
el: HTMLDivElement;
|
|
7
|
-
mount: (container: HTMLElement, store: Store<ViewerState, Action>, i18n: I18n) => void;
|
|
8
|
-
destroy: () => void;
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=FloatingToolbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/ui/viewer/components/FloatingToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,WAAW,EAAY,MAAM,UAAU,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAIzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAmC7C,wBAAgB,qBAAqB;;uBAoIP,WAAW,SAAS,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAG,IAAI;mBA0RvE,IAAI;EAU3B"}
|