1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-02 14:49:16 +02:00
Commit graph

1280 commits

Author SHA1 Message Date
Fred Chasen
5c610143bf
Merge pull request #1237 from johnfactotum/fix-cfi-base 2021-12-27 11:58:21 -08: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
Fred Chasen
228d9913e0 0.3.90 2021-10-21 11:44:03 -07:00
Fred Chasen
819d3c3380 Update dependencies 2021-10-21 11:43:54 -07:00
Fred Chasen
f7c179ad7b
Merge pull request #1223 from maggie0002/xmldom
Import new @xmldom package
2021-10-21 11:32:23 -07:00
maggie0002
d0d557e398 Import new @xmldom package 2021-10-21 09:45:41 +01:00
Fred Chasen
9fd9177c48 0.3.89 2021-10-20 20:23:16 -07: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
9e729d693c
Merge pull request #1222 from futurepress/disable_scripts
Add iframe sandboxing and allowScriptedContent option
2021-10-20 20:18:09 -07:00
Fred Chasen
ab4dd46408 Add iframe sandboxing 2021-10-20 20:15:50 -07:00
Fred Chasen
f632df7cb3
Merge pull request #1184 from Upstatement/fix-marks-example
fix marks example
2021-10-18 22:47:19 -07:00
Fred Chasen
f1a3e01269
Merge pull request #1202 from tgv1975/patch-2
Fix xmldom DOMParser import
2021-10-18 22:46:25 -07:00
Fred Chasen
4f4155a891
Merge pull request #1206 from maggie0002/master
Fix XMLDOM package critical security vulnerability
2021-10-18 22:46:15 -07:00
maggie0002
4fdd85c0c6 Update XMLDOM Package 2021-09-22 14:50:17 -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
46eb851111 fix marks example 2021-03-25 16:32:27 -04:00
Scott Batson
057ed100f8 remove pane to force redraw on render 2021-03-18 15:15:55 -04:00
Fred Chasen
5c7f21d648
Merge pull request #1180 from futurepress/move_mime_to_utils
Build mime.js with babel
2021-03-09 11:43:00 -08: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
701ef3ab24
Merge pull request #1115 from bard/epub-types
update Epub() type signature to reflect implementation
2021-03-08 11:42:34 -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
Fred Chasen
c0b710deab
Merge pull request #1124 from rafaelsaback/patch-2
Add mousemove to DOM_EVENTS
2021-03-08 11:40:00 -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
Massimiliano Mirra
6642c435ca update Epub() type signature to reflect implementation 2020-08-16 10:40:10 +01: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
a1e77b745b 0.3.88 2020-06-30 19:42:25 -07:00
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
32cb9cf9c6
Merge pull request #1086 from Losses/patch-1
Update the strategy of finding covers.
2020-06-30 18:56:50 -07:00
Fred Chasen
fc717265ba Fullscreen flag for scrolled-doc example 2020-06-30 18:53:18 -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
Fred Chasen
c417294029
Merge pull request #1091 from tgv1975/patch-1
Fix broken type that cause TypeScript compilation error
2020-06-27 15:14:26 -07:00
Tudor Gavan
4489f0ed02
Update index.d.ts 2020-06-27 19:00:45 +03: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