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

1241 commits

Author SHA1 Message Date
Fred Chasen
c0b710deab
Merge pull request #1124 from rafaelsaback/patch-2
Add mousemove to DOM_EVENTS
2021-03-08 11:40:00 -08:00
Rafael Saback
85c26471a1
Add mousemove to DOM_EVENTS 2020-09-11 09:06:30 +02:00
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
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
e9b074fde3
Merge pull request #1079 from futurepress/resize_observer_async
Run resizeCheck in requestAnimationFrame for ResizeObserver
2020-06-09 13:18:51 -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
50fcbb22f5
Merge pull request #1075 from futurepress/text_height_fix
Use bottom of rect to get height in textHeight
2020-06-03 13:59:54 -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
Fred Chasen
0e4d194039
Merge pull request #1064 from futurepress/vertical_fixes
Fixes for vertical text flow
2020-05-22 18:36:06 -07:00
Fred Chasen
7001f86eda Remove rtl progression dir for vertical, fix textHeight offset and set column-axis for vertical 2020-05-22 18:26:46 -07:00
Christiaan Baartse
d690dd9d68 Change Book.coverUrl to return null when there is no cover
CoverUrl now returns an undefined when there is no cover. However not
having a cover is expected behavior for an epub without a cover.
2020-05-22 11:34:03 +02:00
Christiaan Baartse
0b0f2e1b2d Bugfix calling coverUrl throws error on book without cover
When calling coverUrl on a book that has no cover a error is thrown

> TypeError: Cannot read property 'substr' of undefined

This is because Archive.getBlob is called with this.cover which is
undefined.
2020-05-22 11:17:07 +02:00
Simon Miner
38ef2aeeff Account for special characters in ePub content file URL substitutions 2020-05-21 14:59:28 -04:00
Fred Chasen
08a069555f
Merge pull request #1057 from christiaan/master_fix-opening-array-buffer
Fix opening an ArrayBuffer without options
2020-05-21 11:28:15 -07:00
Christiaan Baartse
2732e172cd Fix opening an ArrayBuffer without options
Opening an archived Epub in an ArrayBuffer without passing in options will
never resolve its `book.opened` Promise.
2020-05-21 06:25:30 +02:00
Fred Chasen
0e3104461d
Merge pull request #1056 from christiaan/master_test-and-fix-coverUrl
Fix broken coverUrl for archived Epubs
2020-05-19 14:41:16 -07:00
Fred Chasen
7185b8a968
Merge pull request #1054 from christiaan/master_remove-unnecessary-script-paths
Remove unnecessary absolute paths to npm scripts
2020-05-19 14:40:17 -07:00
Christiaan Baartse
2f63b16276 Fix broken coverUrl for archived Epubs
When calling coverUrl for an archived epub the resolved promise contains
undefined and not a string.

Also the documentation everywhere is lying about coverUrl() returning a
string whereas it actually returns a Promise that resolves to a string.
2020-05-19 06:48:19 +02:00
Ali Dubaisi
290ffc8eef Fix left offset calculation of RTL prev navigation 2020-05-18 21:25:53 +03:00
Christiaan Baartse
9b807985ff Remove unnecessary absolute paths to npm scripts
When using NPM scripts the ./node_modules/.bin directory is added to the
PATH.

See https://docs.npmjs.com/misc/scripts#path
2020-05-17 15:35:57 +02:00
Fred Chasen
26075c2d49 Version bump to 0.3.87 2020-05-16 17:52:37 -07:00
Fred Chasen
84df48cef4
Merge pull request #1052 from futurepress/update_rtl_detection
Update scrollType detection
2020-05-15 11:17:40 -07:00
Fred Chasen
dcf6ef77d0 Update types for scrollType 2020-05-15 11:11:41 -07:00
Fred Chasen
e539c38f7d Fix typos, remove console.log 2020-05-15 11:02:58 -07:00
Fred Chasen
da430d6cb1 Add scrollType detection util, remove lang rtl guess 2020-05-15 10:55:29 -07:00
Fred Chasen
5081589d25
Merge pull request #961 from alidbc/master
Major RTL fixes
2020-05-15 09:09:57 -07:00
Fred Chasen
a0cd9d422a Remove specific xhtml path in display 2020-05-15 08:57:38 -07:00
Fred Chasen
9c3f60364e Version bump to 0.3.86 2020-05-14 23:21:28 -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
Fred Chasen
915ab2e107 Always run check again after display of new views 2020-05-14 22:09:08 -07:00
Fred Chasen
20f5ea5372
Merge pull request #1031 from frasermince/master
Map over display function instead of displayed value.
2020-05-14 22:07:28 -07:00
Fred Chasen
7e604ca131
Merge pull request #1051 from futurepress/980_add_offset_to_pre_paginated
Add offset to start calculation
2020-05-14 19:43:20 -07:00
Fred Chasen
992a3f7461 Add offset to start calculation 2020-05-14 19:40:27 -07:00
Fred Chasen
5c04784ab8
Merge pull request #844 from lvscar/master
Adding a search method to section for find out result spanning multiple nodes.
2020-05-13 21:46:05 -07:00
Fred Chasen
9bd844036d
Merge pull request #889 from yellowtree/css_serialized
Implement serialized themes CSS
2020-05-13 21:44:41 -07:00