@prose-reader/core 1.58.0 → 1.59.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.
|
@@ -134,7 +134,6 @@ export declare const createReaderWithEnhancers: (options: Partial<import('./sett
|
|
|
134
134
|
computedPageTurnDirection: import('./settings/types').Settings[`pageTurnDirection`];
|
|
135
135
|
computedPageTurnAnimation: import('./settings/types').Settings[`pageTurnAnimation`];
|
|
136
136
|
computedPageTurnAnimationDuration: number;
|
|
137
|
-
computedSnapAnimationDuration: number;
|
|
138
137
|
} & Required<import('./enhancers/layoutEnhancer/types').SettingsInput>>;
|
|
139
138
|
setSettings: (settings: Partial<import('./settings/types').Settings> & import('./enhancers/layoutEnhancer/types').SettingsInput) => void;
|
|
140
139
|
};
|
|
@@ -157,7 +156,6 @@ export declare const createReaderWithEnhancers: (options: Partial<import('./sett
|
|
|
157
156
|
computedPageTurnDirection: import('./settings/types').Settings[`pageTurnDirection`];
|
|
158
157
|
computedPageTurnAnimation: import('./settings/types').Settings[`pageTurnAnimation`];
|
|
159
158
|
computedPageTurnAnimationDuration: number;
|
|
160
|
-
computedSnapAnimationDuration: number;
|
|
161
159
|
} & Required<import('./enhancers/layoutEnhancer/types').SettingsInput>>;
|
|
162
160
|
setSettings: (settings: Partial<import('./settings/types').Settings> & import('./enhancers/layoutEnhancer/types').SettingsInput) => void;
|
|
163
161
|
}, "setSettings" | "settings$"> & {
|
|
@@ -166,7 +164,6 @@ export declare const createReaderWithEnhancers: (options: Partial<import('./sett
|
|
|
166
164
|
computedPageTurnDirection: import('./settings/types').Settings[`pageTurnDirection`];
|
|
167
165
|
computedPageTurnAnimation: import('./settings/types').Settings[`pageTurnAnimation`];
|
|
168
166
|
computedPageTurnAnimationDuration: number;
|
|
169
|
-
computedSnapAnimationDuration: number;
|
|
170
167
|
} & Required<import('./enhancers/layoutEnhancer/types').SettingsInput> & Required<{
|
|
171
168
|
fontScale?: number;
|
|
172
169
|
lineHeight?: number | `publisher`;
|
package/dist/index.js
CHANGED
|
@@ -5157,7 +5157,7 @@ const createViewportNavigator = ({
|
|
|
5157
5157
|
}),
|
|
5158
5158
|
switchMap$1(([, currentEvent]) => {
|
|
5159
5159
|
if ((currentEvent == null ? void 0 : currentEvent.type) !== `manualAdjust`) return EMPTY;
|
|
5160
|
-
const animationDuration = currentEvent.animation === `snap` ? settings.settings.
|
|
5160
|
+
const animationDuration = currentEvent.animation === `snap` ? settings.settings.snapAnimationDuration : settings.settings.computedPageTurnAnimationDuration;
|
|
5161
5161
|
const pageTurnAnimation = currentEvent.animation === `snap` ? `slide` : settings.settings.computedPageTurnAnimation;
|
|
5162
5162
|
return of(currentEvent).pipe(
|
|
5163
5163
|
/**
|
|
@@ -5512,8 +5512,7 @@ const getComputedSettings = (settings, context) => {
|
|
|
5512
5512
|
computedPageTurnDirection: settings.pageTurnDirection,
|
|
5513
5513
|
computedPageTurnAnimation: settings.pageTurnAnimation,
|
|
5514
5514
|
computedPageTurnMode: `controlled`,
|
|
5515
|
-
computedPageTurnAnimationDuration: 0
|
|
5516
|
-
computedSnapAnimationDuration: 0
|
|
5515
|
+
computedPageTurnAnimationDuration: 0
|
|
5517
5516
|
};
|
|
5518
5517
|
if ((manifest == null ? void 0 : manifest.renditionFlow) === `scrolled-continuous`) {
|
|
5519
5518
|
computedSettings.computedPageTurnMode = `scrollable`;
|
|
@@ -5550,7 +5549,7 @@ const defaultSettings = {
|
|
|
5550
5549
|
// computedPageTurnAnimationDuration: 0,
|
|
5551
5550
|
pageTurnMode: `controlled`,
|
|
5552
5551
|
// computedPageTurnMode: `controlled`,
|
|
5553
|
-
|
|
5552
|
+
snapAnimationDuration: 300,
|
|
5554
5553
|
navigationSnapThreshold: 0.3,
|
|
5555
5554
|
numberOfAdjacentSpineItemToPreLoad: 0
|
|
5556
5555
|
};
|