diff --git a/build/build.sh b/build/build.sh index 101f3195..7cb5a831 100755 --- a/build/build.sh +++ b/build/build.sh @@ -22,6 +22,9 @@ # compressed No comments and no whitespaces # uglified Uses UglifyJS to further reduce file size +VERSION=0.2 +DATE=$(git log -1 --pretty=format:%ad) + if [ $# -eq 0 ] then MODE="stripped" @@ -35,5 +38,5 @@ then mkdir ../dist/ fi -./preprocess.sh ../src/paper.js ../dist/paper.js "-DBROWSER" $MODE -./preprocess.sh ../src/paper.js ../dist/paper-server.js "-DSERVER" $MODE +./preprocess.sh $MODE ../src/paper.js ../dist/paper.js "-DBROWSER -DVERSION=$VERSION -DDATE='$DATE'" +#./preprocess.sh $MODE ../src/paper.js ../dist/paper-server.js "-DSERVER" diff --git a/build/preprocess.sh b/build/preprocess.sh index ed4ba825..d6669022 100755 --- a/build/preprocess.sh +++ b/build/preprocess.sh @@ -21,36 +21,37 @@ # are preserved or stripped and whitespaces are compressed. # # Usage: -# preprocess.sh SOURCE DESTINATION ARGUMENTS MODE +# preprocess.sh MODE SOURCE DESTINATION ARGUMENTS # # ARGUMENTS: # e.g. "-DBROWSER" # # MODE: -# commented Preprocessed but still formated and commented (default) +# commented Preprocessed but still formated and commented # stripped Formated but without comments # compressed No comments and no whitespaces # uglified Uses UglifyJS to further reduce file size KEYWORD="//#" +COMMAND="./filepp.pl -kc $KEYWORD $4 $2" -case $4 in +case $1 in stripped) - ./filepp.pl -kc $KEYWORD $3 $1 | ./jsstrip.pl -w -q | sed -n '/^[ ][ ]*$/d + eval $COMMAND | ./jsstrip.pl -w -q | sed -n '/^[ ][ ]*$/d /./,/^$/!d - p' > $2 + p' > $3 ;; compressed) - ./filepp.pl -kc $KEYWORD $3 $1 | ./jsstrip.pl -q > $2 + eval $COMMAND | ./jsstrip.pl -q > $3 ;; commented) - ./filepp.pl -kc $KEYWORD $3 $1 | sed -n '/^[ ][ ]*$/d + eval $COMMAND | sed -n '/^[ ][ ]*$/d /./,/^$/!d - p' > $2 + p' > $3 ;; uglified) - ./filepp.pl -kc $KEYWORD $3 $1 > temp.js - ../../uglifyjs/bin/uglifyjs temp.js --extra --unsafe --reserved-names "$eval,$sign" > $2 + eval $COMMAND > temp.js + ../../uglifyjs/bin/uglifyjs temp.js --extra --unsafe --reserved-names "$eval,$sign" > $3 rm temp.js ;; esac diff --git a/dist/docs/classes/CharacterStyle.html b/dist/docs/classes/CharacterStyle.html index 0fbfeac1..7b2ea6e5 100644 --- a/dist/docs/classes/CharacterStyle.html +++ b/dist/docs/classes/CharacterStyle.html @@ -150,7 +150,7 @@ text.characterStyle = { @@ -529,7 +529,7 @@ limit on the ratio of the miter length to the RGBColor / HSBColor / GrayColor + RGBColor / HSBColor / HSLColor / GrayColor diff --git a/dist/docs/classes/CompoundPath.html b/dist/docs/classes/CompoundPath.html index c63c4e86..7f9a8154 100644 --- a/dist/docs/classes/CompoundPath.html +++ b/dist/docs/classes/CompoundPath.html @@ -567,16 +567,16 @@ function onMouseDrag(event) { if (myPath) { myPath.remove(); } - + // Create a new path and add a segment point to it // at {x: 150, y: 150): myPath = new Path(); myPath.add(150, 150); - + // Draw an arc through the position of the mouse to 'toPoint' var toPoint = new Point(350, 150); myPath.arcTo(event.point, toPoint); - + // Select the path, so we can see its segments: myPath.selected = true; } @@ -1391,6 +1391,45 @@ circle2.opacity = 0.5; +
+ + +
+ +
+ +
+ + + +
+ + @@ -1910,7 +1981,7 @@ accessing item.children[item.children.length - 1].

@@ -2284,7 +2355,7 @@ miterLimit imposes a limit on the ratio of the miter length to the @@ -3481,18 +3552,18 @@ circle.scale(1.5, circle.bounds.bottomLeft);
-
-