756 Commits

Author SHA1 Message Date
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
MoyuScript
1eb387f197 drop obsolete files from the build folder 2011-11-16 00:36:44 +01:00
MoyuScript
4615eb3073 Improve build system: read version from version.txt, fix build without compiler
* read the version from version.txt
 * set default target to build
 * added dependencies to all targets
 * allow the build to run without a local copy of the closure compiler
 * updated license header with @VERSION@ which will be replaced during the build
 * added the license header to all files (that one will be stripped out by the closure compiler)
2011-11-16 00:36:06 +01:00
MoyuScript
eeefe1ebbe Merge pull request #29 from gatapia/patch-1
It is possible for image tags not to have a 'src' (or background-image) ...
2011-11-15 04:12:37 -08:00
MoyuScript
99e4d1befb It is possible for image tags not to have a 'src' (or background-image) attribute specified. This case currently crashes html2canvas. I know its an edge case but it bit me. I set the image src programatically much later (element is actually not visible at the time I call html2canvas). 2011-11-15 16:07:05 +11:00
MoyuScript
a27b60f491 Merge pull request #25 from kilokeith/width_fix
Fixed a width/height issue that caused smaller elements to render full bo
2011-10-15 02:14:20 -07:00
MoyuScript
0509f31b26 Fixed a width/height issue that caused smaller elements to render full body width. 2011-10-14 00:47:17 -05:00
MoyuScript
42b9e57892 Enabled list-style-type's for position inside 2011-09-13 17:25:51 +03:00
MoyuScript
708ca39057 Merge remote branch 'upstream/master' 2011-09-13 17:09:42 +03:00
MoyuScript
192521f92d Added list support 2011-09-13 17:09:33 +03:00
MoyuScript
a42547ac71 Merge pull request #17 from cthackers/master
webkit-gradient fix
2011-09-13 02:04:35 -07:00
MoyuScript
50c92153d5 Fixed webkit-gradient regular expr 2011-09-13 09:59:12 +03:00
MoyuScript
1467dcf41d sync 2011-09-13 09:49:09 +03:00
MoyuScript
008ad63555 Added some support for CSS gradients (by cthackers) 2011-09-12 23:50:43 +03:00
MoyuScript
0701d49e76 merged from dev 2011-09-12 21:39:28 +03:00
MoyuScript
f260da2c61 merged from dev 2011-09-12 21:35:37 +03:00
MoyuScript
ae836eecf0 Added support for background linear gradients on mozilla and webkit 2011-09-12 13:44:39 +03:00
MoyuScript
e74ab55be6 Fixed regular expression for chrome 2011-09-12 11:22:17 +03:00
MoyuScript
39551dac1f Added support for base64 encoded images as sources 2011-09-12 11:02:15 +03:00
MoyuScript
9f924dfbab Merge pull request #11 from oleksiy-nesterov/master
Base 64
2011-09-05 09:41:43 -07:00
MoyuScript
761860a4a8 Edited src/Images.js via GitHub 2011-08-23 05:53:07 +03:00
MoyuScript
5ade2c104c Added support for some list-style-type's with list-style-position: inside 2011-08-11 22:43:42 +03:00
MoyuScript
7880e62056 fixed IE 9 text issues 2011-08-11 16:19:42 +03:00
MoyuScript
08558034b4 cleanup 2011-08-11 15:35:02 +03:00
MoyuScript
1b395d0548 fixed fatal error with multiple background images 2011-08-11 15:32:20 +03:00
MoyuScript
40418bd957 rewrote z-index ordering logic 2011-08-02 21:07:51 +03:00
MoyuScript
859461ddc1 Form text value tests 2011-07-29 22:56:33 +03:00
MoyuScript
86c1ee1601 added support for form element text value rendering 2011-07-29 22:55:01 +03:00
MoyuScript
1c55fa256e updated tests 2011-07-29 19:23:27 +03:00
MoyuScript
e027a7496e fixed z-index ordering bug with backgrounds 2011-07-29 19:22:38 +03:00
MoyuScript
e28127fbfd updated to exclude local image 2011-07-29 19:21:15 +03:00
MoyuScript
3c003c1dfa updated test console 2011-07-28 21:24:45 +03:00