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

58 commits

Author SHA1 Message Date
Fred Chasen
f10feec1ec Add enable-annotation attr to iframe 2017-09-14 22:45:08 -05:00
Fred Chasen
6313bb09d0 Fix for webkit not supporting position of collapsed ranges 2017-09-01 22:59:23 -04:00
Fred Chasen
3f1a353cf3 Make sure view is defined in views.each 2017-08-28 17:50:28 -04:00
Fred Chasen
eff216fd2d Simplify iframe view expanding 2017-08-28 17:10:51 -04:00
Fred Chasen
cc0110a58c Guard against empty contents 2017-08-28 11:05:09 -04:00
Fred Chasen
576a5b81dc Fixed scrolled location, updated hypothesis examples 2017-08-25 14:16:45 -04:00
Fred Chasen
ced1bf89ff Continuous manager fixes 2017-08-10 15:45:26 -04:00
Fred Chasen
03e7ca085c Fixes for page counting 2017-08-09 17:19:02 -04:00
Fred Chasen
c2b3284259 Temp disable scrolling to visible, always re-render 2017-08-02 22:09:52 -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
6b16ebe9d0 Tidy up Locations 2017-07-20 15:57:58 -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
661d4d77d1 Add metatags for annotations 2017-07-06 17:53:48 -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
fchasen
176125e46b Update core.prefix 2017-05-12 13:34:25 -04:00
Fred Chasen
2d3f1cc039 Fix for column rendering in Safari (#614)
* Fix for column rendering in Safari

* Set body to display inline in Columns css
2017-05-09 16:42:30 -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
9e18040c53 Set layout variables as props for passing as json 2017-03-31 13:36:48 -04:00
Fred Chasen
00fd8c6b3b fixes scrolled location reporting 2017-03-30 19:36:33 -04:00
Fred Chasen
f26b0c9f00 Add parsing of json manifest 2017-03-22 11:17:13 -04:00
Fred Chasen
9cd28e1144 default manager currentLocation maps all visible views, fix multiple reporting 2017-03-10 14:05:20 -05:00
Fred Chasen
5269cfc4f8 Merge pull request #542 from Sunil-bb/fix-for-528-534
Fix for 534 and 528
2017-02-12 14:40:14 -05:00
Fred Chasen
7bf01d54b9 Merge pull request #547 from futurepress/react_native_fixes
React (native) fixes
2017-02-12 13:31:07 -05:00
Fred Chasen
d95ec97f7f Add Destroy to view managers 2017-02-12 13:27:49 -05:00
Gerhard Sletten
4b43c04e06 Removed a not necessary condition in next() that stops single column … (#536)
* Removed a not necessary condition in next() that stops single column layout from going to next chapter.

* Add loading on next chapter togather with scrollto that avoids over scrolling the end of chapter
2017-02-07 10:08:14 -05:00
Sunil.Belakeri
dff2b040a0 Fix for issues:
https://github.com/futurepress/epub.js/issues/534
https://github.com/futurepress/epub.js/issues/528
2017-02-07 13:24:22 +05:30
Fred Chasen
ad9dd35fb5 Stop expand on pre-paginated, adjust images only on if not pre-paginated, update deps 2016-12-14 16:07:10 +01:00
Fred Chasen
58893a88b4 move link replacement into Contents, make sure afterDisplayed is triggered 2016-12-12 21:06:34 +01:00
Fred Chasen
a435650c3b Fix eslint errors 2016-12-08 01:08:39 +01:00
Fred Chasen
ba3eec0885 Fixed undefined offset in default viewManager display 2016-12-06 23:54:54 +01:00
Fred Chasen
353dfa62fd Intial move to ES2015 2016-12-06 15:04:16 +01:00
Fred Chasen
582cc2fcb2 Add themes methods to rendition 2016-12-04 20:31:57 +01:00
Fred Chasen
165d8a4875 Added locations, updated cfi to handle ranges 2016-11-17 15:30:40 +01:00
Fred Chasen
47787678f7 Added core Url and Path, split up book.open, added Container and Packaging 2016-11-08 02:06:10 +01:00
Fred Chasen
315650006e Switched from URIjs to URL and Node Path 2016-10-30 22:14:01 +01:00
Fred Chasen
151dc97d19 Switch to Native Promises, add polyfills.js in dist folder 2016-10-27 00:46:56 +02:00
Fred Chasen
a4e76029d4 Add event-emitter for node compatible events 2016-10-26 23:49:57 +02:00
Fred Chasen
5c49e4f4b6 Move managers to subfolder, rename single to default 2016-10-24 17:04:11 +02:00
Fred Chasen
730b06f32b Move views and helpers into managers 2016-10-24 16:42:59 +02:00
Fred Chasen
32993dc58c Tabify src 2016-10-24 15:15:16 +02:00
Fred Chasen
1a26c1901e Render pre-paginated spreads in single and continuous managers 2016-10-24 14:55:15 +02:00
Fred Chasen
89387f1ef2 Single render handles spreads 2016-09-23 17:05:25 +02:00
Fred Chasen
0889e63a29 Load fail error, fix scrolled-doc layout 2016-09-23 14:38:59 +02:00
Fred Chasen
eed4a45cb6 Add min spread width in determineLayoutProperties 2016-09-06 14:36:54 +02:00