Skip to content

Commit

Permalink
Merge pull request #2 from victorsoares96/fix-underline-color
Browse files Browse the repository at this point in the history
fix: cannot change underline color
  • Loading branch information
victorsoares96 committed Mar 22, 2024
2 parents f09089c + 323a377 commit 536f680
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "epubjs",
"version": "0.3.93",
"name": "@victorsoares96/epubjs",
"version": "0.3.94",
"description": "Parse and Render Epubs",
"main": "lib/index.js",
"module": "src/index.js",
Expand All @@ -9,6 +9,10 @@
"directories": {
"test": "test"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"test": "karma start --single-run --browsers ChromeHeadlessNoSandbox",
"docs": "documentation build src/epub.js -f html -o documentation/html/",
Expand Down Expand Up @@ -62,7 +66,7 @@
"jszip": "^3.7.1",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
"marks-pane": "^1.0.9",
"@victorsoares96/marks-pane": "^1.0.11",
"path-webpack": "0.0.3"
}
}
10 changes: 5 additions & 5 deletions src/managers/views/iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {extend, borders, uuid, isNumber, bounds, defer, createBlobUrl, revokeBlo
import EpubCFI from "../../epubcfi";
import Contents from "../../contents";
import { EVENTS } from "../../utils/constants";
import { Pane, Highlight, Underline } from "marks-pane";
import { Pane, Highlight, Underline } from "@victorsoares96/marks-pane";

class IframeView {
constructor(section, options) {
Expand Down Expand Up @@ -562,7 +562,7 @@ class IframeView {
return {
top: this.element.offsetTop,
left: this.element.offsetLeft
}
};
}

width() {
Expand Down Expand Up @@ -764,7 +764,7 @@ class IframeView {
if (l) {
item.element.removeEventListener("click", l);
item.element.removeEventListener("touchstart", l);
};
}
});
delete this.highlights[cfiRange];
}
Expand All @@ -779,7 +779,7 @@ class IframeView {
if (l) {
item.element.removeEventListener("click", l);
item.element.removeEventListener("touchstart", l);
};
}
});
delete this.underlines[cfiRange];
}
Expand All @@ -794,7 +794,7 @@ class IframeView {
if (l) {
item.element.removeEventListener("click", l);
item.element.removeEventListener("touchstart", l);
};
}
});
delete this.marks[cfiRange];
}
Expand Down

0 comments on commit 536f680

Please sign in to comment.