61 Commits

Author SHA1 Message Date
Niklas von Hertzen
67850f2cee Refactoring 2013-01-11 22:50:46 +02:00
Niklas von Hertzen
222dfa84b7 remove legacy code 2013-01-11 20:38:33 +02:00
Andy Edinborough
2b0db917e3 don't process pseudo elements for hidden elements; cleanup pseudo elements after render 2013-01-11 10:46:53 -06:00
Andy Edinborough
7da4326885 background-size fixes
generated gradients need a unique key (the same value can generate a
different image based on background-size); fix so that a single value
specified for background-size yields a scaled height as the second
parameter
2013-01-02 14:51:03 -06:00
Andy Edinborough
eb57b61859 backgroundPosition should use backgroundSize as a baseline for %'s 2013-01-02 13:45:58 -06:00
Andy Edinborough
2557a83dbe remove todo comment 2013-01-02 10:51:47 -06:00
Andy Edinborough
67ccb33dd5 add tests for resizeBounds 2013-01-02 10:47:36 -06:00
Andy Edinborough
85706166cc trimText regexp needs /g 2013-01-02 10:40:56 -06:00
Andy Edinborough
57d6003b65 backgroundSize needs trimmed before second split
also move trimText to Util
2013-01-02 10:39:00 -06:00
Andy Edinborough
9ce03d6e86 working background-size 2013-01-02 10:10:03 -06:00
Andy Edinborough
3d3f923ed8 implementing background-size; use parseBackgroundImage in render 2013-01-01 10:42:22 -06:00
Andy Edinborough
473ff45267 Merge remote-tracking branch 'niklasvh/develop' into develop
Conflicts:
	src/Core.js
	src/Parse.js
	src/Util.js
2012-12-30 17:25:31 -06:00
Andy Edinborough
df0f436e66 initial support for backgroundSize 2012-12-30 12:30:48 -06:00
Andy Edinborough
6ce619f0c0 refactor Preload 2012-12-30 12:20:35 -06:00
Andy Edinborough
0c66766d55 replace definition property, w/ args[]
Also fix reference for preloader
2012-12-30 11:21:44 -06:00
Niklas von Hertzen
c72a02bf64 refactoring 2012-12-29 21:06:40 +02:00
Andy Edinborough
7f1cbc70a8 fully remove regex; simplify whitespace check
jshint complained about case statements w/o break (boo)
2012-12-28 16:26:39 -06:00
Andy Edinborough
b81d7473e3 rewrite parseBackgroundImage to remove RegExp
RegExp couldn't handle parens inside parens:
linear-gradient(rgb(0,0,0),rgb(255,0,0))
2012-12-28 16:22:43 -06:00
Andy Edinborough
04782c1716 parse out prefixed methods 2012-12-28 12:54:58 -06:00
Andy Edinborough
a4b7d04e80 move parseBackgroundImage to Util; add tests 2012-12-28 12:33:57 -06:00
Niklas von Hertzen
084bf4b039 Switched build process to use grunt 2012-11-25 20:59:31 +02:00
Niklas von Hertzen
730ebcfcaa border-radius parsing 2012-06-26 17:18:34 +03:00
Niklas von Hertzen
343b86705f removed last jQuery dependencies
should be fully jQuery free now!
2012-06-26 01:17:03 +03:00
Niklas von Hertzen
9f76f94a82 fix jQuery noconflict 2012-06-13 13:56:01 +03:00
Benjamin Lupton
1059314258 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
Niklas von Hertzen
8d3a0c2b0d cache computed style 2012-05-24 14:10:40 +03:00
Niklas von Hertzen
59306c839b Merge branch 'master' of https://github.com/niklasvh/html2canvas.git 2012-03-06 14:37:28 +02:00
Niklas von Hertzen
5fb8cb3e0b reverting back to jQuery.contents() 2012-03-06 14:35:33 +02:00
Obexer Christoph
cfde57cb9f some whitespace/warning cleanup 2012-03-05 07:56:45 +01:00
Niklas von Hertzen
7a3ca77471 few bug fixes to getCSS and unit tests 2012-03-04 21:16:18 +02:00
Niklas von Hertzen
3d7a6374ad bug fixes 2012-03-03 21:03:59 +02:00
Niklas von Hertzen
4579fb25c6 removed jQuery.css dependancy and few general CSS bug fixes 2012-03-03 19:18:39 +02:00
Niklas von Hertzen
b60fc931b5 moved backgroundPosition to utils 2012-03-03 16:39:52 +02:00
Niklas von Hertzen
c7d526c9ea simplified API and cleaned up code 2012-03-02 18:05:03 +02:00
Obexer Christoph
c24223ca85 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
Niklas von Hertzen
b65357c55d added flashcanvas integration and some legacy IE bug fixes 2012-02-26 00:19:16 +02:00
Obexer Christoph
2fdab0d753 disable logging by default 2011-12-17 20:05:20 +01:00
Niklas von Hertzen
f75456cc88 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
Obexer Christoph
1f7314747e instead of scrolling the view on every Bounds() call, do it only once 2011-11-26 18:06:56 +01:00
Obexer Christoph
217a75c0f6 fix permission denied access on inner iFrame (crossDomain) 2011-11-26 18:06:55 +01:00
Obexer Christoph
62fa6038e7 fix script error in html2canvas.Util.getCSS 2011-11-26 18:06:55 +01:00
Obexer Christoph
044b612d6e 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
Obexer Christoph
16c74d1f8c 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
Niklas von Hertzen
6fe3218b50 Added some support for CSS gradients (by cthackers) 2011-09-12 23:50:43 +03:00
Niklas von Hertzen
27ee971bba merged from dev 2011-09-12 21:35:37 +03:00
Niklas von Hertzen
d8b4398278 rewrote z-index ordering logic 2011-08-02 21:07:51 +03:00
Niklas von Hertzen
d5c443a14c fixed few minor bugs, added some support for overflow (hidden|scroll|auto) 2011-07-28 21:22:13 +03:00
Niklas von Hertzen
9d04b0bbec added support for proxys, fixed a lot of background position issues, added test console 2011-07-21 03:12:17 +03:00
Niklas von Hertzen
0fd3ba1533 added storageReady event handler 2011-07-18 22:43:23 +03:00
Niklas von Hertzen
f8012224f9 added performance boost for text rendering for Chrome & Firefox,
while retainining compatibility with Opera & custom text settings.
2011-07-18 15:57:21 +03:00