@d-i-t-a/reader 2.1.2 → 2.1.3

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 CHANGED
@@ -45036,6 +45036,11 @@ var IFrameNavigator = class extends import_eventemitter3.default {
45036
45036
  this.goTo(locator);
45037
45037
  }
45038
45038
  }
45039
+ async goToPage(page) {
45040
+ if (this.pageBreakModule !== void 0) {
45041
+ await this.pageBreakModule.goToPageNumber(page);
45042
+ }
45043
+ }
45039
45044
  snapToSelector(selector2) {
45040
45045
  const doc = this.iframes[0].contentDocument;
45041
45046
  if (doc) {
@@ -48463,6 +48468,9 @@ var D2Reader = class {
48463
48468
  this.goToPosition = async (value) => {
48464
48469
  return this.navigator.goToPosition(value);
48465
48470
  };
48471
+ this.goToPage = async (page) => {
48472
+ await this.navigator.goToPage(page);
48473
+ };
48466
48474
  this.nextResource = () => {
48467
48475
  this.navigator.nextResource();
48468
48476
  };