@likecoin/epub-ts 0.5.0 → 0.5.1
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/annotations.d.ts +0 -3
- package/dist/epub.cjs +3 -3
- package/dist/epub.cjs.map +1 -1
- package/dist/epub.js +5 -9
- package/dist/epub.js.map +1 -1
- package/dist/epub.node.cjs +2 -2
- package/dist/epub.node.cjs.map +1 -1
- package/dist/epub.node.js +38 -43
- package/dist/epub.node.js.map +1 -1
- package/dist/epub.umd.js +3 -3
- package/dist/epub.umd.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/managers/continuous/index.d.ts +2 -2
- package/dist/rendition.d.ts +1 -1
- package/package.json +1 -1
package/dist/epub.js
CHANGED
|
@@ -2962,13 +2962,11 @@ class Te {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
/**
|
|
2964
2964
|
* [Not Implemented] Show annotations
|
|
2965
|
-
* @TODO: needs implementation in View
|
|
2966
2965
|
*/
|
|
2967
2966
|
show() {
|
|
2968
2967
|
}
|
|
2969
2968
|
/**
|
|
2970
2969
|
* [Not Implemented] Hide annotations
|
|
2971
|
-
* @TODO: needs implementation in View
|
|
2972
2970
|
*/
|
|
2973
2971
|
hide() {
|
|
2974
2972
|
}
|
|
@@ -3011,7 +3009,6 @@ class Zt {
|
|
|
3011
3009
|
}
|
|
3012
3010
|
/**
|
|
3013
3011
|
* [Not Implemented] Get text of an annotation
|
|
3014
|
-
* @TODO: needs implementation in contents
|
|
3015
3012
|
*/
|
|
3016
3013
|
text() {
|
|
3017
3014
|
}
|
|
@@ -5122,7 +5119,6 @@ class Ve extends st {
|
|
|
5122
5119
|
this.updateWritingMode(i);
|
|
5123
5120
|
}), e.onDisplayed = (i) => this.afterDisplayed(i), e.onResize = (i) => this.afterResized(i), e.display(this.request);
|
|
5124
5121
|
}
|
|
5125
|
-
// @ts-expect-error - Returns IframeView synchronously unlike base class Promise<IframeView>
|
|
5126
5122
|
append(t) {
|
|
5127
5123
|
const e = this.createView(t);
|
|
5128
5124
|
return e.on(f.VIEWS.RESIZED, (i) => {
|
|
@@ -5131,9 +5127,8 @@ class Ve extends st {
|
|
|
5131
5127
|
this.updateAxis(i);
|
|
5132
5128
|
}), e.on(f.VIEWS.WRITING_MODE, (i) => {
|
|
5133
5129
|
this.updateWritingMode(i);
|
|
5134
|
-
}), this.views.append(e), e.onDisplayed = (i) => this.afterDisplayed(i), e;
|
|
5130
|
+
}), this.views.append(e), e.onDisplayed = (i) => this.afterDisplayed(i), Promise.resolve(e);
|
|
5135
5131
|
}
|
|
5136
|
-
// @ts-expect-error - Returns IframeView synchronously unlike base class Promise<IframeView>
|
|
5137
5132
|
prepend(t) {
|
|
5138
5133
|
const e = this.createView(t);
|
|
5139
5134
|
return e.on(f.VIEWS.RESIZED, (i) => {
|
|
@@ -5142,7 +5137,7 @@ class Ve extends st {
|
|
|
5142
5137
|
this.updateAxis(i);
|
|
5143
5138
|
}), e.on(f.VIEWS.WRITING_MODE, (i) => {
|
|
5144
5139
|
this.updateWritingMode(i);
|
|
5145
|
-
}), this.views.prepend(e), e.onDisplayed = (i) => this.afterDisplayed(i), e;
|
|
5140
|
+
}), this.views.prepend(e), e.onDisplayed = (i) => this.afterDisplayed(i), Promise.resolve(e);
|
|
5146
5141
|
}
|
|
5147
5142
|
counter(t) {
|
|
5148
5143
|
this.settings.axis === "vertical" ? this.scrollBy(0, t.heightDelta, !0) : this.scrollBy(t.widthDelta, 0, !0);
|
|
@@ -5189,7 +5184,7 @@ class Ve extends st {
|
|
|
5189
5184
|
_ && s.push(this.append(_));
|
|
5190
5185
|
}, v = h + l + r, b = h - r;
|
|
5191
5186
|
v >= c && m(), b < 0 && g();
|
|
5192
|
-
const k = s.map((E) => E.display(this.request));
|
|
5187
|
+
const k = s.map((E) => E.then((_) => _.display(this.request)));
|
|
5193
5188
|
return s.length ? Promise.all(k).then(() => this.check()).then(() => this.update(r), (E) => E) : (this.q.enqueue(() => {
|
|
5194
5189
|
this.update();
|
|
5195
5190
|
}), i.resolve(!1), i.promise);
|
|
@@ -5529,7 +5524,7 @@ class Lt {
|
|
|
5529
5524
|
}
|
|
5530
5525
|
/**
|
|
5531
5526
|
* Adjust if the rendition uses spreads
|
|
5532
|
-
* @param {string} spread none | auto
|
|
5527
|
+
* @param {string} spread none | auto
|
|
5533
5528
|
* @param {int} [min] min width to use spreads at
|
|
5534
5529
|
*/
|
|
5535
5530
|
spread(t, e) {
|
|
@@ -6456,6 +6451,7 @@ export {
|
|
|
6456
6451
|
Te as Annotations,
|
|
6457
6452
|
He as Archive,
|
|
6458
6453
|
Rt as Book,
|
|
6454
|
+
be as Container,
|
|
6459
6455
|
Nt as Contents,
|
|
6460
6456
|
ut as DisplayOptions,
|
|
6461
6457
|
y as EpubCFI,
|