From 080d0b4c512313544a7e7221c81659c5329ad2f4 Mon Sep 17 00:00:00 2001 From: Bala Clark Date: Tue, 13 Jul 2010 16:29:49 +0100 Subject: [PATCH] updated comments --- ComicBook.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/ComicBook.js b/ComicBook.js index 8320d22..b2b6934 100644 --- a/ComicBook.js +++ b/ComicBook.js @@ -5,19 +5,15 @@ Fo sho: - page controls - - thumbnail browser - chrome frame / ExplorerCanvas Nice 2 have: - - support older browsers by using img tags instead of canvas - remember position (use localStorage) - - maybe use local storage for the pages array too? might be easier to implement manga mode with that - - offline mode - - page turn animation - + - thumbnail browser + - image enhancements (http://www.pixastic.com/lib/docs/actions/sharpen/) + - page turn animation (http://www.cynergysystems.com/blogs/page/rickbarraza?entry=the_secret_behind_the_page) */ - /** * Merge two arrays. Any properties in b will replace the same properties in * a. New properties from b will be added to a. @@ -49,7 +45,7 @@ function ComicBook(id, srcs, opts) { var defaults = { displayMode: "double", // single / double zoomMode: "fitWidth", // manual / fitWidth - manga: false + manga: false // true / false }; var options = merge(defaults, opts); // options array for internal use @@ -252,7 +248,7 @@ function ComicBook(id, srcs, opts) { context.drawImage(page, offsetW, offsetH, page_width, page_height); if (options.displayMode === "double" && typeof page2 === "object") { context.drawImage(page2, page_width + offsetW, offsetH, page_width, page_height); } }; - + /** * Increment the counter and draw the page in the canvas * @@ -264,7 +260,7 @@ function ComicBook(id, srcs, opts) { this.drawPage(); } }; - + /** * Decrement the counter and draw the page in the canvas * @@ -283,7 +279,7 @@ function ComicBook(id, srcs, opts) { var side = getCursorPosition(e); - window.scroll(0,0); + window.scroll(0,0); // make sure the top of the page is in view // western style (left to right) if (!options.manga) {