Skip to content

Commit cfb3b78

Browse files
committed
Merge remote/master into gh-pages
2 parents 272a7ca + 1c6469d commit cfb3b78

40 files changed

+6939
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/nbproject/
2+
/images/
3+
/external/
4+
/tests/templates/
5+
/tests/cache/
6+
/tests/flashcanvas.html
7+
/lib/
8+
/dist/
9+
/build/*.js
10+
index.html
11+
image.jpg
12+
screenshots.html
13+
screenshots_local.html

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
The MIT License
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.
21+
*/

build.xml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<project name="html2canvas" basedir="." default="build">
3+
<property name="src.dir" location="src"/>
4+
<property name="lib.dir" location="../lib"/>
5+
<property name="build.dir" location="build"/>
6+
<property name="dist" location="dist"/>
7+
<property name="jquery-externs" value="jquery-1.4.4.externs.js"/>
8+
9+
<property name="JS_NAME" value="html2canvas.js"/>
10+
<property name="JS_NAME_MIN" value="html2canvas.min.js"/>
11+
<property name="JQUERY_PLUGIN_NAME" value="jquery.plugin.html2canvas.js"/>
12+
<loadfile property="version" srcfile="version.txt" />
13+
14+
<fileset id="sourcefiles" dir="${src.dir}">
15+
<include name="LICENSE"/>
16+
<include name="Core.js"/>
17+
<include name="Generate.js"/>
18+
<include name="Parse.js"/>
19+
<include name="Preload.js"/>
20+
<include name="Queue.js"/>
21+
<include name="Renderer.js"/>
22+
</fileset>
23+
24+
<path id="jquery-plugin">
25+
<fileset dir="${src.dir}" includes="LICENSE"/>
26+
<fileset dir="${src.dir}/plugins" includes="${JQUERY_PLUGIN_NAME}"/>
27+
</path>
28+
29+
<target name="plugins">
30+
<concat fixlastline="yes" destfile="${build.dir}/${JQUERY_PLUGIN_NAME}">
31+
<path refid="jquery-plugin"/>
32+
</concat>
33+
<replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JQUERY_PLUGIN_NAME}" />
34+
</target>
35+
36+
37+
<target name="build" depends="plugins">
38+
<concat fixlastline="yes" destfile="${build.dir}/${JS_NAME}">
39+
<fileset refid="sourcefiles"/>
40+
</concat>
41+
<replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME}" />
42+
</target>
43+
44+
45+
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
46+
classpath="${lib.dir}/compiler.jar" onerror="report"/>
47+
48+
<target name="release" depends="build">
49+
<jscomp compilationLevel="simple" warning="verbose"
50+
debug="false"
51+
output="${build.dir}/${JS_NAME_MIN}">
52+
<externs dir="${lib.dir}">
53+
<file name="${jquery-externs}"/>
54+
</externs>
55+
<sources dir="${src.dir}">
56+
<!-- need to write them again here since the closure compiler doesn't understand filesets,... -->
57+
<file name="LICENSE"/>
58+
<file name="Core.js"/>
59+
<file name="Generate.js"/>
60+
<file name="Parse.js"/>
61+
<file name="Preload.js"/>
62+
<file name="Queue.js"/>
63+
<file name="Renderer.js"/>
64+
</sources>
65+
</jscomp>
66+
<replaceregexp match="@VERSION@" replace="${version}" flags="g" byline="true" file="${build.dir}/${JS_NAME_MIN}" />
67+
</target>
68+
69+
<target name="clean">
70+
<delete file="${build.dir}/${JS_NAME}"></delete>
71+
<delete file="${build.dir}/${JS_NAME_MIN}"></delete>
72+
<delete file="${build.dir}/${JQUERY_PLUGIN_NAME}"></delete>
73+
</target>
74+
</project>
75+

build/.gitkeepdir

Whitespace-only changes.

0 commit comments

Comments
 (0)