137 Commits

Author SHA1 Message Date
MoyuScript
0b1fb0dac7 build: improve minification, more verbose 2012-02-26 22:30:34 +01:00
MoyuScript
df8d3558b3 Merge pull request #62 from cobexer/for-niklasvh
fix image loaded through the proxy hanging the preload process
2012-02-26 12:52:46 -08:00
MoyuScript
d53f975cc8 fix image loaded through the proxy hanging the preload process
images loaded through the proxy could hang the preload process if
they finish loading through the proxy but then fail to decode
and thus don't call the onload handler of the image object.
2012-02-26 13:14:16 +01:00
MoyuScript
dff691056a added flashcanvas integration and some legacy IE bug fixes 2012-02-26 00:21:01 +02:00
MoyuScript
dd0331fd81 added flashcanvas integration and some legacy IE bug fixes 2012-02-26 00:19:16 +02:00
MoyuScript
f40c5ac1e0 Update readme.md 2012-02-20 17:26:21 +02:00
MoyuScript
525441ca72 Added changelog 2012-02-20 17:25:57 +02:00
MoyuScript
de34441df8 add support for selecting single elements to render 2012-02-20 17:16:57 +02:00
MoyuScript
73d660258c update version 2012-02-20 16:44:46 +02:00
MoyuScript
4bd55e9f82 Merge branch 'fix-warnings' of https://github.com/cobexer/html2canvas.git 2012-02-20 16:43:16 +02:00
MoyuScript
4c69688f56 Merge pull request #55 from cobexer/profiling
jquery.plugin.html2canvas: add profiling option, tests: enable profiling
2012-02-20 05:36:36 -08:00
MoyuScript
fe8679e589 Merge pull request #53 from cobexer/bookmarklet
Bookmarklet
2012-02-20 05:35:30 -08:00
MoyuScript
072e1645cf fix warnings reported by the closure compiler 2012-02-18 23:01:18 +01:00
MoyuScript
8c801d25c0 add a note about NoScript's ABE, small fix 2012-02-18 22:50:11 +01:00
MoyuScript
ef9dc46bb4 fix typo 2012-02-15 18:47:21 +01:00
MoyuScript
49673a3b49 draft for a bookmarklet to screenshot any page
primarily intended to do debugging/testing
2012-02-14 20:13:08 +01:00
MoyuScript
8d340ebd97 jquery.plugin.html2canvas: add profiling option, tests: enable profiling
in case you run the tests in firefox and have firebug installed and
active you now get a profiling run of html2canvas ;)
2012-02-04 15:32:09 +01:00
MoyuScript
5ac70956db Merge pull request #41 from cobexer/for-niklasvh
a few fixes / improvements
2011-12-21 14:21:45 -08:00
MoyuScript
e04c006caf extended .gitignore for eclipse projects 2011-12-21 23:14:32 +01:00
MoyuScript
04531dd723 faster imeplementation of fa0f614cc
also added try/catch around that addColourStop call
because trowing an exception and failing to finish
the rendering is not nice...
2011-12-21 23:06:09 +01:00
MoyuScript
d9aa41f4dc added logs for used renderer 2011-12-21 23:01:48 +01:00
MoyuScript
70b44dbbf6 add test for image without src attribute 2011-12-21 23:00:44 +01:00
MoyuScript
778363caa0 cleanup jquery.plugin.html2canvas.js; correctly pass the logging option 2011-12-21 22:59:44 +01:00
MoyuScript
713aca77d2 disable logging by default 2011-12-17 20:05:20 +01:00
MoyuScript
553f84b51b fix crash if an img tag has no src, fix undefined variables 2011-12-17 19:50:27 +01:00
MoyuScript
a661952fc1 Merge pull request #40 from cobexer/unify-tests
Unify tests: moved common code into tests/test.js; run tests from source instead from built version
2011-12-11 12:47:41 -08:00
MoyuScript
a98c229bf6 convert all tests to use tests/test.js
all tests now run from the source files directly instead of the built
verion in build/.
2011-12-11 18:12:20 +01:00
MoyuScript
15eefadbf9 moved common code into tests/test.js 2011-12-11 18:06:57 +01:00
MoyuScript
201eb511d4 Merge pull request #37 from gatapia/patch-2
Fix for gradient parsing (when step positions are specified)
2011-12-07 06:13:35 -08:00
MoyuScript
d36bf5b97e Merge pull request #38 from gatapia/patch-3
Fix demo screenshots.html with head element contains attributes
2011-12-07 06:12:56 -08:00
MoyuScript
8c01e70991 Update screenshots.html 2011-12-07 10:48:06 +11:00
MoyuScript
fa0f614ccd This fixes an exception when trying to parse gradient like: 'rgb(254, 254, 254) 0%, rgb(236, 236, 236) 100%'
Note: This does not parse the % which would be good to delineate steps correctly, just a fix for an Exception.
2011-12-07 09:53:40 +11:00
MoyuScript
e4837f83eb IE fix 2011-11-27 04:33:41 +02:00
MoyuScript
76e41772f2 IE origin fix 2011-11-26 21:29:46 +02:00
MoyuScript
44f1b0a599 Added canvas image test 2011-11-26 20:38:55 +02:00
MoyuScript
025097dbbd Merge pull request #31 from cobexer/add-render-canvas-support
add support to render a canvas element to the screenshot
2011-11-26 10:18:37 -08:00
MoyuScript
103712083f Merge pull request #33 from cobexer/fix-jpeg-export
clear canvas before rendering to allow jpeg export
2011-11-26 10:17:35 -08:00
MoyuScript
f4618270e1 Merge pull request #34 from cobexer/rewrite-image-handling
rewrote image handling from using an array to an object
2011-11-26 10:15:40 -08:00
MoyuScript
b4a9f46f87 Merge pull request #35 from cobexer/small-fixes
Small fixes
2011-11-26 10:14:00 -08:00
MoyuScript
8287dbc257 rewrote image handling from using an array to an object
The image loading done in Preload.js used an array to store
image src and image object as 2 consecutive entries in that
array. Using the src as an index in a hash allows direct
instead of a linear search and also allows to store more data.

 * improved cleanup of images loaded with the proxy

 * this also adds a timeout for the image loading phase, after that
   running image requests are aborted and the rendering is started
