1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00
Commit graph

584 commits

Author SHA1 Message Date
Fred Chasen
854d4f3b2a
Merge pull request #1250 from washu/patch-1
Update core.js
2022-02-15 10:11:54 -08:00
Sal Scotto
00a9ef4a4a
Update core.js
fix for css attached to epub in iframe rendering.
2022-02-08 08:31:51 -07:00
azu
c168bb91ce feat: add allowPopups option 2022-02-05 14:52:55 +09:00
Fred Chasen
f6fece4f88
Merge pull request #1239 from rafaelsaback/fix-locations-generate-type
Fix locations.generate's return type
2022-01-07 15:49:31 -08:00
Fred Chasen
d86b375ec9 Remove check for script properties 2022-01-07 14:27:01 -08:00
Fred Chasen
e727bc85bc
Merge pull request #1233 from johnfactotum/fix-nav-span
Allow `span` in toc nav items
2022-01-07 11:19:39 -08:00
Fred Chasen
858c3a8f91
Merge pull request #1232 from kianmeng/fix-typos
Fix typos
2022-01-07 11:17:51 -08:00
Rafael Saback
33df7dd27e Fix locations.generate's return type 2021-12-29 11:49:29 +01:00
John Factotum
32afb79fd1 Fix ID assertion in section base CFI
XML ID assertions should contain the `id` attribute of the element itself.

Fixes #1236
2021-12-27 14:52:07 +08:00
John Factotum
1336e51c40 Allow span in toc nav items
According to https://www.w3.org/publishing/epub32/epub-packages.html#sec-package-nav-def-model:

"A child `a` element describes the target that the link points to, while a `span` element serves as a heading for breaking down lists into distinct groups (for example, a large list of illustrations can be segmented into several lists, one for each chapter)."
2021-12-16 15:11:55 +08:00
Kian-Meng, Ang
851304ff76 Fix typos 2021-12-16 15:03:30 +08:00
maggie0002
d0d557e398 Import new @xmldom package 2021-10-21 09:45:41 +01:00
Fred Chasen
e43c12832b
Merge pull request #1182 from Upstatement/remove-pane-if-iframe-unloads
Remove pane when iframe is destroyed to force redraw on render
2021-10-20 20:18:51 -07:00
Fred Chasen
ab4dd46408 Add iframe sandboxing 2021-10-20 20:15:50 -07:00
Tudor Gavan
9267148062
Fix xmldom DOMParser import
`xmldom` does not export `XMLDOMParser`, it exports `DOMParser` instead (https://www.npmjs.com/package/xmldom).

With TypeScript, the following error occurs, which breaks the build:

```
./node_modules/epubjs/src/section.js💯18-34 - Error: export 'XMLDOMParser' (imported as 'XMLDOMSerializer') was not found in 'xmldom' (possible exports: DOMImplementation, DOMParser, XMLSerializer)
```

Making the correction manually in the local node_modules fixes this, but it's obviously not a longterm solution.
2021-06-20 22:52:11 +03:00
Scott Batson
057ed100f8 remove pane to force redraw on render 2021-03-18 15:15:55 -04:00
Fred Chasen
408873b8ac Move mime.js to utils, remove libs folder 2021-03-09 11:18:02 -08:00
Fred Chasen
98fe63bc4e
Merge pull request #1160 from alikazemkhanloo/patch-1
add RTL support for moveTo function
2021-03-08 16:45:42 -08:00
Fred Chasen
952190e76f
Merge pull request #1140 from EduardoJM/master
fix the getRange in Book return type to Promise
2021-03-08 15:25:32 -08:00
Fred Chasen
7e04151e13
Merge pull request #1123 from rafaelsaback/patch-1
Fix cfirange type on selected event
2021-03-08 15:22:49 -08:00
Fred Chasen
9a9a32799f
Merge pull request #1104 from alikazemkhanloo/fixPageNumbers
update layout before calculating location
2021-03-08 11:56:14 -08:00
Fred Chasen
27691ac94d
Merge pull request #1121 from MrMYHuang/UpdateLayoutAcrossSection
Update layout after crossing a section boundary
2021-03-08 11:55:47 -08:00
Fred Chasen
d68919ff06
Merge pull request #1120 from MrMYHuang/FixMoveToForVertical
* Fix moveTo for vertical writing mode.
2021-03-08 11:55:17 -08:00
Fred Chasen
e2f90b3526
Merge pull request #1118 from AmmiWang/patch-1
Update hook.js
2021-03-08 11:44:20 -08:00
Fred Chasen
fc1727bbc4
Merge pull request #1114 from nielslanting/feat/nested-toc
Return nested TOC with duplicate hrefs
2021-03-08 11:42:02 -08:00
Ali Kazemkhanloo
1e5c12c9bd
add RTL support for moveTo function
fixes links in RTL books
2020-12-12 19:04:57 +03:30
Eduardo
0811cf9ea4 fix the getRange in Book return type to Promise 2020-10-23 09:39:20 -03:00
Rafael Saback
85c26471a1
Add mousemove to DOM_EVENTS 2020-09-11 09:06:30 +02:00
Rafael Saback
9beeca4427
Fix cfirange on selected event 2020-09-10 10:13:14 +02:00
Meng-Yuan Huang
c59226133c * Fix a layout update bug after crossing a section boundary. 2020-09-06 21:31:09 +08:00
Meng-Yuan Huang
b7bb95d97a * Fix moveTo for vertical writing mode. 2020-09-05 21:37:23 +08:00
Ammi
016532797d
Update hook.js
In my project, directly running "var executing = task.apply(context, args);" will cause part  page of the to be blank
2020-08-28 16:31:14 +08:00
niels
ef588a5fd5 Get the OL element, null check on item 2020-08-21 14:28:27 +02:00
niels
7297af051b Return nested TOC with duplicate ids 2020-08-21 11:34:51 +02:00
Ali Kazemkhanloo
2c94fa50c6
call updateLayout inside currentLocation 2020-07-14 22:23:21 +04:30
Ali Kazemkhanloo
36f2e1b684
update layout before calculating location 2020-07-13 20:59:29 +04:30
Fred Chasen
b5be5514e2
Merge pull request #1074 from futurepress/scrolled_axis
Updated scrolled display to work on vertical and horizontal axis
2020-06-30 19:41:04 -07:00
Fred Chasen
65c744c696 Take axis and writingModes into account when calculating when to add new views
Remove debugging logs

remove trim log
2020-06-29 22:36:49 -07:00
Losses Don
95608aa862
Update the strategy of finding covers.
related to issue #1085
2020-06-21 13:29:16 +08:00
Fred Chasen
bb61a92f27 Fix mapping for RTL 2020-06-18 11:32:43 -07:00
Fred Chasen
19cb5ac10f Update expands for vertical paginated 2020-06-17 13:32:19 -07:00
Fred Chasen
4a2e9e97a9 Updated scrolled display to work on vertical and horizontal axis 2020-06-17 13:32:19 -07:00
Fred Chasen
ba213ceb8a Run resizeCheck in requestAnimationFrame for ResizeObserver 2020-06-09 13:12:44 -07:00
Fred Chasen
7ebbe01bf4 Remove ResizeObserver console log 2020-06-06 12:17:29 -07:00
Fred Chasen
29e1e8fdd6
Limit polling if not active on tab, use resize observer if supported (#1077) 2020-06-05 10:34:57 -07:00
Fred Chasen
cb4facb6c2
WIP: Update to Webpack 4 and Babel 7 (#835)
* Update to Webpack 4 and Babel 7

* Update karma tests

* Update browserlist, fix tests, remove all requires

* Update karma browserlist query

* Update webpack externals

* remove gulp and serve

* Fix webpack for karma

* Fix test externals
2020-06-04 21:38:39 -07:00
Fred Chasen
589f27eb63 Use bottom of rect to get height in textHeight 2020-06-03 13:56:02 -07:00
Fred Chasen
0adbb08dac
Merge pull request #1059 from alidbc/master
Fix left offset calculation of RTL prev navigation
2020-05-22 18:49:00 -07:00
Fred Chasen
d8bfe16d82
Merge pull request #1062 from simonminer/1061-error-with-special-characters-in-epub-file-names
Account for special characters in ePub content file URL substitutions
2020-05-22 18:37:48 -07:00
Fred Chasen
2e5b2ec684
Merge pull request #1063 from christiaan/master_fix-coverUrl-thows-unexpected-error
Bugfix calling coverUrl throws error on book without cover
2020-05-22 18:37:00 -07:00