html-flip-book-vanilla 0.0.0-alpha.63 → 0.0.0-alpha.65
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/flipbook.js +15 -0
- package/dist/flipbook.js.map +1 -1
- package/package.json +1 -1
package/dist/flipbook.js
CHANGED
|
@@ -83,6 +83,7 @@ class U {
|
|
|
83
83
|
constructor(t) {
|
|
84
84
|
this.host = t;
|
|
85
85
|
}
|
|
86
|
+
host;
|
|
86
87
|
items = /* @__PURE__ */ new Map();
|
|
87
88
|
sync(t, e, i, o, s = "", n) {
|
|
88
89
|
if (!j(i)) {
|
|
@@ -296,6 +297,7 @@ class q {
|
|
|
296
297
|
const i = t.ownerDocument;
|
|
297
298
|
this.view = i.defaultView, this.element = i.createElement("div"), this.element.className = "flipbook-bookmark-preview", this.element.setAttribute("data-flipbook-no-flip", ""), this.element.hidden = !0, this.element.addEventListener("pointerenter", this.resume), this.element.addEventListener("pointerleave", this.pointerLeave), this.clipBoundary = i.createElement("div"), this.clipBoundary.className = "flipbook-bookmark-preview-boundary", this.clipBoundary.style.cssText = "position:fixed;inset:0;pointer-events:none;transition:none", this.clipBoundary.hidden = !0, this.clipBoundary.append(this.element), i.body.append(this.clipBoundary), i.addEventListener("keydown", this.escapeKey);
|
|
298
299
|
}
|
|
300
|
+
storage;
|
|
299
301
|
element;
|
|
300
302
|
clipBoundary;
|
|
301
303
|
source;
|
|
@@ -484,6 +486,11 @@ class J {
|
|
|
484
486
|
const r = Array.from(t.children).find((a) => a.matches(".page"));
|
|
485
487
|
t.insertBefore(this.element, r ?? null);
|
|
486
488
|
}
|
|
489
|
+
host;
|
|
490
|
+
getContext;
|
|
491
|
+
jump;
|
|
492
|
+
pagesCount;
|
|
493
|
+
onPointerDown;
|
|
487
494
|
element;
|
|
488
495
|
depthMeasure;
|
|
489
496
|
rails = /* @__PURE__ */ new Map();
|
|
@@ -1024,6 +1031,10 @@ class ct {
|
|
|
1024
1031
|
constructor(t, e, i, o, s) {
|
|
1025
1032
|
this.index = t, this.pages = e, this.bookProperties = o, this.onTurned = s, this.wrappedFlipPosition = i ? 1 : 0;
|
|
1026
1033
|
}
|
|
1034
|
+
index;
|
|
1035
|
+
pages;
|
|
1036
|
+
bookProperties;
|
|
1037
|
+
onTurned;
|
|
1027
1038
|
/** Optional companion material renderer; invoked after each page transform is applied. */
|
|
1028
1039
|
onTransform;
|
|
1029
1040
|
wrappedTransformFrame;
|
|
@@ -1268,6 +1279,8 @@ class T {
|
|
|
1268
1279
|
constructor(t, e) {
|
|
1269
1280
|
this.width = t, this.height = e;
|
|
1270
1281
|
}
|
|
1282
|
+
width;
|
|
1283
|
+
height;
|
|
1271
1284
|
static from(t) {
|
|
1272
1285
|
return new T(t.width, t.height);
|
|
1273
1286
|
}
|
|
@@ -1279,6 +1292,8 @@ class P {
|
|
|
1279
1292
|
constructor(t, e) {
|
|
1280
1293
|
this.width = t, this.height = e, this.aspectRatio = new T(t, e);
|
|
1281
1294
|
}
|
|
1295
|
+
width;
|
|
1296
|
+
height;
|
|
1282
1297
|
aspectRatio;
|
|
1283
1298
|
aspectRatioFit(t) {
|
|
1284
1299
|
const e = T.from(t).value;
|