@react-pdf-kit/viewer 0.0.0-experimental.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/README.md +204 -0
- package/dist/Combination-54a77a7a.js +701 -0
- package/dist/MostPageTool.module-13578ad6.js +6 -0
- package/dist/OtherTool.module-a4be5f1f.js +6 -0
- package/dist/Paginate.module-4eef00aa.js +8 -0
- package/dist/PaginationContext-9217cab4.js +201 -0
- package/dist/RPLayout.module-b4b23e29.js +14 -0
- package/dist/RPSplitter-f6acf13b.js +71 -0
- package/dist/RPToolbar.module-27d7fe77.js +10 -0
- package/dist/RotateTool.module-67946714.js +6 -0
- package/dist/SearchTool.module-99f60dc7.js +16 -0
- package/dist/ToolbarLayout.module-6e339802.js +12 -0
- package/dist/ZoomTool.module-7082af8c.js +12 -0
- package/dist/assets/style.css +1 -0
- package/dist/assets/style.js +77 -0
- package/dist/clsx-0c6e471a.js +22 -0
- package/dist/components/RPConfig.js +17 -0
- package/dist/components/RPController.js +136 -0
- package/dist/components/RPDropFileZone.js +53 -0
- package/dist/components/RPPages.js +1049 -0
- package/dist/components/RPProvider.js +126 -0
- package/dist/components/RPTheme.js +22 -0
- package/dist/components/icons/CheckIcon.js +22 -0
- package/dist/components/icons/ChevronDownIcon.js +23 -0
- package/dist/components/icons/ChevronUpIcon.js +22 -0
- package/dist/components/icons/ClearIcon.js +25 -0
- package/dist/components/icons/ClockwiseIcon.js +22 -0
- package/dist/components/icons/CloseIcon.js +22 -0
- package/dist/components/icons/DarkPdfIcon.js +15 -0
- package/dist/components/icons/DualPageIcon.js +22 -0
- package/dist/components/icons/DualPageWithCoverIcon.js +22 -0
- package/dist/components/icons/FileDownloadDefaultIcon.js +23 -0
- package/dist/components/icons/FileUploadDefaultIcon.js +23 -0
- package/dist/components/icons/FullScreenIcon.js +22 -0
- package/dist/components/icons/GoToDownIcon.js +22 -0
- package/dist/components/icons/HandModeDefaultIcon.js +22 -0
- package/dist/components/icons/HorizontalScrollingIcon.js +24 -0
- package/dist/components/icons/InfoIcon.js +22 -0
- package/dist/components/icons/LightPdfIcon.js +15 -0
- package/dist/components/icons/LoaderIcon.js +17 -0
- package/dist/components/icons/MoonIcon.js +22 -0
- package/dist/components/icons/PageScrollingIcon.js +24 -0
- package/dist/components/icons/PrintDefaultIcon.js +23 -0
- package/dist/components/icons/SearchIcon.js +22 -0
- package/dist/components/icons/SinglePageIcon.js +22 -0
- package/dist/components/icons/SunIcon.js +25 -0
- package/dist/components/icons/TextSelectionDefaultIcon.js +23 -0
- package/dist/components/icons/ThreeDotIcon.js +22 -0
- package/dist/components/icons/Thumbnail.js +54 -0
- package/dist/components/icons/VerticalScrollingIcon.js +24 -0
- package/dist/components/icons/WrappedScrollingIcon.js +24 -0
- package/dist/components/icons/ZoomInIcon.js +22 -0
- package/dist/components/icons/ZoomOutIcon.js +22 -0
- package/dist/components/layout/Container.js +21 -0
- package/dist/components/layout/LayoutContainer.js +35 -0
- package/dist/components/layout/LayoutWrapper.js +11 -0
- package/dist/components/layout/RPDefaultLayout.js +238 -0
- package/dist/components/layout/RPLayout.js +213 -0
- package/dist/components/layout/SkipLink.js +29 -0
- package/dist/components/layout/WrapperLayout.js +26 -0
- package/dist/components/layout/sidebar/RPSidebar.js +107 -0
- package/dist/components/layout/sidebar/RPSplitter.js +8 -0
- package/dist/components/layout/sidebar/Thumbnail.js +145 -0
- package/dist/components/layout/sidebar/Thumbnails.js +77 -0
- package/dist/components/layout/toolbar/DarkModeTool.js +38 -0
- package/dist/components/layout/toolbar/DocumentDialog.js +314 -0
- package/dist/components/layout/toolbar/DocumentProperties.js +40 -0
- package/dist/components/layout/toolbar/FileDownloadTool.js +50 -0
- package/dist/components/layout/toolbar/FileUploadTool.js +49 -0
- package/dist/components/layout/toolbar/FullScreenTool.js +74 -0
- package/dist/components/layout/toolbar/MenuItem.js +19 -0
- package/dist/components/layout/toolbar/MenuSeparator.js +15 -0
- package/dist/components/layout/toolbar/MostPageTool.js +81 -0
- package/dist/components/layout/toolbar/OtherTool.js +199 -0
- package/dist/components/layout/toolbar/Paginate.js +145 -0
- package/dist/components/layout/toolbar/PrintTool.js +72 -0
- package/dist/components/layout/toolbar/PropertyItem.js +12 -0
- package/dist/components/layout/toolbar/RPMenuItem.js +33 -0
- package/dist/components/layout/toolbar/RPMoreOptions.js +220 -0
- package/dist/components/layout/toolbar/RPToolbar.js +151 -0
- package/dist/components/layout/toolbar/RPToolbarEnd.js +121 -0
- package/dist/components/layout/toolbar/RotateTool.js +60 -0
- package/dist/components/layout/toolbar/ScrollModeTool.js +68 -0
- package/dist/components/layout/toolbar/SearchCloseButton.js +32 -0
- package/dist/components/layout/toolbar/SearchResultNavigator.js +109 -0
- package/dist/components/layout/toolbar/SearchTool.js +264 -0
- package/dist/components/layout/toolbar/SelectionModeTool.js +52 -0
- package/dist/components/layout/toolbar/ThumbnailTool.js +39 -0
- package/dist/components/layout/toolbar/ToolbarCustom.js +108 -0
- package/dist/components/layout/toolbar/ToolbarDefault.js +192 -0
- package/dist/components/layout/toolbar/ToolbarLayout.js +154 -0
- package/dist/components/layout/toolbar/ViewModeTool.js +63 -0
- package/dist/components/layout/toolbar/ZoomTool.js +150 -0
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +54 -0
- package/dist/components/layout/toolbar/tools/DualPageTool.js +26 -0
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +204 -0
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +35 -0
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +34 -0
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +199 -0
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +34 -0
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/InputPageTool.js +92 -0
- package/dist/components/layout/toolbar/tools/LastPageTool.js +199 -0
- package/dist/components/layout/toolbar/tools/NextPageTool.js +62 -0
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +62 -0
- package/dist/components/layout/toolbar/tools/PrintTool.js +35 -0
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +47 -0
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +48 -0
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +39 -0
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +26 -0
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +36 -0
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +46 -0
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +37 -0
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +58 -0
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +27 -0
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +133 -0
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +58 -0
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +148 -0
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +42 -0
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +29 -0
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +52 -0
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +51 -0
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +43 -0
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +87 -0
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +52 -0
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +64 -0
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +73 -0
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +58 -0
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +67 -0
- package/dist/components/page/AnnotationLayer.js +145 -0
- package/dist/components/page/CanvasLayer.js +88 -0
- package/dist/components/page/CustomElement.js +53 -0
- package/dist/components/page/DualPage.js +100 -0
- package/dist/components/page/DualPageWithCover.js +132 -0
- package/dist/components/page/RPPage.js +144 -0
- package/dist/components/page/SinglePage.js +90 -0
- package/dist/components/page/TextHighlightLayer.js +198 -0
- package/dist/components/page/TextLayer.js +203 -0
- package/dist/components/page/searchHighlight.js +37 -0
- package/dist/components/ui/Button.js +25 -0
- package/dist/components/ui/Checkbox.js +273 -0
- package/dist/components/ui/DropDown.js +36 -0
- package/dist/components/ui/Input.js +28 -0
- package/dist/components/ui/LoadingIndicator.js +47 -0
- package/dist/components/ui/PasswordModal.js +75 -0
- package/dist/components/ui/RPTooltip.js +571 -0
- package/dist/contexts/ConfigContext.js +13 -0
- package/dist/contexts/DarkModeContext.js +28 -0
- package/dist/contexts/DimensionPagesContext.js +89 -0
- package/dist/contexts/DocumentPasswordContext.js +40 -0
- package/dist/contexts/DownloadContext.js +21 -0
- package/dist/contexts/DropFileZoneContext.js +62 -0
- package/dist/contexts/ElementPageContext.js +139 -0
- package/dist/contexts/EventCallbackContext.js +34 -0
- package/dist/contexts/FileInputContext.js +49 -0
- package/dist/contexts/FullScreenContext.js +25 -0
- package/dist/contexts/GlobalCurrentPage.js +19 -0
- package/dist/contexts/HighlightContext.js +31 -0
- package/dist/contexts/IconContext.js +11 -0
- package/dist/contexts/IconToolContext.js +13 -0
- package/dist/contexts/InitialStateContext.js +13 -0
- package/dist/contexts/LayerContext.js +8 -0
- package/dist/contexts/LayoutContainerContext.js +16 -0
- package/dist/contexts/LicenseContext.js +16 -0
- package/dist/contexts/LoaderContext.js +27 -0
- package/dist/contexts/LocalizationContext.js +34 -0
- package/dist/contexts/OtherToolContext.js +18 -0
- package/dist/contexts/PageViewportContext.js +8 -0
- package/dist/contexts/PagesRotateContext.js +43 -0
- package/dist/contexts/PaginationContext.js +39 -0
- package/dist/contexts/PrintContext.js +78 -0
- package/dist/contexts/RPDocumentContext.js +69 -0
- package/dist/contexts/RenderQueueProvider.js +72 -0
- package/dist/contexts/RenderedPagesCache.js +14 -0
- package/dist/contexts/RotationContext.js +38 -0
- package/dist/contexts/ScrollModeContext.js +22 -0
- package/dist/contexts/SearchContext.js +96 -0
- package/dist/contexts/SelectionModeContext.js +24 -0
- package/dist/contexts/SmoothScaleContext.js +67 -0
- package/dist/contexts/SmoothScrollContext.js +12 -0
- package/dist/contexts/ThemeContext.js +7 -0
- package/dist/contexts/ThumbnailsContext.js +43 -0
- package/dist/contexts/ToolComponentContext.js +52 -0
- package/dist/contexts/ToolbarComponentContext.js +48 -0
- package/dist/contexts/ViewModeContext.js +33 -0
- package/dist/contexts/ViewportContext.js +85 -0
- package/dist/contexts/VirtualGridContext.js +15 -0
- package/dist/contexts/VirtualScrollContext.js +53 -0
- package/dist/contexts/ZoomContext.js +107 -0
- package/dist/de_DE-a553b162.js +489 -0
- package/dist/floating-ui.react-dom-5ec29bd6.js +1327 -0
- package/dist/index-4baea9b5.js +1198 -0
- package/dist/index-655864a7.js +27 -0
- package/dist/index-c0faa594.js +309 -0
- package/dist/index-e3ee9457.js +150 -0
- package/dist/libInjectCss.js +9 -0
- package/dist/main.js +289 -0
- package/dist/types/assets/style.d.ts +1 -0
- package/dist/types/components/RPConfig.d.ts +3 -0
- package/dist/types/components/RPController.d.ts +3 -0
- package/dist/types/components/RPDropFileZone.d.ts +2 -0
- package/dist/types/components/RPPages.d.ts +2 -0
- package/dist/types/components/RPProvider.d.ts +3 -0
- package/dist/types/components/RPTheme.d.ts +3 -0
- package/dist/types/components/icons/CheckIcon.d.ts +2 -0
- package/dist/types/components/icons/ChevronDownIcon.d.ts +2 -0
- package/dist/types/components/icons/ChevronUpIcon.d.ts +2 -0
- package/dist/types/components/icons/ClearIcon.d.ts +2 -0
- package/dist/types/components/icons/ClockwiseIcon.d.ts +2 -0
- package/dist/types/components/icons/CloseIcon.d.ts +2 -0
- package/dist/types/components/icons/DarkPdfIcon.d.ts +2 -0
- package/dist/types/components/icons/DualPageIcon.d.ts +2 -0
- package/dist/types/components/icons/DualPageWithCoverIcon.d.ts +2 -0
- package/dist/types/components/icons/FileDownloadDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/FileUploadDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/FullScreenIcon.d.ts +2 -0
- package/dist/types/components/icons/GoToDownIcon.d.ts +2 -0
- package/dist/types/components/icons/HandModeDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/HorizontalScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/InfoIcon.d.ts +2 -0
- package/dist/types/components/icons/LightPdfIcon.d.ts +2 -0
- package/dist/types/components/icons/LoaderIcon.d.ts +2 -0
- package/dist/types/components/icons/MoonIcon.d.ts +2 -0
- package/dist/types/components/icons/PageScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/PrintDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/SearchIcon.d.ts +2 -0
- package/dist/types/components/icons/SinglePageIcon.d.ts +2 -0
- package/dist/types/components/icons/SunIcon.d.ts +2 -0
- package/dist/types/components/icons/TextSelectionDefaultIcon.d.ts +2 -0
- package/dist/types/components/icons/ThreeDotIcon.d.ts +2 -0
- package/dist/types/components/icons/Thumbnail.d.ts +2 -0
- package/dist/types/components/icons/VerticalScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/WrappedScrollingIcon.d.ts +2 -0
- package/dist/types/components/icons/ZoomInIcon.d.ts +2 -0
- package/dist/types/components/icons/ZoomOutIcon.d.ts +2 -0
- package/dist/types/components/layout/Container.d.ts +8 -0
- package/dist/types/components/layout/LayoutContainer.d.ts +10 -0
- package/dist/types/components/layout/LayoutWrapper.d.ts +8 -0
- package/dist/types/components/layout/RPDefaultLayout.d.ts +2 -0
- package/dist/types/components/layout/RPLayout.d.ts +3 -0
- package/dist/types/components/layout/SkipLink.d.ts +7 -0
- package/dist/types/components/layout/WrapperLayout.d.ts +2 -0
- package/dist/types/components/layout/sidebar/RPSidebar.d.ts +1 -0
- package/dist/types/components/layout/sidebar/RPSplitter.d.ts +9 -0
- package/dist/types/components/layout/sidebar/Thumbnail.d.ts +11 -0
- package/dist/types/components/layout/sidebar/Thumbnails.d.ts +6 -0
- package/dist/types/components/layout/toolbar/DarkModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/DocumentDialog.d.ts +2 -0
- package/dist/types/components/layout/toolbar/DocumentProperties.d.ts +1 -0
- package/dist/types/components/layout/toolbar/FileDownloadTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/FileUploadTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/FullScreenTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/MenuItem.d.ts +6 -0
- package/dist/types/components/layout/toolbar/MenuSeparator.d.ts +1 -0
- package/dist/types/components/layout/toolbar/MostPageTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/OtherTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/Paginate.d.ts +1 -0
- package/dist/types/components/layout/toolbar/PrintTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/PropertyItem.d.ts +7 -0
- package/dist/types/components/layout/toolbar/RPMenuItem.d.ts +11 -0
- package/dist/types/components/layout/toolbar/RPMoreOptions.d.ts +3 -0
- package/dist/types/components/layout/toolbar/RPToolbar.d.ts +1 -0
- package/dist/types/components/layout/toolbar/RPToolbarEnd.d.ts +1 -0
- package/dist/types/components/layout/toolbar/RotateTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/ScrollModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/SearchCloseButton.d.ts +7 -0
- package/dist/types/components/layout/toolbar/SearchResultNavigator.d.ts +1 -0
- package/dist/types/components/layout/toolbar/SearchTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/SelectionModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/ThumbnailTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/ToolbarCustom.d.ts +3 -0
- package/dist/types/components/layout/toolbar/ToolbarDefault.d.ts +4 -0
- package/dist/types/components/layout/toolbar/ToolbarLayout.d.ts +3 -0
- package/dist/types/components/layout/toolbar/ViewModeTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/ZoomTool.d.ts +1 -0
- package/dist/types/components/layout/toolbar/tools/DocumentPropertiesTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/DualPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/DualPageWithCoverTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FileDownloadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FileUploadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FirstPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/FullScreenTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/HorizontalScrollingTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/InputPageTool.d.ts +2 -0
- package/dist/types/components/layout/toolbar/tools/LastPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/NextPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/PageScrollingTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/PreviousPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/PrintTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/RotateClockwiseTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/RotateCounterclockwiseTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/SelectionModeSwitcherTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/SinglePageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ThemeSwitcherTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ThumbnailTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/VerticalScrollingTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ZoomInTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ZoomLevelDisplay.d.ts +7 -0
- package/dist/types/components/layout/toolbar/tools/ZoomLevelTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/ZoomOutTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/defaults/RPHorizontalBar.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/defaults/RPVerticalBar.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/DocumentProperties.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/FileDownloadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/FileUploadTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/FullScreenTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/MostPageTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/PrintTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/RotateTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/ScrollModeTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/SelectionModeTool.d.ts +3 -0
- package/dist/types/components/layout/toolbar/tools/more-options/ViewModeTool.d.ts +3 -0
- package/dist/types/components/page/AnnotationLayer.d.ts +6 -0
- package/dist/types/components/page/CanvasLayer.d.ts +8 -0
- package/dist/types/components/page/CustomElement.d.ts +6 -0
- package/dist/types/components/page/DualPage.d.ts +5 -0
- package/dist/types/components/page/DualPageWithCover.d.ts +5 -0
- package/dist/types/components/page/RPPage.d.ts +5 -0
- package/dist/types/components/page/SinglePage.d.ts +5 -0
- package/dist/types/components/page/TextHighlightLayer.d.ts +10 -0
- package/dist/types/components/page/TextLayer.d.ts +6 -0
- package/dist/types/components/page/searchHighlight.d.ts +5 -0
- package/dist/types/components/ui/Button.d.ts +6 -0
- package/dist/types/components/ui/Checkbox.d.ts +10 -0
- package/dist/types/components/ui/DropDown.d.ts +10 -0
- package/dist/types/components/ui/Input.d.ts +6 -0
- package/dist/types/components/ui/LoadingIndicator.d.ts +6 -0
- package/dist/types/components/ui/PasswordModal.d.ts +3 -0
- package/dist/types/components/ui/RPTooltip.d.ts +9 -0
- package/dist/types/contexts/ConfigContext.d.ts +5 -0
- package/dist/types/contexts/DarkModeContext.d.ts +5 -0
- package/dist/types/contexts/DimensionPagesContext.d.ts +4 -0
- package/dist/types/contexts/DocumentPasswordContext.d.ts +14 -0
- package/dist/types/contexts/DownloadContext.d.ts +11 -0
- package/dist/types/contexts/DropFileZoneContext.d.ts +5 -0
- package/dist/types/contexts/ElementPageContext.d.ts +6 -0
- package/dist/types/contexts/EventCallbackContext.d.ts +5 -0
- package/dist/types/contexts/FileInputContext.d.ts +7 -0
- package/dist/types/contexts/FullScreenContext.d.ts +7 -0
- package/dist/types/contexts/GlobalCurrentPage.d.ts +11 -0
- package/dist/types/contexts/HighlightContext.d.ts +8 -0
- package/dist/types/contexts/IconContext.d.ts +7 -0
- package/dist/types/contexts/IconToolContext.d.ts +9 -0
- package/dist/types/contexts/InitialStateContext.d.ts +5 -0
- package/dist/types/contexts/LayerContext.d.ts +5 -0
- package/dist/types/contexts/LayoutContainerContext.d.ts +12 -0
- package/dist/types/contexts/LicenseContext.d.ts +7 -0
- package/dist/types/contexts/LoaderContext.d.ts +12 -0
- package/dist/types/contexts/LocalizationContext.d.ts +5 -0
- package/dist/types/contexts/OtherToolContext.d.ts +9 -0
- package/dist/types/contexts/PageViewportContext.d.ts +4 -0
- package/dist/types/contexts/PagesRotateContext.d.ts +15 -0
- package/dist/types/contexts/PaginationContext.d.ts +5 -0
- package/dist/types/contexts/PrintContext.d.ts +7 -0
- package/dist/types/contexts/RPDocumentContext.d.ts +12 -0
- package/dist/types/contexts/RenderQueueProvider.d.ts +17 -0
- package/dist/types/contexts/RenderedPagesCache.d.ts +10 -0
- package/dist/types/contexts/RotationContext.d.ts +5 -0
- package/dist/types/contexts/ScrollModeContext.d.ts +5 -0
- package/dist/types/contexts/SearchContext.d.ts +7 -0
- package/dist/types/contexts/SelectionModeContext.d.ts +5 -0
- package/dist/types/contexts/SmoothScaleContext.d.ts +16 -0
- package/dist/types/contexts/SmoothScrollContext.d.ts +8 -0
- package/dist/types/contexts/ThemeContext.d.ts +4 -0
- package/dist/types/contexts/ThumbnailsContext.d.ts +7 -0
- package/dist/types/contexts/ToolComponentContext.d.ts +12 -0
- package/dist/types/contexts/ToolbarComponentContext.d.ts +9 -0
- package/dist/types/contexts/ViewModeContext.d.ts +5 -0
- package/dist/types/contexts/ViewportContext.d.ts +28 -0
- package/dist/types/contexts/VirtualGridContext.d.ts +9 -0
- package/dist/types/contexts/VirtualScrollContext.d.ts +30 -0
- package/dist/types/contexts/ZoomContext.d.ts +5 -0
- package/dist/types/libInjectCss.d.ts +1 -0
- package/dist/types/locales/de_DE.json.d.ts +83 -0
- package/dist/types/locales/en_US.json.d.ts +83 -0
- package/dist/types/locales/it_IT.json.d.ts +83 -0
- package/dist/types/locales/pt_PT.json.d.ts +83 -0
- package/dist/types/locales/th_TH.json.d.ts +83 -0
- package/dist/types/locales/zh_CN.json.d.ts +83 -0
- package/dist/types/main.d.ts +51 -0
- package/dist/types/utils/Queue.d.ts +18 -0
- package/dist/types/utils/annotations.d.ts +18 -0
- package/dist/types/utils/appConsole.d.ts +24 -0
- package/dist/types/utils/approximateFragtion.d.ts +9 -0
- package/dist/types/utils/calculatePage.d.ts +12 -0
- package/dist/types/utils/charators.d.ts +12 -0
- package/dist/types/utils/const.d.ts +3 -0
- package/dist/types/utils/constants.d.ts +5 -0
- package/dist/types/utils/convertPdfDate.d.ts +1 -0
- package/dist/types/utils/dateFormatter.d.ts +1 -0
- package/dist/types/utils/elementPagePosition.d.ts +17 -0
- package/dist/types/utils/formatFileSize.d.ts +1 -0
- package/dist/types/utils/getElementPositionInPage.d.ts +5 -0
- package/dist/types/utils/getScrollDistance.d.ts +1 -0
- package/dist/types/utils/getThumbnailViewport.d.ts +5 -0
- package/dist/types/utils/getWordPositionInPage.d.ts +8 -0
- package/dist/types/utils/getZoomLevel.d.ts +2 -0
- package/dist/types/utils/highlight.d.ts +14 -0
- package/dist/types/utils/hooks/useAccumulateFactor.d.ts +9 -0
- package/dist/types/utils/hooks/useCopyText.d.ts +1 -0
- package/dist/types/utils/hooks/useDarkMode.d.ts +2 -0
- package/dist/types/utils/hooks/useDarkModeProps.d.ts +2 -0
- package/dist/types/utils/hooks/useDebounce.d.ts +1 -0
- package/dist/types/utils/hooks/useElementSize.d.ts +8 -0
- package/dist/types/utils/hooks/useFileDownload.d.ts +3 -0
- package/dist/types/utils/hooks/useFlickerSelectText.d.ts +1 -0
- package/dist/types/utils/hooks/useFullScreen.d.ts +6 -0
- package/dist/types/utils/hooks/useGrabScroll.d.ts +11 -0
- package/dist/types/utils/hooks/useHighlight.d.ts +10 -0
- package/dist/types/utils/hooks/useInfiniteScroll.d.ts +6 -0
- package/dist/types/utils/hooks/useLicense.d.ts +2 -0
- package/dist/types/utils/hooks/useLoadPdf.d.ts +11 -0
- package/dist/types/utils/hooks/useLoadWorker.d.ts +3 -0
- package/dist/types/utils/hooks/useLocalization.d.ts +10 -0
- package/dist/types/utils/hooks/useMousePressed.d.ts +7 -0
- package/dist/types/utils/hooks/usePageRotateContext.d.ts +3 -0
- package/dist/types/utils/hooks/usePaginate.d.ts +2 -0
- package/dist/types/utils/hooks/usePdfProperties.d.ts +9 -0
- package/dist/types/utils/hooks/usePinch.d.ts +1 -0
- package/dist/types/utils/hooks/usePresentPage.d.ts +2 -0
- package/dist/types/utils/hooks/usePrint.d.ts +12 -0
- package/dist/types/utils/hooks/useRequestAnimationFrame.d.ts +5 -0
- package/dist/types/utils/hooks/useResizeObserver.d.ts +6 -0
- package/dist/types/utils/hooks/useRotate.d.ts +4 -0
- package/dist/types/utils/hooks/useScrollToPage.d.ts +3 -0
- package/dist/types/utils/hooks/useSearch.d.ts +13 -0
- package/dist/types/utils/hooks/useTextSelection.d.ts +7 -0
- package/dist/types/utils/hooks/useThumbnail.d.ts +7 -0
- package/dist/types/utils/hooks/useVirtualReactWindow.d.ts +17 -0
- package/dist/types/utils/hooks/useWatermark.d.ts +1 -0
- package/dist/types/utils/injectPrintCSS.d.ts +1 -0
- package/dist/types/utils/link_service.d.ts +81 -0
- package/dist/types/utils/renderPage.d.ts +3 -0
- package/dist/types/utils/sanitizeExternalUrl.d.ts +1 -0
- package/dist/types/utils/smoothScrollTo.d.ts +2 -0
- package/dist/types/utils/types.d.ts +920 -0
- package/dist/types/utils/withRef.d.ts +5 -0
- package/dist/types/utils/zoom.d.ts +2 -0
- package/dist/utils/Queue.js +47 -0
- package/dist/utils/annotations.js +277 -0
- package/dist/utils/appConsole.js +42 -0
- package/dist/utils/approximateFragtion.js +22 -0
- package/dist/utils/calculatePage.js +21 -0
- package/dist/utils/charators.js +48 -0
- package/dist/utils/const.js +9 -0
- package/dist/utils/constants.js +8 -0
- package/dist/utils/convertPdfDate.js +25 -0
- package/dist/utils/dateFormatter.js +7 -0
- package/dist/utils/elementPagePosition.js +11 -0
- package/dist/utils/formatFileSize.js +9 -0
- package/dist/utils/getElementPositionInPage.js +84 -0
- package/dist/utils/getScrollDistance.js +4 -0
- package/dist/utils/getThumbnailViewport.js +7 -0
- package/dist/utils/getWordPositionInPage.js +25 -0
- package/dist/utils/getZoomLevel.js +24 -0
- package/dist/utils/highlight.js +221 -0
- package/dist/utils/hooks/useAccumulateFactor.js +17 -0
- package/dist/utils/hooks/useCopyText.js +36 -0
- package/dist/utils/hooks/useDarkMode.js +11 -0
- package/dist/utils/hooks/useDarkModeProps.js +12 -0
- package/dist/utils/hooks/useDebounce.js +19 -0
- package/dist/utils/hooks/useElementSize.js +21 -0
- package/dist/utils/hooks/useFileDownload.js +33 -0
- package/dist/utils/hooks/useFlickerSelectText.js +25 -0
- package/dist/utils/hooks/useFullScreen.js +29 -0
- package/dist/utils/hooks/useGrabScroll.js +52 -0
- package/dist/utils/hooks/useHighlight.js +55 -0
- package/dist/utils/hooks/useInfiniteScroll.js +19 -0
- package/dist/utils/hooks/useLicense.js +110 -0
- package/dist/utils/hooks/useLoadPdf.js +85 -0
- package/dist/utils/hooks/useLoadWorker.js +16 -0
- package/dist/utils/hooks/useLocalization.js +26 -0
- package/dist/utils/hooks/useMousePressed.js +20 -0
- package/dist/utils/hooks/usePageRotateContext.js +42 -0
- package/dist/utils/hooks/usePaginate.js +37 -0
- package/dist/utils/hooks/usePdfProperties.js +37 -0
- package/dist/utils/hooks/usePinch.js +147 -0
- package/dist/utils/hooks/usePresentPage.js +90 -0
- package/dist/utils/hooks/usePrint.js +185 -0
- package/dist/utils/hooks/useRequestAnimationFrame.js +17 -0
- package/dist/utils/hooks/useResizeObserver.js +22 -0
- package/dist/utils/hooks/useRotate.js +27 -0
- package/dist/utils/hooks/useScrollToPage.js +37 -0
- package/dist/utils/hooks/useSearch.js +162 -0
- package/dist/utils/hooks/useTextSelection.js +76 -0
- package/dist/utils/hooks/useThumbnail.js +59 -0
- package/dist/utils/hooks/useVirtualReactWindow.js +96 -0
- package/dist/utils/hooks/useWatermark.js +94 -0
- package/dist/utils/injectPrintCSS.js +22 -0
- package/dist/utils/link_service.js +138 -0
- package/dist/utils/renderPage.js +20 -0
- package/dist/utils/sanitizeExternalUrl.js +16 -0
- package/dist/utils/smoothScrollTo.js +6 -0
- package/dist/utils/types.js +22 -0
- package/dist/utils/withRef.js +8 -0
- package/dist/utils/zoom.js +6 -0
- package/package.json +88 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { useState as t, useCallback as z, useMemo as _ } from "react";
|
|
2
|
+
import { e as s, t as m, z as p, i as d, p as L, d as T } from "../../de_DE-a553b162.js";
|
|
3
|
+
const C = (e) => {
|
|
4
|
+
const [a, c] = t(e), [o, i] = t({
|
|
5
|
+
en_US: s,
|
|
6
|
+
th_TH: m,
|
|
7
|
+
zh_CN: p,
|
|
8
|
+
it_IT: d,
|
|
9
|
+
pt_PT: L,
|
|
10
|
+
de_DE: T
|
|
11
|
+
}), l = z((r) => {
|
|
12
|
+
i((u) => ({
|
|
13
|
+
...u,
|
|
14
|
+
...r
|
|
15
|
+
}));
|
|
16
|
+
}, []), n = _(() => o[a] || s, [a, o]);
|
|
17
|
+
return {
|
|
18
|
+
locale: a,
|
|
19
|
+
setLocale: c,
|
|
20
|
+
localeMessages: n,
|
|
21
|
+
addLocalization: l
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
C as useLocalization
|
|
26
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useState as t, useEffect as i } from "react";
|
|
2
|
+
const a = () => {
|
|
3
|
+
const [r, e] = t(!1), [d, u] = t({ x: 0, y: 0 });
|
|
4
|
+
return i(() => {
|
|
5
|
+
const s = (n) => {
|
|
6
|
+
e(!0), u({
|
|
7
|
+
x: n.clientX,
|
|
8
|
+
y: n.clientY
|
|
9
|
+
});
|
|
10
|
+
}, o = () => {
|
|
11
|
+
e(!1);
|
|
12
|
+
};
|
|
13
|
+
return window.addEventListener("mousedown", s), window.addEventListener("mouseup", o), () => {
|
|
14
|
+
window.removeEventListener("mousedown", s), window.removeEventListener("mouseup", o);
|
|
15
|
+
};
|
|
16
|
+
}, []), { isPressed: r, coordinates: d };
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
a as useMousePressed
|
|
20
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useMemo as a, useCallback as l } from "react";
|
|
2
|
+
import { usePagesRotateContext as c } from "../../contexts/PagesRotateContext.js";
|
|
3
|
+
import { useLicenseContext as u } from "../../contexts/LicenseContext.js";
|
|
4
|
+
import { LicenseType as f } from "../types.js";
|
|
5
|
+
import { ORGANIZATION_ALLOWED_FEATURES_MESSAGE as R } from "../const.js";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "../../contexts/RPDocumentContext.js";
|
|
8
|
+
import "./useLoadPdf.js";
|
|
9
|
+
import "pdfjs-dist";
|
|
10
|
+
import "../getThumbnailViewport.js";
|
|
11
|
+
import "../../contexts/ConfigContext.js";
|
|
12
|
+
import "../../contexts/DocumentPasswordContext.js";
|
|
13
|
+
import "../appConsole.js";
|
|
14
|
+
import "./usePdfProperties.js";
|
|
15
|
+
import "../convertPdfDate.js";
|
|
16
|
+
import "../formatFileSize.js";
|
|
17
|
+
import "../../de_DE-a553b162.js";
|
|
18
|
+
import "../../contexts/RotationContext.js";
|
|
19
|
+
import "../../contexts/InitialStateContext.js";
|
|
20
|
+
import "../../contexts/EventCallbackContext.js";
|
|
21
|
+
import "./useLicense.js";
|
|
22
|
+
const U = () => {
|
|
23
|
+
const { setSinglePageRotate: r } = c(), { type: i, validating: n } = u(), m = a(() => i !== f.Developer, [i]), p = l(
|
|
24
|
+
(s, t) => {
|
|
25
|
+
r((o) => {
|
|
26
|
+
const e = typeof t == "function" ? t(o[s] || 0) : t;
|
|
27
|
+
return e % 90 !== 0 ? (console.warn("rotationDegree must be a multiple of 90 got", e), o) : {
|
|
28
|
+
...o,
|
|
29
|
+
[s]: e
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
[r]
|
|
34
|
+
);
|
|
35
|
+
return { rotate: a(() => n !== !1 ? () => {
|
|
36
|
+
} : m ? p : () => {
|
|
37
|
+
console.error(R);
|
|
38
|
+
}, [n, m, p]) };
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
U as usePageRotateContext
|
|
42
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "../types.js";
|
|
3
|
+
import { b as I } from "../../PaginationContext-9217cab4.js";
|
|
4
|
+
import "../../contexts/ViewModeContext.js";
|
|
5
|
+
import "../../contexts/ScrollModeContext.js";
|
|
6
|
+
import "./useDebounce.js";
|
|
7
|
+
import "../../contexts/DimensionPagesContext.js";
|
|
8
|
+
import "../../contexts/LayoutContainerContext.js";
|
|
9
|
+
import "../../de_DE-a553b162.js";
|
|
10
|
+
import "react/jsx-runtime";
|
|
11
|
+
import "../../contexts/RPDocumentContext.js";
|
|
12
|
+
import "./useLoadPdf.js";
|
|
13
|
+
import "pdfjs-dist";
|
|
14
|
+
import "../getThumbnailViewport.js";
|
|
15
|
+
import "../../contexts/ConfigContext.js";
|
|
16
|
+
import "../../contexts/DocumentPasswordContext.js";
|
|
17
|
+
import "../appConsole.js";
|
|
18
|
+
import "./usePdfProperties.js";
|
|
19
|
+
import "../convertPdfDate.js";
|
|
20
|
+
import "../formatFileSize.js";
|
|
21
|
+
import "../../contexts/GlobalCurrentPage.js";
|
|
22
|
+
import "../../contexts/InitialStateContext.js";
|
|
23
|
+
import "../../contexts/EventCallbackContext.js";
|
|
24
|
+
import "../../contexts/VirtualScrollContext.js";
|
|
25
|
+
import "../../contexts/VirtualGridContext.js";
|
|
26
|
+
import "../smoothScrollTo.js";
|
|
27
|
+
import "../../contexts/SmoothScrollContext.js";
|
|
28
|
+
import "../getScrollDistance.js";
|
|
29
|
+
import "../calculatePage.js";
|
|
30
|
+
import "../../contexts/ZoomContext.js";
|
|
31
|
+
import "../constants.js";
|
|
32
|
+
import "../getZoomLevel.js";
|
|
33
|
+
import "../../contexts/RotationContext.js";
|
|
34
|
+
import "../../contexts/PagesRotateContext.js";
|
|
35
|
+
export {
|
|
36
|
+
I as usePaginate
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useState as S, useCallback as m, useEffect as d } from "react";
|
|
2
|
+
import { convertPDFDate as l } from "../convertPdfDate.js";
|
|
3
|
+
import { formatFileSize as w } from "../formatFileSize.js";
|
|
4
|
+
const D = (n, t, s) => {
|
|
5
|
+
const [u, p] = S(), c = m(async () => {
|
|
6
|
+
if (!t || !n)
|
|
7
|
+
return;
|
|
8
|
+
const r = await t.getMetadata().then(), P = t.numPages, e = r == null ? void 0 : r.info, a = await t.getDownloadInfo();
|
|
9
|
+
let f = 0;
|
|
10
|
+
a && (f = a.length);
|
|
11
|
+
try {
|
|
12
|
+
const o = l(e.CreationDate), i = l(e.ModDate), g = {
|
|
13
|
+
pageCount: P,
|
|
14
|
+
filename: s || "",
|
|
15
|
+
fileSize: w(f),
|
|
16
|
+
title: e.Title,
|
|
17
|
+
author: e.Author,
|
|
18
|
+
subject: e.Subject,
|
|
19
|
+
keywords: e.Keywords || "",
|
|
20
|
+
creator: e.Creator,
|
|
21
|
+
createdOn: (o == null ? void 0 : o.toISOString()) || "",
|
|
22
|
+
modifiedOn: (i == null ? void 0 : i.toISOString()) || "",
|
|
23
|
+
pdfProducer: e.Producer,
|
|
24
|
+
pdfVersion: e.PDFFormatVersion
|
|
25
|
+
};
|
|
26
|
+
p(g);
|
|
27
|
+
} catch (o) {
|
|
28
|
+
console.log("properties err", o);
|
|
29
|
+
}
|
|
30
|
+
}, [t, s, n]);
|
|
31
|
+
return d(() => {
|
|
32
|
+
c();
|
|
33
|
+
}, [c]), u;
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
D as usePdfProperties
|
|
37
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { useState as Z, useRef as f, useEffect as i, useCallback as u } from "react";
|
|
2
|
+
import { useZoomContext as G } from "../../contexts/ZoomContext.js";
|
|
3
|
+
import { useSmoothScaleContext as N } from "../../contexts/SmoothScaleContext.js";
|
|
4
|
+
import { useAccumulateFactor as D } from "./useAccumulateFactor.js";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "../types.js";
|
|
7
|
+
import "../../de_DE-a553b162.js";
|
|
8
|
+
import "../appConsole.js";
|
|
9
|
+
import "../../contexts/InitialStateContext.js";
|
|
10
|
+
import "../../contexts/RPDocumentContext.js";
|
|
11
|
+
import "./useLoadPdf.js";
|
|
12
|
+
import "pdfjs-dist";
|
|
13
|
+
import "../getThumbnailViewport.js";
|
|
14
|
+
import "../../contexts/ConfigContext.js";
|
|
15
|
+
import "../../contexts/DocumentPasswordContext.js";
|
|
16
|
+
import "./usePdfProperties.js";
|
|
17
|
+
import "../convertPdfDate.js";
|
|
18
|
+
import "../formatFileSize.js";
|
|
19
|
+
import "../constants.js";
|
|
20
|
+
import "../getZoomLevel.js";
|
|
21
|
+
import "../../contexts/LayoutContainerContext.js";
|
|
22
|
+
import "../../contexts/ViewModeContext.js";
|
|
23
|
+
import "../../contexts/RotationContext.js";
|
|
24
|
+
import "../../contexts/GlobalCurrentPage.js";
|
|
25
|
+
import "../../contexts/EventCallbackContext.js";
|
|
26
|
+
import "./useDebounce.js";
|
|
27
|
+
const O = 35, z = 0.25, B = 10, Ee = (n) => {
|
|
28
|
+
const { currentZoom: v, setZoomLevel: d } = G(), { zoomOriginRef: h } = N(), [s, k] = Z(!1), a = f(v), E = f(!1), l = f(null), m = f(!1), { accumulate: M, reset: A } = D(), { accumulate: C } = D();
|
|
29
|
+
i(() => {
|
|
30
|
+
a.current = v;
|
|
31
|
+
}, [v]);
|
|
32
|
+
const p = u(
|
|
33
|
+
(e) => {
|
|
34
|
+
const t = a.current, o = Math.max(z, Math.min(B, t * e)), r = Math.round(o * 100);
|
|
35
|
+
d(r);
|
|
36
|
+
},
|
|
37
|
+
[d]
|
|
38
|
+
), S = u(
|
|
39
|
+
(e) => {
|
|
40
|
+
const t = a.current, o = e ? 3 : -3, r = Math.round(t * 100 + o);
|
|
41
|
+
d(Math.max(25, Math.min(1e3, r)));
|
|
42
|
+
},
|
|
43
|
+
[d]
|
|
44
|
+
);
|
|
45
|
+
i(() => {
|
|
46
|
+
const e = (o) => {
|
|
47
|
+
o.key === "Control" && (E.current = !0);
|
|
48
|
+
}, t = (o) => {
|
|
49
|
+
o.key === "Control" && (E.current = !1);
|
|
50
|
+
};
|
|
51
|
+
return window.addEventListener("keydown", e), window.addEventListener("keyup", t), () => {
|
|
52
|
+
window.removeEventListener("keydown", e), window.removeEventListener("keyup", t);
|
|
53
|
+
};
|
|
54
|
+
}, []);
|
|
55
|
+
const w = u(
|
|
56
|
+
(e) => {
|
|
57
|
+
if (!e.ctrlKey && !e.metaKey)
|
|
58
|
+
return;
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
const t = { x: e.clientX, y: e.clientY };
|
|
61
|
+
h.current = t;
|
|
62
|
+
const o = Math.exp(-e.deltaY / 100);
|
|
63
|
+
if (e.ctrlKey && !E.current && e.deltaMode === WheelEvent.DOM_DELTA_PIXEL && e.deltaX === 0 && Math.abs(o - 1) < 0.05) {
|
|
64
|
+
const c = C(a.current, o);
|
|
65
|
+
c !== 1 && c !== 0 && p(c);
|
|
66
|
+
} else {
|
|
67
|
+
const c = e.deltaY < 0;
|
|
68
|
+
S(c);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
[h, C, p, S]
|
|
72
|
+
), L = u(
|
|
73
|
+
(e) => {
|
|
74
|
+
if (!s || e.touches.length !== 2)
|
|
75
|
+
return;
|
|
76
|
+
let [t, o] = Array.from(e.touches);
|
|
77
|
+
t.identifier > o.identifier && ([t, o] = [o, t]), l.current = {
|
|
78
|
+
touch0X: t.screenX,
|
|
79
|
+
touch0Y: t.screenY,
|
|
80
|
+
touch1X: o.screenX,
|
|
81
|
+
touch1Y: o.screenY
|
|
82
|
+
}, m.current = !1, e.preventDefault();
|
|
83
|
+
},
|
|
84
|
+
[s]
|
|
85
|
+
), y = u(() => {
|
|
86
|
+
l.current = null, m.current = !1, A();
|
|
87
|
+
}, [A]), X = u(
|
|
88
|
+
(e) => {
|
|
89
|
+
if (!s || e.touches.length !== 2 || !l.current)
|
|
90
|
+
return;
|
|
91
|
+
let [t, o] = Array.from(e.touches);
|
|
92
|
+
t.identifier > o.identifier && ([t, o] = [o, t]);
|
|
93
|
+
const r = l.current, c = r.touch1X - r.touch0X, I = r.touch1Y - r.touch0Y, T = Math.hypot(c, I) || 1, F = o.screenX - t.screenX, P = o.screenY - t.screenY, x = Math.hypot(F, P) || 1, R = O / (window.devicePixelRatio || 1);
|
|
94
|
+
if (!m.current && Math.abs(T - x) <= R)
|
|
95
|
+
return;
|
|
96
|
+
if (l.current = {
|
|
97
|
+
touch0X: t.screenX,
|
|
98
|
+
touch0Y: t.screenY,
|
|
99
|
+
touch1X: o.screenX,
|
|
100
|
+
touch1Y: o.screenY
|
|
101
|
+
}, !m.current) {
|
|
102
|
+
m.current = !0;
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
e.preventDefault(), e.stopPropagation();
|
|
106
|
+
const _ = (t.clientX + o.clientX) / 2, b = (t.clientY + o.clientY) / 2;
|
|
107
|
+
h.current = { x: _, y: b };
|
|
108
|
+
const K = x / T, Y = M(a.current, K);
|
|
109
|
+
Y !== 1 && Y !== 0 && p(Y);
|
|
110
|
+
},
|
|
111
|
+
[s, h, M, p]
|
|
112
|
+
), g = () => {
|
|
113
|
+
document.activeElement instanceof HTMLElement && document.activeElement.blur();
|
|
114
|
+
};
|
|
115
|
+
i(() => {
|
|
116
|
+
if (s) {
|
|
117
|
+
document.body.style.touchAction = "pan-x pan-y";
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
document.body.style.touchAction = "";
|
|
121
|
+
}, [s]), i(() => {
|
|
122
|
+
const e = () => {
|
|
123
|
+
const t = document.activeElement, o = !!(t != null && t.closest('[data-rp="container"]'));
|
|
124
|
+
k(o);
|
|
125
|
+
};
|
|
126
|
+
return window.addEventListener("focusin", e), window.addEventListener("focusout", e), e(), () => {
|
|
127
|
+
window.removeEventListener("focusin", e), window.removeEventListener("focusout", e);
|
|
128
|
+
};
|
|
129
|
+
}, []), i(() => {
|
|
130
|
+
if (!n)
|
|
131
|
+
return;
|
|
132
|
+
const e = (t) => {
|
|
133
|
+
n.contains(t.target) || g();
|
|
134
|
+
};
|
|
135
|
+
return document.addEventListener("scroll", e), () => {
|
|
136
|
+
document.removeEventListener("scroll", e);
|
|
137
|
+
};
|
|
138
|
+
}, [n]), i(() => {
|
|
139
|
+
if (n)
|
|
140
|
+
return n.addEventListener("wheel", w, { passive: !1 }), n.addEventListener("touchstart", L, { passive: !1 }), n.addEventListener("touchmove", X, { passive: !1 }), n.addEventListener("touchend", y, { passive: !1 }), () => {
|
|
141
|
+
n.removeEventListener("wheel", w), n.removeEventListener("touchstart", L), n.removeEventListener("touchmove", X), n.removeEventListener("touchend", y);
|
|
142
|
+
};
|
|
143
|
+
}, [n, w, L, X, y]);
|
|
144
|
+
};
|
|
145
|
+
export {
|
|
146
|
+
Ee as usePinch
|
|
147
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { useRef as x, useState as C, useMemo as D, useEffect as X, useCallback as F } from "react";
|
|
2
|
+
import { useLayoutContainer as N } from "../../contexts/LayoutContainerContext.js";
|
|
3
|
+
import { useDimensionPagesContext as v } from "../../contexts/DimensionPagesContext.js";
|
|
4
|
+
import { getGridDimension as A, getPositionFromPage as H } from "../calculatePage.js";
|
|
5
|
+
import { u as _ } from "../../PaginationContext-9217cab4.js";
|
|
6
|
+
import { useDebounce as q } from "./useDebounce.js";
|
|
7
|
+
import { useSmoothScrollContext as G } from "../../contexts/SmoothScrollContext.js";
|
|
8
|
+
import { ViewMode as M } from "../types.js";
|
|
9
|
+
import "react/jsx-runtime";
|
|
10
|
+
import "../appConsole.js";
|
|
11
|
+
import "../../contexts/RPDocumentContext.js";
|
|
12
|
+
import "./useLoadPdf.js";
|
|
13
|
+
import "pdfjs-dist";
|
|
14
|
+
import "../getThumbnailViewport.js";
|
|
15
|
+
import "../../contexts/ConfigContext.js";
|
|
16
|
+
import "../../contexts/DocumentPasswordContext.js";
|
|
17
|
+
import "./usePdfProperties.js";
|
|
18
|
+
import "../convertPdfDate.js";
|
|
19
|
+
import "../formatFileSize.js";
|
|
20
|
+
import "../../de_DE-a553b162.js";
|
|
21
|
+
import "../../contexts/ZoomContext.js";
|
|
22
|
+
import "../../contexts/InitialStateContext.js";
|
|
23
|
+
import "../constants.js";
|
|
24
|
+
import "../getZoomLevel.js";
|
|
25
|
+
import "../../contexts/ViewModeContext.js";
|
|
26
|
+
import "../../contexts/RotationContext.js";
|
|
27
|
+
import "../../contexts/GlobalCurrentPage.js";
|
|
28
|
+
import "../../contexts/EventCallbackContext.js";
|
|
29
|
+
import "../../contexts/PagesRotateContext.js";
|
|
30
|
+
import "../../contexts/ScrollModeContext.js";
|
|
31
|
+
import "../../contexts/VirtualScrollContext.js";
|
|
32
|
+
import "../../contexts/VirtualGridContext.js";
|
|
33
|
+
import "../smoothScrollTo.js";
|
|
34
|
+
import "../getScrollDistance.js";
|
|
35
|
+
const Wt = (f, Y, n, W) => {
|
|
36
|
+
const P = x(), { contentRef: E } = N(), { heights: h, widths: l } = v(), { setFocusedPage: b } = _(), [S, R] = C([]), { targetScrollPage: L } = G(), i = q(S, 0, 500), I = D(() => {
|
|
37
|
+
const c = W === M.DUAL_PAGE_WITH_COVER, { rowsHeight: r, columnsWidth: o } = A({ heights: h, widths: l }, f, c);
|
|
38
|
+
return h.map((m, t) => {
|
|
39
|
+
const e = l[t], s = H(t + 1, f, c), p = o.slice(0, s.columnIndex).reduce((u, a) => u + a, 0), d = r.slice(0, s.rowIndex).reduce((u, a) => u + a, 0), T = p + e, w = d + m;
|
|
40
|
+
return {
|
|
41
|
+
pageNumber: t + 1,
|
|
42
|
+
...s,
|
|
43
|
+
width: e,
|
|
44
|
+
height: m,
|
|
45
|
+
startX: p,
|
|
46
|
+
startY: d,
|
|
47
|
+
endX: T,
|
|
48
|
+
endY: w
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}, [h, l, f, Y, W]);
|
|
52
|
+
X(() => {
|
|
53
|
+
var r;
|
|
54
|
+
i.length > 0 && !L.current && b(i[0].pageNumber), ((r = i[0]) == null ? void 0 : r.ratio) && i.some((o) => o.pageNumber === L.current) && setTimeout(() => {
|
|
55
|
+
L.current = void 0;
|
|
56
|
+
}, 500);
|
|
57
|
+
}, [i, b]);
|
|
58
|
+
const g = F(
|
|
59
|
+
(c) => {
|
|
60
|
+
P.current && cancelAnimationFrame(P.current), P.current = requestAnimationFrame(() => {
|
|
61
|
+
const r = c.target, o = {
|
|
62
|
+
startTop: r.scrollTop,
|
|
63
|
+
startLeft: r.scrollLeft,
|
|
64
|
+
endTop: r.scrollTop + r.clientHeight,
|
|
65
|
+
endLeft: r.scrollLeft + r.clientWidth
|
|
66
|
+
}, m = I.filter((t) => {
|
|
67
|
+
const e = t.endX >= o.startLeft && t.endY >= o.startTop, s = t.startX <= o.endLeft && t.startY <= o.endTop;
|
|
68
|
+
return e && s;
|
|
69
|
+
}).map((t) => {
|
|
70
|
+
const e = o.startLeft > t.startX ? o.startLeft : t.startX, s = o.startTop > t.startY ? o.startTop : t.startY, p = o.endLeft < t.endX ? o.endLeft : t.endX, d = o.endTop < t.endY ? o.endTop : t.endY, T = p - e, w = d - s, a = +(T * w / (t.width * t.height) * 100).toFixed(2);
|
|
71
|
+
return {
|
|
72
|
+
pageNumber: t.pageNumber,
|
|
73
|
+
ratio: a
|
|
74
|
+
};
|
|
75
|
+
}).sort((t, e) => e.ratio - t.ratio);
|
|
76
|
+
R(m);
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
[E, I]
|
|
80
|
+
);
|
|
81
|
+
X(() => {
|
|
82
|
+
if (n)
|
|
83
|
+
return n == null || n.addEventListener("scroll", g), () => {
|
|
84
|
+
n == null || n.removeEventListener("scroll", g);
|
|
85
|
+
};
|
|
86
|
+
}, [n, g]);
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
Wt as usePresentPage
|
|
90
|
+
};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { useState as g, useRef as N, useEffect as R, useCallback as P } from "react";
|
|
2
|
+
import { useDocumentContext as O } from "../../contexts/RPDocumentContext.js";
|
|
3
|
+
import { PixelsPerInch as X, AnnotationMode as q, RenderingCancelledException as B } from "pdfjs-dist";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "./useLoadPdf.js";
|
|
6
|
+
import "../types.js";
|
|
7
|
+
import "../../de_DE-a553b162.js";
|
|
8
|
+
import "../getThumbnailViewport.js";
|
|
9
|
+
import "../../contexts/ConfigContext.js";
|
|
10
|
+
import "../../contexts/DocumentPasswordContext.js";
|
|
11
|
+
import "../appConsole.js";
|
|
12
|
+
import "./usePdfProperties.js";
|
|
13
|
+
import "../convertPdfDate.js";
|
|
14
|
+
import "../formatFileSize.js";
|
|
15
|
+
const re = () => {
|
|
16
|
+
const { pdf: l, pages: f } = O(), [D, E] = g({
|
|
17
|
+
loadedPages: 0,
|
|
18
|
+
totalPages: 0,
|
|
19
|
+
percentage: 0
|
|
20
|
+
}), [T, b] = g(!1), [A, y] = g(!1), [Z, L] = g(null), [F, w] = g(void 0), s = N(!1);
|
|
21
|
+
R(() => {
|
|
22
|
+
s.current;
|
|
23
|
+
}, [s]);
|
|
24
|
+
const C = P(() => {
|
|
25
|
+
document.documentElement.classList.remove("rp-print-html-printing"), document.body.classList.remove("rp-print-body-printing");
|
|
26
|
+
const e = document.querySelector(".rp-print-zone");
|
|
27
|
+
e && e.remove();
|
|
28
|
+
}, []), a = P(() => {
|
|
29
|
+
s.current = !1, b(!1), y(!1), L(null), w(void 0), E({
|
|
30
|
+
loadedPages: 0,
|
|
31
|
+
totalPages: 0,
|
|
32
|
+
percentage: 0
|
|
33
|
+
});
|
|
34
|
+
}, []), M = () => {
|
|
35
|
+
s.current = !0;
|
|
36
|
+
}, I = async ({
|
|
37
|
+
scratchCanvas: e,
|
|
38
|
+
pdfDocument: n,
|
|
39
|
+
pageNumber: t,
|
|
40
|
+
viewerPdfPage: o,
|
|
41
|
+
printResolution: r,
|
|
42
|
+
optionalContentConfigPromise: i,
|
|
43
|
+
printAnnotationStoragePromise: u
|
|
44
|
+
}) => {
|
|
45
|
+
if (s.current) {
|
|
46
|
+
a();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const c = r / X.PDF;
|
|
50
|
+
e.width = Math.floor(o.width * c), e.height = Math.floor(o.height * c);
|
|
51
|
+
const p = e.getContext("2d");
|
|
52
|
+
p.save(), p.fillStyle = "rgb(255, 255, 255)", p.fillRect(0, 0, e.width, e.height), p.restore();
|
|
53
|
+
const [m, h] = await Promise.all([
|
|
54
|
+
n.getPage(t),
|
|
55
|
+
u
|
|
56
|
+
]);
|
|
57
|
+
if (s.current) {
|
|
58
|
+
a();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const v = {
|
|
62
|
+
canvas: e,
|
|
63
|
+
canvasContext: p,
|
|
64
|
+
transform: [c, 0, 0, c, 0, 0],
|
|
65
|
+
viewport: m.getViewport({ scale: 1, rotation: o.rotation }),
|
|
66
|
+
intent: "print",
|
|
67
|
+
annotationMode: q.ENABLE_STORAGE,
|
|
68
|
+
optionalContentConfigPromise: i,
|
|
69
|
+
printAnnotationStorage: h
|
|
70
|
+
};
|
|
71
|
+
try {
|
|
72
|
+
return m.render(v).promise;
|
|
73
|
+
} catch (d) {
|
|
74
|
+
throw d instanceof B || console.error(d), d;
|
|
75
|
+
}
|
|
76
|
+
}, S = P(() => {
|
|
77
|
+
const e = window.print;
|
|
78
|
+
return new Promise((n) => {
|
|
79
|
+
const t = (i) => {
|
|
80
|
+
setTimeout(() => {
|
|
81
|
+
e.call(window), setTimeout(() => i(), 20);
|
|
82
|
+
}, 0);
|
|
83
|
+
};
|
|
84
|
+
if (document.querySelector(".rp-print-zone")) {
|
|
85
|
+
t(n);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const r = new MutationObserver(() => {
|
|
89
|
+
document.querySelector(".rp-print-zone") && (t(n), r.disconnect());
|
|
90
|
+
});
|
|
91
|
+
r.observe(document.body, { childList: !0, subtree: !0 });
|
|
92
|
+
});
|
|
93
|
+
}, []), U = async (e) => {
|
|
94
|
+
const n = document.createElement("img"), t = document.createElement("div");
|
|
95
|
+
return t.classList.add("rp-print-page"), await new Promise((o, r) => {
|
|
96
|
+
e.toBlob((i) => {
|
|
97
|
+
i ? (n.src = URL.createObjectURL(i), n.onload = () => {
|
|
98
|
+
URL.revokeObjectURL(n.src), o();
|
|
99
|
+
}, n.onerror = r) : r(new Error("Failed to create blob"));
|
|
100
|
+
});
|
|
101
|
+
}).catch(() => {
|
|
102
|
+
}), t.appendChild(n), t;
|
|
103
|
+
}, x = (e, n) => {
|
|
104
|
+
const t = document.createElement("div");
|
|
105
|
+
t.classList.add("rp-print-zone");
|
|
106
|
+
const o = document.createElement("style"), r = n.get(1);
|
|
107
|
+
if (r) {
|
|
108
|
+
const { width: i, height: u } = r == null ? void 0 : r.page.getViewport({ scale: 1 });
|
|
109
|
+
o.innerHTML = `@page { size: ${i}px ${u}px }`;
|
|
110
|
+
}
|
|
111
|
+
return t.appendChild(o), t.append(...e), t;
|
|
112
|
+
}, k = P(
|
|
113
|
+
async (e) => {
|
|
114
|
+
if (!l)
|
|
115
|
+
return;
|
|
116
|
+
a();
|
|
117
|
+
const n = e && "visibleDefaultProgress" in e ? e : void 0;
|
|
118
|
+
(n == null ? void 0 : n.visibleDefaultProgress) !== void 0 ? w(n.visibleDefaultProgress) : w(!0);
|
|
119
|
+
const t = document.createElement("canvas"), o = [];
|
|
120
|
+
try {
|
|
121
|
+
l.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
|
|
122
|
+
const i = l.getOptionalContentConfig({ intent: "print" }), u = Promise.resolve(
|
|
123
|
+
l.annotationStorage.print ?? void 0
|
|
124
|
+
), c = f.size;
|
|
125
|
+
for (const [m, h] of f) {
|
|
126
|
+
if (s.current) {
|
|
127
|
+
a();
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const v = h.page.getViewport({ scale: 1 });
|
|
131
|
+
if (await I({
|
|
132
|
+
scratchCanvas: t,
|
|
133
|
+
pdfDocument: l,
|
|
134
|
+
pageNumber: m,
|
|
135
|
+
viewerPdfPage: v,
|
|
136
|
+
printResolution: 150,
|
|
137
|
+
optionalContentConfigPromise: i,
|
|
138
|
+
printAnnotationStoragePromise: u
|
|
139
|
+
}), s.current) {
|
|
140
|
+
a();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const d = await U(t);
|
|
144
|
+
o.push(d);
|
|
145
|
+
const z = parseFloat((o.length / c * 100).toFixed(2));
|
|
146
|
+
E({
|
|
147
|
+
loadedPages: m,
|
|
148
|
+
totalPages: c,
|
|
149
|
+
percentage: z
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
if (s.current) {
|
|
153
|
+
a();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
const p = x(o, f);
|
|
157
|
+
document.body.appendChild(p), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), b(!0), await S();
|
|
158
|
+
} catch (r) {
|
|
159
|
+
y(!0), r instanceof Error && L(r);
|
|
160
|
+
} finally {
|
|
161
|
+
t.height = 0, t.width = 0;
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
[l, f, s, a, x, S]
|
|
165
|
+
);
|
|
166
|
+
return R(() => {
|
|
167
|
+
const e = () => {
|
|
168
|
+
a(), C();
|
|
169
|
+
};
|
|
170
|
+
return window.addEventListener("afterprint", e, !0), () => {
|
|
171
|
+
window.removeEventListener("afterprint", e, !0);
|
|
172
|
+
};
|
|
173
|
+
}, [C, a]), {
|
|
174
|
+
print: k,
|
|
175
|
+
cancel: M,
|
|
176
|
+
progress: D,
|
|
177
|
+
isComplete: T,
|
|
178
|
+
isError: A,
|
|
179
|
+
error: Z,
|
|
180
|
+
showDefaultProgress: F
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export {
|
|
184
|
+
re as usePrint
|
|
185
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useRef as i, useCallback as o } from "react";
|
|
2
|
+
const u = (r, c, e = !1) => {
|
|
3
|
+
const t = i(-1), n = o(
|
|
4
|
+
(...s) => {
|
|
5
|
+
a(), t.current = requestAnimationFrame(() => {
|
|
6
|
+
r(...s), e && n(...s);
|
|
7
|
+
});
|
|
8
|
+
},
|
|
9
|
+
[...c, e]
|
|
10
|
+
), a = o(() => {
|
|
11
|
+
cancelAnimationFrame(t.current);
|
|
12
|
+
}, []);
|
|
13
|
+
return { start: n, stop: a };
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
u as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useEffect as n } from "react";
|
|
2
|
+
const c = (r, t) => {
|
|
3
|
+
const s = typeof window < "u" && "ResizeObserver" in window;
|
|
4
|
+
let e;
|
|
5
|
+
const o = () => {
|
|
6
|
+
e && (e.disconnect(), e = void 0);
|
|
7
|
+
};
|
|
8
|
+
return n(() => {
|
|
9
|
+
if (!(!r || !s))
|
|
10
|
+
return e = new ResizeObserver(t), e.observe(r), () => {
|
|
11
|
+
o();
|
|
12
|
+
};
|
|
13
|
+
}, [r, s]), {
|
|
14
|
+
isSupported: s,
|
|
15
|
+
stop: () => {
|
|
16
|
+
o();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
c as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useCallback as r } from "react";
|
|
2
|
+
import { useRotationContext as p } from "../../contexts/RotationContext.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "../appConsole.js";
|
|
5
|
+
import "../../contexts/InitialStateContext.js";
|
|
6
|
+
import "../../contexts/RPDocumentContext.js";
|
|
7
|
+
import "./useLoadPdf.js";
|
|
8
|
+
import "pdfjs-dist";
|
|
9
|
+
import "../types.js";
|
|
10
|
+
import "../../de_DE-a553b162.js";
|
|
11
|
+
import "../getThumbnailViewport.js";
|
|
12
|
+
import "../../contexts/ConfigContext.js";
|
|
13
|
+
import "../../contexts/DocumentPasswordContext.js";
|
|
14
|
+
import "./usePdfProperties.js";
|
|
15
|
+
import "../convertPdfDate.js";
|
|
16
|
+
import "../formatFileSize.js";
|
|
17
|
+
const g = () => {
|
|
18
|
+
const { setRotate: t } = p(), i = r(() => {
|
|
19
|
+
t((o) => (o + 90) % 360);
|
|
20
|
+
}, [t]), m = r(() => {
|
|
21
|
+
t((o) => (o - 90 + 360) % 360);
|
|
22
|
+
}, [t]);
|
|
23
|
+
return { handleRotateClockwise: i, handleRotateCounterclockwise: m };
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
g as useRotate
|
|
27
|
+
};
|