tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkuhn...@apache.org
Subject svn commit: r618461 [19/43] - in /tapestry/tapestry4/trunk/tapestry-framework/src/js: dojo-0.4.3-custom-4.1.5/ dojo-0.4.3-custom-4.1.5/nls/ dojo-0.4.3-custom-4.1.5/src/ dojo-0.4.3-custom-4.1.5/src/animation/ dojo-0.4.3-custom-4.1.5/src/cal/ dojo-0.4.3-...
Date Mon, 04 Feb 2008 22:08:37 GMT
Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,137 @@
+dojo.provide("dojo.gfx.color");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.lang.array");
+dojo.gfx.color.Color=function(r,g,b,a){
+if(dojo.lang.isArray(r)){
+this.r=r[0];
+this.g=r[1];
+this.b=r[2];
+this.a=r[3]||1;
+}else{
+if(dojo.lang.isString(r)){
+var _5=dojo.gfx.color.extractRGB(r);
+this.r=_5[0];
+this.g=_5[1];
+this.b=_5[2];
+this.a=g||1;
+}else{
+if(r instanceof dojo.gfx.color.Color){
+this.r=r.r;
+this.b=r.b;
+this.g=r.g;
+this.a=r.a;
+}else{
+this.r=r;
+this.g=g;
+this.b=b;
+this.a=a;
+}
+}
+}
+};
+dojo.gfx.color.Color.fromArray=function(_6){
+return new dojo.gfx.color.Color(_6[0],_6[1],_6[2],_6[3]);
+};
+dojo.extend(dojo.gfx.color.Color,{toRgb:function(_7){
+if(_7){
+return this.toRgba();
+}else{
+return [this.r,this.g,this.b];
+}
+},toRgba:function(){
+return [this.r,this.g,this.b,this.a];
+},toHex:function(){
+return dojo.gfx.color.rgb2hex(this.toRgb());
+},toCss:function(){
+return "rgb("+this.toRgb().join()+")";
+},toString:function(){
+return this.toHex();
+},blend:function(_8,_9){
+var _a=null;
+if(dojo.lang.isArray(_8)){
+_a=_8;
+}else{
+if(_8 instanceof dojo.gfx.color.Color){
+_a=_8.toRgb();
+}else{
+_a=new dojo.gfx.color.Color(_8).toRgb();
+}
+}
+return dojo.gfx.color.blend(this.toRgb(),_a,_9);
+}});
+dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
+dojo.gfx.color.blend=function(a,b,_d){
+if(typeof a=="string"){
+return dojo.gfx.color.blendHex(a,b,_d);
+}
+if(!_d){
+_d=0;
+}
+_d=Math.min(Math.max(-1,_d),1);
+_d=((_d+1)/2);
+var c=[];
+for(var x=0;x<3;x++){
+c[x]=parseInt(b[x]+((a[x]-b[x])*_d));
+}
+return c;
+};
+dojo.gfx.color.blendHex=function(a,b,_12){
+return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_12));
+};
+dojo.gfx.color.extractRGB=function(_13){
+var hex="0123456789abcdef";
+_13=_13.toLowerCase();
+if(_13.indexOf("rgb")==0){
+var _15=_13.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
+var ret=_15.splice(1,3);
+return ret;
+}else{
+var _17=dojo.gfx.color.hex2rgb(_13);
+if(_17){
+return _17;
+}else{
+return dojo.gfx.color.named[_13]||[255,255,255];
+}
+}
+};
+dojo.gfx.color.hex2rgb=function(hex){
+var _19="0123456789ABCDEF";
+var rgb=new Array(3);
+if(hex.indexOf("#")==0){
+hex=hex.substring(1);
+}
+hex=hex.toUpperCase();
+if(hex.replace(new RegExp("["+_19+"]","g"),"")!=""){
+return null;
+}
+if(hex.length==3){
+rgb[0]=hex.charAt(0)+hex.charAt(0);
+rgb[1]=hex.charAt(1)+hex.charAt(1);
+rgb[2]=hex.charAt(2)+hex.charAt(2);
+}else{
+rgb[0]=hex.substring(0,2);
+rgb[1]=hex.substring(2,4);
+rgb[2]=hex.substring(4);
+}
+for(var i=0;i<rgb.length;i++){
+rgb[i]=_19.indexOf(rgb[i].charAt(0))*16+_19.indexOf(rgb[i].charAt(1));
+}
+return rgb;
+};
+dojo.gfx.color.rgb2hex=function(r,g,b){
+if(dojo.lang.isArray(r)){
+g=r[1]||0;
+b=r[2]||0;
+r=r[0]||0;
+}
+var ret=dojo.lang.map([r,g,b],function(x){
+x=new Number(x);
+var s=x.toString(16);
+while(s.length<2){
+s="0"+s;
+}
+return s;
+});
+ret.unshift("#");
+return ret.join("");
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsl.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsl.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsl.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsl.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,105 @@
+dojo.provide("dojo.gfx.color.hsl");
+dojo.require("dojo.lang.array");
+dojo.lang.extend(dojo.gfx.color.Color,{toHsl:function(){
+return dojo.gfx.color.rgb2hsl(this.toRgb());
+}});
+dojo.gfx.color.rgb2hsl=function(r,g,b){
+if(dojo.lang.isArray(r)){
+b=r[2]||0;
+g=r[1]||0;
+r=r[0]||0;
+}
+r/=255;
+g/=255;
+b/=255;
+var h=null;
+var s=null;
+var l=null;
+var _7=Math.min(r,g,b);
+var _8=Math.max(r,g,b);
+var _9=_8-_7;
+l=(_7+_8)/2;
+s=0;
+if((l>0)&&(l<1)){
+s=_9/((l<0.5)?(2*l):(2-2*l));
+}
+h=0;
+if(_9>0){
+if((_8==r)&&(_8!=g)){
+h+=(g-b)/_9;
+}
+if((_8==g)&&(_8!=b)){
+h+=(2+(b-r)/_9);
+}
+if((_8==b)&&(_8!=r)){
+h+=(4+(r-g)/_9);
+}
+h*=60;
+}
+h=(h==0)?360:Math.ceil((h/360)*255);
+s=Math.ceil(s*255);
+l=Math.ceil(l*255);
+return [h,s,l];
+};
+dojo.gfx.color.hsl2rgb=function(h,s,l){
+if(dojo.lang.isArray(h)){
+l=h[2]||0;
+s=h[1]||0;
+h=h[0]||0;
+}
+h=(h/255)*360;
+if(h==360){
+h=0;
+}
+s=s/255;
+l=l/255;
+while(h<0){
+h+=360;
+}
+while(h>360){
+h-=360;
+}
+var r,g,b;
+if(h<120){
+r=(120-h)/60;
+g=h/60;
+b=0;
+}else{
+if(h<240){
+r=0;
+g=(240-h)/60;
+b=(h-120)/60;
+}else{
+r=(h-240)/60;
+g=0;
+b=(360-h)/60;
+}
+}
+r=Math.min(r,1);
+g=Math.min(g,1);
+b=Math.min(b,1);
+r=2*s*r+(1-s);
+g=2*s*g+(1-s);
+b=2*s*b+(1-s);
+if(l<0.5){
+r=l*r;
+g=l*g;
+b=l*b;
+}else{
+r=(1-l)*r+2*l-1;
+g=(1-l)*g+2*l-1;
+b=(1-l)*b+2*l-1;
+}
+r=Math.ceil(r*255);
+g=Math.ceil(g*255);
+b=Math.ceil(b*255);
+return [r,g,b];
+};
+dojo.gfx.color.hsl2hex=function(h,s,l){
+var rgb=dojo.gfx.color.hsl2rgb(h,s,l);
+return dojo.gfx.color.rgb2hex(rgb[0],rgb[1],rgb[2]);
+};
+dojo.gfx.color.hex2hsl=function(hex){
+var rgb=dojo.gfx.color.hex2rgb(hex);
+return dojo.gfx.color.rgb2hsl(rgb[0],rgb[1],rgb[2]);
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsl.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsl.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsl.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsv.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsv.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsv.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsv.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,197 @@
+dojo.provide("dojo.gfx.color.hsv");
+dojo.require("dojo.lang.array");
+dojo.require("dojo.math");
+dojo.lang.extend(dojo.gfx.color.Color,{toHsv:function(){
+return dojo.gfx.color.rgb2hsv(this.toRgb());
+}});
+dojo.gfx.color.rgb2hsv=function(r,g,b,_4){
+if(dojo.lang.isArray(r)){
+if(g){
+_4=g;
+}
+b=r[2]||0;
+g=r[1]||0;
+r=r[0]||0;
+}
+var _5={inputRange:(_4&&_4.inputRange)?_4.inputRange:255,outputRange:(_4&&_4.outputRange)?_4.outputRange:[255,255,255]};
+var h=null;
+var s=null;
+var v=null;
+switch(_5.inputRange){
+case 1:
+r=(r*255);
+g=(g*255);
+b=(b*255);
+break;
+case 100:
+r=(r/100)*255;
+g=(g/100)*255;
+b=(b/100)*255;
+break;
+default:
+break;
+}
+var _9=Math.min(r,g,b);
+v=Math.max(r,g,b);
+var _a=v-_9;
+s=(v==0)?0:_a/v;
+if(s==0){
+h=0;
+}else{
+if(r==v){
+h=60*(g-b)/_a;
+}else{
+if(g==v){
+h=120+60*(b-r)/_a;
+}else{
+if(b==v){
+h=240+60*(r-g)/_a;
+}
+}
+}
+if(h<=0){
+h+=360;
+}
+}
+switch(_5.outputRange[0]){
+case 360:
+break;
+case 100:
+h=(h/360)*100;
+break;
+case 1:
+h=(h/360);
+break;
+default:
+h=(h/360)*255;
+break;
+}
+switch(_5.outputRange[1]){
+case 100:
+s=s*100;
+case 1:
+break;
+default:
+s=s*255;
+break;
+}
+switch(_5.outputRange[2]){
+case 100:
+v=(v/255)*100;
+break;
+case 1:
+v=(v/255);
+break;
+default:
+break;
+}
+h=dojo.math.round(h);
+s=dojo.math.round(s);
+v=dojo.math.round(v);
+return [h,s,v];
+};
+dojo.gfx.color.hsv2rgb=function(h,s,v,_e){
+if(dojo.lang.isArray(h)){
+if(s){
+_e=s;
+}
+v=h[2]||0;
+s=h[1]||0;
+h=h[0]||0;
+}
+var _f={inputRange:(_e&&_e.inputRange)?_e.inputRange:[255,255,255],outputRange:(_e&&_e.outputRange)?_e.outputRange:255};
+switch(_f.inputRange[0]){
+case 1:
+h=h*360;
+break;
+case 100:
+h=(h/100)*360;
+break;
+case 360:
+h=h;
+break;
+default:
+h=(h/255)*360;
+}
+if(h==360){
+h=0;
+}
+switch(_f.inputRange[1]){
+case 100:
+s/=100;
+break;
+case 255:
+s/=255;
+}
+switch(_f.inputRange[2]){
+case 100:
+v/=100;
+break;
+case 255:
+v/=255;
+}
+var r=null;
+var g=null;
+var b=null;
+if(s==0){
+r=v;
+g=v;
+b=v;
+}else{
+var _13=h/60;
+var i=Math.floor(_13);
+var f=_13-i;
+var p=v*(1-s);
+var q=v*(1-(s*f));
+var t=v*(1-(s*(1-f)));
+switch(i){
+case 0:
+r=v;
+g=t;
+b=p;
+break;
+case 1:
+r=q;
+g=v;
+b=p;
+break;
+case 2:
+r=p;
+g=v;
+b=t;
+break;
+case 3:
+r=p;
+g=q;
+b=v;
+break;
+case 4:
+r=t;
+g=p;
+b=v;
+break;
+case 5:
+r=v;
+g=p;
+b=q;
+break;
+}
+}
+switch(_f.outputRange){
+case 1:
+r=dojo.math.round(r,2);
+g=dojo.math.round(g,2);
+b=dojo.math.round(b,2);
+break;
+case 100:
+r=Math.round(r*100);
+g=Math.round(g*100);
+b=Math.round(b*100);
+break;
+default:
+r=Math.round(r*255);
+g=Math.round(g*255);
+b=Math.round(b*255);
+}
+return [r,g,b];
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsv.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsv.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/color/hsv.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/common.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/common.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/common.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/common.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,50 @@
+dojo.provide("dojo.gfx.common");
+dojo.require("dojo.gfx.color");
+dojo.require("dojo.lang.declare");
+dojo.require("dojo.lang.extras");
+dojo.require("dojo.dom");
+dojo.lang.mixin(dojo.gfx,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",width:0,height:0,src:""},defaultStroke:{color:"black",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",x:0,y:0,width:0,height:0,src:""},normalizeColor:function(_1){
+return (_1 instanceof dojo.gfx.color.Color)?_1:new dojo.gfx.color.Color(_1);
+},normalizeParameters:function(_2,_3){
+if(_3){
+var _4={};
+for(var x in _2){
+if(x in _3&&!(x in _4)){
+_2[x]=_3[x];
+}
+}
+}
+return _2;
+},makeParameters:function(_6,_7){
+if(!_7){
+return dojo.lang.shallowCopy(_6,true);
+}
+var _8={};
+for(var i in _6){
+if(!(i in _8)){
+_8[i]=dojo.lang.shallowCopy((i in _7)?_7[i]:_6[i],true);
+}
+}
+return _8;
+},formatNumber:function(x,_b){
+var _c=x.toString();
+if(_c.indexOf("e")>=0){
+_c=x.toFixed(4);
+}else{
+var _d=_c.indexOf(".");
+if(_d>=0&&_c.length-_d>5){
+_c=x.toFixed(4);
+}
+}
+if(x<0){
+return _c;
+}
+return _b?" "+_c:_c;
+},pathRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g});
+dojo.declare("dojo.gfx.Surface",null,{initializer:function(){
+this.rawNode=null;
+},getEventSource:function(){
+return this.rawNode;
+}});
+dojo.declare("dojo.gfx.Point",null,{});
+dojo.declare("dojo.gfx.Rectangle",null,{});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/common.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/common.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/common.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/matrix.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/matrix.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/matrix.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/matrix.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,135 @@
+dojo.provide("dojo.gfx.matrix");
+dojo.require("dojo.lang.common");
+dojo.require("dojo.math.*");
+dojo.gfx.matrix.Matrix2D=function(_1){
+if(_1){
+if(_1 instanceof Array){
+if(_1.length>0){
+var m=dojo.gfx.matrix.normalize(_1[0]);
+for(var i=1;i<_1.length;++i){
+var l=m;
+var r=dojo.gfx.matrix.normalize(_1[i]);
+m=new dojo.gfx.matrix.Matrix2D();
+m.xx=l.xx*r.xx+l.xy*r.yx;
+m.xy=l.xx*r.xy+l.xy*r.yy;
+m.yx=l.yx*r.xx+l.yy*r.yx;
+m.yy=l.yx*r.xy+l.yy*r.yy;
+m.dx=l.xx*r.dx+l.xy*r.dy+l.dx;
+m.dy=l.yx*r.dx+l.yy*r.dy+l.dy;
+}
+dojo.mixin(this,m);
+}
+}else{
+dojo.mixin(this,_1);
+}
+}
+};
+dojo.extend(dojo.gfx.matrix.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});
+dojo.mixin(dojo.gfx.matrix,{identity:new dojo.gfx.matrix.Matrix2D(),flipX:new dojo.gfx.matrix.Matrix2D({xx:-1}),flipY:new dojo.gfx.matrix.Matrix2D({yy:-1}),flipXY:new dojo.gfx.matrix.Matrix2D({xx:-1,yy:-1}),translate:function(a,b){
+if(arguments.length>1){
+return new dojo.gfx.matrix.Matrix2D({dx:a,dy:b});
+}
+return new dojo.gfx.matrix.Matrix2D({dx:a.x,dy:a.y});
+},scale:function(a,b){
+if(arguments.length>1){
+return new dojo.gfx.matrix.Matrix2D({xx:a,yy:b});
+}
+if(typeof a=="number"){
+return new dojo.gfx.matrix.Matrix2D({xx:a,yy:a});
+}
+return new dojo.gfx.matrix.Matrix2D({xx:a.x,yy:a.y});
+},rotate:function(_a){
+var c=Math.cos(_a);
+var s=Math.sin(_a);
+return new dojo.gfx.matrix.Matrix2D({xx:c,xy:s,yx:-s,yy:c});
+},rotateg:function(_d){
+return dojo.gfx.matrix.rotate(dojo.math.degToRad(_d));
+},skewX:function(_e){
+return new dojo.gfx.matrix.Matrix2D({xy:Math.tan(_e)});
+},skewXg:function(_f){
+return dojo.gfx.matrix.skewX(dojo.math.degToRad(_f));
+},skewY:function(_10){
+return new dojo.gfx.matrix.Matrix2D({yx:-Math.tan(_10)});
+},skewYg:function(_11){
+return dojo.gfx.matrix.skewY(dojo.math.degToRad(_11));
+},normalize:function(_12){
+return (_12 instanceof dojo.gfx.matrix.Matrix2D)?_12:new dojo.gfx.matrix.Matrix2D(_12);
+},clone:function(_13){
+var obj=new dojo.gfx.matrix.Matrix2D();
+for(var i in _13){
+if(typeof (_13[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_13[i]){
+obj[i]=_13[i];
+}
+}
+return obj;
+},invert:function(_16){
+var m=dojo.gfx.matrix.normalize(_16);
+var D=m.xx*m.yy-m.xy*m.yx;
+var M=new dojo.gfx.matrix.Matrix2D({xx:m.yy/D,xy:-m.xy/D,yx:-m.yx/D,yy:m.xx/D,dx:(m.yx*m.dy-m.yy*m.dx)/D,dy:(m.xy*m.dx-m.xx*m.dy)/D});
+return M;
+},_multiplyPoint:function(m,x,y){
+return {x:m.xx*x+m.xy*y+m.dx,y:m.yx*x+m.yy*y+m.dy};
+},multiplyPoint:function(_1d,a,b){
+var m=dojo.gfx.matrix.normalize(_1d);
+if(typeof a=="number"&&typeof b=="number"){
+return dojo.gfx.matrix._multiplyPoint(m,a,b);
+}
+return dojo.gfx.matrix._multiplyPoint(m,a.x,a.y);
+},multiply:function(_21){
+var m=dojo.gfx.matrix.normalize(_21);
+for(var i=1;i<arguments.length;++i){
+var l=m;
+var r=dojo.gfx.matrix.normalize(arguments[i]);
+m=new dojo.gfx.matrix.Matrix2D();
+m.xx=l.xx*r.xx+l.xy*r.yx;
+m.xy=l.xx*r.xy+l.xy*r.yy;
+m.yx=l.yx*r.xx+l.yy*r.yx;
+m.yy=l.yx*r.xy+l.yy*r.yy;
+m.dx=l.xx*r.dx+l.xy*r.dy+l.dx;
+m.dy=l.yx*r.dx+l.yy*r.dy+l.dy;
+}
+return m;
+},_sandwich:function(m,x,y){
+return dojo.gfx.matrix.multiply(dojo.gfx.matrix.translate(x,y),m,dojo.gfx.matrix.translate(-x,-y));
+},scaleAt:function(a,b,c,d){
+switch(arguments.length){
+case 4:
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.scale(a,b),c,d);
+case 3:
+if(typeof c=="number"){
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.scale(a),b,c);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.scale(a,b),c.x,c.y);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.scale(a),b.x,b.y);
+},rotateAt:function(_2d,a,b){
+if(arguments.length>2){
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.rotate(_2d),a,b);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.rotate(_2d),a.x,a.y);
+},rotategAt:function(_30,a,b){
+if(arguments.length>2){
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.rotateg(_30),a,b);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.rotateg(_30),a.x,a.y);
+},skewXAt:function(_33,a,b){
+if(arguments.length>2){
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewX(_33),a,b);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewX(_33),a.x,a.y);
+},skewXgAt:function(_36,a,b){
+if(arguments.length>2){
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewXg(_36),a,b);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewXg(_36),a.x,a.y);
+},skewYAt:function(_39,a,b){
+if(arguments.length>2){
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewY(_39),a,b);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewY(_39),a.x,a.y);
+},skewYgAt:function(_3c,a,b){
+if(arguments.length>2){
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewYg(_3c),a,b);
+}
+return dojo.gfx.matrix._sandwich(dojo.gfx.matrix.skewYg(_3c),a.x,a.y);
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/matrix.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/matrix.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/matrix.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/path.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/path.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/path.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/path.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,255 @@
+dojo.provide("dojo.gfx.path");
+dojo.require("dojo.math");
+dojo.require("dojo.gfx.shape");
+dojo.declare("dojo.gfx.path.Path",dojo.gfx.Shape,{initializer:function(_1){
+this.shape=dojo.lang.shallowCopy(dojo.gfx.defaultPath,true);
+this.segments=[];
+this.absolute=true;
+this.last={};
+this.attach(_1);
+},setAbsoluteMode:function(_2){
+this.absolute=typeof (_2)=="string"?(_2=="absolute"):_2;
+return this;
+},getAbsoluteMode:function(){
+return this.absolute;
+},getBoundingBox:function(){
+return "l" in this.bbox?{x:this.bbox.l,y:this.bbox.t,width:this.bbox.r-this.bbox.l,height:this.bbox.b-this.bbox.t}:null;
+},getLastPosition:function(){
+return "x" in this.last?this.last:null;
+},_updateBBox:function(x,y){
+if("l" in this.bbox){
+if(this.bbox.l>x){
+this.bbox.l=x;
+}
+if(this.bbox.r<x){
+this.bbox.r=x;
+}
+if(this.bbox.t>y){
+this.bbox.t=y;
+}
+if(this.bbox.b<y){
+this.bbox.b=y;
+}
+}else{
+this.bbox={l:x,b:y,r:x,t:y};
+}
+},_updateWithSegment:function(_5){
+var n=_5.args;
+var l=n.length;
+switch(_5.action){
+case "M":
+case "L":
+case "C":
+case "S":
+case "Q":
+case "T":
+for(var i=0;i<l;i+=2){
+this._updateBBox(this.bbox,n[i],n[i+1]);
+}
+this.last.x=n[l-2];
+this.last.y=n[l-1];
+this.absolute=true;
+break;
+case "H":
+for(var i=0;i<l;++i){
+this._updateBBox(this.bbox,n[i],this.last.y);
+}
+this.last.x=n[l-1];
+this.absolute=true;
+break;
+case "V":
+for(var i=0;i<l;++i){
+this._updateBBox(this.bbox,this.last.x,n[i]);
+}
+this.last.y=n[l-1];
+this.absolute=true;
+break;
+case "m":
+var _9=0;
+if(!("x" in this.last)){
+this._updateBBox(this.bbox,this.last.x=n[0],this.last.y=n[1]);
+_9=2;
+}
+for(var i=_9;i<l;i+=2){
+this._updateBBox(this.bbox,this.last.x+=n[i],this.last.y+=n[i+1]);
+}
+this.absolute=false;
+break;
+case "l":
+case "t":
+for(var i=0;i<l;i+=2){
+this._updateBBox(this.bbox,this.last.x+=n[i],this.last.y+=n[i+1]);
+}
+this.absolute=false;
+break;
+case "h":
+for(var i=0;i<l;++i){
+this._updateBBox(this.bbox,this.last.x+=n[i],this.last.y);
+}
+this.absolute=false;
+break;
+case "v":
+for(var i=0;i<l;++i){
+this._updateBBox(this.bbox,this.last.x,this.last.y+=n[i]);
+}
+this.absolute=false;
+break;
+case "c":
+for(var i=0;i<l;i+=6){
+this._updateBBox(this.bbox,this.last.x+n[i],this.last.y+n[i+1]);
+this._updateBBox(this.bbox,this.last.x+n[i+2],this.last.y+n[i+3]);
+this._updateBBox(this.bbox,this.last.x+=n[i+4],this.last.y+=n[i+5]);
+}
+this.absolute=false;
+break;
+case "s":
+case "q":
+for(var i=0;i<l;i+=4){
+this._updateBBox(this.bbox,this.last.x+n[i],this.last.y+n[i+1]);
+this._updateBBox(this.bbox,this.last.x+=n[i+2],this.last.y+=n[i+3]);
+}
+this.absolute=false;
+break;
+case "A":
+for(var i=0;i<l;i+=7){
+this._updateBBox(this.bbox,n[i+5],n[i+6]);
+}
+this.last.x=n[l-2];
+this.last.y=n[l-1];
+this.absolute=true;
+break;
+case "a":
+for(var i=0;i<l;i+=7){
+this._updateBBox(this.bbox,this.last.x+=n[i+5],this.last.y+=n[i+6]);
+}
+this.absolute=false;
+break;
+}
+var _a=[_5.action];
+for(var i=0;i<l;++i){
+_a.push(dojo.gfx.formatNumber(n[i],true));
+}
+if(typeof (this.shape.path)=="string"){
+this.shape.path+=_a.join("");
+}else{
+this.shape.path=this.shape.path.concat(_a);
+}
+},_validSegments:{m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0},_pushSegment:function(_b,_c){
+var _d=this._validSegments[_b.toLowerCase()];
+if(typeof (_d)=="number"){
+if(_d){
+if(_c.length>=_d){
+var _e={action:_b,args:_c.slice(0,_c.length-_c.length%_d)};
+this.segments.push(_e);
+this._updateWithSegment(_e);
+}
+}else{
+var _e={action:_b,args:[]};
+this.segments.push(_e);
+this._updateWithSegment(_e);
+}
+}
+},_collectArgs:function(_f,_10){
+for(var i=0;i<_10.length;++i){
+var t=_10[i];
+if(typeof (t)=="boolean"){
+_f.push(t?1:0);
+}else{
+if(typeof (t)=="number"){
+_f.push(t);
+}else{
+if(t instanceof Array){
+this._collectArgs(_f,t);
+}else{
+if("x" in t&&"y" in t){
+_f.push(t.x);
+_f.push(t.y);
+}
+}
+}
+}
+}
+},moveTo:function(){
+var _13=[];
+this._collectArgs(_13,arguments);
+this._pushSegment(this.absolute?"M":"m",_13);
+return this;
+},lineTo:function(){
+var _14=[];
+this._collectArgs(_14,arguments);
+this._pushSegment(this.absolute?"L":"l",_14);
+return this;
+},hLineTo:function(){
+var _15=[];
+this._collectArgs(_15,arguments);
+this._pushSegment(this.absolute?"H":"h",_15);
+return this;
+},vLineTo:function(){
+var _16=[];
+this._collectArgs(_16,arguments);
+this._pushSegment(this.absolute?"V":"v",_16);
+return this;
+},curveTo:function(){
+var _17=[];
+this._collectArgs(_17,arguments);
+this._pushSegment(this.absolute?"C":"c",_17);
+return this;
+},smoothCurveTo:function(){
+var _18=[];
+this._collectArgs(_18,arguments);
+this._pushSegment(this.absolute?"S":"s",_18);
+return this;
+},qCurveTo:function(){
+var _19=[];
+this._collectArgs(_19,arguments);
+this._pushSegment(this.absolute?"Q":"q",_19);
+return this;
+},qSmoothCurveTo:function(){
+var _1a=[];
+this._collectArgs(_1a,arguments);
+this._pushSegment(this.absolute?"T":"t",_1a);
+return this;
+},arcTo:function(){
+var _1b=[];
+this._collectArgs(_1b,arguments);
+for(var i=2;i<_1b.length;i+=7){
+_1b[i]=-_1b[i];
+}
+this._pushSegment(this.absolute?"A":"a",_1b);
+return this;
+},closePath:function(){
+this._pushSegment("Z",[]);
+return this;
+},_setPath:function(_1d){
+var p=_1d.match(dojo.gfx.pathRegExp);
+this.segments=[];
+this.absolute=true;
+this.bbox={};
+this.last={};
+if(!p){
+return;
+}
+var _1f="";
+var _20=[];
+for(var i=0;i<p.length;++i){
+var t=p[i];
+var x=parseFloat(t);
+if(isNaN(x)){
+if(_1f){
+this._pushSegment(_1f,_20);
+}
+_20=[];
+_1f=t;
+}else{
+_20.push(x);
+}
+}
+this._pushSegment(_1f,_20);
+},setShape:function(_24){
+this.shape=dojo.gfx.makeParameters(this.shape,typeof (_24)=="string"?{path:_24}:_24);
+var _25=this.shape.path;
+this.shape.path=[];
+this._setPath(_25);
+this.shape.path=this.shape.path.join("");
+return this;
+},_2PI:Math.PI*2});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/path.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/path.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/path.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/shape.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/shape.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/shape.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/shape.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,163 @@
+dojo.provide("dojo.gfx.shape");
+dojo.require("dojo.lang.declare");
+dojo.require("dojo.gfx.common");
+dojo.declare("dojo.gfx.Shape",null,{initializer:function(){
+this.rawNode=null;
+this.shape=null;
+this.matrix=null;
+this.fillStyle=null;
+this.strokeStyle=null;
+this.bbox=null;
+this.parent=null;
+this.parentMatrix=null;
+},getNode:function(){
+return this.rawNode;
+},getShape:function(){
+return this.shape;
+},getTransform:function(){
+return this.matrix;
+},getFill:function(){
+return this.fillStyle;
+},getStroke:function(){
+return this.strokeStyle;
+},getParent:function(){
+return this.parent;
+},getBoundingBox:function(){
+return this.bbox;
+},getEventSource:function(){
+return this.rawNode;
+},setShape:function(_1){
+return this;
+},setFill:function(_2){
+return this;
+},setStroke:function(_3){
+return this;
+},moveToFront:function(){
+return this;
+},moveToBack:function(){
+return this;
+},setTransform:function(_4){
+this.matrix=dojo.gfx.matrix.clone(_4?dojo.gfx.matrix.normalize(_4):dojo.gfx.identity,true);
+return this._applyTransform();
+},applyRightTransform:function(_5){
+return _5?this.setTransform([this.matrix,_5]):this;
+},applyLeftTransform:function(_6){
+return _6?this.setTransform([_6,this.matrix]):this;
+},applyTransform:function(_7){
+return _7?this.setTransform([this.matrix,_7]):this;
+},remove:function(_8){
+if(this.parent){
+this.parent.remove(this,_8);
+}
+return this;
+},_setParent:function(_9,_a){
+this.parent=_9;
+return this._updateParentMatrix(_a);
+},_updateParentMatrix:function(_b){
+this.parentMatrix=_b?dojo.gfx.matrix.clone(_b):null;
+return this._applyTransform();
+},_getRealMatrix:function(){
+return this.parentMatrix?new dojo.gfx.matrix.Matrix2D([this.parentMatrix,this.matrix]):this.matrix;
+}});
+dojo.declare("dojo.gfx.shape.VirtualGroup",dojo.gfx.Shape,{initializer:function(){
+this.children=[];
+},add:function(_c){
+var _d=_c.getParent();
+if(_d){
+_d.remove(_c,true);
+}
+this.children.push(_c);
+return _c._setParent(this,this._getRealMatrix());
+},remove:function(_e,_f){
+for(var i=0;i<this.children.length;++i){
+if(this.children[i]==_e){
+if(_f){
+}else{
+_e._setParent(null,null);
+}
+this.children.splice(i,1);
+break;
+}
+}
+return this;
+},_applyTransform:function(){
+var _11=this._getRealMatrix();
+for(var i=0;i<this.children.length;++i){
+this.children[i]._updateParentMatrix(_11);
+}
+return this;
+}});
+dojo.declare("dojo.gfx.shape.Rect",dojo.gfx.Shape,{initializer:function(_13){
+this.shape=dojo.lang.shallowCopy(dojo.gfx.defaultRect,true);
+this.attach(_13);
+},getBoundingBox:function(){
+return this.shape;
+}});
+dojo.declare("dojo.gfx.shape.Ellipse",dojo.gfx.Shape,{initializer:function(_14){
+this.shape=dojo.lang.shallowCopy(dojo.gfx.defaultEllipse,true);
+this.attach(_14);
+},getBoundingBox:function(){
+if(!this.bbox){
+var _15=this.shape;
+this.bbox={x:_15.cx-_15.rx,y:_15.cy-_15.ry,width:2*_15.rx,height:2*_15.ry};
+}
+return this.bbox;
+}});
+dojo.declare("dojo.gfx.shape.Circle",dojo.gfx.Shape,{initializer:function(_16){
+this.shape=dojo.lang.shallowCopy(dojo.gfx.defaultCircle,true);
+this.attach(_16);
+},getBoundingBox:function(){
+if(!this.bbox){
+var _17=this.shape;
+this.bbox={x:_17.cx-_17.r,y:_17.cy-_17.r,width:2*_17.r,height:2*_17.r};
+}
+return this.bbox;
+}});
+dojo.declare("dojo.gfx.shape.Line",dojo.gfx.Shape,{initializer:function(_18){
+this.shape=dojo.lang.shallowCopy(dojo.gfx.defaultLine,true);
+this.attach(_18);
+},getBoundingBox:function(){
+if(!this.bbox){
+var _19=this.shape;
+this.bbox={x:Math.min(_19.x1,_19.x2),y:Math.min(_19.y1,_19.y2),width:Math.abs(_19.x2-_19.x1),height:Math.abs(_19.y2-_19.y1)};
+}
+return this.bbox;
+}});
+dojo.declare("dojo.gfx.shape.Polyline",dojo.gfx.Shape,{initializer:function(_1a){
+this.shape=dojo.lang.shallowCopy(dojo.gfx.defaultPolyline,true);
+this.attach(_1a);
+},getBoundingBox:function(){
+if(!this.bbox&&this.shape.points.length){
+var p=this.shape.points;
+var l=p.length;
+var t=p[0];
+var _1e={l:t.x,t:t.y,r:t.x,b:t.y};
+for(var i=1;i<l;++i){
+t=p[i];
+if(_1e.l>t.x){
+_1e.l=t.x;
+}
+if(_1e.r<t.x){
+_1e.r=t.x;
+}
+if(_1e.t>t.y){
+_1e.t=t.y;
+}
+if(_1e.b<t.y){
+_1e.b=t.y;
+}
+}
+this.bbox={x:_1e.l,y:_1e.t,width:_1e.r-_1e.l,height:_1e.b-_1e.t};
+}
+return this.bbox;
+}});
+dojo.declare("dojo.gfx.shape.Image",dojo.gfx.Shape,{initializer:function(_20){
+this.shape=dojo.lang.shallowCopy(dojo.gfx.defaultImage,true);
+this.attach(_20);
+},getBoundingBox:function(){
+if(!this.bbox){
+var _21=this.shape;
+this.bbox={x:0,y:0,width:_21.width,height:_21.height};
+}
+return this.bbox;
+}});

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/shape.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/shape.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/shape.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/svg.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/svg.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/svg.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/svg.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,460 @@
+dojo.provide("dojo.gfx.svg");
+dojo.require("dojo.lang.declare");
+dojo.require("dojo.svg");
+dojo.require("dojo.gfx.color");
+dojo.require("dojo.gfx.common");
+dojo.require("dojo.gfx.shape");
+dojo.require("dojo.gfx.path");
+dojo.require("dojo.experimental");
+dojo.experimental("dojo.gfx.svg");
+dojo.gfx.svg.getRef=function(_1){
+if(!_1||_1=="none"){
+return null;
+}
+if(_1.match(/^url\(#.+\)$/)){
+return dojo.byId(_1.slice(5,-1));
+}
+if(dojo.render.html.opera&&_1.match(/^#dj_unique_.+$/)){
+return dojo.byId(_1.slice(1));
+}
+return null;
+};
+dojo.lang.extend(dojo.gfx.Shape,{setFill:function(_2){
+if(!_2){
+this.fillStyle=null;
+this.rawNode.setAttribute("fill","none");
+this.rawNode.setAttribute("fill-opacity",0);
+return this;
+}
+if(typeof (_2)=="object"&&"type" in _2){
+switch(_2.type){
+case "linear":
+var f=dojo.gfx.makeParameters(dojo.gfx.defaultLinearGradient,_2);
+var _4=this._setFillObject(f,"linearGradient");
+dojo.lang.forEach(["x1","y1","x2","y2"],function(x){
+_4.setAttribute(x,f[x].toFixed(8));
+});
+break;
+case "radial":
+var f=dojo.gfx.makeParameters(dojo.gfx.defaultRadialGradient,_2);
+var _4=this._setFillObject(f,"radialGradient");
+dojo.lang.forEach(["cx","cy","r"],function(x){
+_4.setAttribute(x,f[x].toFixed(8));
+});
+break;
+case "pattern":
+var f=dojo.gfx.makeParameters(dojo.gfx.defaultPattern,_2);
+var _7=this._setFillObject(f,"pattern");
+dojo.lang.forEach(["x","y","width","height"],function(x){
+_7.setAttribute(x,f[x].toFixed(8));
+});
+break;
+}
+return this;
+}
+var f=dojo.gfx.normalizeColor(_2);
+this.fillStyle=f;
+this.rawNode.setAttribute("fill",f.toCss());
+this.rawNode.setAttribute("fill-opacity",f.a);
+return this;
+},setStroke:function(_9){
+if(!_9){
+this.strokeStyle=null;
+this.rawNode.setAttribute("stroke","none");
+this.rawNode.setAttribute("stroke-opacity",0);
+return this;
+}
+this.strokeStyle=dojo.gfx.makeParameters(dojo.gfx.defaultStroke,_9);
+this.strokeStyle.color=dojo.gfx.normalizeColor(this.strokeStyle.color);
+var s=this.strokeStyle;
+var rn=this.rawNode;
+if(s){
+rn.setAttribute("stroke",s.color.toCss());
+rn.setAttribute("stroke-opacity",s.color.a);
+rn.setAttribute("stroke-width",s.width);
+rn.setAttribute("stroke-linecap",s.cap);
+if(typeof (s.join)=="number"){
+rn.setAttribute("stroke-linejoin","miter");
+rn.setAttribute("stroke-miterlimit",s.join);
+}else{
+rn.setAttribute("stroke-linejoin",s.join);
+}
+}
+return this;
+},_setFillObject:function(f,_d){
+var _e=this.rawNode.parentNode.getElementsByTagName("defs");
+if(_e.length==0){
+return this;
+}
+this.fillStyle=f;
+var _f=_e[0];
+var _10=this.rawNode.getAttribute("fill");
+var ref=dojo.gfx.svg.getRef(_10);
+if(ref){
+_10=ref;
+if(_10.tagName.toLowerCase()!=_d.toLowerCase()){
+var id=_10.id;
+_10.parentNode.removeChild(_10);
+_10=document.createElementNS(dojo.svg.xmlns.svg,_d);
+_10.setAttribute("id",id);
+_f.appendChild(_10);
+}else{
+while(_10.childNodes.length){
+_10.removeChild(_10.lastChild);
+}
+}
+}else{
+_10=document.createElementNS(dojo.svg.xmlns.svg,_d);
+_10.setAttribute("id",dojo.dom.getUniqueId());
+_f.appendChild(_10);
+}
+if(_d=="pattern"){
+_10.setAttribute("patternUnits","userSpaceOnUse");
+var img=document.createElementNS(dojo.svg.xmlns.svg,"image");
+img.setAttribute("x",0);
+img.setAttribute("y",0);
+img.setAttribute("width",f.width.toFixed(8));
+img.setAttribute("height",f.height.toFixed(8));
+img.setAttributeNS(dojo.svg.xmlns.xlink,"href",f.src);
+_10.appendChild(img);
+}else{
+_10.setAttribute("gradientUnits","userSpaceOnUse");
+for(var i=0;i<f.colors.length;++i){
+f.colors[i].color=dojo.gfx.normalizeColor(f.colors[i].color);
+var t=document.createElementNS(dojo.svg.xmlns.svg,"stop");
+t.setAttribute("offset",f.colors[i].offset.toFixed(8));
+t.setAttribute("stop-color",f.colors[i].color.toCss());
+_10.appendChild(t);
+}
+}
+this.rawNode.setAttribute("fill","url(#"+_10.getAttribute("id")+")");
+this.rawNode.removeAttribute("fill-opacity");
+return _10;
+},_applyTransform:function(){
+var _16=this._getRealMatrix();
+if(_16){
+var tm=this.matrix;
+this.rawNode.setAttribute("transform","matrix("+tm.xx.toFixed(8)+","+tm.yx.toFixed(8)+","+tm.xy.toFixed(8)+","+tm.yy.toFixed(8)+","+tm.dx.toFixed(8)+","+tm.dy.toFixed(8)+")");
+}else{
+this.rawNode.removeAttribute("transform");
+}
+return this;
+},setRawNode:function(_18){
+with(_18){
+setAttribute("fill","none");
+setAttribute("fill-opacity",0);
+setAttribute("stroke","none");
+setAttribute("stroke-opacity",0);
+setAttribute("stroke-width",1);
+setAttribute("stroke-linecap","butt");
+setAttribute("stroke-linejoin","miter");
+setAttribute("stroke-miterlimit",4);
+}
+this.rawNode=_18;
+},moveToFront:function(){
+this.rawNode.parentNode.appendChild(this.rawNode);
+return this;
+},moveToBack:function(){
+this.rawNode.parentNode.insertBefore(this.rawNode,this.rawNode.parentNode.firstChild);
+return this;
+},setShape:function(_19){
+this.shape=dojo.gfx.makeParameters(this.shape,_19);
+for(var i in this.shape){
+if(i!="type"){
+this.rawNode.setAttribute(i,this.shape[i]);
+}
+}
+return this;
+},attachFill:function(_1b){
+var _1c=null;
+if(_1b){
+var _1d=_1b.getAttribute("fill");
+if(_1d=="none"){
+return;
+}
+var ref=dojo.gfx.svg.getRef(_1d);
+if(ref){
+var _1f=ref;
+switch(_1f.tagName.toLowerCase()){
+case "lineargradient":
+_1c=this._getGradient(dojo.gfx.defaultLinearGradient,_1f);
+dojo.lang.forEach(["x1","y1","x2","y2"],function(x){
+_1c[x]=_1f.getAttribute(x);
+});
+break;
+case "radialgradient":
+_1c=this._getGradient(dojo.gfx.defaultRadialGradient,_1f);
+dojo.lang.forEach(["cx","cy","r"],function(x){
+_1c[x]=_1f.getAttribute(x);
+});
+_1c.cx=_1f.getAttribute("cx");
+_1c.cy=_1f.getAttribute("cy");
+_1c.r=_1f.getAttribute("r");
+break;
+case "pattern":
+_1c=dojo.lang.shallowCopy(dojo.gfx.defaultPattern,true);
+dojo.lang.forEach(["x","y","width","height"],function(x){
+_1c[x]=_1f.getAttribute(x);
+});
+_1c.src=_1f.firstChild.getAttributeNS(dojo.svg.xmlns.xlink,"href");
+break;
+}
+}else{
+_1c=new dojo.gfx.color.Color(_1d);
+var _23=_1b.getAttribute("fill-opacity");
+if(_23!=null){
+_1c.a=_23;
+}
+}
+}
+return _1c;
+},_getGradient:function(_24,_25){
+var _26=dojo.lang.shallowCopy(_24,true);
+_26.colors=[];
+for(var i=0;i<_25.childNodes.length;++i){
+_26.colors.push({offset:_25.childNodes[i].getAttribute("offset"),color:new dojo.gfx.color.Color(_25.childNodes[i].getAttribute("stop-color"))});
+}
+return _26;
+},attachStroke:function(_28){
+if(!_28){
+return;
+}
+var _29=_28.getAttribute("stroke");
+if(_29==null||_29=="none"){
+return null;
+}
+var _2a=dojo.lang.shallowCopy(dojo.gfx.defaultStroke,true);
+var _2b=new dojo.gfx.color.Color(_29);
+if(_2b){
+_2a.color=_2b;
+_2a.color.a=_28.getAttribute("stroke-opacity");
+_2a.width=_28.getAttribute("stroke-width");
+_2a.cap=_28.getAttribute("stroke-linecap");
+_2a.join=_28.getAttribute("stroke-linejoin");
+if(_2a.join=="miter"){
+_2a.join=_28.getAttribute("stroke-miterlimit");
+}
+}
+return _2a;
+},attachTransform:function(_2c){
+var _2d=null;
+if(_2c){
+_2d=_2c.getAttribute("transform");
+if(_2d.match(/^matrix\(.+\)$/)){
+var t=_2d.slice(7,-1).split(",");
+_2d=dojo.gfx.matrix.normalize({xx:parseFloat(t[0]),xy:parseFloat(t[2]),yx:parseFloat(t[1]),yy:parseFloat(t[3]),dx:parseFloat(t[4]),dy:parseFloat(t[5])});
+}
+}
+return _2d;
+},attachShape:function(_2f){
+var _30=null;
+if(_2f){
+_30=dojo.lang.shallowCopy(this.shape,true);
+for(var i in _30){
+_30[i]=_2f.getAttribute(i);
+}
+}
+return _30;
+},attach:function(_32){
+if(_32){
+this.rawNode=_32;
+this.fillStyle=this.attachFill(_32);
+this.strokeStyle=this.attachStroke(_32);
+this.matrix=this.attachTransform(_32);
+this.shape=this.attachShape(_32);
+}
+}});
+dojo.declare("dojo.gfx.Group",dojo.gfx.Shape,{setRawNode:function(_33){
+this.rawNode=_33;
+}});
+dojo.gfx.Group.nodeType="g";
+dojo.declare("dojo.gfx.Rect",dojo.gfx.shape.Rect,{attachShape:function(_34){
+var _35=null;
+if(_34){
+_35=dojo.gfx.Rect.superclass.attachShape.apply(this,arguments);
+_35.r=Math.min(_34.getAttribute("rx"),_34.getAttribute("ry"));
+}
+return _35;
+},setShape:function(_36){
+this.shape=dojo.gfx.makeParameters(this.shape,_36);
+this.bbox=null;
+for(var i in this.shape){
+if(i!="type"&&i!="r"){
+this.rawNode.setAttribute(i,this.shape[i]);
+}
+}
+this.rawNode.setAttribute("rx",this.shape.r);
+this.rawNode.setAttribute("ry",this.shape.r);
+return this;
+}});
+dojo.gfx.Rect.nodeType="rect";
+dojo.gfx.Ellipse=dojo.gfx.shape.Ellipse;
+dojo.gfx.Ellipse.nodeType="ellipse";
+dojo.gfx.Circle=dojo.gfx.shape.Circle;
+dojo.gfx.Circle.nodeType="circle";
+dojo.gfx.Line=dojo.gfx.shape.Line;
+dojo.gfx.Line.nodeType="line";
+dojo.declare("dojo.gfx.Polyline",dojo.gfx.shape.Polyline,{setShape:function(_38){
+if(_38&&_38 instanceof Array){
+this.shape=dojo.gfx.makeParameters(this.shape,{points:_38});
+if(closed&&this.shape.points.length){
+this.shape.points.push(this.shape.points[0]);
+}
+}else{
+this.shape=dojo.gfx.makeParameters(this.shape,_38);
+}
+this.box=null;
+var _39=[];
+var p=this.shape.points;
+for(var i=0;i<p.length;++i){
+_39.push(p[i].x.toFixed(8));
+_39.push(p[i].y.toFixed(8));
+}
+this.rawNode.setAttribute("points",_39.join(" "));
+return this;
+}});
+dojo.gfx.Polyline.nodeType="polyline";
+dojo.declare("dojo.gfx.Image",dojo.gfx.shape.Image,{setShape:function(_3c){
+this.shape=dojo.gfx.makeParameters(this.shape,_3c);
+this.bbox=null;
+var _3d=this.rawNode;
+for(var i in this.shape){
+if(i!="type"&&i!="src"){
+_3d.setAttribute(i,this.shape[i]);
+}
+}
+_3d.setAttributeNS(dojo.svg.xmlns.xlink,"href",this.shape.src);
+return this;
+},setStroke:function(){
+return this;
+},setFill:function(){
+return this;
+},attachStroke:function(_3f){
+return null;
+},attachFill:function(_40){
+return null;
+}});
+dojo.gfx.Image.nodeType="image";
+dojo.declare("dojo.gfx.Path",dojo.gfx.path.Path,{_updateWithSegment:function(_41){
+dojo.gfx.Path.superclass._updateWithSegment.apply(this,arguments);
+if(typeof (this.shape.path)=="string"){
+this.rawNode.setAttribute("d",this.shape.path);
+}
+},setShape:function(_42){
+dojo.gfx.Path.superclass.setShape.apply(this,arguments);
+this.rawNode.setAttribute("d",this.shape.path);
+return this;
+}});
+dojo.gfx.Path.nodeType="path";
+dojo.gfx._creators={createPath:function(_43){
+return this.createObject(dojo.gfx.Path,_43);
+},createRect:function(_44){
+return this.createObject(dojo.gfx.Rect,_44);
+},createCircle:function(_45){
+return this.createObject(dojo.gfx.Circle,_45);
+},createEllipse:function(_46){
+return this.createObject(dojo.gfx.Ellipse,_46);
+},createLine:function(_47){
+return this.createObject(dojo.gfx.Line,_47);
+},createPolyline:function(_48){
+return this.createObject(dojo.gfx.Polyline,_48);
+},createImage:function(_49){
+return this.createObject(dojo.gfx.Image,_49);
+},createGroup:function(){
+return this.createObject(dojo.gfx.Group);
+},createObject:function(_4a,_4b){
+if(!this.rawNode){
+return null;
+}
+var _4c=new _4a();
+var _4d=document.createElementNS(dojo.svg.xmlns.svg,_4a.nodeType);
+_4c.setRawNode(_4d);
+this.rawNode.appendChild(_4d);
+_4c.setShape(_4b);
+this.add(_4c);
+return _4c;
+},add:function(_4e){
+var _4f=_4e.getParent();
+if(_4f){
+_4f.remove(_4e,true);
+}
+_4e._setParent(this,null);
+this.rawNode.appendChild(_4e.rawNode);
+return this;
+},remove:function(_50,_51){
+if(this.rawNode==_50.rawNode.parentNode){
+this.rawNode.removeChild(_50.rawNode);
+}
+_50._setParent(null,null);
+return this;
+}};
+dojo.gfx.attachNode=function(_52){
+if(!_52){
+return null;
+}
+var s=null;
+switch(_52.tagName.toLowerCase()){
+case dojo.gfx.Rect.nodeType:
+s=new dojo.gfx.Rect();
+break;
+case dojo.gfx.Ellipse.nodeType:
+s=new dojo.gfx.Ellipse();
+break;
+case dojo.gfx.Polyline.nodeType:
+s=new dojo.gfx.Polyline();
+break;
+case dojo.gfx.Path.nodeType:
+s=new dojo.gfx.Path();
+break;
+case dojo.gfx.Circle.nodeType:
+s=new dojo.gfx.Circle();
+break;
+case dojo.gfx.Line.nodeType:
+s=new dojo.gfx.Line();
+break;
+case dojo.gfx.Image.nodeType:
+s=new dojo.gfx.Image();
+break;
+default:
+dojo.debug("FATAL ERROR! tagName = "+_52.tagName);
+}
+s.attach(_52);
+return s;
+};
+dojo.lang.extend(dojo.gfx.Surface,{setDimensions:function(_54,_55){
+if(!this.rawNode){
+return this;
+}
+this.rawNode.setAttribute("width",_54);
+this.rawNode.setAttribute("height",_55);
+return this;
+},getDimensions:function(){
+return this.rawNode?{width:this.rawNode.getAttribute("width"),height:this.rawNode.getAttribute("height")}:null;
+}});
+dojo.gfx.createSurface=function(_56,_57,_58){
+var s=new dojo.gfx.Surface();
+s.rawNode=document.createElementNS(dojo.svg.xmlns.svg,"svg");
+s.rawNode.setAttribute("width",_57);
+s.rawNode.setAttribute("height",_58);
+var _5a=new dojo.gfx.svg.Defines();
+var _5b=document.createElementNS(dojo.svg.xmlns.svg,dojo.gfx.svg.Defines.nodeType);
+_5a.setRawNode(_5b);
+s.rawNode.appendChild(_5b);
+dojo.byId(_56).appendChild(s.rawNode);
+return s;
+};
+dojo.gfx.attachSurface=function(_5c){
+var s=new dojo.gfx.Surface();
+s.rawNode=_5c;
+return s;
+};
+dojo.lang.extend(dojo.gfx.Group,dojo.gfx._creators);
+dojo.lang.extend(dojo.gfx.Surface,dojo.gfx._creators);
+delete dojo.gfx._creators;
+dojo.gfx.svg.Defines=function(){
+this.rawNode=null;
+};
+dojo.lang.extend(dojo.gfx.svg.Defines,{setRawNode:function(_5e){
+this.rawNode=_5e;
+}});
+dojo.gfx.svg.Defines.nodeType="defs";

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/svg.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/svg.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/svg.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/vml.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/vml.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/vml.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/vml.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,997 @@
+dojo.provide("dojo.gfx.vml");
+dojo.require("dojo.dom");
+dojo.require("dojo.math");
+dojo.require("dojo.lang.declare");
+dojo.require("dojo.lang.extras");
+dojo.require("dojo.string.*");
+dojo.require("dojo.html.metrics");
+dojo.require("dojo.gfx.color");
+dojo.require("dojo.gfx.common");
+dojo.require("dojo.gfx.shape");
+dojo.require("dojo.gfx.path");
+dojo.require("dojo.experimental");
+dojo.experimental("dojo.gfx.vml");
+dojo.gfx.vml.xmlns="urn:schemas-microsoft-com:vml";
+dojo.gfx.vml._parseFloat=function(_1){
+return _1.match(/^\d+f$/i)?parseInt(_1)/65536:parseFloat(_1);
+};
+dojo.gfx.vml.cm_in_pt=72/2.54;
+dojo.gfx.vml.mm_in_pt=7.2/2.54;
+dojo.gfx.vml.px_in_pt=function(){
+return dojo.html.getCachedFontMeasurements()["12pt"]/12;
+};
+dojo.gfx.vml.pt2px=function(_2){
+return _2*this.px_in_pt();
+};
+dojo.gfx.vml.px2pt=function(_3){
+return _3/this.px_in_pt();
+};
+dojo.gfx.vml.normalizedLength=function(_4){
+if(_4.length==0){
+return 0;
+}
+if(_4.length>2){
+var _5=this.px_in_pt();
+var _6=parseFloat(_4);
+switch(_4.slice(-2)){
+case "px":
+return _6;
+case "pt":
+return _6*_5;
+case "in":
+return _6*72*_5;
+case "pc":
+return _6*12*_5;
+case "mm":
+return _6/this.mm_in_pt*_5;
+case "cm":
+return _6/this.cm_in_pt*_5;
+}
+}
+return parseFloat(_4);
+};
+dojo.lang.extend(dojo.gfx.Shape,{setFill:function(_7){
+if(!_7){
+this.fillStyle=null;
+this.rawNode.filled=false;
+return this;
+}
+if(typeof (_7)=="object"&&"type" in _7){
+switch(_7.type){
+case "linear":
+var f=dojo.gfx.makeParameters(dojo.gfx.defaultLinearGradient,_7);
+this.fillStyle=f;
+var s="";
+for(var i=0;i<f.colors.length;++i){
+f.colors[i].color=dojo.gfx.normalizeColor(f.colors[i].color);
+s+=f.colors[i].offset.toFixed(8)+" "+f.colors[i].color.toHex()+";";
+}
+var fo=this.rawNode.fill;
+fo.colors.value=s;
+fo.method="sigma";
+fo.type="gradient";
+fo.angle=(dojo.math.radToDeg(Math.atan2(f.x2-f.x1,f.y2-f.y1))+180)%360;
+fo.on=true;
+break;
+case "radial":
+var f=dojo.gfx.makeParameters(dojo.gfx.defaultRadialGradient,_7);
+this.fillStyle=f;
+var w=parseFloat(this.rawNode.style.width);
+var h=parseFloat(this.rawNode.style.height);
+var c=isNaN(w)?1:2*f.r/w;
+var i=f.colors.length-1;
+f.colors[i].color=dojo.gfx.normalizeColor(f.colors[i].color);
+var s="0 "+f.colors[i].color.toHex();
+for(;i>=0;--i){
+f.colors[i].color=dojo.gfx.normalizeColor(f.colors[i].color);
+s+=(1-c*f.colors[i].offset).toFixed(8)+" "+f.colors[i].color.toHex()+";";
+}
+var fo=this.rawNode.fill;
+fo.colors.value=s;
+fo.method="sigma";
+fo.type="gradientradial";
+if(isNaN(w)||isNaN(h)){
+fo.focusposition="0.5 0.5";
+}else{
+fo.focusposition=(f.cx/w).toFixed(8)+" "+(f.cy/h).toFixed(8);
+}
+fo.focussize="0 0";
+fo.on=true;
+break;
+case "pattern":
+var f=dojo.gfx.makeParameters(dojo.gfx.defaultPattern,_7);
+this.fillStyle=f;
+var fo=this.rawNode.fill;
+fo.type="tile";
+fo.src=f.src;
+if(f.width&&f.height){
+fo.size.x=dojo.gfx.vml.px2pt(f.width);
+fo.size.y=dojo.gfx.vml.px2pt(f.height);
+}
+fo.alignShape=false;
+fo.position.x=0;
+fo.position.y=0;
+fo.origin.x=f.width?f.x/f.width:0;
+fo.origin.y=f.height?f.y/f.height:0;
+fo.on=true;
+break;
+}
+this.rawNode.fill.opacity=1;
+return this;
+}
+this.fillStyle=dojo.gfx.normalizeColor(_7);
+this.rawNode.fillcolor=this.fillStyle.toHex();
+this.rawNode.fill.opacity=this.fillStyle.a;
+this.rawNode.filled=true;
+return this;
+},setStroke:function(_f){
+if(!_f){
+this.strokeStyle=null;
+this.rawNode.stroked=false;
+return this;
+}
+this.strokeStyle=dojo.gfx.makeParameters(dojo.gfx.defaultStroke,_f);
+this.strokeStyle.color=dojo.gfx.normalizeColor(this.strokeStyle.color);
+var s=this.strokeStyle;
+this.rawNode.stroked=true;
+this.rawNode.strokecolor=s.color.toCss();
+this.rawNode.strokeweight=s.width+"px";
+if(this.rawNode.stroke){
+this.rawNode.stroke.opacity=s.color.a;
+this.rawNode.stroke.endcap=this._translate(this._capMap,s.cap);
+if(typeof (s.join)=="number"){
+this.rawNode.stroke.joinstyle="miter";
+this.rawNode.stroke.miterlimit=s.join;
+}else{
+this.rawNode.stroke.joinstyle=s.join;
+}
+}
+return this;
+},_capMap:{butt:"flat"},_capMapReversed:{flat:"butt"},_translate:function(_11,_12){
+return (_12 in _11)?_11[_12]:_12;
+},_applyTransform:function(){
+var _13=this._getRealMatrix();
+if(!_13){
+return this;
+}
+var _14=this.rawNode.skew;
+if(typeof (_14)=="undefined"){
+for(var i=0;i<this.rawNode.childNodes.length;++i){
+if(this.rawNode.childNodes[i].tagName=="skew"){
+_14=this.rawNode.childNodes[i];
+break;
+}
+}
+}
+if(_14){
+_14.on=false;
+var mt=_13.xx.toFixed(8)+" "+_13.xy.toFixed(8)+" "+_13.yx.toFixed(8)+" "+_13.yy.toFixed(8)+" 0 0";
+var _17=Math.floor(_13.dx).toFixed()+"px "+Math.floor(_13.dy).toFixed()+"px";
+var l=parseFloat(this.rawNode.style.left);
+var t=parseFloat(this.rawNode.style.top);
+var w=parseFloat(this.rawNode.style.width);
+var h=parseFloat(this.rawNode.style.height);
+if(isNaN(l)){
+l=0;
+}
+if(isNaN(t)){
+t=0;
+}
+if(isNaN(w)){
+w=1;
+}
+if(isNaN(h)){
+h=1;
+}
+var _1c=(-l/w-0.5).toFixed(8)+" "+(-t/h-0.5).toFixed(8);
+_14.matrix=mt;
+_14.origin=_1c;
+_14.offset=_17;
+_14.on=true;
+}
+return this;
+},setRawNode:function(_1d){
+_1d.stroked=false;
+_1d.filled=false;
+this.rawNode=_1d;
+},attachFill:function(_1e){
+var _1f=null;
+var fo=_1e.fill;
+if(_1e){
+if(fo.on&&fo.type=="gradient"){
+var _1f=dojo.lang.shallowCopy(dojo.gfx.defaultLinearGradient,true);
+var rad=dojo.math.degToRad(fo.angle);
+_1f.x2=Math.cos(rad);
+_1f.y2=Math.sin(rad);
+_1f.colors=[];
+var _22=fo.colors.value.split(";");
+for(var i=0;i<_22.length;++i){
+var t=_22[i].match(/\S+/g);
+if(!t||t.length!=2){
+continue;
+}
+_1f.colors.push({offset:dojo.gfx.vml._parseFloat(t[0]),color:new dojo.gfx.color.Color(t[1])});
+}
+}else{
+if(fo.on&&fo.type=="gradientradial"){
+var _1f=dojo.lang.shallowCopy(dojo.gfx.defaultRadialGradient,true);
+var w=parseFloat(_1e.style.width);
+var h=parseFloat(_1e.style.height);
+_1f.cx=isNaN(w)?0:fo.focusposition.x*w;
+_1f.cy=isNaN(h)?0:fo.focusposition.y*h;
+_1f.r=isNaN(w)?1:w/2;
+_1f.colors=[];
+var _22=fo.colors.value.split(";");
+for(var i=_22.length-1;i>=0;--i){
+var t=_22[i].match(/\S+/g);
+if(!t||t.length!=2){
+continue;
+}
+_1f.colors.push({offset:dojo.gfx.vml._parseFloat(t[0]),color:new dojo.gfx.color.Color(t[1])});
+}
+}else{
+if(fo.on&&fo.type=="tile"){
+var _1f=dojo.lang.shallowCopy(dojo.gfx.defaultPattern,true);
+_1f.width=dojo.gfx.vml.pt2px(fo.size.x);
+_1f.height=dojo.gfx.vml.pt2px(fo.size.y);
+_1f.x=fo.origin.x*_1f.width;
+_1f.y=fo.origin.y*_1f.height;
+_1f.src=fo.src;
+}else{
+if(fo.on&&_1e.fillcolor){
+_1f=new dojo.gfx.color.Color(_1e.fillcolor+"");
+_1f.a=fo.opacity;
+}
+}
+}
+}
+}
+return _1f;
+},attachStroke:function(_27){
+var _28=dojo.lang.shallowCopy(dojo.gfx.defaultStroke,true);
+if(_27&&_27.stroked){
+_28.color=new dojo.gfx.color.Color(_27.strokecolor.value);
+dojo.debug("We are expecting an .75pt here, instead of strokeweight = "+_27.strokeweight);
+_28.width=dojo.gfx.vml.normalizedLength(_27.strokeweight+"");
+_28.color.a=_27.stroke.opacity;
+_28.cap=this._translate(this._capMapReversed,_27.stroke.endcap);
+_28.join=_27.stroke.joinstyle=="miter"?_27.stroke.miterlimit:_27.stroke.joinstyle;
+}else{
+return null;
+}
+return _28;
+},attachTransform:function(_29){
+var _2a={};
+if(_29){
+var s=_29.skew;
+_2a.xx=s.matrix.xtox;
+_2a.xy=s.matrix.ytox;
+_2a.yx=s.matrix.xtoy;
+_2a.yy=s.matrix.ytoy;
+_2a.dx=dojo.gfx.vml.pt2px(s.offset.x);
+_2a.dy=dojo.gfx.vml.pt2px(s.offset.y);
+}
+return dojo.gfx.matrix.normalize(_2a);
+},attach:function(_2c){
+if(_2c){
+this.rawNode=_2c;
+this.shape=this.attachShape(_2c);
+this.fillStyle=this.attachFill(_2c);
+this.strokeStyle=this.attachStroke(_2c);
+this.matrix=this.attachTransform(_2c);
+}
+}});
+dojo.declare("dojo.gfx.Group",dojo.gfx.shape.VirtualGroup,{add:function(_2d){
+if(this!=_2d.getParent()){
+this.rawNode.appendChild(_2d.rawNode);
+dojo.gfx.Group.superclass.add.apply(this,arguments);
+}
+return this;
+},remove:function(_2e,_2f){
+if(this==_2e.getParent()){
+if(this.rawNode==_2e.rawNode.parentNode){
+this.rawNode.removeChild(_2e.rawNode);
+}
+dojo.gfx.Group.superclass.remove.apply(this,arguments);
+}
+return this;
+},attach:function(_30){
+if(_30){
+this.rawNode=_30;
+this.shape=null;
+this.fillStyle=null;
+this.strokeStyle=null;
+this.matrix=null;
+}
+}});
+dojo.gfx.Group.nodeType="group";
+var zIndex={moveToFront:function(){
+this.rawNode.parentNode.appendChild(this.rawNode);
+return this;
+},moveToBack:function(){
+this.rawNode.parentNode.insertBefore(this.rawNode,this.rawNode.parentNode.firstChild);
+return this;
+}};
+dojo.lang.extend(dojo.gfx.Shape,zIndex);
+dojo.lang.extend(dojo.gfx.Group,zIndex);
+delete zIndex;
+dojo.declare("dojo.gfx.Rect",dojo.gfx.shape.Rect,{attachShape:function(_31){
+var _32=_31.outerHTML.match(/arcsize = \"(\d*\.?\d+[%f]?)\"/)[1];
+_32=(_32.indexOf("%")>=0)?parseFloat(_32)/100:dojo.gfx.vml._parseFloat(_32);
+var _33=_31.style;
+var _34=parseFloat(_33.width);
+var _35=parseFloat(_33.height);
+var o=dojo.gfx.makeParameters(dojo.gfx.defaultRect,{x:parseInt(_33.left),y:parseInt(_33.top),width:_34,height:_35,r:Math.min(_34,_35)*_32});
+return o;
+},setShape:function(_37){
+var _38=this.shape=dojo.gfx.makeParameters(this.shape,_37);
+this.bbox=null;
+var _39=this.rawNode.style;
+_39.left=_38.x.toFixed();
+_39.top=_38.y.toFixed();
+_39.width=(typeof (_38.width)=="string"&&_38.width.indexOf("%")>=0)?_38.width:_38.width.toFixed();
+_39.height=(typeof (_38.width)=="string"&&_38.height.indexOf("%")>=0)?_38.height:_38.height.toFixed();
+var r=Math.min(1,(_38.r/Math.min(parseFloat(_38.width),parseFloat(_38.height)))).toFixed(8);
+var _3b=this.rawNode.parentNode;
+var _3c=null;
+if(_3b){
+if(_3b.lastChild!=this.rawNode){
+for(var i=0;i<_3b.childNodes.length;++i){
+if(_3b.childNodes[i]==this.rawNode){
+_3c=_3b.childNodes[i+1];
+break;
+}
+}
+}
+_3b.removeChild(this.rawNode);
+}
+this.rawNode.arcsize=r;
+if(_3b){
+if(_3c){
+_3b.insertBefore(this.rawNode,_3c);
+}else{
+_3b.appendChild(this.rawNode);
+}
+}
+return this.setTransform(this.matrix);
+}});
+dojo.gfx.Rect.nodeType="roundrect";
+dojo.declare("dojo.gfx.Ellipse",dojo.gfx.shape.Ellipse,{attachShape:function(_3e){
+var _3f=this.rawNode.style;
+var rx=parseInt(_3f.width)/2;
+var ry=parseInt(_3f.height)/2;
+var o=dojo.gfx.makeParameters(dojo.gfx.defaultEllipse,{cx:parseInt(_3f.left)+rx,cy:parseInt(_3f.top)+ry,rx:rx,ry:ry});
+return o;
+},setShape:function(_43){
+var _44=this.shape=dojo.gfx.makeParameters(this.shape,_43);
+this.bbox=null;
+var _45=this.rawNode.style;
+_45.left=(_44.cx-_44.rx).toFixed();
+_45.top=(_44.cy-_44.ry).toFixed();
+_45.width=(_44.rx*2).toFixed();
+_45.height=(_44.ry*2).toFixed();
+return this.setTransform(this.matrix);
+}});
+dojo.gfx.Ellipse.nodeType="oval";
+dojo.declare("dojo.gfx.Circle",dojo.gfx.shape.Circle,{attachShape:function(_46){
+var _47=this.rawNode.style;
+var r=parseInt(_47.width)/2;
+var o=dojo.gfx.makeParameters(dojo.gfx.defaultCircle,{cx:parseInt(_47.left)+r,cy:parseInt(_47.top)+r,r:r});
+return o;
+},setShape:function(_4a){
+var _4b=this.shape=dojo.gfx.makeParameters(this.shape,_4a);
+this.bbox=null;
+var _4c=this.rawNode.style;
+_4c.left=(_4b.cx-_4b.r).toFixed();
+_4c.top=(_4b.cy-_4b.r).toFixed();
+_4c.width=(_4b.r*2).toFixed();
+_4c.height=(_4b.r*2).toFixed();
+return this;
+}});
+dojo.gfx.Circle.nodeType="oval";
+dojo.declare("dojo.gfx.Line",dojo.gfx.shape.Line,function(_4d){
+if(_4d){
+_4d.setAttribute("dojoGfxType","line");
+}
+},{attachShape:function(_4e){
+var p=_4e.path.v.match(dojo.gfx.pathRegExp);
+var _50={};
+do{
+if(p.length<7||p[0]!="m"||p[3]!="l"||p[6]!="e"){
+break;
+}
+_50.x1=parseInt(p[1]);
+_50.y1=parseInt(p[2]);
+_50.x2=parseInt(p[4]);
+_50.y2=parseInt(p[5]);
+}while(false);
+return dojo.gfx.makeParameters(dojo.gfx.defaultLine,_50);
+},setShape:function(_51){
+var _52=this.shape=dojo.gfx.makeParameters(this.shape,_51);
+this.bbox=null;
+this.rawNode.path.v="m"+_52.x1.toFixed()+" "+_52.y1.toFixed()+"l"+_52.x2.toFixed()+" "+_52.y2.toFixed()+"e";
+return this.setTransform(this.matrix);
+}});
+dojo.gfx.Line.nodeType="shape";
+dojo.declare("dojo.gfx.Polyline",dojo.gfx.shape.Polyline,function(_53){
+if(_53){
+_53.setAttribute("dojoGfxType","polyline");
+}
+},{attachShape:function(_54){
+var _55=dojo.lang.shallowCopy(dojo.gfx.defaultPolyline,true);
+var p=_54.path.v.match(dojo.gfx.pathRegExp);
+do{
+if(p.length<3||p[0]!="m"){
+break;
+}
+var x=parseInt(p[0]);
+var y=parseInt(p[1]);
+if(isNaN(x)||isNaN(y)){
+break;
+}
+_55.points.push({x:x,y:y});
+if(p.length<6||p[3]!="l"){
+break;
+}
+for(var i=4;i<p.length;i+=2){
+x=parseInt(p[i]);
+y=parseInt(p[i+1]);
+if(isNaN(x)||isNaN(y)){
+break;
+}
+_55.points.push({x:x,y:y});
+}
+}while(false);
+return _55;
+},setShape:function(_5a,_5b){
+if(_5a&&_5a instanceof Array){
+this.shape=dojo.gfx.makeParameters(this.shape,{points:_5a});
+if(_5b&&this.shape.points.length){
+this.shape.points.push(this.shape.points[0]);
+}
+}else{
+this.shape=dojo.gfx.makeParameters(this.shape,_5a);
+}
+this.bbox=null;
+var _5c=[];
+var p=this.shape.points;
+if(p.length>0){
+_5c.push("m");
+_5c.push(p[0].x.toFixed());
+_5c.push(p[0].y.toFixed());
+if(p.length>1){
+_5c.push("l");
+for(var i=1;i<p.length;++i){
+_5c.push(p[i].x.toFixed());
+_5c.push(p[i].y.toFixed());
+}
+}
+}
+_5c.push("e");
+this.rawNode.path.v=_5c.join(" ");
+return this.setTransform(this.matrix);
+}});
+dojo.gfx.Polyline.nodeType="shape";
+dojo.declare("dojo.gfx.Image",dojo.gfx.shape.Image,{getEventSource:function(){
+return this.rawNode?this.rawNode.firstChild:null;
+},attachShape:function(_5f){
+var _60=dojo.lang.shallowCopy(dojo.gfx.defaultImage,true);
+_60.src=_5f.firstChild.src;
+return _60;
+},setShape:function(_61){
+var _62=this.shape=dojo.gfx.makeParameters(this.shape,_61);
+this.bbox=null;
+var _63=this.rawNode.firstChild;
+_63.src=_62.src;
+if(_62.width||_62.height){
+_63.style.width=_62.width;
+_63.style.height=_62.height;
+}
+return this.setTransform(this.matrix);
+},setStroke:function(){
+return this;
+},setFill:function(){
+return this;
+},attachStroke:function(_64){
+return null;
+},attachFill:function(_65){
+return null;
+},attachTransform:function(_66){
+var _67={};
+if(_66){
+var m=_66.filters["DXImageTransform.Microsoft.Matrix"];
+_67.xx=m.M11;
+_67.xy=m.M12;
+_67.yx=m.M21;
+_67.yy=m.M22;
+_67.dx=m.Dx;
+_67.dy=m.Dy;
+}
+return dojo.gfx.matrix.normalize(_67);
+},_applyTransform:function(){
+var _69=this._getRealMatrix();
+if(!_69){
+return this;
+}
+with(this.rawNode.filters["DXImageTransform.Microsoft.Matrix"]){
+M11=_69.xx;
+M12=_69.xy;
+M21=_69.yx;
+M22=_69.yy;
+Dx=_69.dx;
+Dy=_69.dy;
+}
+return this;
+}});
+dojo.gfx.Image.nodeType="image";
+dojo.gfx.path._calcArc=function(_6a){
+var _6b=Math.cos(_6a);
+var _6c=Math.sin(_6a);
+var p2={x:_6b+(4/3)*(1-_6b),y:_6c-(4/3)*_6b*(1-_6b)/_6c};
+return {s:{x:_6b,y:_6c},c1:p2,c2:{x:p2.x,y:-p2.y},e:{x:_6b,y:-_6c}};
+};
+dojo.declare("dojo.gfx.Path",dojo.gfx.path.Path,function(_6e){
+if(_6e){
+_6e.setAttribute("dojoGfxType","path");
+}
+this.vmlPath="";
+this.lastControl={};
+},{_updateWithSegment:function(_6f){
+var _70=dojo.lang.shallowCopy(this.last);
+dojo.gfx.Path.superclass._updateWithSegment.apply(this,arguments);
+var _71=this[this.renderers[_6f.action]](_6f,_70);
+if(typeof (this.vmlPath)=="string"){
+this.vmlPath+=_71.join("");
+}else{
+this.vmlPath=this.vmlPath.concat(_71);
+}
+if(typeof (this.vmlPath)=="string"){
+this.rawNode.path.v=this.vmlPath+" e";
+}
+},attachShape:function(_72){
+var _73=dojo.lang.shallowCopy(dojo.gfx.defaultPath,true);
+var p=_72.path.v.match(dojo.gfx.pathRegExp);
+var t=[],_76=false;
+for(var i=0;i<p.length;++p){
+var s=p[i];
+if(s in this._pathVmlToSvgMap){
+_76=false;
+t.push(this._pathVmlToSvgMap[s]);
+}else{
+if(!_76){
+var n=parseInt(s);
+if(isNaN(n)){
+_76=true;
+}else{
+t.push(n);
+}
+}
+}
+}
+if(t.length){
+_73.path=t.join(" ");
+}
+return _73;
+},setShape:function(_7a){
+this.vmlPath=[];
+this.lastControl={};
+dojo.gfx.Path.superclass.setShape.apply(this,arguments);
+this.vmlPath=this.vmlPath.join("");
+this.rawNode.path.v=this.vmlPath+" e";
+return this;
+},_pathVmlToSvgMap:{m:"M",l:"L",t:"m",r:"l",c:"C",v:"c",qb:"Q",x:"z",e:""},renderers:{M:"_moveToA",m:"_moveToR",L:"_lineToA",l:"_lineToR",H:"_hLineToA",h:"_hLineToR",V:"_vLineToA",v:"_vLineToR",C:"_curveToA",c:"_curveToR",S:"_smoothCurveToA",s:"_smoothCurveToR",Q:"_qCurveToA",q:"_qCurveToR",T:"_qSmoothCurveToA",t:"_qSmoothCurveToR",A:"_arcTo",a:"_arcTo",Z:"_closePath",z:"_closePath"},_addArgs:function(_7b,_7c,_7d,_7e){
+if(typeof (_7e)=="undefined"){
+_7e=_7c.length;
+}
+if(typeof (_7d)=="undefined"){
+_7d=0;
+}
+for(var i=_7d;i<_7e;++i){
+_7b.push(" ");
+_7b.push(_7c[i].toFixed());
+}
+},_addArgsAdjusted:function(_80,_81,_82,_83,_84){
+if(typeof (_84)=="undefined"){
+_84=_82.length;
+}
+if(typeof (_83)=="undefined"){
+_83=0;
+}
+for(var i=_83;i<_84;i+=2){
+_80.push(" ");
+_80.push((_81.x+_82[i]).toFixed());
+_80.push(" ");
+_80.push((_81.y+_82[i+1]).toFixed());
+}
+},_moveToA:function(_86){
+var p=[" m"];
+var n=_86.args;
+var l=n.length;
+if(l==2){
+this._addArgs(p,n);
+}else{
+this._addArgs(p,n,0,2);
+p.push(" l");
+this._addArgs(p,n,2);
+}
+this.lastControl={};
+return p;
+},_moveToR:function(_8a,_8b){
+var p=["x" in _8b?" t":" m"];
+var n=_8a.args;
+var l=n.length;
+if(l==2){
+this._addArgs(p,n);
+}else{
+this._addArgs(p,n,0,2);
+p.push(" r");
+this._addArgs(p,n,2);
+}
+this.lastControl={};
+return p;
+},_lineToA:function(_8f){
+var p=[" l"];
+this._addArgs(p,_8f.args);
+this.lastControl={};
+return p;
+},_lineToR:function(_91){
+var p=[" r"];
+this._addArgs(p,_91.args);
+this.lastControl={};
+return p;
+},_hLineToA:function(_93,_94){
+var p=[" l"];
+var n=_93.args;
+var l=n.length;
+var y=" "+_94.y.toFixed();
+for(var i=0;i<l;++i){
+p.push(" ");
+p.push(n[i].toFixed());
+p.push(y);
+}
+this.lastControl={};
+return p;
+},_hLineToR:function(_9a){
+var p=[" r"];
+var n=_9a.args;
+var l=n.length;
+for(var i=0;i<l;++i){
+p.push(" ");
+p.push(n[i].toFixed());
+p.push(" 0");
+}
+this.lastControl={};
+return p;
+},_vLineToA:function(_9f,_a0){
+var p=[" l"];
+var n=_9f.args;
+var l=n.length;
+var x=" "+_a0.x.toFixed();
+for(var i=0;i<l;++i){
+p.push(x);
+p.push(" ");
+p.push(n[i].toFixed());
+}
+this.lastControl={};
+return p;
+},_vLineToR:function(_a6){
+var p=[" r"];
+var n=_a6.args;
+var l=n.length;
+for(var i=0;i<l;++i){
+p.push(" 0 ");
+p.push(n[i].toFixed());
+}
+this.lastControl={};
+return p;
+},_curveToA:function(_ab){
+var p=[];
+var n=_ab.args;
+var l=n.length;
+for(var i=0;i<l;i+=6){
+p.push(" c");
+this._addArgs(p,n,i,i+6);
+}
+this.lastControl={x:n[l-4],y:n[l-3],type:"C"};
+return p;
+},_curveToR:function(_b0,_b1){
+var p=[];
+var n=_b0.args;
+var l=n.length;
+for(var i=0;i<l;i+=6){
+p.push(" v");
+this._addArgs(p,n,i,i+6);
+this.lastControl={x:_b1.x+n[i+2],y:_b1.y+n[i+3]};
+_b1.x+=n[i+4];
+_b1.y+=n[i+5];
+}
+this.lastControl.type="C";
+return p;
+},_smoothCurveToA:function(_b6,_b7){
+var p=[];
+var n=_b6.args;
+var l=n.length;
+for(var i=0;i<l;i+=4){
+p.push(" c");
+if(this.lastControl.type=="C"){
+this._addArgs(p,[2*_b7.x-this.lastControl.x,2*_b7.y-this.lastControl.y]);
+}else{
+this._addArgs(p,[_b7.x,_b7.y]);
+}
+this._addArgs(p,n,i,i+4);
+}
+this.lastControl={x:n[l-4],y:n[l-3],type:"C"};
+return p;
+},_smoothCurveToR:function(_bc,_bd){
+var p=[];
+var n=_bc.args;
+var l=n.length;
+for(var i=0;i<l;i+=4){
+p.push(" v");
+if(this.lastControl.type=="C"){
+this._addArgs(p,[_bd.x-this.lastControl.x,_bd.y-this.lastControl.y]);
+}else{
+this._addArgs(p,[0,0]);
+}
+this._addArgs(p,n,i,i+4);
+this.lastControl={x:_bd.x+n[i],y:_bd.y+n[i+1]};
+_bd.x+=n[i+2];
+_bd.y+=n[i+3];
+}
+this.lastControl.type="C";
+return p;
+},_qCurveToA:function(_c2){
+var p=[];
+var n=_c2.args;
+var l=n.length;
+for(var i=0;i<l;i+=4){
+p.push(" qb");
+this._addArgs(p,n,i,i+4);
+}
+this.lastControl={x:n[l-4],y:n[l-3],type:"Q"};
+return p;
+},_qCurveToR:function(_c7,_c8){
+var p=[];
+var n=_c7.args;
+var l=n.length;
+for(var i=0;i<l;i+=4){
+p.push(" qb");
+this._addArgsAdjusted(p,_c8,n,i,i+4);
+this.lastControl={x:_c8.x+n[i],y:_c8.y+n[i+1]};
+_c8.x+=n[i+2];
+_c8.y+=n[i+3];
+}
+this.lastControl.type="Q";
+return p;
+},_qSmoothCurveToA:function(_cd,_ce){
+var p=[];
+var n=_cd.args;
+var l=n.length;
+for(var i=0;i<l;i+=2){
+p.push(" qb");
+if(this.lastControl.type=="Q"){
+this._addArgs(p,[this.lastControl.x=2*_ce.x-this.lastControl.x,this.lastControl.y=2*_ce.y-this.lastControl.y]);
+}else{
+this._addArgs(p,[this.lastControl.x=_ce.x,this.lastControl.y=_ce.y]);
+}
+this._addArgs(p,n,i,i+2);
+}
+this.lastControl.type="Q";
+return p;
+},_qSmoothCurveToR:function(_d3,_d4){
+var p=[];
+var n=_d3.args;
+var l=n.length;
+for(var i=0;i<l;i+=2){
+p.push(" qb");
+if(this.lastControl.type=="Q"){
+this._addArgs(p,[this.lastControl.x=2*_d4.x-this.lastControl.x,this.lastControl.y=2*_d4.y-this.lastControl.y]);
+}else{
+this._addArgs(p,[this.lastControl.x=_d4.x,this.lastControl.y=_d4.y]);
+}
+this._addArgsAdjusted(p,_d4,n,i,i+2);
+}
+this.lastControl.type="Q";
+return p;
+},_PI4:Math.PI/4,_curvePI4:dojo.gfx.path._calcArc(Math.PI/8),_calcArcTo:function(_d9,_da,rx,ry,_dd,_de,cw,x,y){
+var m=dojo.gfx.matrix;
+var _e3=-dojo.math.degToRad(_dd);
+var rx2=rx*rx;
+var ry2=ry*ry;
+var pa=m.multiplyPoint(m.rotate(-_e3),{x:(_da.x-x)/2,y:(_da.y-y)/2});
+var _e7=pa.x*pa.x;
+var _e8=pa.y*pa.y;
+var c1=Math.sqrt((rx2*ry2-rx2*_e8-ry2*_e7)/(rx2*_e8+ry2*_e7));
+var ca={x:c1*rx*pa.y/ry,y:-c1*ry*pa.x/rx};
+if(_de==cw){
+ca={x:-ca.x,y:-ca.y};
+}
+var c=m.multiplyPoint([m.translate((_da.x+x)/2,(_da.y+y)/2),m.rotate(_e3)],ca);
+var _ec=Math.atan2(c.y-_da.y,_da.x-c.x)-_e3;
+var _ed=Math.atan2(c.y-y,x-c.x)-_e3;
+var _ee=cw?_ec-_ed:_ed-_ec;
+if(_ee<0){
+_ee+=this._2PI;
+}else{
+if(_ee>this._2PI){
+_ee=this._2PI;
+}
+}
+var _ef=m.normalize([m.translate(c.x,c.y),m.rotate(_e3),m.scale(rx,ry)]);
+var _f0=this._PI4/2;
+var _f1=this._curvePI4;
+var _f2=cw?-_f0:_f0;
+for(var _f3=_ee;_f3>0;_f3-=this._PI4){
+if(_f3<this._PI4){
+_f0=_f3/2;
+_f1=dojo.gfx.path._calcArc(_f0);
+_f2=cw?-_f0:_f0;
+}
+var c1,c2,e;
+var M=m.normalize([_ef,m.rotate(_ec+_f2)]);
+if(cw){
+c1=m.multiplyPoint(M,_f1.c2);
+c2=m.multiplyPoint(M,_f1.c1);
+e=m.multiplyPoint(M,_f1.s);
+}else{
+c1=m.multiplyPoint(M,_f1.c1);
+c2=m.multiplyPoint(M,_f1.c2);
+e=m.multiplyPoint(M,_f1.e);
+}
+_d9.push(" c");
+this._addArgs(_d9,[c1.x,c1.y,c2.x,c2.y,e.x,e.y]);
+_ec+=2*_f2;
+}
+},_arcTo:function(_f7,_f8){
+var p=[];
+var n=_f7.args;
+var l=n.length;
+var _fc=_f7.action=="a";
+for(var i=0;i<l;i+=7){
+var x1=n[i+5];
+var y1=n[i+6];
+if(_fc){
+x1+=_f8.x;
+y1+=_f8.y;
+}
+this._calcArcTo(p,_f8,n[i],n[i+1],n[i+2],n[i+3]?1:0,n[i+4]?1:0,x1,y1);
+_f8={x:x1,y:y1};
+}
+this.lastControl={};
+return p;
+},_closePath:function(){
+this.lastControl={};
+return ["x"];
+}});
+dojo.gfx.Path.nodeType="shape";
+dojo.gfx._creators={createPath:function(path){
+return this.createObject(dojo.gfx.Path,path,true);
+},createRect:function(rect){
+return this.createObject(dojo.gfx.Rect,rect);
+},createCircle:function(_102){
+return this.createObject(dojo.gfx.Circle,_102);
+},createEllipse:function(_103){
+return this.createObject(dojo.gfx.Ellipse,_103);
+},createLine:function(line){
+return this.createObject(dojo.gfx.Line,line,true);
+},createPolyline:function(_105){
+return this.createObject(dojo.gfx.Polyline,_105,true);
+},createImage:function(_106){
+if(!this.rawNode){
+return null;
+}
+var _107=new dojo.gfx.Image();
+var node=document.createElement("div");
+node.style.position="relative";
+node.style.width=this.rawNode.style.width;
+node.style.height=this.rawNode.style.height;
+node.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=0, M21=0, M22=1, Dx=0, Dy=0)";
+var img=document.createElement("img");
+node.appendChild(img);
+_107.setRawNode(node);
+this.rawNode.appendChild(node);
+_107.setShape(_106);
+this.add(_107);
+return _107;
+},createGroup:function(){
+return this.createObject(dojo.gfx.Group,null,true);
+},createObject:function(_10a,_10b,_10c){
+if(!this.rawNode){
+return null;
+}
+var _10d=new _10a();
+var node=document.createElement("v:"+_10a.nodeType);
+_10d.setRawNode(node);
+this.rawNode.appendChild(node);
+if(_10c){
+this._overrideSize(node);
+}
+_10d.setShape(_10b);
+this.add(_10d);
+return _10d;
+},_overrideSize:function(node){
+node.style.width=this.rawNode.style.width;
+node.style.height=this.rawNode.style.height;
+node.coordsize=parseFloat(node.style.width)+" "+parseFloat(node.style.height);
+}};
+dojo.lang.extend(dojo.gfx.Group,dojo.gfx._creators);
+dojo.lang.extend(dojo.gfx.Surface,dojo.gfx._creators);
+delete dojo.gfx._creators;
+dojo.gfx.attachNode=function(node){
+if(!node){
+return null;
+}
+var s=null;
+switch(node.tagName.toLowerCase()){
+case dojo.gfx.Rect.nodeType:
+s=new dojo.gfx.Rect();
+break;
+case dojo.gfx.Ellipse.nodeType:
+s=(node.style.width==node.style.height)?new dojo.gfx.Circle():new dojo.gfx.Ellipse();
+break;
+case dojo.gfx.Path.nodeType:
+switch(node.getAttribute("dojoGfxType")){
+case "line":
+s=new dojo.gfx.Line();
+break;
+case "polyline":
+s=new dojo.gfx.Polyline();
+break;
+case "path":
+s=new dojo.gfx.Path();
+break;
+}
+break;
+case dojo.gfx.Image.nodeType:
+s=new dojo.gfx.Image();
+break;
+default:
+dojo.debug("FATAL ERROR! tagName = "+node.tagName);
+}
+s.attach(node);
+return s;
+};
+dojo.lang.extend(dojo.gfx.Surface,{setDimensions:function(_112,_113){
+if(!this.rawNode){
+return this;
+}
+this.rawNode.style.width=_112;
+this.rawNode.style.height=_113;
+this.rawNode.coordsize=_112+" "+_113;
+return this;
+},getDimensions:function(){
+return this.rawNode?{width:this.rawNode.style.width,height:this.rawNode.style.height}:null;
+},add:function(_114){
+var _115=_114.getParent();
+if(this!=_115){
+this.rawNode.appendChild(_114.rawNode);
+if(_115){
+_115.remove(_114,true);
+}
+_114._setParent(this,null);
+}
+return this;
+},remove:function(_116,_117){
+if(this==_116.getParent()){
+if(this.rawNode==_116.rawNode.parentNode){
+this.rawNode.removeChild(_116.rawNode);
+}
+_116._setParent(null,null);
+}
+return this;
+}});
+dojo.gfx.createSurface=function(_118,_119,_11a){
+var s=new dojo.gfx.Surface();
+s.rawNode=document.createElement("v:group");
+s.rawNode.style.width=_119?_119:"100%";
+s.rawNode.style.height=_11a?_11a:"100%";
+s.rawNode.coordsize=(_119&&_11a)?(parseFloat(_119)+" "+parseFloat(_11a)):"100% 100%";
+s.rawNode.coordorigin="0 0";
+dojo.byId(_118).appendChild(s.rawNode);
+return s;
+};
+dojo.gfx.attachSurface=function(node){
+var s=new dojo.gfx.Surface();
+s.rawNode=node;
+return s;
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/vml.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/vml.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/gfx/vml.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/Colorspace.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/Colorspace.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/Colorspace.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/Colorspace.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,4 @@
+dojo.provide("dojo.graphics.Colorspace");
+dojo.require("dojo.gfx.Colorspace");
+dojo.deprecated("dojo.graphics.Colorspace: use dojo.gfx.Colorspace instead.","0.5");
+dojo.graphics.Colorspace=dojo.gfx.Colorspace;

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/Colorspace.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/Colorspace.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/Colorspace.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/__package__.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/__package__.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/__package__.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/__package__.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1 @@
+dojo.provide("dojo.graphics.*");

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/__package__.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/__package__.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/__package__.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,25 @@
+dojo.provide("dojo.graphics.color");
+dojo.require("dojo.gfx.color");
+dojo.deprecated("dojo.graphics.color.Color is now dojo.gfx.color.Color.","0.5");
+dojo.graphics.color.Color=dojo.gfx.color.Color;
+dojo.graphics.color.named=dojo.gfx.color.named;
+dojo.graphics.color.blend=function(a,b,_3){
+dojo.deprecated("dojo.graphics.color.blend is now dojo.gfx.color.blend","0.5");
+return dojo.gfx.color.blend(a,b,_3);
+};
+dojo.graphics.color.blendHex=function(a,b,_6){
+dojo.deprecated("dojo.graphics.color.blendHex is now dojo.gfx.color.blendHex","0.5");
+return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_6));
+};
+dojo.graphics.color.extractRGB=function(_7){
+dojo.deprecated("dojo.graphics.color.extractRGB is now dojo.gfx.color.extractRGB","0.5");
+return dojo.gfx.color.extractRGB(_7);
+};
+dojo.graphics.color.hex2rgb=function(_8){
+dojo.deprecated("dojo.graphics.color.hex2rgb is now dojo.gfx.color.hex2rgb","0.5");
+return dojo.gfx.color.hex2rgb(_8);
+};
+dojo.graphics.color.rgb2hex=function(r,g,b){
+dojo.deprecated("dojo.graphics.color.rgb2hex is now dojo.gfx.color.rgb2hex","0.5");
+return dojo.gfx.color.rgb2hex;
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsl.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsl.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsl.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsl.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,19 @@
+dojo.provide("dojo.graphics.color.hsl");
+dojo.require("dojo.gfx.color.hsl");
+dojo.deprecated("dojo.graphics.color.hsl has been replaced with dojo.gfx.color.hsl","0.5");
+dojo.graphics.color.rgb2hsl=function(r,g,b){
+dojo.deprecated("dojo.graphics.color.rgb2hsl has been replaced with dojo.gfx.color.rgb2hsl","0.5");
+return dojo.gfx.color.rgb2hsl(r,g,b);
+};
+dojo.graphics.color.hsl2rgb=function(h,s,l){
+dojo.deprecated("dojo.graphics.color.hsl2rgb has been replaced with dojo.gfx.color.hsl2rgb","0.5");
+return dojo.gfx.color.hsl2rgb(h,s,l);
+};
+dojo.graphics.color.hsl2hex=function(h,s,l){
+dojo.deprecated("dojo.graphics.color.hsl2hex has been replaced with dojo.gfx.color.hsl2hex","0.5");
+return dojo.gfx.color.hsl2hex(h,s,l);
+};
+dojo.graphics.color.hex2hsl=function(_a){
+dojo.deprecated("dojo.graphics.color.hex2hsl has been replaced with dojo.gfx.color.hex2hsl","0.5");
+return dojo.gfx.color.hex2hsl(_a);
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsl.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsl.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsl.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsv.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsv.js?rev=618461&view=auto
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsv.js (added)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsv.js Mon Feb  4 14:07:13 2008
@@ -0,0 +1,11 @@
+dojo.provide("dojo.graphics.color.hsv");
+dojo.require("dojo.gfx.color.hsv");
+dojo.deprecated("dojo.graphics.color.hsv has been replaced by dojo.gfx.color.hsv","0.5");
+dojo.graphics.color.rgb2hsv=function(r,g,b){
+dojo.deprecated("dojo.graphics.color.rgb2hsv has been replaced by dojo.gfx.color.rgb2hsv","0.5");
+return dojo.gfx.color.rgb2hsv(r,g,b);
+};
+dojo.graphics.color.hsv2rgb=function(h,s,v){
+dojo.deprecated("dojo.graphics.color.hsv2rgb has been replaced by dojo.gfx.color.hsv2rgb","0.5");
+return dojo.gfx.color.hsv2rgb(h,s,v);
+};

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsv.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsv.js
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: tapestry/tapestry4/trunk/tapestry-framework/src/js/dojo-0.4.3-custom-4.1.5/src/graphics/color/hsv.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message