enhance(view):去除双页展示的功能。

This commit is contained in:
徐涛
2023-03-08 19:03:29 +08:00
parent 51c0e1afa7
commit 12962e3b56
4 changed files with 19 additions and 33 deletions

View File

@@ -2,21 +2,19 @@ import { SyncObjectCallback } from '../types';
import { createStoreHook } from '../utils/store_creator';
interface ZoomState {
lock: boolean;
autoFit: boolean;
currentZoom: number;
viewMode: 'single' | 'double' | 'continuation';
viewMode: 'single' | 'continuation';
viewHeight: number;
}
type ZoomActions = {
zoom: SyncObjectCallback<number>;
updateViewHeight: SyncObjectCallback<number>;
switchViewMode: SyncObjectCallback<'single' | 'double' | 'continuation'>;
switchViewMode: SyncObjectCallback<'single' | 'continuation'>;
};
const initialState: ZoomState = {
lock: true,
autoFit: false,
currentZoom: 80,
viewMode: 'continuation',