mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-18 20:04:17 +01:00
@core - @app
This commit is contained in:
parent
482bcb2828
commit
8e727bb087
@ -10,7 +10,7 @@ import {
|
||||
measureRenderedPageRect,
|
||||
useFitWidthResize,
|
||||
ZoomViewport,
|
||||
} from '@core/utils/viewerZoom';
|
||||
} from '@app/utils/viewerZoom';
|
||||
import { getFirstPageAspectRatioFromStub } from '@app/utils/pageMetadata';
|
||||
|
||||
export function ZoomAPIBridge() {
|
||||
|
||||
@ -7,7 +7,17 @@ import React, {
|
||||
useCallback,
|
||||
} from 'react';
|
||||
import { useNavigation } from '@app/contexts/NavigationContext';
|
||||
import { createViewerActions } from '@core/contexts/viewer/viewerActions';
|
||||
import {
|
||||
createViewerActions,
|
||||
ScrollActions,
|
||||
ZoomActions,
|
||||
PanActions,
|
||||
SelectionActions,
|
||||
SpreadActions,
|
||||
RotationActions,
|
||||
SearchActions,
|
||||
ExportActions,
|
||||
} from '@app/contexts/viewer/viewerActions';
|
||||
import {
|
||||
BridgeRef,
|
||||
BridgeApiMap,
|
||||
@ -24,7 +34,8 @@ import {
|
||||
RotationState,
|
||||
SearchState,
|
||||
ExportState,
|
||||
} from '@core/contexts/viewer/viewerBridges';
|
||||
ThumbnailAPIWrapper,
|
||||
} from '@app/contexts/viewer/viewerBridges';
|
||||
import { SpreadMode } from '@embedpdf/plugin-spread/react';
|
||||
|
||||
function useImmediateNotifier<Args extends unknown[]>() {
|
||||
|
||||
@ -4,7 +4,7 @@ import {
|
||||
ViewerBridgeRegistry,
|
||||
ScrollState,
|
||||
ZoomState,
|
||||
} from '@core/contexts/viewer/viewerBridges';
|
||||
} from '@app/contexts/viewer/viewerBridges';
|
||||
|
||||
export interface ScrollActions {
|
||||
scrollToPage: (page: number) => void;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user