Michael Ang [Mon, 21 Sep 2009 22:50:16 +0000 (22:50 +0000)]
Improved print UI
Michael Ang [Mon, 21 Sep 2009 22:09:38 +0000 (22:09 +0000)]
Show page preview with assumed aspect ratio. Text links for Prev Next
Michael Ang [Mon, 21 Sep 2009 21:43:37 +0000 (21:43 +0000)]
Better print layout
Michael Ang [Mon, 21 Sep 2009 21:39:40 +0000 (21:39 +0000)]
Use rotate/scale if passed in
Michael Ang [Mon, 21 Sep 2009 21:00:49 +0000 (21:00 +0000)]
Add ability to go to previous or next pages when printing.
Michael Ang [Mon, 21 Sep 2009 21:00:05 +0000 (21:00 +0000)]
Remove php backend version. Now using dynamically populated iframe
Michael Ang [Mon, 21 Sep 2009 20:55:54 +0000 (20:55 +0000)]
Hide print icon when embedded
Michael Ang [Mon, 21 Sep 2009 19:21:36 +0000 (19:21 +0000)]
Refactor generation of html for print iframe to own function
Michael Ang [Mon, 21 Sep 2009 19:14:09 +0000 (19:14 +0000)]
Bind load event before iframe is added to document DOM.
Michael Ang [Mon, 21 Sep 2009 18:00:31 +0000 (18:00 +0000)]
Print icon
Michael Ang [Fri, 18 Sep 2009 02:57:19 +0000 (02:57 +0000)]
Dynamic iframe implementation
Michael Ang [Fri, 18 Sep 2009 01:29:29 +0000 (01:29 +0000)]
Include subPrefix in embed code if needed (for multi or user item). See https://bugs.edge.launchpad.net/gnubook/+bug/429768
Michael Ang [Fri, 18 Sep 2009 01:23:08 +0000 (01:23 +0000)]
Use subPrefix in embed code. Needed for multi/user-uploaded items.
Michael Ang [Fri, 18 Sep 2009 00:52:32 +0000 (00:52 +0000)]
Fix bug preventing pages with number assertions from being accessed by index. See https://bugs.edge.launchpad.net/gnubook/+bug/432204
Michael Ang [Fri, 18 Sep 2009 00:38:04 +0000 (00:38 +0000)]
Pass image aspect ratio to page printer. Rotate image for better fit (assume portrait orientation) if possible. Fit based on assumed paper size.
Michael Ang [Thu, 17 Sep 2009 18:21:49 +0000 (18:21 +0000)]
Add jp2 image rotation to image processor
Michael Ang [Tue, 15 Sep 2009 23:00:15 +0000 (23:00 +0000)]
Focus print iframe before printing so that IE prints the frame instead of the document window
Michael Ang [Tue, 15 Sep 2009 21:38:00 +0000 (21:38 +0000)]
Merge commit 'origin/master' into mangprint
Update print code with latest from mainline development
Conflicts:
GnuBook/GnuBook.js
GnuBook/GnuBookEmbed.css
Michael Ang [Thu, 10 Sep 2009 19:48:47 +0000 (19:48 +0000)]
Revert "Remove unused special page number code"
May be needed for named pages to access them by index. Reverting for now.
This reverts commit
d009b21bbcbfee26566cf694f52376ab92c6e336.
Michael Ang [Thu, 10 Sep 2009 18:57:49 +0000 (18:57 +0000)]
Bump version number
Michael Ang [Thu, 10 Sep 2009 18:50:44 +0000 (18:50 +0000)]
Rename functions for closer to consistency
Michael Ang [Thu, 10 Sep 2009 18:46:19 +0000 (18:46 +0000)]
Remove unused special page number code
Michael Ang [Thu, 10 Sep 2009 18:45:50 +0000 (18:45 +0000)]
Implement click to flip and drag (with minimum distance) to pan
Michael Ang [Thu, 10 Sep 2009 18:33:19 +0000 (18:33 +0000)]
Increase image quality to reduce noise at edges of letters
Michael Ang [Tue, 8 Sep 2009 23:35:44 +0000 (23:35 +0000)]
Bump version number
Michael Ang [Tue, 8 Sep 2009 23:34:22 +0000 (23:34 +0000)]
Put transparent background image in flip areas so that mouse events are captured on IE.
Michael Ang [Tue, 8 Sep 2009 22:55:11 +0000 (22:55 +0000)]
Ideal height should be based on container height
Michael Ang [Tue, 8 Sep 2009 22:29:06 +0000 (22:29 +0000)]
Prevent default at start of handler, so it's actually prevented
Michael Ang [Thu, 3 Sep 2009 00:19:26 +0000 (00:19 +0000)]
Update width of flip areas
Michael Ang [Wed, 2 Sep 2009 23:53:42 +0000 (23:53 +0000)]
Update gutter value before placing flip areas
Michael Ang [Wed, 2 Sep 2009 23:35:58 +0000 (23:35 +0000)]
Prefetch after scaling has been calculated
Michael Ang [Wed, 2 Sep 2009 23:27:31 +0000 (23:27 +0000)]
Prefetch images starting with current indices and moving outward
Michael Ang [Wed, 2 Sep 2009 23:02:38 +0000 (23:02 +0000)]
Don't reload images when preparing two page view (as happens at resize) unless image URI (scaling) has changed.
Michael Ang [Wed, 2 Sep 2009 21:12:59 +0000 (21:12 +0000)]
If scale matches exactly we should give that image size, not a larger one.
Michael Ang [Wed, 2 Sep 2009 21:00:16 +0000 (21:00 +0000)]
WIP on 0.9.14:
606aa36... On 0.9.14: keyweird
Michael Ang [Wed, 2 Sep 2009 21:00:16 +0000 (21:00 +0000)]
index on 0.9.14:
606aa36... On 0.9.14: keyweird
Michael Ang [Tue, 1 Sep 2009 22:04:41 +0000 (22:04 +0000)]
On 0.9.14: keyweird
Michael Ang [Tue, 1 Sep 2009 22:04:41 +0000 (22:04 +0000)]
index on 0.9.14:
55f7b7f... Invisible divs at edges of spread for single-click flip.
Michael Ang [Thu, 27 Aug 2009 00:56:14 +0000 (00:56 +0000)]
Invisible divs at edges of spread for single-click flip.
Michael Ang [Wed, 26 Aug 2009 23:27:19 +0000 (23:27 +0000)]
Allow mouseup to propagate, for consistency
Michael Ang [Wed, 26 Aug 2009 23:04:48 +0000 (23:04 +0000)]
Use jQuery event.preventDefault() in mouse event handling
Michael Ang [Wed, 26 Aug 2009 22:45:50 +0000 (22:45 +0000)]
Unbind previous mouse handler when binding.
Michael Ang [Thu, 20 Aug 2009 22:24:22 +0000 (22:24 +0000)]
Fix display of zoom level in 1up. Preserve zoom level when switching modes. See https://bugs.edge.launchpad.net/gnubook/+bug/341863
Michael Ang [Wed, 19 Aug 2009 22:31:33 +0000 (22:31 +0000)]
Update version number
Michael Ang [Wed, 19 Aug 2009 21:49:32 +0000 (21:49 +0000)]
Prettier formatting for zoom percentage displayed in toolbar
Michael Ang [Wed, 19 Aug 2009 21:31:46 +0000 (21:31 +0000)]
Better calculation of ideal spread size. Offset from gutter was being applied in wrong direction.
Michael Ang [Wed, 19 Aug 2009 20:34:21 +0000 (20:34 +0000)]
Assign total leaf edge width before using that value in calculation!
Michael Ang [Wed, 19 Aug 2009 19:13:24 +0000 (19:13 +0000)]
Change page flip action in two up to double click. Show "move" icon when over pages in 2up.
Michael Ang [Mon, 17 Aug 2009 23:59:14 +0000 (23:59 +0000)]
Fix zoom quantization going from 2up to 1up
Michael Ang [Mon, 17 Aug 2009 23:30:22 +0000 (23:30 +0000)]
Fix typo
Michael Ang [Mon, 17 Aug 2009 23:21:19 +0000 (23:21 +0000)]
Cleanup
Michael Ang [Mon, 17 Aug 2009 23:09:13 +0000 (23:09 +0000)]
Cruft removal.
Michael Ang [Mon, 17 Aug 2009 22:37:49 +0000 (22:37 +0000)]
Better sizing for cover in right to left flip. See https://bugs.edge.launchpad.net/gnubook/+bug/413355
Michael Ang [Mon, 17 Aug 2009 22:24:07 +0000 (22:24 +0000)]
Hard stop flip animations when stopping autoplay. Don't reprepare page view if new zoom is the same.
Michael Ang [Mon, 17 Aug 2009 19:39:42 +0000 (19:39 +0000)]
Quantize zoom in 2up going to autofit when its zoom level falls between quantized levels. See https://bugs.edge.launchpad.net/gnubook/+bug/411591 and https://bugs.edge.launchpad.net/gnubook/+bug/413819
Michael Ang [Mon, 17 Aug 2009 18:43:36 +0000 (18:43 +0000)]
Change to autofit mode when starting autoplay. See https://bugs.edge.launchpad.net/gnubook/+bug/414936
Michael Ang [Fri, 14 Aug 2009 23:21:09 +0000 (23:21 +0000)]
Set offset of twopagediv before adding images to reduce visual glitches during zoom. See https://bugs.edge.launchpad.net/gnubook/+bug/413353
Michael Ang [Fri, 14 Aug 2009 22:18:32 +0000 (22:18 +0000)]
Allow reduction factors down to 32. Reduces size of loaded images in 2up when zoomed out far. See https://bugs.edge.launchpad.net/gnubook/+bug/333458
Michael Ang [Fri, 14 Aug 2009 21:38:24 +0000 (21:38 +0000)]
Quantize reduction factor in 2up. See https://bugs.edge.launchpad.net/gnubook/+bug/411591
Michael Ang [Fri, 14 Aug 2009 01:01:15 +0000 (01:01 +0000)]
Recenter if no scrollbars during non-autofit 2up resize
Michael Ang [Fri, 14 Aug 2009 00:48:12 +0000 (00:48 +0000)]
If there won't be scrollbars in a direction when zooming (out) center the book in that axis.
Michael Ang [Fri, 14 Aug 2009 00:44:06 +0000 (00:44 +0000)]
Only recalculate and re-center 2up mode after resize if autofit.
Michael Ang [Fri, 14 Aug 2009 00:07:42 +0000 (00:07 +0000)]
Preserve 2up view center during zoom. WIP
Michael Ang [Thu, 13 Aug 2009 23:32:50 +0000 (23:32 +0000)]
Center two page view at resize. WIP
Michael Ang [Thu, 13 Aug 2009 18:43:11 +0000 (18:43 +0000)]
Better calculation for cover left position in calculateSpreadSize. WIP
Michael Ang [Thu, 13 Aug 2009 18:35:04 +0000 (18:35 +0000)]
Improved center calculation. Comments. WIP
Michael Ang [Thu, 13 Aug 2009 18:10:33 +0000 (18:10 +0000)]
Don't return unused ratio from getIdealSpreadSize
Michael Ang [Thu, 13 Aug 2009 17:52:13 +0000 (17:52 +0000)]
Work on left/right flip. WIP
Michael Ang [Wed, 12 Aug 2009 23:58:38 +0000 (23:58 +0000)]
Doc problem area with link to Launchpad
Michael Ang [Wed, 12 Aug 2009 23:56:15 +0000 (23:56 +0000)]
Book cover div position calculated relative to book center
Michael Ang [Wed, 12 Aug 2009 23:46:55 +0000 (23:46 +0000)]
More refactoring of layout code in 2up. WIP
Michael Ang [Wed, 12 Aug 2009 22:36:52 +0000 (22:36 +0000)]
Cleanup and comments
Michael Ang [Wed, 12 Aug 2009 18:38:25 +0000 (18:38 +0000)]
Consolidate calculation and formatting for zoom percentage in toolbar. Fixes "zoom percentage in toolbar should be pretty formatted" (https://bugs.edge.launchpad.net/gnubook/+bug/411581)
Michael Ang [Mon, 10 Aug 2009 21:33:41 +0000 (21:33 +0000)]
More consistent use of GBtwopageview
Michael Ang [Mon, 10 Aug 2009 21:05:25 +0000 (21:05 +0000)]
Refactoring zoom code
Michael Ang [Mon, 10 Aug 2009 19:17:32 +0000 (19:17 +0000)]
Better zooming in/out in 2up. WIP
Michael Ang [Fri, 7 Aug 2009 22:16:51 +0000 (22:16 +0000)]
More cruft removal
Michael Ang [Fri, 7 Aug 2009 22:16:32 +0000 (22:16 +0000)]
Cruft removal
Michael Ang [Fri, 7 Aug 2009 22:15:33 +0000 (22:15 +0000)]
Two page zoom WIP
Michael Ang [Fri, 7 Aug 2009 18:51:41 +0000 (18:51 +0000)]
Refactor calculation of ideal spread size into its own function, getIdealSpreadSize
Michael Ang [Fri, 7 Aug 2009 18:25:40 +0000 (18:25 +0000)]
Move two page mode specific variables to this.twoPage object.
Michael Ang [Thu, 6 Aug 2009 22:47:31 +0000 (22:47 +0000)]
Note to self about cleaning up in-code CSS
Michael Ang [Thu, 6 Aug 2009 22:41:28 +0000 (22:41 +0000)]
Merge branch '0.9.12' into twopagezoom
Michael Ang [Thu, 6 Aug 2009 22:39:47 +0000 (22:39 +0000)]
Fix typo (min vs max)
Michael Ang [Thu, 6 Aug 2009 22:17:14 +0000 (22:17 +0000)]
Hook up generic zoom function which dispatches to mode-specific function
Michael Ang [Wed, 5 Aug 2009 23:36:04 +0000 (23:36 +0000)]
Update comments noting possible point for improvement in tooltip positioning
Michael Ang [Wed, 5 Aug 2009 23:31:31 +0000 (23:31 +0000)]
Two page popup position accounts for offset of GBcontainer div
Michael Ang [Wed, 5 Aug 2009 23:20:52 +0000 (23:20 +0000)]
Add scrollTop to two page popup since it positioned inside GBcontainer which may be scrolling
Michael Ang [Wed, 5 Aug 2009 23:17:54 +0000 (23:17 +0000)]
Jump index still works since it was using document-relative coordinates
Michael Ang [Wed, 5 Aug 2009 23:13:21 +0000 (23:13 +0000)]
Display two page jump popup relative to GBcontainer
Michael Ang [Wed, 5 Aug 2009 22:38:17 +0000 (22:38 +0000)]
Move two page display into GBtwopageview, similar to GBpageview
Michael Ang [Wed, 5 Aug 2009 22:12:07 +0000 (22:12 +0000)]
Use clientWidth to account for possible presence of scroll bars
Michael Ang [Mon, 3 Aug 2009 20:37:23 +0000 (20:37 +0000)]
Remove note to self
Michael Ang [Wed, 22 Jul 2009 15:29:30 +0000 (15:29 +0000)]
Preserve center of view when zooming in 1up. See https://bugs.edge.launchpad.net/gnubook/+bug/402262
Michael Ang [Tue, 21 Jul 2009 15:05:03 +0000 (15:05 +0000)]
Notes to self
Michael Ang [Mon, 20 Jul 2009 16:04:43 +0000 (16:04 +0000)]
Adjust jpeg image compression (65% quality instead of 90%) to reduce download times. Addresses https://bugs.edge.launchpad.net/gnubook/+bug/394013
Michael Ang [Mon, 20 Jul 2009 13:30:58 +0000 (13:30 +0000)]
Merge Replace hardcoded zoom percentage from scollett. See https://bugs.edge.launchpad.net/gnubook/+bug/394950
Merge commit '
162afb7a06c13547bd7fb15f6a5a8fe3da67c251' into 0.9.12
Michael Ang [Thu, 9 Jul 2009 22:07:12 +0000 (22:07 +0000)]
Hide mode and autoplay buttons if 2up is not available. See https://bugs.edge.launchpad.net/gnubook/+bug/394525
Michael Ang [Thu, 9 Jul 2009 21:52:52 +0000 (21:52 +0000)]
Mode button not present if not applicable
Michael Ang [Thu, 9 Jul 2009 00:13:59 +0000 (00:13 +0000)]
Generate proper URIs for books inside sub-directories. See https://bugs.edge.launchpad.net/gnubook/+bug/397219