@d-i-t-a/reader 2.3.12 → 2.3.14
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 +5 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.css +1 -1
- package/dist/reader.css.map +1 -1
- package/dist/reader.js +3 -3
- package/dist/reader.js.map +2 -2
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -47608,7 +47608,7 @@ var Publication = class extends import_publication.Publication {
|
|
|
47608
47608
|
const positions = this.positionsByHref(this.getRelativeHref(item.Href));
|
|
47609
47609
|
if (positions?.length > 0) {
|
|
47610
47610
|
const locator = positions[0];
|
|
47611
|
-
let progress = Math.round(locator.locations.totalProgression ? locator.locations.totalProgression : 0 * 100);
|
|
47611
|
+
let progress = Math.round((locator.locations.totalProgression ? locator.locations.totalProgression : 0) * 100);
|
|
47612
47612
|
if (this.sample?.limit) {
|
|
47613
47613
|
let valid = progress <= this.sample?.limit;
|
|
47614
47614
|
if (!valid) {
|
|
@@ -51421,6 +51421,8 @@ var TextHighlighter = class {
|
|
|
51421
51421
|
toolbox.style.transform = "revert";
|
|
51422
51422
|
toolbox.style.width = "100%";
|
|
51423
51423
|
toolbox.style.textAlign = "center";
|
|
51424
|
+
toolbox.style.position = "absolute";
|
|
51425
|
+
toolbox.style.setProperty("--content", "revert");
|
|
51424
51426
|
} else if (this.properties?.menuPosition === MenuPosition.BOTTOM) {
|
|
51425
51427
|
toolbox.style.bottom = "0px";
|
|
51426
51428
|
toolbox.style.left = "0px";
|
|
@@ -51428,6 +51430,7 @@ var TextHighlighter = class {
|
|
|
51428
51430
|
toolbox.style.width = "100%";
|
|
51429
51431
|
toolbox.style.textAlign = "center";
|
|
51430
51432
|
toolbox.style.position = "absolute";
|
|
51433
|
+
toolbox.style.setProperty("--content", "revert");
|
|
51431
51434
|
} else {
|
|
51432
51435
|
const paginated = this.navigator.view?.isPaginated();
|
|
51433
51436
|
if (paginated) {
|
|
@@ -61910,7 +61913,7 @@ function convertAndCamel(o) {
|
|
|
61910
61913
|
if (o.hasOwnProperty(origKey)) {
|
|
61911
61914
|
newKey = (origKey.charAt(0).toLowerCase() + origKey.slice(1) || origKey).toString();
|
|
61912
61915
|
value = o[origKey];
|
|
61913
|
-
if (value instanceof Array || value !== null && value.constructor === Object) {
|
|
61916
|
+
if (value instanceof Array || value !== null && value !== void 0 && value.constructor === Object) {
|
|
61914
61917
|
value = convertAndCamel(value);
|
|
61915
61918
|
}
|
|
61916
61919
|
if (newKey === "href1") {
|