2011-11-26 18:09:25 +01:00
MoyuScript
1792269c01 instead of scrolling the view on every Bounds() call, do it only once 2011-11-26 18:06:56 +01:00
MoyuScript
dff5dab161 accessing nodeType may throw an exception 2011-11-26 18:06:56 +01:00
MoyuScript
9cab152e64 fix permission denied access on inner iFrame (crossDomain) 2011-11-26 18:06:55 +01:00
MoyuScript
f30796b4a3 fix script error in html2canvas.Util.getCSS 2011-11-26 18:06:55 +01:00
MoyuScript
d64f62b9b7 make sure the image used for the detection of the underline is positioned correctly 2011-11-26 18:06:55 +01:00
MoyuScript
ec5a9ecd0f replaced external image http://html2canvas.hertzen.com/images/8.jpg with data URI 2011-11-26 18:06:55 +01:00
MoyuScript
70b3886814 clear canvas before rendering to allow jpeg export
* normally when exporting jpeg any pixel that was transparent
   becomes black, make them white
 * check for window.console.log before use (avoid crash)
 * html2canvas.Parse: fix missing call to html2canvas.Util.Extend for the
   given options
2011-11-26 17:38:57 +01:00
MoyuScript
7df9c4ecc6 fix origin check in IE 2011-11-26 17:38:11 +01:00
MoyuScript
d217bd3603 add support to render a canvas element to the screenshot 2011-11-26 17:34:19 +01:00
MoyuScript
95c49a3094 Merge pull request #30 from cobexer/build-improvements
Build improvements
2011-11-16 01:10:07 -08:00