Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B3C510580 for ; Sun, 22 Mar 2015 16:04:55 +0000 (UTC) Received: (qmail 39305 invoked by uid 500); 22 Mar 2015 16:04:55 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 39166 invoked by uid 500); 22 Mar 2015 16:04:55 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 38213 invoked by uid 99); 22 Mar 2015 16:04:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Mar 2015 16:04:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 170D4E17CA; Sun, 22 Mar 2015 16:04:54 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Sun, 22 Mar 2015 16:05:05 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [13/54] [partial] camel git commit: CAMEL-7263: Remove not maintained and deprecated camel-web module. http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/_base.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/_base.js b/components/camel-web/src/main/webapp/js/dojox/gfx/_base.js deleted file mode 100644 index 37a1219..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/_base.js +++ /dev/null @@ -1,203 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx._base"]){ -dojo._hasResource["dojox.gfx._base"]=true; -dojo.provide("dojox.gfx._base"); -(function(){ -var g=dojox.gfx,b=g._base; -g._hasClass=function(_3,_4){ -var _5=_3.getAttribute("className"); -return _5&&(" "+_5+" ").indexOf(" "+_4+" ")>=0; -}; -g._addClass=function(_6,_7){ -var _8=_6.getAttribute("className")||""; -if(!_8||(" "+_8+" ").indexOf(" "+_7+" ")<0){ -_6.setAttribute("className",_8+(_8?" ":"")+_7); -} -}; -g._removeClass=function(_9,_a){ -var _b=_9.getAttribute("className"); -if(_b){ -_9.setAttribute("className",_b.replace(new RegExp("(^|\\s+)"+_a+"(\\s+|$)"),"$1$2")); -} -}; -b._getFontMeasurements=function(){ -var _c={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0}; -if(dojo.isIE){ -dojo.doc.documentElement.style.fontSize="100%"; -} -var _d=dojo.doc.createElement("div"); -_d.style.position="absolute"; -_d.style.left="-100px"; -_d.style.top="0"; -_d.style.width="30px"; -_d.style.height="1000em"; -_d.style.border="0"; -_d.style.margin="0"; -_d.style.padding="0"; -_d.style.outline="0"; -_d.style.lineHeight="1"; -_d.style.overflow="hidden"; -dojo.body().appendChild(_d); -for(var p in _c){ -_d.style.fontSize=p; -_c[p]=Math.round(_d.offsetHeight*12/16)*16/12/1000; -} -dojo.body().removeChild(_d); -_d=null; -return _c; -}; -var _f=null; -b._getCachedFontMeasurements=function(_10){ -if(_10||!_f){ -_f=b._getFontMeasurements(); -} -return _f; -}; -var _11=null,_12={}; -b._getTextBox=function(_13,_14,_15){ -var m; -if(!_11){ -m=_11=dojo.doc.createElement("div"); -m.style.position="absolute"; -m.style.left="-10000px"; -m.style.top="0"; -dojo.body().appendChild(m); -}else{ -m=_11; -} -m.className=""; -m.style.border="0"; -m.style.margin="0"; -m.style.padding="0"; -m.style.outline="0"; -if(arguments.length>1&&_14){ -for(var i in _14){ -if(i in _12){ -continue; -} -m.style[i]=_14[i]; -} -} -if(arguments.length>2&&_15){ -m.className=_15; -} -m.innerHTML=_13; -return dojo.marginBox(m); -}; -var _18=0; -b._getUniqueId=function(){ -var id; -do{ -id=dojo._scopeName+"Unique"+(++_18); -}while(dojo.byId(id)); -return id; -}; -})(); -dojo.mixin(dojox.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",x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",x:0,y:0,text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultStroke:{type:"stroke",color:"black",style:"solid",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:""},defaultFont:{type:"font",style:"normal",va riant:"normal",weight:"normal",size:"10pt",family:"serif"},normalizeColor:function(_1a){ -return (_1a instanceof dojo.Color)?_1a:new dojo.Color(_1a); -},normalizeParameters:function(_1b,_1c){ -if(_1c){ -var _1d={}; -for(var x in _1b){ -if(x in _1c&&!(x in _1d)){ -_1b[x]=_1c[x]; -} -} -} -return _1b; -},makeParameters:function(_1f,_20){ -if(!_20){ -return dojo.clone(_1f); -} -var _21={}; -for(var i in _1f){ -if(!(i in _21)){ -_21[i]=dojo.clone((i in _20)?_20[i]:_1f[i]); -} -} -return _21; -},formatNumber:function(x,_24){ -var val=x.toString(); -if(val.indexOf("e")>=0){ -val=x.toFixed(4); -}else{ -var _26=val.indexOf("."); -if(_26>=0&&val.length-_26>5){ -val=x.toFixed(4); -} -} -if(x<0){ -return val; -} -return _24?" "+val:val; -},makeFontString:function(_27){ -return _27.style+" "+_27.variant+" "+_27.weight+" "+_27.size+" "+_27.family; -},splitFontString:function(str){ -var _29=dojo.clone(dojox.gfx.defaultFont); -var t=str.split(/\s+/); -do{ -if(t.length<5){ -break; -} -_29.style=t[0]; -_29.varian=t[1]; -_29.weight=t[2]; -var i=t[3].indexOf("/"); -_29.size=i<0?t[3]:t[3].substring(0,i); -var j=4; -if(i<0){ -if(t[4]=="/"){ -j=6; -break; -} -if(t[4].substr(0,1)=="/"){ -j=5; -break; -} -} -if(j+3>t.length){ -break; -} -_29.size=t[j]; -_29.family=t[j+1]; -}while(false); -return _29; -},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){ -return dojox.gfx._base._getCachedFontMeasurements()["12pt"]/12; -},pt2px:function(len){ -return len*dojox.gfx.px_in_pt(); -},px2pt:function(len){ -return len/dojox.gfx.px_in_pt(); -},normalizedLength:function(len){ -if(len.length==0){ -return 0; -} -if(len.length>2){ -var _30=dojox.gfx.px_in_pt(); -var val=parseFloat(len); -switch(len.slice(-2)){ -case "px": -return val; -case "pt": -return val*_30; -case "in": -return val*72*_30; -case "pc": -return val*12*_30; -case "mm": -return val*dojox.gfx.mm_in_pt*_30; -case "cm": -return val*dojox.gfx.cm_in_pt*_30; -} -} -return parseFloat(len); -},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-Za-z])|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,equalSources:function(a,b){ -return a&&b&&a==b; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/arc.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/arc.js b/components/camel-web/src/main/webapp/js/dojox/gfx/arc.js deleted file mode 100644 index f707fed..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/arc.js +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx.arc"]){ -dojo._hasResource["dojox.gfx.arc"]=true; -dojo.provide("dojox.gfx.arc"); -dojo.require("dojox.gfx.matrix"); -(function(){ -var m=dojox.gfx.matrix,_2=function(_3){ -var _4=Math.cos(_3),_5=Math.sin(_3),p2={x:_4+(4/3)*(1-_4),y:_5-(4/3)*_4*(1-_4)/_5}; -return {s:{x:_4,y:-_5},c1:{x:p2.x,y:-p2.y},c2:p2,e:{x:_4,y:_5}}; -},_7=2*Math.PI,_8=Math.PI/4,_9=Math.PI/8,_a=_8+_9,_b=_2(_9); -dojo.mixin(dojox.gfx.arc,{unitArcAsBezier:_2,curvePI4:_b,arcAsBezier:function(_c,rx,ry,_f,_10,_11,x,y){ -_10=Boolean(_10); -_11=Boolean(_11); -var _14=m._degToRad(_f),rx2=rx*rx,ry2=ry*ry,pa=m.multiplyPoint(m.rotate(-_14),{x:(_c.x-x)/2,y:(_c.y-y)/2}),_18=pa.x*pa.x,_19=pa.y*pa.y,c1=Math.sqrt((rx2*ry2-rx2*_19-ry2*_18)/(rx2*_19+ry2*_18)); -if(isNaN(c1)){ -c1=0; -} -var ca={x:c1*rx*pa.y/ry,y:-c1*ry*pa.x/rx}; -if(_10==_11){ -ca={x:-ca.x,y:-ca.y}; -} -var c=m.multiplyPoint([m.translate((_c.x+x)/2,(_c.y+y)/2),m.rotate(_14)],ca); -var _1d=m.normalize([m.translate(c.x,c.y),m.rotate(_14),m.scale(rx,ry)]); -var _1e=m.invert(_1d),sp=m.multiplyPoint(_1e,_c),ep=m.multiplyPoint(_1e,x,y),_21=Math.atan2(sp.y,sp.x),_22=Math.atan2(ep.y,ep.x),_23=_21-_22; -if(_11){ -_23=-_23; -} -if(_23<0){ -_23+=_7; -}else{ -if(_23>_7){ -_23-=_7; -} -} -var _24=_9,_25=_b,_26=_11?_24:-_24,_27=[]; -for(var _28=_23;_28>0;_28-=_8){ -if(_28<_a){ -_24=_28/2; -_25=_2(_24); -_26=_11?_24:-_24; -_28=0; -} -var c1,c2,e,M=m.normalize([_1d,m.rotate(_21+_26)]); -if(_11){ -c1=m.multiplyPoint(M,_25.c1); -c2=m.multiplyPoint(M,_25.c2); -e=m.multiplyPoint(M,_25.e); -}else{ -c1=m.multiplyPoint(M,_25.c2); -c2=m.multiplyPoint(M,_25.c1); -e=m.multiplyPoint(M,_25.s); -} -_27.push([c1.x,c1.y,c2.x,c2.y,e.x,e.y]); -_21+=2*_26; -} -return _27; -}}); -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/attach.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/attach.js b/components/camel-web/src/main/webapp/js/dojox/gfx/attach.js deleted file mode 100644 index b41d64b..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/attach.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -dojo.require("dojox.gfx"); -dojo.requireIf(dojox.gfx.renderer=="svg","dojox.gfx.svg_attach"); -dojo.requireIf(dojox.gfx.renderer=="vml","dojox.gfx.vml_attach"); -dojo.requireIf(dojox.gfx.renderer=="silverlight","dojox.gfx.silverlight_attach"); -dojo.requireIf(dojox.gfx.renderer=="canvas","dojox.gfx.canvas_attach"); http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/canvas.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/canvas.js b/components/camel-web/src/main/webapp/js/dojox/gfx/canvas.js deleted file mode 100644 index 8487423..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/canvas.js +++ /dev/null @@ -1,498 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx.canvas"]){ -dojo._hasResource["dojox.gfx.canvas"]=true; -dojo.provide("dojox.gfx.canvas"); -dojo.require("dojox.gfx._base"); -dojo.require("dojox.gfx.shape"); -dojo.require("dojox.gfx.path"); -dojo.require("dojox.gfx.arc"); -dojo.require("dojox.gfx.decompose"); -dojo.experimental("dojox.gfx.canvas"); -(function(){ -var g=dojox.gfx,gs=g.shape,ga=g.arc,m=g.matrix,mp=m.multiplyPoint,pi=Math.PI,_7=2*pi,_8=pi/2; -dojo.extend(g.Shape,{_render:function(_9){ -_9.save(); -this._renderTransform(_9); -this._renderShape(_9); -this._renderFill(_9,true); -this._renderStroke(_9,true); -_9.restore(); -},_renderTransform:function(_a){ -if("canvasTransform" in this){ -var t=this.canvasTransform; -_a.translate(t.dx,t.dy); -_a.rotate(t.angle2); -_a.scale(t.sx,t.sy); -_a.rotate(t.angle1); -} -},_renderShape:function(_c){ -},_renderFill:function(_d,_e){ -if("canvasFill" in this){ -if("canvasFillImage" in this){ -this.canvasFill=_d.createPattern(this.canvasFillImage,"repeat"); -delete this.canvasFillImage; -} -_d.fillStyle=this.canvasFill; -if(_e){ -_d.fill(); -} -}else{ -_d.fillStyle="rgba(0,0,0,0.0)"; -} -},_renderStroke:function(_f,_10){ -var s=this.strokeStyle; -if(s){ -_f.strokeStyle=s.color.toString(); -_f.lineWidth=s.width; -_f.lineCap=s.cap; -if(typeof s.join=="number"){ -_f.lineJoin="miter"; -_f.miterLimit=s.join; -}else{ -_f.lineJoin=s.join; -} -if(_10){ -_f.stroke(); -} -}else{ -if(!_10){ -_f.strokeStyle="rgba(0,0,0,0.0)"; -} -} -},getEventSource:function(){ -return null; -},connect:function(){ -},disconnect:function(){ -}}); -var _12=function(_13,_14,_15){ -var old=_13.prototype[_14]; -_13.prototype[_14]=_15?function(){ -this.surface.makeDirty(); -old.apply(this,arguments); -_15.call(this); -return this; -}:function(){ -this.surface.makeDirty(); -return old.apply(this,arguments); -}; -}; -_12(g.Shape,"setTransform",function(){ -if(this.matrix){ -this.canvasTransform=g.decompose(this.matrix); -}else{ -delete this.canvasTransform; -} -}); -_12(g.Shape,"setFill",function(){ -var fs=this.fillStyle,f; -if(fs){ -if(typeof (fs)=="object"&&"type" in fs){ -var ctx=this.surface.rawNode.getContext("2d"); -switch(fs.type){ -case "linear": -case "radial": -f=fs.type=="linear"?ctx.createLinearGradient(fs.x1,fs.y1,fs.x2,fs.y2):ctx.createRadialGradient(fs.cx,fs.cy,0,fs.cx,fs.cy,fs.r); -dojo.forEach(fs.colors,function(_1a){ -f.addColorStop(_1a.offset,g.normalizeColor(_1a.color).toString()); -}); -break; -case "pattern": -var img=new Image(fs.width,fs.height); -this.surface.downloadImage(img,fs.src); -this.canvasFillImage=img; -} -}else{ -f=fs.toString(); -} -this.canvasFill=f; -}else{ -delete this.canvasFill; -} -}); -_12(g.Shape,"setStroke"); -_12(g.Shape,"setShape"); -dojo.declare("dojox.gfx.Group",g.Shape,{constructor:function(){ -gs.Container._init.call(this); -},_render:function(ctx){ -ctx.save(); -this._renderTransform(ctx); -this._renderFill(ctx); -this._renderStroke(ctx); -for(var i=0;i= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -dojo.require("dojox.gfx.canvas"); -dojo.experimental("dojox.gfx.canvas_attach"); -dojox.gfx.attachNode=function(){ -return null; -}; http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/decompose.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/decompose.js b/components/camel-web/src/main/webapp/js/dojox/gfx/decompose.js deleted file mode 100644 index 91bb944..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/decompose.js +++ /dev/null @@ -1,106 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx.decompose"]){ -dojo._hasResource["dojox.gfx.decompose"]=true; -dojo.provide("dojox.gfx.decompose"); -dojo.require("dojox.gfx.matrix"); -(function(){ -var m=dojox.gfx.matrix; -var eq=function(a,b){ -return Math.abs(a-b)<=0.000001*(Math.abs(a)+Math.abs(b)); -}; -var _5=function(r1,m1,r2,m2){ -if(!isFinite(r1)){ -return r2; -}else{ -if(!isFinite(r2)){ -return r1; -} -} -m1=Math.abs(m1),m2=Math.abs(m2); -return (m1*r1+m2*r2)/(m1+m2); -}; -var _a=function(_b){ -var M=new m.Matrix2D(_b); -return dojo.mixin(M,{dx:0,dy:0,xy:M.yx,yx:M.xy}); -}; -var _d=function(_e){ -return (_e.xx*_e.yy<0||_e.xy*_e.yx>0)?-1:1; -}; -var _f=function(_10){ -var M=m.normalize(_10),b=-M.xx-M.yy,c=M.xx*M.yy-M.xy*M.yx,d=Math.sqrt(b*b-4*c),l1=-(b+(b<0?-d:d))/2,l2=c/l1,vx1=M.xy/(l1-M.xx),vy1=1,vx2=M.xy/(l2-M.xx),vy2=1; -if(eq(l1,l2)){ -vx1=1,vy1=0,vx2=0,vy2=1; -} -if(!isFinite(vx1)){ -vx1=1,vy1=(l1-M.xx)/M.xy; -if(!isFinite(vy1)){ -vx1=(l1-M.yy)/M.yx,vy1=1; -if(!isFinite(vx1)){ -vx1=1,vy1=M.yx/(l1-M.yy); -} -} -} -if(!isFinite(vx2)){ -vx2=1,vy2=(l2-M.xx)/M.xy; -if(!isFinite(vy2)){ -vx2=(l2-M.yy)/M.yx,vy2=1; -if(!isFinite(vx2)){ -vx2=1,vy2=M.yx/(l2-M.yy); -} -} -} -var d1=Math.sqrt(vx1*vx1+vy1*vy1),d2=Math.sqrt(vx2*vx2+vy2*vy2); -if(!isFinite(vx1/=d1)){ -vx1=0; -} -if(!isFinite(vy1/=d1)){ -vy1=0; -} -if(!isFinite(vx2/=d2)){ -vx2=0; -} -if(!isFinite(vy2/=d2)){ -vy2=0; -} -return {value1:l1,value2:l2,vector1:{x:vx1,y:vy1},vector2:{x:vx2,y:vy2}}; -}; -var _1d=function(M,_1f){ -var _20=_d(M),a=_1f.angle1=(Math.atan2(M.yx,M.yy)+Math.atan2(-_20*M.xy,_20*M.xx))/2,cos=Math.cos(a),sin=Math.sin(a); -_1f.sx=_5(M.xx/cos,cos,-M.xy/sin,sin); -_1f.sy=_5(M.yy/cos,cos,M.yx/sin,sin); -return _1f; -}; -var _24=function(M,_26){ -var _27=_d(M),a=_26.angle2=(Math.atan2(_27*M.yx,_27*M.xx)+Math.atan2(-M.xy,M.yy))/2,cos=Math.cos(a),sin=Math.sin(a); -_26.sx=_5(M.xx/cos,cos,M.yx/sin,sin); -_26.sy=_5(M.yy/cos,cos,-M.xy/sin,sin); -return _26; -}; -dojox.gfx.decompose=function(_2b){ -var M=m.normalize(_2b),_2d={dx:M.dx,dy:M.dy,sx:1,sy:1,angle1:0,angle2:0}; -if(eq(M.xy,0)&&eq(M.yx,0)){ -return dojo.mixin(_2d,{sx:M.xx,sy:M.yy}); -} -if(eq(M.xx*M.yx,-M.xy*M.yy)){ -return _1d(M,_2d); -} -if(eq(M.xx*M.xy,-M.yx*M.yy)){ -return _24(M,_2d); -} -var MT=_a(M),u=_f([M,MT]),v=_f([MT,M]),U=new m.Matrix2D({xx:u.vector1.x,xy:u.vector2.x,yx:u.vector1.y,yy:u.vector2.y}),VT=new m.Matrix2D({xx:v.vector1.x,xy:v.vector1.y,yx:v.vector2.x,yy:v.vector2.y}),S=new m.Matrix2D([m.invert(U),M,m.invert(VT)]); -_1d(VT,_2d); -S.xx*=_2d.sx; -S.yy*=_2d.sy; -_24(U,_2d); -S.xx*=_2d.sx; -S.yy*=_2d.sy; -return dojo.mixin(_2d,{sx:S.xx,sy:S.yy}); -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/fx.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/fx.js b/components/camel-web/src/main/webapp/js/dojox/gfx/fx.js deleted file mode 100644 index c3b42c1..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/fx.js +++ /dev/null @@ -1,227 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx.fx"]){ -dojo._hasResource["dojox.gfx.fx"]=true; -dojo.provide("dojox.gfx.fx"); -dojo.require("dojox.gfx.matrix"); -(function(){ -var d=dojo,g=dojox.gfx,m=g.matrix; -var _4=function(_5,_6){ -this.start=_5,this.end=_6; -}; -d.extend(_4,{getValue:function(r){ -return (this.end-this.start)*r+this.start; -}}); -var _8=function(_9,_a,_b){ -this.start=_9,this.end=_a; -this.unit=_b; -}; -d.extend(_8,{getValue:function(r){ -return (this.end-this.start)*r+this.start+this.unit; -}}); -var _d=function(_e,_f){ -this.start=_e,this.end=_f; -this.temp=new dojo.Color(); -}; -d.extend(_d,{getValue:function(r){ -return d.blendColors(this.start,this.end,r,this.temp); -}}); -var _11=function(_12){ -this.values=_12; -this.length=_12.length; -}; -d.extend(_11,{getValue:function(r){ -return this.values[Math.min(Math.floor(r*this.length),this.length-1)]; -}}); -var _14=function(_15,def){ -this.values=_15; -this.def=def?def:{}; -}; -d.extend(_14,{getValue:function(r){ -var ret=dojo.clone(this.def); -for(var i in this.values){ -ret[i]=this.values[i].getValue(r); -} -return ret; -}}); -var _1a=function(_1b,_1c){ -this.stack=_1b; -this.original=_1c; -}; -d.extend(_1a,{getValue:function(r){ -var ret=[]; -dojo.forEach(this.stack,function(t){ -if(t instanceof m.Matrix2D){ -ret.push(t); -return; -} -if(t.name=="original"&&this.original){ -ret.push(this.original); -return; -} -if(!(t.name in m)){ -return; -} -var f=m[t.name]; -if(typeof f!="function"){ -ret.push(f); -return; -} -var val=dojo.map(t.start,function(v,i){ -return (t.end[i]-v)*r+v; -}),_24=f.apply(m,val); -if(_24 instanceof m.Matrix2D){ -ret.push(_24); -} -},this); -return ret; -}}); -var _25=new d.Color(0,0,0,0); -var _26=function(_27,obj,_29,def){ -if(_27.values){ -return new _11(_27.values); -} -var _2b,_2c,end; -if(_27.start){ -_2c=g.normalizeColor(_27.start); -}else{ -_2c=_2b=obj?(_29?obj[_29]:obj):def; -} -if(_27.end){ -end=g.normalizeColor(_27.end); -}else{ -if(!_2b){ -_2b=obj?(_29?obj[_29]:obj):def; -} -end=_2b; -} -return new _d(_2c,end); -}; -var _2e=function(_2f,obj,_31,def){ -if(_2f.values){ -return new _11(_2f.values); -} -var _33,_34,end; -if(_2f.start){ -_34=_2f.start; -}else{ -_34=_33=obj?obj[_31]:def; -} -if(_2f.end){ -end=_2f.end; -}else{ -if(typeof _33!="number"){ -_33=obj?obj[_31]:def; -} -end=_33; -} -return new _4(_34,end); -}; -g.fx.animateStroke=function(_36){ -if(!_36.easing){ -_36.easing=d._defaultEasing; -} -var _37=new d._Animation(_36),_38=_36.shape,_39; -d.connect(_37,"beforeBegin",_37,function(){ -_39=_38.getStroke(); -var _3a=_36.color,_3b={},_3c,_3d,end; -if(_3a){ -_3b.color=_26(_3a,_39,"color",_25); -} -_3a=_36.style; -if(_3a&&_3a.values){ -_3b.style=new _11(_3a.values); -} -_3a=_36.width; -if(_3a){ -_3b.width=_2e(_3a,_39,"width",1); -} -_3a=_36.cap; -if(_3a&&_3a.values){ -_3b.cap=new _11(_3a.values); -} -_3a=_36.join; -if(_3a){ -if(_3a.values){ -_3b.join=new _11(_3a.values); -}else{ -_3d=_3a.start?_3a.start:(_39&&_39.join||0); -end=_3a.end?_3a.end:(_39&&_39.join||0); -if(typeof _3d=="number"&&typeof end=="number"){ -_3b.join=new _4(_3d,end); -} -} -} -this.curve=new _14(_3b,_39); -}); -d.connect(_37,"onAnimate",_38,"setStroke"); -return _37; -}; -g.fx.animateFill=function(_3f){ -if(!_3f.easing){ -_3f.easing=d._defaultEasing; -} -var _40=new d._Animation(_3f),_41=_3f.shape,_42; -d.connect(_40,"beforeBegin",_40,function(){ -_42=_41.getFill(); -var _43=_3f.color,_44={}; -if(_43){ -this.curve=_26(_43,_42,"",_25); -} -}); -d.connect(_40,"onAnimate",_41,"setFill"); -return _40; -}; -g.fx.animateFont=function(_45){ -if(!_45.easing){ -_45.easing=d._defaultEasing; -} -var _46=new d._Animation(_45),_47=_45.shape,_48; -d.connect(_46,"beforeBegin",_46,function(){ -_48=_47.getFont(); -var _49=_45.style,_4a={},_4b,_4c,end; -if(_49&&_49.values){ -_4a.style=new _11(_49.values); -} -_49=_45.variant; -if(_49&&_49.values){ -_4a.variant=new _11(_49.values); -} -_49=_45.weight; -if(_49&&_49.values){ -_4a.weight=new _11(_49.values); -} -_49=_45.family; -if(_49&&_49.values){ -_4a.family=new _11(_49.values); -} -_49=_45.size; -if(_49&&_49.unit){ -_4c=parseFloat(_49.start?_49.start:(_47.font&&_47.font.size||"0")); -end=parseFloat(_49.end?_49.end:(_47.font&&_47.font.size||"0")); -_4a.size=new _8(_4c,end,_49.unit); -} -this.curve=new _14(_4a,_48); -}); -d.connect(_46,"onAnimate",_47,"setFont"); -return _46; -}; -g.fx.animateTransform=function(_4e){ -if(!_4e.easing){ -_4e.easing=d._defaultEasing; -} -var _4f=new d._Animation(_4e),_50=_4e.shape,_51; -d.connect(_4f,"beforeBegin",_4f,function(){ -_51=_50.getTransform(); -this.curve=new _1a(_4e.transform,_51); -}); -d.connect(_4f,"onAnimate",_50,"setTransform"); -return _4f; -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/matrix.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/matrix.js b/components/camel-web/src/main/webapp/js/dojox/gfx/matrix.js deleted file mode 100644 index 5f45a13..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/matrix.js +++ /dev/null @@ -1,167 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx.matrix"]){ -dojo._hasResource["dojox.gfx.matrix"]=true; -dojo.provide("dojox.gfx.matrix"); -(function(){ -var m=dojox.gfx.matrix; -m._degToRad=function(_2){ -return Math.PI*_2/180; -}; -m._radToDeg=function(_3){ -return _3/Math.PI*180; -}; -m.Matrix2D=function(_4){ -if(_4){ -if(typeof _4=="number"){ -this.xx=this.yy=_4; -}else{ -if(_4 instanceof Array){ -if(_4.length>0){ -var _5=m.normalize(_4[0]); -for(var i=1;i<_4.length;++i){ -var l=_5,r=dojox.gfx.matrix.normalize(_4[i]); -_5=new m.Matrix2D(); -_5.xx=l.xx*r.xx+l.xy*r.yx; -_5.xy=l.xx*r.xy+l.xy*r.yy; -_5.yx=l.yx*r.xx+l.yy*r.yx; -_5.yy=l.yx*r.xy+l.yy*r.yy; -_5.dx=l.xx*r.dx+l.xy*r.dy+l.dx; -_5.dy=l.yx*r.dx+l.yy*r.dy+l.dy; -} -dojo.mixin(this,_5); -} -}else{ -dojo.mixin(this,_4); -} -} -} -}; -dojo.extend(m.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0}); -dojo.mixin(m,{identity:new m.Matrix2D(),flipX:new m.Matrix2D({xx:-1}),flipY:new m.Matrix2D({yy:-1}),flipXY:new m.Matrix2D({xx:-1,yy:-1}),translate:function(a,b){ -if(arguments.length>1){ -return new m.Matrix2D({dx:a,dy:b}); -} -return new m.Matrix2D({dx:a.x,dy:a.y}); -},scale:function(a,b){ -if(arguments.length>1){ -return new m.Matrix2D({xx:a,yy:b}); -} -if(typeof a=="number"){ -return new m.Matrix2D({xx:a,yy:a}); -} -return new m.Matrix2D({xx:a.x,yy:a.y}); -},rotate:function(_d){ -var c=Math.cos(_d); -var s=Math.sin(_d); -return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c}); -},rotateg:function(_10){ -return m.rotate(m._degToRad(_10)); -},skewX:function(_11){ -return new m.Matrix2D({xy:Math.tan(_11)}); -},skewXg:function(_12){ -return m.skewX(m._degToRad(_12)); -},skewY:function(_13){ -return new m.Matrix2D({yx:Math.tan(_13)}); -},skewYg:function(_14){ -return m.skewY(m._degToRad(_14)); -},reflect:function(a,b){ -if(arguments.length==1){ -b=a.y; -a=a.x; -} -var a2=a*a,b2=b*b,n2=a2+b2,xy=2*a*b/n2; -return new m.Matrix2D({xx:2*a2/n2-1,xy:xy,yx:xy,yy:2*b2/n2-1}); -},project:function(a,b){ -if(arguments.length==1){ -b=a.y; -a=a.x; -} -var a2=a*a,b2=b*b,n2=a2+b2,xy=a*b/n2; -return new m.Matrix2D({xx:a2/n2,xy:xy,yx:xy,yy:b2/n2}); -},normalize:function(_21){ -return (_21 instanceof m.Matrix2D)?_21:new m.Matrix2D(_21); -},clone:function(_22){ -var obj=new m.Matrix2D(); -for(var i in _22){ -if(typeof (_22[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_22[i]){ -obj[i]=_22[i]; -} -} -return obj; -},invert:function(_25){ -var M=m.normalize(_25),D=M.xx*M.yy-M.xy*M.yx,M=new m.Matrix2D({xx:M.yy/D,xy:-M.xy/D,yx:-M.yx/D,yy:M.xx/D,dx:(M.xy*M.dy-M.yy*M.dx)/D,dy:(M.yx*M.dx-M.xx*M.dy)/D}); -return M; -},_multiplyPoint:function(_28,x,y){ -return {x:_28.xx*x+_28.xy*y+_28.dx,y:_28.yx*x+_28.yy*y+_28.dy}; -},multiplyPoint:function(_2b,a,b){ -var M=m.normalize(_2b); -if(typeof a=="number"&&typeof b=="number"){ -return m._multiplyPoint(M,a,b); -} -return m._multiplyPoint(M,a.x,a.y); -},multiply:function(_2f){ -var M=m.normalize(_2f); -for(var i=1;i2){ -return m._sandwich(m.rotate(_3b),a,b); -} -return m._sandwich(m.rotate(_3b),a.x,a.y); -},rotategAt:function(_3e,a,b){ -if(arguments.length>2){ -return m._sandwich(m.rotateg(_3e),a,b); -} -return m._sandwich(m.rotateg(_3e),a.x,a.y); -},skewXAt:function(_41,a,b){ -if(arguments.length>2){ -return m._sandwich(m.skewX(_41),a,b); -} -return m._sandwich(m.skewX(_41),a.x,a.y); -},skewXgAt:function(_44,a,b){ -if(arguments.length>2){ -return m._sandwich(m.skewXg(_44),a,b); -} -return m._sandwich(m.skewXg(_44),a.x,a.y); -},skewYAt:function(_47,a,b){ -if(arguments.length>2){ -return m._sandwich(m.skewY(_47),a,b); -} -return m._sandwich(m.skewY(_47),a.x,a.y); -},skewYgAt:function(_4a,a,b){ -if(arguments.length>2){ -return m._sandwich(m.skewYg(_4a),a,b); -} -return m._sandwich(m.skewYg(_4a),a.x,a.y); -}}); -})(); -dojox.gfx.Matrix2D=dojox.gfx.matrix.Matrix2D; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/move.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/move.js b/components/camel-web/src/main/webapp/js/dojox/gfx/move.js deleted file mode 100644 index a67c27e..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/move.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx.move"]){ -dojo._hasResource["dojox.gfx.move"]=true; -dojo.provide("dojox.gfx.move"); -dojo.require("dojox.gfx.Mover"); -dojo.require("dojox.gfx.Moveable"); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/gfx/path.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/gfx/path.js b/components/camel-web/src/main/webapp/js/dojox/gfx/path.js deleted file mode 100644 index 8612651..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/gfx/path.js +++ /dev/null @@ -1,277 +0,0 @@ -/* - Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. - Available via Academic Free License >= 2.1 OR the modified BSD license. - see: http://dojotoolkit.org/license for details -*/ - - -if(!dojo._hasResource["dojox.gfx.path"]){ -dojo._hasResource["dojox.gfx.path"]=true; -dojo.provide("dojox.gfx.path"); -dojo.require("dojox.gfx.shape"); -dojo.declare("dojox.gfx.path.Path",dojox.gfx.Shape,{constructor:function(_1){ -this.shape=dojo.clone(dojox.gfx.defaultPath); -this.segments=[]; -this.absolute=true; -this.last={}; -this.rawNode=_1; -},setAbsoluteMode:function(_2){ -this.absolute=typeof _2=="string"?(_2=="absolute"):_2; -return this; -},getAbsoluteMode:function(){ -return this.absolute; -},getBoundingBox:function(){ -return (this.bbox&&("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(this.bbox&&("l" in this.bbox)){ -if(this.bbox.l>x){ -this.bbox.l=x; -} -if(this.bbox.ry){ -this.bbox.t=y; -} -if(this.bbox.b=_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,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); -this._pushSegment(this.absolute?"A":"a",_1b); -return this; -},closePath:function(){ -this._pushSegment("Z",[]); -return this; -},_setPath:function(_1c){ -var p=dojo.isArray(_1c)?_1c:_1c.match(dojox.gfx.pathSvgRegExp); -this.segments=[]; -this.absolute=true; -this.bbox={}; -this.last={}; -if(!p){ -return; -} -var _1e="",_1f=[],l=p.length; -for(var i=0;i