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

1322 commits

Author SHA1 Message Date
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
042793157b Add methods to remove marks 2017-05-04 16:46:49 -04:00
Fred Chasen
5089717c03 Fix for parsing byte-order mark 2017-05-03 13:11:59 -04:00
Fred Chasen
c01f2d3202 Fix Path parsing in URL, bump v0.3.30 2017-05-03 11:46:50 -04:00
Fred Chasen
1647105928 Version bump to 0.3.29, fix webpack loader for marks-pane 2017-05-02 10:16:13 -04:00
Fred Chasen
8523d325c6 Merge pull request #607 from zarkone/this-undefined-fix
This is undefined in `createBlobUrl`
2017-05-02 09:57:59 -04:00
Fred Chasen
6548f83345 Merge pull request #611 from nielslanting/v0.3
Fixed click addEventListener for highlight/underline
2017-05-02 08:43:44 -04:00
niels
fca44a9644 Fixed click addEventListener 2017-05-02 11:43:46 +02:00
Fred Chasen
ee2264b064 Pass mark events from the rendition 2017-04-27 15:38:09 -04:00
Fred Chasen
1eb2566b15 marksClicked event 2017-04-27 13:51:49 -04:00
Anatoly Smolyaninov
262477e938 Fixes Cannot read property 'createBlob' of undefined error 2017-04-27 09:24:03 +07:00
Fred Chasen
a2c8ac6d94 Update to marks-pane 2017-04-25 17:53:05 -04:00
Fred Chasen
286d683837 Bump to version 0.3.26 2017-04-24 17:10:08 -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
32672359f5 Add methods to mark a paragraph by cfi (#604)
* Add highlight to contents

* Add marks and pass data to highlights

* Add marks example

* Only add pane when highlight is added

* Include marks in babel processing
2017-04-24 15:42:16 -04:00
fchasen
f0856ea78c Rename rendition.range -> rendition.getRange 2017-04-19 20:44:39 -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
84e695fe08 Adds book.getRange, RangeObject polyfill (#599)
* range -> getRange, RangeObject polyfill

* Fix children for walkToNode
2017-04-12 15:59:47 -04:00
Fred Chasen
ca48f604bf Merge pull request #589 from futurepress/layout_props
Add Layout props
2017-03-31 13:45:43 -04:00
Fred Chasen
9e18040c53 Set layout variables as props for passing as json 2017-03-31 13:36:48 -04:00
Fred Chasen
a1ffc44efa bump version to 0.3.23 2017-03-30 22:10:00 -04:00
Fred Chasen
a7ea5b2407 Merge pull request #587 from futurepress/location_reporting_fixes
Fixes scrolled location reporting
2017-03-30 22:00:18 -04:00
Fred Chasen
00fd8c6b3b fixes scrolled location reporting 2017-03-30 19:36:33 -04:00
bill-titus
646a09a9e8 Fix spine node index in CFIs (#584)
* Fix spine node index issue.

A fix is needed in two places.
1.) packaging.js -> use "children" to find only elements rather than "childNode" which can sometimes return text nodes and comment nodes, depending on the format of package.opf.
2.) epubcfi.js -> multiple the spine index by 2 to conform to CFI rules.

NOTE: The existing code works due to these two bugs canceling each other out for cases when the package.opf is formatted with spacing and no comments (and hence including two nodes for every one element in the spine).

* Part 2 for Spine Index fix.

* Fix for Spine Index when <IE9

* Fix for Spine Index in <IE9

* Formatting from spaces to tabs for new line just added.
2017-03-29 13:38:02 -04:00
Fred Chasen
6b01c94d0c Remove console.log in rendition 2017-03-27 11:37:27 -04:00
Fred Chasen
cde11e83d0 Fix variable issue with naviation parse 2017-03-27 11:32:07 -04:00
Fred Chasen
66242c5e99 Fix navigation isXml check 2017-03-27 11:20:50 -04:00
Fred Chasen
b72c99888b Bump version to 0.3.19 2017-03-27 10:37:40 -04:00
Fred Chasen
88696166f0 Merge pull request #583 from futurepress/json_manifest
Add Support for JSON manifest
2017-03-27 10:32:28 -04:00
Fred Chasen
7e8932807c Merged resize changes 2017-03-27 10:25:15 -04:00
Fred Chasen
c6355efc6c Merge branch 'v0.3' of https://github.com/futurepress/epub.js into v0.3 2017-03-27 10:23:49 -04:00
Fred Chasen
433599e0b3 Fix scale parsing for viewport 2017-03-27 10:23:37 -04:00
Fred Chasen
f49b7fffd1 Merge pull request #581 from bill-titus/patch-2
Remove poison CFI fix for double spineIndex
2017-03-24 20:06:48 -04:00
bill-titus
3cbad7730f Remove poison CFI fix for double spineIndex
It turns out that spineNodeIndex is set here:
this.spineNodeIndex = Array.prototype.indexOf.call(spineNode.parentNode.childNodes, spineNode);

And childNodes includes the list of all nodes (text and elements) already.
2017-03-24 19:25:08 -04:00
Fred Chasen
f26b0c9f00 Add parsing of json manifest 2017-03-22 11:17:13 -04:00
Fred Chasen
268df221d2 Merge pull request #573 from gerhardsletten/v3-resize-fix
Format the layout when size of window has changed
2017-03-21 23:13:31 -04:00
Fred Chasen
0850e60868 Merge branch 'v0.3' of https://github.com/futurepress/epub.js into v0.3 2017-03-21 20:18:14 -04:00
Fred Chasen
51559299b1 Remove byte-order mark before parsing 2017-03-21 20:17:41 -04:00
Fred Chasen
e67620d20a Merge pull request #578 from bill-titus/patch-1
Multiply the spine index value by 2, as it refers to the index of the…
2017-03-21 14:22:22 -04:00
bill-titus
4a4e1795ef Multiply the spine index value by 2, as it refers to the index of the spine element as opposed to a text node
http://www.idpf.org/epub/linking/cfi/epub-cfi.html
2017-03-21 13:03:54 -04:00
Fred Chasen
35159787a1 Merge pull request #577 from futurepress/fix_prepaginated_regex
Fix isFixedLayout check
2017-03-21 12:36:35 -04:00
Fred Chasen
cb13b78951 Updated pre-paginated regex check to only return true if width and height are present 2017-03-21 12:32:41 -04:00
Gerhard Sletten
a9a1941f43 Format the layout when size of window has changed 2017-03-18 10:37:03 +01:00
Fred Chasen
120e9fe8b3 Fix Core childNodes function to use passed element, not parent element 2017-03-15 13:56:12 -04:00
Fred Chasen
e482494f32 Bump to version 0.3.17 2017-03-10 14:57:50 -05:00
Fred Chasen
56db346ff7 Merge pull request #570 from futurepress/reportLocation_cleanup
Location reporting cleanup
2017-03-10 14:56:49 -05:00
Fred Chasen
9cd28e1144 default manager currentLocation maps all visible views, fix multiple reporting 2017-03-10 14:05:20 -05:00
Fred Chasen
72df566118 Merge pull request #567 from futurepress/injectedjs
Inject Script in Rendition, add cfiFromRange to Contents
2017-03-08 13:29:40 -05:00
Fred Chasen
78249761c3 Inject Script in Rendition, add cfiFromRange to Contents 2017-03-08 12:29:47 -05:00