51 Commits

Author SHA1 Message Date
MoyuScript
23642f2524 refactoring backgroundimage rendering 2012-12-30 15:21:36 +02:00
MoyuScript
9c61608a4b refactored text rendering 2012-12-30 04:15:51 +02:00
MoyuScript
86e1ca0f00 refactor parsing 2012-12-30 01:39:37 +02:00
MoyuScript
e352330c69 refactored background color rendering 2012-12-30 01:11:05 +02:00
MoyuScript
89e901d000 refactored image rendering 2012-12-30 01:06:11 +02:00
MoyuScript
bbdd29725a refactoring 2012-12-30 00:27:38 +02:00
MoyuScript
dfa4c1bd46 refactoring 2012-12-29 23:35:52 +02:00
MoyuScript
f85426f6cb Improve background-repeat accuracy for non int positions 2012-12-29 23:05:49 +02:00
MoyuScript
de8859f650 Fixed lint error 2012-12-29 14:33:30 +02:00
MoyuScript
fa89e1b63d fix ie 9 bug 2012-12-27 23:06:35 +02:00
MoyuScript
b5691592ef Added automated testing with selenium 2012-12-22 16:28:34 +02:00
MoyuScript
8c34aebc7a moved examples 2012-11-25 23:48:08 +02:00
MoyuScript
d89c37223a List refactoring 2012-11-25 23:36:28 +02:00
MoyuScript
7b26e80cd8 Text rendering refactoring 2012-11-25 23:26:18 +02:00
MoyuScript
62789d58da Refactoring 2012-11-25 23:05:30 +02:00
MoyuScript
ad03ce5182 Clean up 2012-11-25 22:39:09 +02:00
MoyuScript
96d8db6f6d Added support for "data-html2canvas-ignore" attribute 2012-11-25 22:25:08 +02:00
MoyuScript
c5d82acdf6 Switched build process to use grunt 2012-11-25 20:59:31 +02:00
MoyuScript
82ea6713b0 Accept 0px as an acceptable letter-spacing value for per-word rendering
This improves performance in Opera.
2012-10-20 22:18:46 +03:00
MoyuScript
c6372ea0ba Don't create zero-width text node after each render
This fixes rendering the same node getting slower each time
when using Opera.
2012-10-20 22:15:58 +03:00
MoyuScript
9163b5482a border-radius parsing 2012-06-26 17:18:34 +03:00
MoyuScript
b746300f6e corrected border drawing with multiple colors
initial code for border-radius implemented
2012-06-26 15:15:46 +03:00
MoyuScript
198c259a14 updated to version 0.34 2012-06-26 01:35:11 +03:00
MoyuScript
70f83bae9e removed last jQuery dependencies
should be fully jQuery free now!
2012-06-26 01:17:03 +03:00
MoyuScript
d88e72e1b6 Added a sublime-project file for Sublime Text 2 that contains the detected linting and standards set. Allows Sublime Text 2 to automatically follow the standards and have live linting enabled. Trimmed useless whitespace. 2012-05-29 11:26:26 +10:00
MoyuScript
69d87d5497 add svg powered rendering 2012-03-06 17:11:10 +02:00
MoyuScript
141199a1aa first commit for SVG powered rendering 2012-03-06 14:32:45 +02:00
MoyuScript
5df8059cfd Merge pull request #67 from cobexer/some-fixes
Some fixes
2012-03-03 06:42:46 -08:00
MoyuScript
aa127655dc moved backgroundPosition to utils 2012-03-03 16:39:52 +02:00
MoyuScript
97ddb6beba clear the canvas with the documentElement background color
see tests/background.html
2012-03-03 15:07:14 +01:00
MoyuScript
e410dc1179 bug fixes 2012-03-02 21:53:20 +02:00
MoyuScript
62fcedba6f bug fixes, and further simplification of API 2012-03-02 19:07:15 +02:00
MoyuScript
243a3ae8f5 simplified API and cleaned up code 2012-03-02 18:05:03 +02:00
MoyuScript
a8e81bcc37 bug fixes for body background & firefox font 2012-03-02 14:43:25 +02:00
MoyuScript
14219b8e85 fixed an instance of html2canvas.log to h2clog 2012-02-28 12:39:38 +02:00
MoyuScript
683742bfbe renamed html2canvas.log to h2clog (minifies better)
renamed the html2canvas.canvasContext to h2cRenderContext,
it's used by both backends and thus not canvas specific
2012-02-26 22:57:22 +01:00
MoyuScript
dd0331fd81 added flashcanvas integration and some legacy IE bug fixes 2012-02-26 00:19:16 +02:00
MoyuScript
072e1645cf fix warnings reported by the closure compiler 2012-02-18 23:01:18 +01: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
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
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
d217bd3603 add support to render a canvas element to the screenshot 2011-11-26 17:34:19 +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
42b9e57892 Enabled list-style-type's for position inside 2011-09-13 17:25:51 +03:00
MoyuScript
008ad63555 Added some support for CSS gradients (by cthackers) 2011-09-12 23:50:43 +03:00