@d-i-t-a/reader 3.0.0-alpha.18 → 3.0.0-alpha.19
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/dist/esm/index.js +4 -3
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.js +1 -1
- package/dist/reader.js.map +2 -2
- package/dist/types/reader.d.ts +3 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -91348,7 +91348,7 @@ var EpubNavigator = class _EpubNavigator extends VisualNavigator {
|
|
|
91348
91348
|
if (startContainer) {
|
|
91349
91349
|
this.view?.goToCssSelector(startContainer);
|
|
91350
91350
|
}
|
|
91351
|
-
} else if (bookViewPosition && bookViewPosition >= 0) {
|
|
91351
|
+
} else if (bookViewPosition !== void 0 && bookViewPosition >= 0) {
|
|
91352
91352
|
if (this.view?.layout !== "fixed") {
|
|
91353
91353
|
this.view?.padOddColumns?.();
|
|
91354
91354
|
}
|
|
@@ -95939,8 +95939,9 @@ var D2Reader = class _D2Reader {
|
|
|
95939
95939
|
this.navigator.snapToSelector?.(selector2);
|
|
95940
95940
|
};
|
|
95941
95941
|
/**
|
|
95942
|
-
*
|
|
95943
|
-
*
|
|
95942
|
+
* Update the navigator `IFrameAttributes` after the reader has been initialized.
|
|
95943
|
+
* Use this to change `margin`, `iframe.padding`, `safeArea`, or fixed-layout
|
|
95944
|
+
* attributes at runtime. The navigator re-applies them on the next resize.
|
|
95944
95945
|
*/
|
|
95945
95946
|
this.applyAttributes = (value) => {
|
|
95946
95947
|
this.navigator.applyAttributes?.(value);
|