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

58 commits

Author SHA1 Message Date
NoraH1to
0caaf5f3da fix(iframe-view): can't turn pages after changing window size 2023-05-20 01:36:00 +08:00
azu
c168bb91ce feat: add allowPopups option 2022-02-05 14:52:55 +09:00
Fred Chasen
d86b375ec9 Remove check for script properties 2022-01-07 14:27:01 -08: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
Scott Batson
057ed100f8 remove pane to force redraw on render 2021-03-18 15:15:55 -04: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
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
7b8480fde0
Merge pull request #927 from mikkelvp/dev
Respect pre-paginated page spreads
2020-05-14 23:01:21 -07:00
Wassem Keddah
24141db3d9 Bypass iframe dynamic html security for Cordova windows platform 2019-10-17 15:11:03 +02:00
Mikkel Vester Petersen
dfce8e58b7 Add margin to align pre-paginated pages 2019-08-13 14:00:50 +02:00
Mikkel Vester Petersen
5f7faf1450 Respect pre-paginated page spreads 2019-08-12 11:10:44 +02:00
Fred Chasen
4728d09b1d Destroy contents when removing view 2018-12-06 08:42:22 -08:00
Fred Chasen
81d3df70ed Fix mark position in columns, fix marks touchstart removal 2018-11-25 11:48:13 -08:00
Fred Chasen
8b14551ab0 Add iframe after assigning src 2018-11-01 09:55:54 -07:00
Fred Chasen
a3760d92a6 Replace marks after reframe 2018-10-13 16:35:53 -07:00
Fred Chasen
605211046d Fix width for spreads 2018-09-26 21:45:32 -07:00
Fred Chasen
1dbd61a687 Remind Safari to redraw iframe on show 2018-08-24 12:42:40 -07:00
Mikkel Vester Petersen
0d5417646a Custom CSS for annotations
Annotations can be created with a CSS class and CSS attributes. Adds the possibility to have multiple annotations with difference styles/colors.
2018-07-05 10:57:21 +02:00
Fred Chasen
52b6c1a281 Remove contents on iframe view destroy 2018-05-04 17:09:01 -07:00
Fred Chasen
237051055a Re-enable trimming out of frame views 2017-11-20 16:09:47 -08:00
Fred Chasen
781fd1e3bf Update vertical writing support in continuous 2017-11-17 17:35:09 -08:00
Fred Chasen
46800b05b6 Add layout event and forceEvenPages for default manager 2017-11-08 19:27:58 -08:00
Fred Chasen
68956abeb9
Move all Event names to Constants file (#680)
* Added Events Constants

* Fix selected event

* Fix EVENT -> EVENTS typo

* Fix RESIZED -> RESIZE typo
2017-11-03 16:29:03 -07:00
Fred Chasen
b1093fa841 Better loaderror handling 2017-11-03 13:41:39 -07:00
Fred Chasen
230fb63c0f Fix axis for scrolled, update flex prop on axis update 2017-10-31 13:49:14 -07:00
Fred Chasen
101cd47513 Update axis to support vertical writing mode 2017-10-27 16:47:16 -07:00
Fred Chasen
333cb919a8 Set width to 100% for columns, fixes for pre-paginated 2017-10-17 15:43:14 -07:00
Fred Chasen
a42f758559 Add direction to Layout 2017-10-17 11:50:18 -07:00
Fred Chasen
9b6e864ae4 Add RTL support 2017-10-16 17:24:45 -07:00
Fred Chasen
8999feb613 Fix location of marks in paginated columns 2017-10-05 16:43:14 -07:00
Fred Chasen
bbb05616ab Fix removing annotations with no type and attaching marks to invalid cfi 2017-10-04 18:45:15 -07:00
Fred Chasen
d77fc06a2e Add method setting for views 2017-09-26 18:34:56 -07:00
Fred Chasen
37b0a2d42e Move highlighting from Contents to View 2017-09-26 17:41:19 -07:00
Fred Chasen
9f0623b798 Add canonical option, fix base tag for Safari 2017-09-21 22:10:58 -07:00
Fred Chasen
f10feec1ec Add enable-annotation attr to iframe 2017-09-14 22:45:08 -05:00
Fred Chasen
eff216fd2d Simplify iframe view expanding 2017-08-28 17:10:51 -04:00
Fred Chasen
03e7ca085c Fixes for page counting 2017-08-09 17:19:02 -04:00
Fred Chasen
bb1ab21a33 Updates for rendering in embedded Webviews (#643)
* Initial embedding support

* Updates for rendering in embedded webviews

* toLowerCase nodeName check
2017-08-01 17:25:19 -04:00
Fred Chasen
3f4d7bbbf2 Added relocated event 2017-07-10 17:25:26 -04:00
Fred Chasen
aa9c2535d9 Fix min image size, locationOf no longer uses scrollX / Y 2017-07-07 13:43:52 -04:00
Fred Chasen
307c4ea3a8 Merge pull request #636 from futurepress/respect_linear
Respect linear in spine
2017-06-28 20:47:43 -04:00
Fred Chasen
101af4f0f4 Respect linear in spine 2017-06-28 20:40:55 -04:00
Sunil-bb
9131777fa3 Fix for https://github.com/futurepress/epub.js/issues/537 (#550)
* Fix for https://github.com/futurepress/epub.js/issues/537

Following are the changes for getting IE and Firefox working:
• src doc is not supported in IE which was used to render the page content. Now changed the condition if src doc is supported or not and if not we are writing html string to the iframe using iframe.write api.

• Was using page response as xml(responseXML property of xhr), which was creating issue of self closing tags in IE and page was not getting rendered.
Now we have done changes to make use of string output of response to render(using responseText property of xhr) which don't have self closing tags.

• We were not able to load the css and js present in the page contents if they carried a relative URL.
To fix it we have added base tag into the html head so that the js and css links can be found.

• Was using treewalker dom api. In IE expects that acceptNode param should be a function but other browsers expects it to be an object. We have fixed it .

• treewalker dom api has problem with IE if we are passing a text node as root node(throws exception on treewalker.nextNode(), other browsers it returns null). Have added a condition to fix it(if text node do not create treewalker)

* Review change: removed base tag as its being added using hook

* PR changes: reverted the request method implementation and xmlSerialization implementation

* reverted the request method changes to return the response object, now xml is returned

* Updated the condition for IE to use xmldom

Review comment change: To resolve IE self closing tag issue(which causes rendering issue in IE), made use of xmldom npm package.
2017-06-28 20:37:38 -04:00
Fred Chasen
987a216c55 Add annotation manager in rendition 2017-06-16 13:34:18 -04:00
Fred Chasen
573ed8e18b Content resize (#605)
Wait after formatting, listen for resize events from `Contents`
2017-04-24 17:08:53 -04:00
Fred Chasen
bf9cd9f279 bump version to 0.3.25 2017-04-12 17:08:47 -04:00
Gerhard Sletten
4dc35bfc72 Optional global settings to disable srcdoc, since it will fail on cordova (#588) 2017-04-12 17:08:05 -04:00
Fred Chasen
f26b0c9f00 Add parsing of json manifest 2017-03-22 11:17:13 -04:00