diff --git a/lib/setup.php b/lib/setup.php index 98d92532017..15da642e663 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -222,7 +222,7 @@ umask(0000); // exact version of currently used yui2 and 3 library $CFG->yui2version = '2.9.0'; -$CFG->yui3version = '3.5.0'; +$CFG->yui3version = '3.5.1'; // special support for highly optimised scripts that do not need libraries and DB connection diff --git a/lib/thirdpartylibs.xml b/lib/thirdpartylibs.xml index 6bb797d0aa4..e322747d541 100644 --- a/lib/thirdpartylibs.xml +++ b/lib/thirdpartylibs.xml @@ -207,7 +207,7 @@ yui YUI BSD - 3.5.0 + 3.5.1 diff --git a/lib/yui/3.5.0/build/app-base/app-base-min.js b/lib/yui/3.5.0/build/app-base/app-base-min.js deleted file mode 100644 index 112151528b3..00000000000 --- a/lib/yui/3.5.0/build/app-base/app-base-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("app-base",function(c){var g=c.Lang,i=c.Object,a=c.PjaxBase,d=c.Router,b=c.View,e=c.ClassNameManager.getClassName,h=c.config.win,f;f=c.Base.create("app",c.Base,[b,d,a],{views:{},initializer:function(k){k||(k={});var j={};function l(m,n){j[n]=c.merge(j[n],m);}i.each(this.views,l);i.each(k.views,l);this.views=j;this._viewInfoMap={};this.after("activeViewChange",c.bind("_afterActiveViewChange",this));if(!this.get("serverRouting")){this._pjaxBindUI();}},createView:function(m,l){var k=this.getViewInfo(m),n=(k&&k.type)||b,o,j;o=g.isString(n)?i.getValue(c,n.split(".")):n;j=new o(l);this._viewInfoMap[c.stamp(j,true)]=k;return j;},getViewInfo:function(j){if(g.isString(j)){return this.views[j];}return j&&this._viewInfoMap[c.stamp(j,true)];},render:function(){var k=this.get("container"),j=this.get("viewContainer"),l=this.get("activeView"),n=l&&l.get("container"),m=k.compareTo(j);k.addClass(f.CSS_CLASS);j.addClass(f.VIEWS_CSS_CLASS);if(l&&!j.contains(n)){j.appendChild(n);}if(!k.contains(j)&&!m){k.appendChild(j);}return this;},showView:function(j,m,l,n){var k;if(g.isString(j)){k=this.getViewInfo(j);if(k&&k.preserve&&k.instance){j=k.instance;this._viewInfoMap[c.stamp(j,true)]=k;}else{j=this.createView(j,m);j.render();}}l||(l={});if(n){l.callback=n;}else{if(g.isFunction(l)){l={callback:l};}}return this._set("activeView",j,{options:l});},_attachView:function(k,l){if(!k){return;}var m=this.getViewInfo(k),j=this.get("viewContainer");k.addTarget(this);m&&(m.instance=k);j[l?"prepend":"append"](k.get("container"));},_destroyContainer:function(){var k=this.get("container"),j=this.get("viewContainer"),l=k.compareTo(j);if(c.one("body").compareTo(k)){this.detachEvents();k&&k.removeClass(f.CSS_CLASS);if(l){k&&k.removeClass(f.VIEWS_CSS_CLASS);}else{j&&j.remove(true);}return;}j&&j.remove(true);!l&&k&&k.remove(true);},_detachView:function(j){if(!j){return;}var k=this.getViewInfo(j)||{};if(k.preserve){j.remove();}else{j.destroy({remove:true});delete this._viewInfoMap[c.stamp(j,true)];if(j===k.instance){delete k.instance;}}j.removeTarget(this);},_getViewContainer:function(j){if(!j&&!this._viewContainer){j=this._viewContainer=this.create();this._set("viewContainer",j);}return j;},_getURL:function(){var j=c.getLocation().toString();return this._html5?j:this._upgradeURL(j);},_initHtml5:function(){if(this.get("serverRouting")===false){return false;}else{return d.html5;}},_isChildView:function(j,m){var l=this.getViewInfo(j),k=this.getViewInfo(m);if(l&&k){return this.getViewInfo(l.parent)===k;}return false;},_isParentView:function(j,m){var k=this.getViewInfo(j),l=this.getViewInfo(m);if(k&&l){return this.getViewInfo(l.parent)===k;}return false;},_navigate:function(k,j){k=this._upgradeURL(k);j||(j={});if(!this.get("serverRouting")){g.isValue(j.force)||(j.force=true);}return a.prototype._navigate.call(this,k,j);},_save:function(j,k){if(this.get("serverRouting")&&!this.get("html5")){if(!this._hasSameOrigin(j)){c.error("Security error: The new URL must be of the same origin as the current URL.");return this;}j=this._joinURL(j||"");if(k){h&&h.location.replace(j);}else{h&&(h.location=j);}return this;}return d.prototype._save.apply(this,arguments);},_uiSetActiveView:function(p,n,m){m||(m={});var o=m.callback,j=this._isChildView(p,n),l=!j&&this._isParentView(p,n),k=!!m.prepend||l;if(p===n){return o&&o.call(this,p);}this._attachView(p,k);this._detachView(n);o&&o.call(this,p);},_upgradeURL:function(k){if(!this._hasSameOrigin(k)){return k;}var l=(k.match(/#(.*)$/)||[])[1]||"",j=c.HistoryHash.hashPrefix;if(j&&l.indexOf(j)===0){l=l.replace(j,"");}if(l&&l.charAt(0)==="/"){k=this._resolveURL(this._joinURL(l));}return k;},_afterActiveViewChange:function(j){this._uiSetActiveView(j.newVal,j.prevVal,j.options);}},{ATTRS:{activeView:{value:null,readOnly:true},container:{valueFn:function(){return c.one("body");}},html5:{valueFn:"_initHtml5"},linkSelector:{value:"a"},serverRouting:{value:undefined,writeOnce:"initOnly"},viewContainer:{getter:"_getViewContainer",setter:c.one,writeOnce:true}},CSS_CLASS:e("app"),VIEWS_CSS_CLASS:e("app","views"),_NON_ATTRS_CFG:["views"]});c.namespace("App").Base=f;c.App=c.mix(c.Base.create("app",c.App.Base,[]),c.App,true);},"3.5.0",{requires:["classnamemanager","pjax-base","router","view"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/charts-base/charts-base-min.js b/lib/yui/3.5.0/build/charts-base/charts-base-min.js deleted file mode 100644 index ee1938fa723..00000000000 --- a/lib/yui/3.5.0/build/charts-base/charts-base-min.js +++ /dev/null @@ -1,27 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("charts-base",function(b){var A=b.config,v=A.win,g=A.doc,q=b.Lang,m=q.isString,k,p,u,a,c=b.ClassNameManager.getClassName,n=c("seriesmarker"),r,C,w,z,t;r=function(D){r.superclass.constructor.apply(this,arguments);};r.NAME="shapeGroup";b.extend(r,b.Path,{_draw:function(){var K=this.get("xvalues"),H=this.get("yvalues"),O,N,E,G,V=0,W,S=[],I=this.get("dimensions"),T=I.width,P=I.height,F=I.radius,J=I.yRadius,Q=this.get("id"),D=this.node.className,U=q.isArray(T),R=q.isArray(P),L=q.isArray(F),M=q.isArray(J);if(K&&H&&K.length>0){this.clear();W=K.length;for(;V0){J-=G/2*E/90;}else{if(E<0){D-=K;J-=G/2*H/90;}else{D-=K*0.5;}}J+=F;J+=O;L.labelWidth=K;L.labelHeight=G;L.x=D;L.y=J;Q._rotate(N,L);},_setRotationCoords:function(H){var E=H.rot,F=H.absRot,D=H.labelWidth,J=H.labelHeight,I,G;if(E>0){I=0;G=J/2*E/90;}else{if(E<0){I=D;G=J/2*F/90;}else{I=D*0.5;G=0;}}H.x-=I;H.y-=G;},_getTransformOrigin:function(D){var E;if(D>0){E=[0,0.5];}else{if(D<0){E=[1,0.5];}else{E=[0,0];}}return E;},offsetNodeForTick:function(D){var E=this;E.get("contentBox").setStyle("top",0-E.get("topTickOffset"));},setCalculatedSize:function(){var H=this,G=H.get("styles"),E=G.label,F=H._totalTitleSize,D=Math.round(H.get("bottomTickOffset")+H._maxLabelSize+E.margin.top+F);if(H._explicitHeight){D=H._explicitHeight;}H.set("calculatedHeight",D);}};b.BottomAxisLayout=u;a=function(){};a.prototype={_getDefaultMargins:function(){return{top:0,left:0,right:0,bottom:4};},setTickOffsets:function(){var F=this,H=F.get("styles").majorTicks,E=H.length,D=E*0.5,G=H.display;F.set("leftTickOffset",0);F.set("rightTickOffset",0); -switch(G){case"inside":F.set("bottomTickOffset",E);F.set("topTickOffset",0);break;case"outside":F.set("bottomTickOffset",0);F.set("topTickOffset",E);break;case"cross":F.set("topTickOffset",D);F.set("bottomTickOffset",D);break;default:F.set("topTickOffset",0);F.set("bottomTickOffset",0);break;}},getLineStart:function(){var F=this,D=F.get("styles"),I=D.padding,J=D.majorTicks,E=J.length,H=J.display,G={x:0,y:I.top};if(H==="outside"){G.y+=E;}else{if(H==="cross"){G.y+=E/2;}}return G;},drawTick:function(K,L,G){var J=this,D=J.get("styles"),I=D.padding,H=G.length,E={x:L.x,y:I.top},F={x:L.x,y:H+I.top};J.drawLine(K,E,F);},getLabelPoint:function(D){return{x:D.x,y:D.y-this.get("topTickOffset")};},updateMaxLabelSize:function(H,F){var L=this,I=this._labelRotationProps,D=I.rot,G=I.absRot,K=I.sinRadians,E=I.cosRadians,J;if(D===0){J=F;}else{if(G===90){J=H;}else{J=(K*H)+(E*F);}}L._maxLabelSize=Math.max(L._maxLabelSize,J);},getExplicitlySized:function(G){if(this._explicitHeight){var F=this,E=F._explicitHeight,D=F._totalTitleSize,I=F.get("topTickOffset"),H=G.label.margin.right;F._maxLabelSize=E-(I+H+D);return true;}return false;},positionTitle:function(L){var M=this,D=M._titleBounds,E=M.get("styles").title.margin,I=M._titleRotationProps,H=L.offsetWidth,F=L.offsetHeight,G=D.bottom-D.top,K=(M.get("width")*0.5)-(H*0.5),J=G/2-F/2;I.labelWidth=H;I.labelHeight=F;if(E&&E.top){J+=E.top;}I.x=K;I.y=J;I.transformOrigin=[0.5,0.5];M._rotate(L,I);},positionLabel:function(N,Q,O,I){var P=this,K=this._totalTitleSize,D=P._maxLabelSize,F=Q.x,J=Q.y+K+D,M=this._labelRotationProps,E=M.rot,H=M.absRot,L=this._labelWidths[I],G=this._labelHeights[I];if(E===0){F-=L*0.5;J-=G;}else{if(E===90){F-=L;J-=(G*0.5);}else{if(E===-90){J-=(G*0.5);}else{if(E>0){F-=L;J-=G-(G*E/180);}else{J-=G-(G*H/180);}}}}M.x=Math.round(F);M.y=Math.round(J);M.labelWidth=L;M.labelHeight=G;this._rotate(N,M);},_setRotationCoords:function(H){var E=H.rot,F=H.absRot,D=H.labelWidth,J=H.labelHeight,I,G;if(E===0){I=D*0.5;G=J;}else{if(E===90){I=D;G=(J*0.5);}else{if(E===-90){G=(J*0.5);}else{if(E>0){I=D;G=J-(J*E/180);}else{G=J-(J*F/180);}}}}H.x-=I;H.y-=G;},_getTransformOrigin:function(D){var E;if(D===0){E=[0,0];}else{if(D===90){E=[1,0.5];}else{if(D===-90){E=[0,0.5];}else{if(D>0){E=[1,0.5];}else{E=[0,0.5];}}}}return E;},offsetNodeForTick:function(D){},setCalculatedSize:function(){var H=this,K=H.get("graphic"),G=H.get("styles"),F=G.label.margin,J=F.bottom+H._maxLabelSize,E=H._totalTitleSize,I=this.get("topTickOffset"),D=Math.round(I+J+E);if(this._explicitHeight){D=this._explicitWidth;}H.set("calculatedHeight",D);K.set("y",D-I);}};b.TopAxisLayout=a;b.Axis=b.Base.create("axis",b.Widget,[b.Renderer],{_calculatedWidth:0,_calculatedHeight:0,_dataChangeHandler:function(D){if(this.get("rendered")){this._drawAxis();}},_positionChangeHandler:function(D){this._updateGraphic(D.newVal);this._updateHandler();},_updateGraphic:function(D){var E=this.get("graphic");if(D=="none"){if(E){E.destroy();}}else{if(!E){this._setCanvas();}}},_updateHandler:function(D){if(this.get("rendered")){this._drawAxis();}},renderUI:function(){this._updateGraphic(this.get("position"));},syncUI:function(){var H=this._layout,G,F,D,I,E;if(H){G=H._getDefaultMargins();F=this.get("styles");D=F.label.margin;I=F.title.margin;for(E in G){if(G.hasOwnProperty(E)){D[E]=D[E]===undefined?G[E]:D[E];I[E]=I[E]===undefined?G[E]:I[E];}}}this._drawAxis();},_setCanvas:function(){var D=this.get("contentBox"),I=this.get("boundingBox"),H=this.get("position"),F=this._parentNode,E=this.get("width"),G=this.get("height");I.setStyle("position","absolute");I.setStyle("zIndex",2);E=E?E+"px":F.getStyle("width");G=G?G+"px":F.getStyle("height");if(H==="top"||H==="bottom"){D.setStyle("width",E);}else{D.setStyle("height",G);}D.setStyle("position","relative");D.setStyle("left","0px");D.setStyle("top","0px");this.set("graphic",new b.Graphic());this.get("graphic").render(D);},_getDefaultStyles:function(){var D={majorTicks:{display:"inside",length:4,color:"#dad8c9",weight:1,alpha:1},minorTicks:{display:"none",length:2,color:"#dad8c9",weight:1},line:{weight:1,color:"#dad8c9",alpha:1},majorUnit:{determinant:"count",count:11,distance:75},top:"0px",left:"0px",width:"100px",height:"100px",label:{color:"#808080",alpha:1,fontSize:"85%",rotation:0,margin:{top:undefined,right:undefined,bottom:undefined,left:undefined}},title:{color:"#808080",alpha:1,fontSize:"85%",rotation:undefined,margin:{top:undefined,right:undefined,bottom:undefined,left:undefined}},hideOverlappingLabelTicks:false};return b.merge(b.Renderer.prototype._getDefaultStyles(),D);},_handleSizeChange:function(G){var F=G.attrName,I=this.get("position"),E=I=="left"||I=="right",D=this.get("contentBox"),H=I=="bottom"||I=="top";D.setStyle("width",this.get("width"));D.setStyle("height",this.get("height"));if((H&&F=="width")||(E&&F=="height")){this._drawAxis();}},_layoutClasses:{top:a,bottom:u,left:k,right:p},drawLine:function(F,E,D){F.moveTo(E.x,E.y);F.lineTo(D.x,D.y);},_getTextRotationProps:function(H){if(H.rotation===undefined){switch(this.get("position")){case"left":H.rotation=-90;break;case"right":H.rotation=90;break;default:H.rotation=0;break;}}var E=Math.min(90,Math.max(-90,H.rotation)),G=Math.abs(E),F=Math.PI/180,I=parseFloat(parseFloat(Math.sin(G*F)).toFixed(8)),D=parseFloat(parseFloat(Math.cos(G*F)).toFixed(8));return{rot:E,absRot:G,radCon:F,sinRadians:I,cosRadians:D,textAlpha:H.alpha};},_drawAxis:function(){if(this._drawing){this._callLater=true;return;}this._drawing=true;this._callLater=false;if(this._layout){var L=this.get("styles"),N=L.line,J=L.label,Z=L.majorTicks,D=Z.display!="none",M,G=L.majorUnit,W,U,V=0,X=this._layout,T,aa,P,K,Y,E,I=this.get("labelFunction"),F=this.get("labelFunctionScope"),H=this.get("labelFormat"),O=this.get("graphic"),Q=this.get("path"),R,S;this._labelWidths=[];this._labelHeights=[];O.set("autoDraw",false);Q.clear();Q.set("stroke",{weight:N.weight,color:N.color,opacity:N.alpha});this._labelRotationProps=this._getTextRotationProps(J);this._labelRotationProps.transformOrigin=X._getTransformOrigin(this._labelRotationProps.rot); -X.setTickOffsets.apply(this);T=this.getLength();P=X.getLineStart.apply(this);W=this.getTotalMajorUnits(G);U=this.getMajorUnitDistance(W,T,G);this.set("edgeOffset",this.getEdgeOffset(W,T)*0.5);if(W<1){this._clearLabelCache();}else{M=this.getFirstPoint(P);this.drawLine(Q,P,this.getLineEnd(M));if(D){R=this.get("tickPath");R.clear();R.set("stroke",{weight:Z.weight,color:Z.color,opacity:Z.alpha});X.drawTick.apply(this,[R,M,Z]);}this._createLabelCache();this._tickPoints=[];this._maxLabelSize=0;this._totalTitleSize=0;this._titleSize=0;this._setTitle();S=X.getExplicitlySized.apply(this,[L]);for(;V0){D=H.shift();}else{D=g.createElement("span");D.className=b.Lang.trim([D.className,"axisLabel"].join(" "));this.get("contentBox").append(D);}if(!g.createElementNS){if(D.style.filter){D.style.filter=null;}}D.style.display="block";D.style.whiteSpace="nowrap";D.style.position="absolute";for(E in G){if(G.hasOwnProperty(E)&&!F.hasOwnProperty(E)){D.style[E]=G[E];}}return D;},_createLabelCache:function(){if(this._labels){while(this._labels.length>0){this._labelCache.push(this._labels.shift());}}else{this._clearLabelCache();}this._labels=[];},_clearLabelCache:function(){if(this._labelCache){var D=this._labelCache.length,F=0,E;for(;F-1&&!isNaN(M)){F="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(M*100)+")";}if(D!==0){K.rotate(D);H=K.getContentRect(G.labelWidth,G.labelHeight);K.init();K.translate(H.left,H.top);K.translate(L,I);this._simulateRotateWithTransformOrigin(K,D,E,G.labelWidth,G.labelHeight);if(F){F+=" ";}else{F="";}F+=K.toFilterText();J.style.left=K.dx+"px";J.style.top=K.dy+"px";}else{J.style.left=L+"px";J.style.top=I+"px";}if(F){J.style.filter=F;}}},_simulateRotateWithTransformOrigin:function(F,E,G,D,H){var J=G[0]*D,I=G[1]*H;J=!isNaN(J)?J:0;I=!isNaN(I)?I:0;F.translate(J,I);F.rotate(E);F.translate(-J,-I);},getMaxLabelBounds:function(){return this._getLabelBounds(this.getMaximumValue()); -},getMinLabelBounds:function(){return this._getLabelBounds(this.getMinimumValue());},_getLabelBounds:function(I){var H=this._layout,G=this.get("styles").label,D=new b.Matrix(),E,F=this._getTextRotationProps(G);F.transformOrigin=H._getTransformOrigin(F.rot);E=this.getLabel({x:0,y:0},G);this.get("appendLabelFunction")(E,this.get("labelFunction").apply(this,[I,this.get("labelFormat")]));F.labelWidth=E.offsetWidth;F.labelHeight=E.offsetHeight;this._removeChildren(E);b.Event.purgeElement(E,true);E.parentNode.removeChild(E);F.x=0;F.y=0;H._setRotationCoords(F);D.translate(F.x,F.y);this._simulateRotateWithTransformOrigin(D,F.rot,F.transformOrigin,F.labelWidth,F.labelHeight);return D.getContentRect(F.labelWidth,F.labelHeight);},_removeChildren:function(D){if(D.hasChildNodes()){var E;while(D.firstChild){E=D.firstChild;this._removeChildren(E);D.removeChild(E);}}},destructor:function(){var E=this.get("contentBox").getDOMNode(),H=this.get("labels"),G=this.get("graphic"),F,D=H?H.length:0;if(D>0){while(H.length>0){F=H.shift();this._removeChildren(F);E.removeChild(F);F=null;}}if(G){G.destroy();}},_maxLabelSize:0,_setText:function(D,E){D.innerHTML="";if(q.isNumber(E)){E=E+"";}else{if(!E){E="";}}if(m(E)){E=g.createTextNode(E);}D.appendChild(E);}},{ATTRS:{width:{lazyAdd:false,getter:function(){if(this._explicitWidth){return this._explicitWidth;}return this._calculatedWidth;},setter:function(D){this._explicitWidth=D;return D;}},height:{lazyAdd:false,getter:function(){if(this._explicitHeight){return this._explicitHeight;}return this._calculatedHeight;},setter:function(D){this._explicitHeight=D;return D;}},calculatedWidth:{getter:function(){return this._calculatedWidth;},setter:function(D){this._calculatedWidth=D;return D;}},calculatedHeight:{getter:function(){return this._calculatedHeight;},setter:function(D){this._calculatedHeight=D;return D;}},edgeOffset:{value:0},graphic:{},path:{readOnly:true,getter:function(){if(!this._path){var D=this.get("graphic");if(D){this._path=D.addShape({type:"path"});}}return this._path;}},tickPath:{readOnly:true,getter:function(){if(!this._tickPath){var D=this.get("graphic");if(D){this._tickPath=D.addShape({type:"path"});}}return this._tickPath;}},node:{},position:{setter:function(E){var D=this._layoutClasses[E];if(E&&E!="none"){this._layout=new D();}return E;}},topTickOffset:{value:0},bottomTickOffset:{value:0},leftTickOffset:{value:0},rightTickOffset:{value:0},labels:{readOnly:true,getter:function(){return this._labels;}},tickPoints:{readOnly:true,getter:function(){if(this.get("position")=="none"){return this.get("styles").majorUnit.count;}return this._tickPoints;}},overlapGraph:{value:true,validator:function(D){return q.isBoolean(D);}},labelFunctionScope:{},maxLabelSize:{getter:function(){return this._maxLabelSize;},setter:function(D){this._maxLabelSize=D;return D;}},title:{value:null},labelFunction:{value:function(E,D){return E;}},appendLabelFunction:{getter:function(){return this._setText;}},appendTitleFunction:{getter:function(){return this._setText;}}}});b.AxisType=b.Base.create("baseAxis",b.Axis,[],{initializer:function(){this.after("dataReady",b.bind(this._dataChangeHandler,this));this.after("dataUpdate",b.bind(this._dataChangeHandler,this));this.after("minimumChange",b.bind(this._keyChangeHandler,this));this.after("maximumChange",b.bind(this._keyChangeHandler,this));this.after("keysChange",this._keyChangeHandler);this.after("dataProviderChange",this._dataProviderChangeHandler);this.after("alwaysShowZeroChange",this._keyChangeHandler);this.after("roundingMethodChange",this._keyChangeHandler);},bindUI:function(){this.after("stylesChange",this._updateHandler);this.after("overlapGraphChange",this._updateHandler);this.after("positionChange",this._positionChangeHandler);this.after("widthChange",this._handleSizeChange);this.after("heightChange",this._handleSizeChange);this.after("calculatedWidthChange",this._handleSizeChange);this.after("calculatedHeightChange",this._handleSizeChange);},_dataProviderChangeHandler:function(G){var D=this.get("keyCollection").concat(),F=this.get("keys"),E;if(F){for(E in F){if(F.hasOwnProperty(E)){delete F[E];}}}if(D&&D.length){this.set("keys",D);}},GUID:"yuibaseaxis",_type:null,_setMaximum:null,_dataMaximum:null,_setMinimum:null,_data:null,_updateTotalDataFlag:true,_dataReady:false,addKey:function(D){this.set("keys",D);},_getKeyArray:function(G,H){var F=0,I,E=[],D=H.length;for(;F0){D=I.length;E=H=I[0];if(D>1){for(G=1;G=H){E=Math.floor((G/2-H)/(Math.pow(10,D-1)/2));H=G/2-E*Math.pow(10,D-1)/2;}else{H=G;}if(!isNaN(H)){return H;}return F;},_updateMinAndMax:function(){var E=this.get("data"),J,D,H,G,F=0,K,L=this.get("setMax"),I=this.get("setMin");if(!L||!I){if(E&&E.length&&E.length>0){H=E.length;for(;F=0,G=M>0,U,D,R,L,N,T,Q,I=this.getTotalMajorUnits()-1,O=this.get("alwaysShowZero"),F=this.get("roundingMethod"),H=(M-J)/I>=1;if(F){if(F=="niceNumber"){E=this._getMinimumUnit(M,J,I);if(S&&G){if((O||J=0){N--;L++;T=Math.ceil(M/L);Q=Math.floor(J/N)*-1;}if(N>0){M=Q*L;}else{M=J+(E*I);}}else{if(P){while(T=0){N++;L--;Q=Math.floor(J/N)*-1;T=Math.ceil(M/L);}if(L>0){J=T*N*-1;}else{J=M-(E*I);}}else{E=Math.max(T,Q);E=this._getNiceNumber(E);M=E*L;J=E*N*-1;}}}else{if(P){J=M-(E*I);}else{if(K){M=J+(E*I);}else{J=this._roundDownToNearest(J,E);M=this._roundUpToNearest(M,E);}}}}else{if(K){if(O){M=0;}else{M=J+(E*I);}}else{if(!P){if(O||M===0||M+E>0){M=0;E=this._getMinimumUnit(M,J,I);}else{M=this._roundUpToNearest(M,E);}J=M-(E*I);}else{J=M-(E*I);}}}}}else{if(F=="auto"){if(S&&G){if((O||J<(M-J)/I)&&!K){J=0;}E=(M-J)/I;if(H){E=Math.ceil(E);}M=J+(E*I);}else{if(G&&!S){if(O){L=Math.round(I/((-1*J)/M+1));L=Math.max(Math.min(L,I-1),1);N=I-L;if(H){T=Math.ceil(M/L);Q=Math.floor(J/N)*-1;}else{T=M/L;Q=J/N*-1;}E=Math.max(T,Q);M=E*L;J=E*N*-1;}else{E=(M-J)/I;if(H){E=Math.ceil(E);}J=this._roundDownToNearest(J,E);M=this._roundUpToNearest(M,E);}}else{E=(M-J)/I;if(H){E=Math.ceil(E);}if(O||M===0||M+E>0){M=0;E=(M-J)/I;if(H){Math.ceil(E);}}else{M=this._roundUpToNearest(M,E);}J=M-(E*I);}}}else{if(!isNaN(F)&&isFinite(F)){E=F;V=E*I;U=(M-J)>V;R=this._roundDownToNearest(J,E);D=this._roundUpToNearest(M,E);if(P){J=M-V;}else{if(K){M=J+V;}else{if(S&&G){if(O||R<=0){J=0;}else{J=R;}M=J+V;}else{if(G&&!S){J=R;M=J+V;}else{if(O||D>=0){M=0;}else{M=D;}J=M-V;}}}}}}}}this._dataMaximum=M;this._dataMinimum=J;},getLabelByIndex:function(H,E){var G=this.get("minimum"),D=this.get("maximum"),J=(D-G)/(E-1),F,I=this.get("roundingMethod");E-=1;if(H===0){F=G;}else{if(H===E){F=D;}else{F=(H*J);if(I=="niceNumber"){F=this._roundToNearest(F,J);}F+=G;}}return parseFloat(F);},_roundToNearest:function(F,E){E=E||1;if(E===0){return F;}var D=Math.round(this._roundToPrecision(F/E,10))*E;return this._roundToPrecision(D,10);},_roundUpToNearest:function(E,D){D=D||1;if(D===0){return E;}return Math.ceil(this._roundToPrecision(E/D,10))*D;},_roundDownToNearest:function(E,D){D=D||1;if(D===0){return E;}return Math.floor(this._roundToPrecision(E/D,10))*D;},_roundToPrecision:function(F,D){D=D||0;var E=Math.pow(10,D);return Math.round(E*F)/E;},_hasDataOverflow:function(){var F,E,D;if(this.get("setMin")||this.get("setMax")){return true;}F=this.get("roundingMethod");E=this._actualMinimum;D=this._actualMaximum;if(q.isNumber(F)&&((q.isNumber(D)&&D>this._dataMaximum)||(q.isNumber(E)&&E=0){J+=G;}else{D+=G;}}}if(J>0){K=Math.max(K,J);}else{K=Math.max(K,D);}if(D<0){E=Math.min(E,D);}else{E=Math.min(E,J);}}this._actualMaximum=K;this._actualMinimum=E;if(N){K=this._setMaximum;}if(I){E=this._setMinimum;}this._roundMinAndMax(E,K,I,N);}});b.StackedAxis=e;function d(D){d.superclass.constructor.apply(this,arguments);}d.NAME="timeAxis";d.ATTRS={setMax:{readOnly:true,getter:function(){var D=this._getNumber(this._setMaximum);return(q.isNumber(D));}},setMin:{readOnly:true,getter:function(){var D=this._getNumber(this._setMinimum);return(q.isNumber(D));}},maximum:{getter:function(){var D=this._getNumber(this._setMaximum);if(!q.isNumber(D)){D=this._getNumber(this.get("dataMaximum"));}return parseFloat(D);},setter:function(D){this._setMaximum=this._getNumber(D);return D;}},minimum:{getter:function(){var D=this._getNumber(this._setMinimum);if(!q.isNumber(D)){D=this._getNumber(this.get("dataMinimum"));}return parseFloat(D);},setter:function(D){this._setMinimum=this._getNumber(D);return D;}},labelFunction:{value:function(E,D){E=b.DataType.Date.parse(E);if(D){return b.DataType.Date.format(E,{format:D});}return E;}},labelFormat:{value:"%b %d, %y"}};b.extend(d,b.AxisType,{formatLabel:function(E,D){E=b.DataType.Date.parse(E);if(D){return b.DataType.Date.format(E,{format:D});}return E;},GUID:"yuitimeaxis",_dataType:"time",getLabelByIndex:function(I,F){var H=this.get("minimum"),E=this.get("maximum"),D=this.get("position"),J,G;F-=1;J=((E-H)/F)*I;if(D=="bottom"||D=="top"){G=H+J;}else{G=E-J;}return G;},_getKeyArray:function(G,H){var I,E=[],F=0,J,D=H.length;for(;FF){R.lineTo(M+Math.cos(G)*F,L+Math.sin(G)*F);}else{if(Q>0){R.lineTo(M+Math.cos(G)*Q,L+Math.sin(G)*Q);}}R.moveTo(D,P);},_getLineDefaults:function(){return{alpha:1,weight:6,lineType:"solid",dashLength:10,gapSpace:10,connectDiscontinuousPoints:true,discontinuousType:"solid",discontinuousDashLength:10,discontinuousGapSpace:10};}};b.augment(h,b.Attribute);b.Lines=h;function y(D){var E={area:{getter:function(){return this._defaults||this._getAreaDefaults();},setter:function(G){var F=this._defaults||this._getAreaDefaults();this._defaults=b.merge(F,G);}}};this.addAttrs(E,D);this.get("styles");}y.prototype={_getPath:function(){var D=this._path;if(!D){D=this.get("graph").get("graphic").addShape({type:"path"});this._path=D;}return D;},_toggleVisible:function(D){if(this._path){this._path.set("visible",D);}},drawFill:function(L,H){if(L.length<1){return;}var K=L.length,E=L[0],D=H[0],J=E,I=D,P,N,G=1,M=this.get("styles").area,O=this._getPath(),F=M.color||this._getDefaultColor(this.get("graphOrder"),"slice");O.clear();O.set("fill",{color:F,opacity:M.alpha});O.set("stroke",{weight:0});O.moveTo(E,D);for(;G0){E=G[T-1].get("xcoords").concat().reverse();Q=G[T-1].get("ycoords").concat().reverse();M=this.getCurveControlPoints(E,Q);U=0;V=M.length;R.lineTo(E[0],Q[0]);for(;U0){J=F[H-1].get("xcoords").concat();G=F[H-1].get("ycoords").concat();M=M.concat(J.concat().reverse());I=I.concat(G.concat().reverse());M.push(M[0]);I.push(I[0]);}else{if(L==="vertical"){M.push(this._leftOrigin);M.push(this._leftOrigin);I.push(I[I.length-1]);I.push(D);}else{M.push(M[M.length-1]);M.push(E);I.push(this._bottomOrigin);I.push(this._bottomOrigin);}}return[M,I];},_getAreaDefaults:function(){return{};}};b.augment(y,b.Attribute);b.Fills=y;function x(D){var E={markers:{getter:function(){return this._markers; -}}};this.addAttrs(E,D);}x.prototype={_plotDefaults:null,drawPlots:function(){if(!this.get("xcoords")||this.get("xcoords").length<1){return;}var N=q.isNumber,U=b.clone(this.get("styles").marker),M=U.width,T=U.height,O=this.get("xcoords"),V=this.get("ycoords"),R=0,S=O.length,P=V[0],G,J,Q=M/2,F=T/2,K,H,E=null,I=null,L=this.get("graphOrder"),D=this.get("groupMarkers");if(D){K=[];H=[];for(;R0){while(!E){if(this._markerCache.length<1){E=this._createMarker(H,D,G);break;}E=this._markerCache.shift();}E.set(H);}else{E=this._createMarker(H,D,G);}this._markers.push(E);return E;},_createMarker:function(H,D,G){var I=this.get("graphic"),F,E=b.clone(H);I.set("autoDraw",false);E.type=E.shape;F=I.addShape(E);F.addClass(n);return F;},_createMarkerCache:function(){if(this._groupMarker){this._groupMarker.destroy();this._groupMarker=null;}if(this._markers&&this._markers.length>0){this._markerCache=this._markers.concat();}else{this._markerCache=[];}this._markers=[];},_createGroupMarker:function(H){var E,I=this.get("markers"),G=H.border,J,D,F;if(I&&I.length>0){while(I.length>0){E=I.shift();E.destroy();}this.set("markers",[]);}G.opacity=G.alpha;D={id:this.get("chart").get("id")+"_"+H.graphOrder,stroke:G,fill:H.fill,dimensions:H.dimensions,xvalues:H.xvalues,yvalues:H.yvalues};D.fill.opacity=H.fill.alpha;F=this._getGroupShape(H.shape);if(F){D.type=F;}if(H.hasOwnProperty("radius")&&!isNaN(H.radius)){D.dimensions.radius=H.radius;}if(this._groupMarker){this._groupMarker.destroy();}J=this.get("graphic");J.set("autoDraw",true);this._groupMarker=J.addShape(D);},_toggleVisible:function(H){var E,G=this.get("markers"),F=0,D;if(G){D=G.length;for(;F0){D=this._markerCache.shift();if(D){D.destroy();}}},updateMarkerState:function(J,H){if(this._markers&&this._markers[H]){var L,I,M=b.clone(this.get("styles").marker),D=this._getState(J),K=this.get("xcoords"),G=this.get("ycoords"),F=this._markers[H],E=D=="off"||!M[D]?M:M[D];E.fill.color=this._getItemColor(E.fill.color,H);E.border.color=this._getItemColor(E.border.color,H);E.stroke=E.border;F.set(E);L=E.width;I=E.height;F.set("x",(K[H]-L/2));F.set("y",(G[H]-I/2));F.set("visible",this.get("visible"));}},_getItemColor:function(E,D){if(q.isArray(E)){return E[D%E.length];}return E;},_setStyles:function(D){D=this._parseMarkerStyles(D);return b.Renderer.prototype._setStyles.apply(this,[D]);},_parseMarkerStyles:function(E){if(E.marker){var D=this._getPlotDefaults();E.marker=this._mergeStyles(E.marker,D);if(E.marker.over){E.marker.over=this._mergeStyles(E.marker.over,E.marker);}if(E.marker.down){E.marker.down=this._mergeStyles(E.marker.down,E.marker);}}return E;},_getState:function(D){var E;switch(D){case"mouseout":E="off";break;case"mouseover":E="over";break;case"mouseup":E="over";break;case"mousedown":E="down";break;}return E;},_stateSyles:null};b.augment(x,b.Attribute);b.Plots=x;function B(){}B.prototype={drawSeries:function(){if(this.get("xcoords").length<1){return;}var af=b.clone(this.get("styles").marker),V,R,N=this.get("xcoords"),O=this.get("ycoords"),ag=0,K=N.length,G=O[0],am=this.get("type"),aa=this.get("graph"),Y=aa.seriesTypes[am],E=Y.length,ad=0,ai=0,ab=0,ac,T,U=this.get("order"),ak=this.get("graphOrder"),F,al,P,Q,W,ah=null,D=null,X=[],H=[],L,M,S,aj,Z={width:[],height:[]},J=[],I=[],ae=this.get("groupMarkers");if(q.isArray(af.fill.color)){ah=af.fill.color.concat();}if(q.isArray(af.border.color)){D=af.border.color.concat();}if(this.get("direction")=="vertical"){P="height";Q="width";}else{P="width";Q="height";}V=af[P];R=af[Q];this._createMarkerCache();for(;agag){ab=ad;}}ai=K*ad;this._maxSize=aa.get(P);if(ai>this._maxSize){ac=aa.get(P)/ai;ad*=ac;ab*=ac;V*=ac;V=Math.max(V,1);this._maxSize=V;}ab-=ad/2;for(ag=0;ag0){G=W.top;F=W.left;if(ae){Z[P][ag]=V;Z[Q][ag]=W.calculatedSize;J.push(F);I.push(G);}else{af[P]=V;af[Q]=W.calculatedSize;af.x=F;af.y=G;if(ah){af.fill.color=ah[ag%ah.length];}if(D){af.border.color=D[ag%D.length];}al=this.getMarker(af,ak,ag);}}else{if(!ae){this._markers.push(null);}}}this.set("xMarkerPlane",X);this.set("yMarkerPlane",H);if(ae){this._createGroupMarker({fill:af.fill,border:af.border,dimensions:Z,xvalues:J,yvalues:I,shape:af.shape});}else{this._clearMarkerCache();}},_defaultFillColors:["#66007f","#a86f41","#295454","#996ab2","#e8cdb7","#90bdbd","#000000","#c3b8ca","#968373","#678585"],_getPlotDefaults:function(){var D={fill:{type:"solid",alpha:1,colors:null,alphas:null,ratios:null},border:{weight:0,alpha:1},width:12,height:12,shape:"rect",padding:{top:0,left:0,right:0,bottom:0}}; -D.fill.color=this._getDefaultColor(this.get("graphOrder"),"fill");D.border.color=this._getDefaultColor(this.get("graphOrder"),"border");return D;}};b.Histogram=B;b.CartesianSeries=b.Base.create("cartesianSeries",b.Base,[b.Renderer],{_xDisplayName:null,_yDisplayName:null,_leftOrigin:null,_bottomOrigin:null,render:function(){this._setCanvas();this.addListeners();this.set("rendered",true);this.validate();},addListeners:function(){var E=this.get("xAxis"),D=this.get("yAxis");if(E){E.after("dataReady",b.bind(this._xDataChangeHandler,this));E.after("dataUpdate",b.bind(this._xDataChangeHandler,this));}if(D){D.after("dataReady",b.bind(this._yDataChangeHandler,this));D.after("dataUpdate",b.bind(this._yDataChangeHandler,this));}this.after("xAxisChange",this._xAxisChangeHandler);this.after("yAxisChange",this._yAxisChangeHandler);this.after("stylesChange",function(G){var F=this._updateAxisData();if(F){this.draw();}});this.after("widthChange",function(G){var F=this._updateAxisData();if(F){this.draw();}});this.after("heightChange",function(G){var F=this._updateAxisData();if(F){this.draw();}});this.after("visibleChange",this._handleVisibleChange);},_xAxisChangeHandler:function(E){var D=this.get("xAxis");D.after("dataReady",b.bind(this._xDataChangeHandler,this));D.after("dataUpdate",b.bind(this._xDataChangeHandler,this));},_yAxisChangeHandler:function(E){var D=this.get("yAxis");D.after("dataReady",b.bind(this._yDataChangeHandler,this));D.after("dataUpdate",b.bind(this._yDataChangeHandler,this));},GUID:"yuicartesianseries",_xDataChangeHandler:function(D){var E=this._updateAxisData();if(E){this.draw();}},_yDataChangeHandler:function(D){var E=this._updateAxisData();if(E){this.draw();}},_updateAxisData:function(){var H=this.get("xAxis"),E=this.get("yAxis"),F=this.get("xKey"),D=this.get("yKey"),G,I;if(!H||!E||!F||!D){return false;}I=H.getDataByKey(F);G=E.getDataByKey(D);if(!I||!G){return false;}this.set("xData",I.concat());this.set("yData",G.concat());return true;},validate:function(){if((this.get("xData")&&this.get("yData"))||this._updateAxisData()){this.draw();}else{this.fire("drawingComplete");}},_setCanvas:function(){var D=this.get("graph"),E=D.get("graphic");this.set("graphic",E);},setAreaData:function(){var U=q.isNumber,ai,ag,H=this.get("graph"),Q=H.get("width"),ab=H.get("height"),O=this.get("xAxis"),E=this.get("yAxis"),J=this.get("xData").concat(),ae=this.get("yData").concat(),Y,ac,al=O.getEdgeOffset(J.length,Q),N=E.getEdgeOffset(ae.length,ab),V=this.get("styles").padding,X=V.left,af=V.top,L=Q-(X+V.right+al),aa=ab-(af+V.bottom+N),T=[],ak=[],aj=O.get("maximum"),ad=O.get("minimum"),G=E.get("maximum"),D=E.get("minimum"),K=L/(aj-ad),R=aa/(G-D),M,ah=this.get("direction"),Z=0,P=[],W=[],I=this.get("xMarkerPlaneOffset"),F=this.get("yMarkerPlaneOffset"),S=this.get("graphic");S.set("width",Q);S.set("height",ab);M=J.length;al*=0.5;N*=0.5;if(ah==="vertical"){ae=ae.reverse();}this._leftOrigin=Math.round(((0-ad)*K)+X+al);this._bottomOrigin=Math.round((aa+af+N));for(;Z0&&E>0)&&((this.get("xData")&&this.get("yData"))||this._updateAxisData())){if(this._drawing){this._callLater=true;return;}this._drawing=true;this._callLater=false;this.setAreaData();if(this.get("xcoords")&&this.get("ycoords")){this.drawSeries();}this._drawing=false;if(this._callLater){this.draw();}else{this._toggleVisible(this.get("visible"));this.fire("drawingComplete");}}}},_defaultPlaneOffset:4,_getDefaultStyles:function(){return{padding:{top:0,left:0,right:0,bottom:0}};},_defaultLineColors:["#426ab3","#d09b2c","#000000","#b82837","#b384b5","#ff7200","#779de3","#cbc8ba","#7ed7a6","#007a6c"],_defaultFillColors:["#6084d0","#eeb647","#6c6b5f","#d6484f","#ce9ed1","#ff9f3b","#93b7ff","#e0ddd0","#94ecba","#309687"],_defaultBorderColors:["#205096","#b38206","#000000","#94001e","#9d6fa0","#e55b00","#5e85c9","#adab9e","#6ac291","#006457"],_defaultSliceColors:["#66007f","#a86f41","#295454","#996ab2","#e8cdb7","#90bdbd","#000000","#c3b8ca","#968373","#678585"],_getDefaultColor:function(G,H){var E={line:this._defaultLineColors,fill:this._defaultFillColors,border:this._defaultBorderColors,slice:this._defaultSliceColors},F=E[H],D=F.length;G=G||0;if(G>=D){G=G%D;}H=H||"fill";return E[H][G];},_handleVisibleChange:function(D){this._toggleVisible(this.get("visible"));},getTotalValues:function(){var D=this.get("valueAxis").getTotalByKey(this.get("valueKey"));return D;},destructor:function(){if(this._path){this._path.destroy();}if(this._lineGraphic){this._lineGraphic.destroy();this._lineGraphic=null;}if(this.get("graphic")){this.get("graphic").destroy();}}},{ATTRS:{xDisplayName:{getter:function(){return this._xDisplayName||this.get("xKey");},setter:function(D){this._xDisplayName=D.toString();return D;}},yDisplayName:{getter:function(){return this._yDisplayName||this.get("yKey");},setter:function(D){this._yDisplayName=D.toString();return D;}},categoryDisplayName:{readOnly:true,getter:function(){return this.get("direction")=="vertical"?this.get("yDisplayName"):this.get("xDisplayName");}},valueDisplayName:{readOnly:true,getter:function(){return this.get("direction")=="vertical"?this.get("xDisplayName"):this.get("yDisplayName");}},type:{value:"cartesian"},order:{},graphOrder:{},xcoords:{},ycoords:{},chart:{readOnly:true,getter:function(){return this.get("graph").get("chart");}},graph:{},xAxis:{},yAxis:{},xKey:{setter:function(D){return D.toString();}},yKey:{setter:function(D){return D.toString();}},xData:{},yData:{},rendered:{value:false},width:{readOnly:true,getter:function(){this.get("graph").get("width"); -}},height:{readOnly:true,getter:function(){this.get("graph").get("height");}},visible:{value:true},xMarkerPlane:{},yMarkerPlane:{},xMarkerPlaneOffset:{getter:function(){var D=this.get("styles").marker;if(D&&D.width&&isFinite(D.width)){return D.width*0.5;}return this._defaultPlaneOffset;}},yMarkerPlaneOffset:{getter:function(){var D=this.get("styles").marker;if(D&&D.height&&isFinite(D.height)){return D.height*0.5;}return this._defaultPlaneOffset;}},direction:{value:"horizontal"},groupMarkers:{getter:function(){if(this._groupMarkers===undefined){return this.get("graph").get("groupMarkers");}else{return this._groupMarkers;}},setter:function(D){this._groupMarkers=D;return D;}}}});b.MarkerSeries=b.Base.create("markerSeries",b.CartesianSeries,[b.Plots],{drawSeries:function(){this.drawPlots();},_setStyles:function(D){if(!D.marker){D={marker:D};}D=this._parseMarkerStyles(D);return b.MarkerSeries.superclass._mergeStyles.apply(this,[D,this._getDefaultStyles()]);},_getDefaultStyles:function(){var D=this._mergeStyles({marker:this._getPlotDefaults()},b.MarkerSeries.superclass._getDefaultStyles());return D;}},{ATTRS:{type:{value:"marker"}}});b.LineSeries=b.Base.create("lineSeries",b.CartesianSeries,[b.Lines],{drawSeries:function(){this.drawLines();},_setStyles:function(D){if(!D.line){D={line:D};}return b.LineSeries.superclass._setStyles.apply(this,[D]);},_getDefaultStyles:function(){var D=this._mergeStyles({line:this._getLineDefaults()},b.LineSeries.superclass._getDefaultStyles());return D;}},{ATTRS:{type:{value:"line"}}});b.SplineSeries=b.Base.create("splineSeries",b.LineSeries,[b.CurveUtil,b.Lines],{drawSeries:function(){this.drawSpline();}},{ATTRS:{type:{value:"spline"}}});b.AreaSplineSeries=b.Base.create("areaSplineSeries",b.CartesianSeries,[b.Fills,b.CurveUtil],{drawSeries:function(){this.drawAreaSpline();}},{ATTRS:{type:{value:"areaSpline"}}});b.StackedSplineSeries=b.Base.create("stackedSplineSeries",b.SplineSeries,[b.StackingUtil],{setAreaData:function(){b.StackedSplineSeries.superclass.setAreaData.apply(this);this._stackCoordinates.apply(this);}},{ATTRS:{type:{value:"stackedSpline"}}});b.StackedMarkerSeries=b.Base.create("stackedMarkerSeries",b.MarkerSeries,[b.StackingUtil],{setAreaData:function(){b.StackedMarkerSeries.superclass.setAreaData.apply(this);this._stackCoordinates.apply(this);}},{ATTRS:{type:{value:"stackedMarker"}}});b.ColumnSeries=b.Base.create("columnSeries",b.MarkerSeries,[b.Histogram],{_getMarkerDimensions:function(E,D,G,H){var F={left:E+H};if(this._bottomOrigin>=D){F.top=D;F.calculatedSize=this._bottomOrigin-F.top;}else{F.top=this._bottomOrigin;F.calculatedSize=D-this._bottomOrigin;}return F;},updateMarkerState:function(F,R){if(this._markers&&this._markers[R]){var L=b.clone(this.get("styles").marker),V,G=this._getState(F),N=this.get("xcoords"),W=this.get("ycoords"),I=this._markers[R],T,D=this.get("graph"),E,J=D.seriesTypes[this.get("type")],S=J.length,M=0,H=0,P,O=0,K=[],Q=this.get("order"),U;V=G=="off"||!L[G]?b.clone(L):b.clone(L[G]);V.fill.color=this._getItemColor(V.fill.color,R);V.border.color=this._getItemColor(V.border.color,R);U=this._getMarkerDimensions(N[R],W[R],L.width,H);V.height=U.calculatedSize;V.width=Math.min(this._maxSize,V.width);I.set(V);for(;OO){H=M;}H-=M/2;}for(O=0;O=this._leftOrigin){F.left=this._leftOrigin;F.calculatedSize=E-F.left;}else{F.left=E;F.calculatedSize=this._leftOrigin-E;}return F;},updateMarkerState:function(F,R){if(this._markers&&this._markers[R]){var K=b.clone(this.get("styles").marker),V,G=this._getState(F),M=this.get("xcoords"),W=this.get("ycoords"),I=this._markers[R],T,D=this.get("graph"),J=D.seriesTypes[this.get("type")],S=J.length,E,L=0,H=0,O,N=0,Q=[],P=this.get("order"),U;V=G=="off"||!K[G]?K:K[G];V.fill.color=this._getItemColor(V.fill.color,R);V.border.color=this._getItemColor(V.border.color,R);U=this._getMarkerDimensions(M[R],W[R],K.height,H);V.width=U.calculatedSize;V.height=Math.min(this._maxSize,V.height);I.set(V);for(;NN){H=L;}H-=L/2;}for(N=0;Nthis.get("width")){P=this.width/H;U*=P;U=Math.max(U,1);}if(!F){M=R[Z-1];S=M.get("negativeBaseValues");Y=M.get("positiveBaseValues");if(!S||!Y){F=true;Y=[];S=[];}}else{S=[];Y=[];}this.set("negativeBaseValues",S);this.set("positiveBaseValues",Y);for(aa=0;aathis._bottomOrigin){Y[aa]=this._bottomOrigin;S[aa]=X;X-=ac;}else{Y[aa]=X;S[aa]=X;}}}else{if(X>this._bottomOrigin){X+=(S[aa]-this._bottomOrigin);ac=X-S[aa];S[aa]=X;X-=ac;}else{if(X<=this._bottomOrigin){X=Y[aa]-(this._bottomOrigin-X);ac=Y[aa]-X;Y[aa]=X;}}}if(!isNaN(ac)&&ac>0){J-=U/2;if(D){L.width[aa]=U;L.height[aa]=ac;N.push(J);K.push(X);}else{ad.width=U;ad.height=ac;ad.x=J;ad.y=X;if(E){ad.fill.color=E[aa%E.length];}if(O){ad.border.color=O[aa%O.length];}Q=this.getMarker(ad,T,aa);}}else{if(!D){this._markers.push(null);}}}if(D){this._createGroupMarker({fill:ad.fill,border:ad.border,dimensions:L,xvalues:N,yvalues:K,shape:ad.shape});}else{this._clearMarkerCache();}},updateMarkerState:function(K,I){if(this._markers&&this._markers[I]){var M,F,D=this._getState(K),L=this.get("xcoords"),J=this._markers[I],H=0,E,G;M=this.get("styles").marker;H=M.width*0.5;F=D=="off"||!M[D]?b.clone(M):b.clone(M[D]);F.height=J.get("height");F.x=(L[I]-H);F.y=J.get("y");F.id=J.get("id");E=F.fill.color;G=F.border.color;if(q.isArray(E)){F.fill.color=E[I%E.length];}else{F.fill.color=this._getItemColor(F.fill.color,I);}if(q.isArray(G)){F.border.color=G[I%G.length];}else{F.border.color=this._getItemColor(F.border.color,I);}J.set(F);}},_getPlotDefaults:function(){var D={fill:{type:"solid",alpha:1,colors:null,alphas:null,ratios:null},border:{weight:0,alpha:1},width:24,height:24,shape:"rect",padding:{top:0,left:0,right:0,bottom:0}};D.fill.color=this._getDefaultColor(this.get("graphOrder"),"fill");D.border.color=this._getDefaultColor(this.get("graphOrder"),"border");return D;}},{ATTRS:{type:{value:"stackedColumn"},negativeBaseValues:{value:null},positiveBaseValues:{value:null}}});b.StackedBarSeries=b.Base.create("stackedBarSeries",b.BarSeries,[b.StackingUtil],{drawSeries:function(){if(this.get("xcoords").length<1){return;}var U=q.isNumber,ac=b.clone(this.get("styles").marker),T=ac.width,ab=ac.height,V=this.get("xcoords"),ae=this.get("ycoords"),Z=0,aa=V.length,W=ae[0],H=this.get("type"),G=this.get("graph"),Q=G.seriesTypes[H],O,Y=this.get("order"),S=this.get("graphOrder"),I,P,L,R,X,E,N,F=Y===0,ad=aa*ab,K={width:[],height:[]},M=[],J=[],D=this.get("groupMarkers");if(q.isArray(ac.fill.color)){E=ac.fill.color.concat();}if(q.isArray(ac.border.color)){N=ac.border.color.concat();}this._createMarkerCache();if(ad>this.get("height")){O=this.height/ad;ab*=O;ab=Math.max(ab,1);}if(!F){L=Q[Y-1];R=L.get("negativeBaseValues");X=L.get("positiveBaseValues");if(!R||!X){F=true;X=[];R=[];}}else{R=[];X=[];}this.set("negativeBaseValues",R);this.set("positiveBaseValues",X);for(Z=0;Zthis._leftOrigin){X[Z]=I;R[Z]=this._leftOrigin;I-=T;}else{if(I=this._leftOrigin){I+=(X[Z]-this._leftOrigin);T=I-X[Z];X[Z]=I;I-=T;}}}if(!isNaN(T)&&T>0){W-=ab/2;if(D){K.width[Z]=T;K.height[Z]=ab;M.push(I);J.push(W);}else{ac.width=T;ac.height=ab;ac.x=I;ac.y=W;if(E){ac.fill.color=E[Z%E.length];}if(N){ac.border.color=N[Z%N.length];}P=this.getMarker(ac,S,Z);}}else{if(!D){this._markers.push(null);}}}if(D){this._createGroupMarker({fill:ac.fill,border:ac.border,dimensions:K,xvalues:M,yvalues:J,shape:ac.shape});}else{this._clearMarkerCache();}},updateMarkerState:function(L,I){if(this._markers[I]){var D=this._getState(L),H=this.get("ycoords"),J=this._markers[I],M=this.get("styles").marker,K=M.height,F=D=="off"||!M[D]?b.clone(M):b.clone(M[D]),E,G;F.y=(H[I]-K/2);F.x=J.get("x");F.width=J.get("width");F.id=J.get("id");E=F.fill.color;G=F.border.color;if(q.isArray(E)){F.fill.color=E[I%E.length];}else{F.fill.color=this._getItemColor(F.fill.color,I);}if(q.isArray(G)){F.border.color=G[I%G.length];}else{F.border.color=this._getItemColor(F.border.color,I);}J.set(F);}},_getPlotDefaults:function(){var D={fill:{type:"solid",alpha:1,colors:null,alphas:null,ratios:null},border:{weight:0,alpha:1},width:24,height:24,shape:"rect",padding:{top:0,left:0,right:0,bottom:0}};D.fill.color=this._getDefaultColor(this.get("graphOrder"),"fill");D.border.color=this._getDefaultColor(this.get("graphOrder"),"border");return D;}},{ATTRS:{type:{value:"stackedBar"},direction:{value:"vertical"},negativeBaseValues:{value:null},positiveBaseValues:{value:null}}});b.PieSeries=b.Base.create("pieSeries",b.MarkerSeries,[],{_map:null,_image:null,_setMap:function(){var F="pieHotSpotMapi_"+Math.round(100000*Math.random()),D=this.get("graph").get("contentBox"),E;if(this._image){D.removeChild(this._image);while(this._areaNodes&&this._areaNodes.length>0){E=this._areaNodes.shift();this._map.removeChild(E);}D.removeChild(this._map);}this._image=g.createElement("img");this._image.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAABCAYAAAD9yd/wAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABJJREFUeNpiZGBgSGPAAgACDAAIkABoFyloZQAAAABJRU5ErkJggg==";D.appendChild(this._image);this._image.setAttribute("usemap","#"+F);this._image.style.zIndex=3;this._image.style.opacity=0;this._image.setAttribute("alt","imagemap");this._map=g.createElement("map");this._map.style.zIndex=5;D.appendChild(this._map);this._map.setAttribute("name",F);this._map.setAttribute("id",F);this._areaNodes=[];},_categoryDisplayName:null,_valueDisplayName:null,addListeners:function(){var D=this.get("categoryAxis"),E=this.get("valueAxis");if(D){D.after("dataReady",b.bind(this._categoryDataChangeHandler,this));D.after("dataUpdate",b.bind(this._categoryDataChangeHandler,this));}if(E){E.after("dataReady",b.bind(this._valueDataChangeHandler,this));E.after("dataUpdate",b.bind(this._valueDataChangeHandler,this));}this.after("categoryAxisChange",this.categoryAxisChangeHandler);this.after("valueAxisChange",this.valueAxisChangeHandler);this.after("stylesChange",this._updateHandler);},validate:function(){this.draw();this._renderered=true;},_categoryAxisChangeHandler:function(D){var E=this.get("categoryAxis");E.after("dataReady",b.bind(this._categoryDataChangeHandler,this));E.after("dataUpdate",b.bind(this._categoryDataChangeHandler,this));},_valueAxisChangeHandler:function(D){var E=this.get("valueAxis");E.after("dataReady",b.bind(this._valueDataChangeHandler,this));E.after("dataUpdate",b.bind(this._valueDataChangeHandler,this));},GUID:"pieseries",_categoryDataChangeHandler:function(D){if(this._rendered&&this.get("categoryKey")&&this.get("valueKey")){this.draw();}},_valueDataChangeHandler:function(D){if(this._rendered&&this.get("categoryKey")&&this.get("valueKey")){this.draw();}},draw:function(){var F=this.get("graph"),D=F.get("width"),E=F.get("height");if(isFinite(D)&&isFinite(E)&&D>0&&E>0){this._rendered=true;if(this._drawing){this._callLater=true;return;}this._drawing=true;this._callLater=false;this.drawSeries();this._drawing=false;if(this._callLater){this.draw();}else{this.fire("drawingComplete");}}},drawPlots:function(){var F=this.get("valueAxis").getDataByKey(this.get("valueKey")).concat(),G=this.get("categoryAxis").getDataByKey(this.get("categoryKey")).concat(),J=0,ai=F.length,R=this.get("styles").marker,D=R.fill.colors,aj=R.fill.alphas||["1"],N=R.border.colors,H=[R.border.weight],I=[R.border.alpha],ak=H.concat(),T=N.concat(),V=I.concat(),af,ah,W=R.padding,E=this.get("graph"),P=Math.min(E.get("width"),E.get("height")),U=P-(W.left+W.right),ae=P-(W.top+W.bottom),ac=-90,O=U/2,X=ae/2,K=Math.min(O,X),ad=0,aa,ag=0,Z,ab,L,S,M,Q=this.get("graphOrder"),Y=b.Graphic.NAME=="canvasGraphic";for(;ad=D){G=G%D;}H=H||"fill";return E[H][G];}},{ATTRS:{type:{value:"pie"},order:{},graph:{},categoryAxis:{value:null,validator:function(D){return D!==this.get("categoryAxis");}},valueAxis:{value:null,validator:function(D){return D!==this.get("valueAxis");}},categoryKey:{value:null,validator:function(D){return D!==this.get("categoryKey");}},valueKey:{value:null,validator:function(D){return D!==this.get("valueKey");}},categoryDisplayName:{setter:function(D){this._categoryDisplayName=D;return D;},getter:function(){return this._categoryDisplayName||this.get("categoryKey");}},valueDisplayName:{setter:function(D){this._valueDisplayName=D;return D;},getter:function(){return this._valueDisplayName||this.get("valueKey");}},slices:null}});b.Gridlines=b.Base.create("gridlines",b.Base,[b.Renderer],{_path:null,remove:function(){var D=this._path;if(D){D.destroy();}},draw:function(){if(this.get("axis")&&this.get("graph")){this._drawGridlines();}},_drawGridlines:function(){var R,D=this.get("axis"),L=D.get("position"),O,I=0,F,M=this.get("direction"),P=this.get("graph"),N=P.get("width"),K=P.get("height"),Q=this.get("styles").line,H=Q.color,J=Q.weight,G=Q.alpha,E=M=="vertical"?this._verticalLine:this._horizontalLine;if(isFinite(N)&&isFinite(K)&&N>0&&K>0){if(L!="none"&&D&&D.get("tickPoints")){O=D.get("tickPoints");F=O.length;}else{O=[];F=D.get("styles").majorUnit.count;for(;IF){E=D[F];}return E;},getSeriesByKey:function(F){var E=this._seriesDictionary,D;if(E&&E.hasOwnProperty(F)){D=E[F];}return D;},addDispatcher:function(D){if(!this._dispatchers){this._dispatchers=[];}this._dispatchers.push(D);},_seriesCollection:null,_seriesDictionary:null,_parseSeriesCollection:function(H){if(!H){return;}var E=H.length,G=0,F,D;if(!this.get("seriesCollection")){this._seriesCollection=[];}if(!this._seriesDictionary){this._seriesDictionary={};}if(!this.seriesTypes){this.seriesTypes=[];}for(;G-1){this._dispatchers.splice(D,1);}if(this._dispatchers.length<1){G=this.get("graphic");if(!G.get("autoDraw")){G._redraw();}this.fire("chartRendered");}},_getDefaultStyles:function(){var D={background:{shape:"rect",fill:{color:"#faf9f2"},border:{color:"#dad8c9",weight:1}}};return D;},destructor:function(){if(this._graphic){this._graphic.destroy();}if(this._background){this._background.get("graphic").destroy();}if(this._gridlines){this._gridlines.get("graphic").destroy();}}},{ATTRS:{x:{setter:function(D){this.get("boundingBox").setStyle("left",D+"px");return D;}},y:{setter:function(D){this.get("boundingBox").setStyle("top",D+"px");return D;}},chart:{},seriesCollection:{getter:function(){return this._seriesCollection;},setter:function(D){this._parseSeriesCollection(D);return this._seriesCollection;}},showBackground:{value:true},seriesDictionary:{readOnly:true,getter:function(){return this._seriesDictionary;}},horizontalGridlines:{value:null,setter:function(E){var D=this.get("horizontalGridlines");if(D&&D instanceof b.Gridlines){D.remove();}if(E instanceof b.Gridlines){D=E;E.set("graph",this);return E;}else{if(E&&E.axis){D=new b.Gridlines({direction:"horizontal",axis:E.axis,graph:this,styles:E.styles});return D;}}}},verticalGridlines:{value:null,setter:function(E){var D=this.get("verticalGridlines");if(D&&D instanceof b.Gridlines){D.remove();}if(E instanceof b.Gridlines){D=E;E.set("graph",this);return E;}else{if(E&&E.axis){D=new b.Gridlines({direction:"vertical",axis:E.axis,graph:this,styles:E.styles});return D;}}}},background:{getter:function(){if(!this._background){this._backgroundGraphic=new b.Graphic({render:this.get("contentBox")});this._backgroundGraphic.get("node").style.zIndex=0;this._background=this._backgroundGraphic.addShape({type:"rect"});}return this._background;}},gridlines:{readOnly:true,getter:function(){if(!this._gridlines){this._gridlinesGraphic=new b.Graphic({render:this.get("contentBox")});this._gridlinesGraphic.get("node").style.zIndex=1;this._gridlines=this._gridlinesGraphic.addShape({type:"path"});}return this._gridlines;}},graphic:{readOnly:true,getter:function(){if(!this._graphic){this._graphic=new b.Graphic({render:this.get("contentBox")});this._graphic.get("node").style.zIndex=2;this._graphic.set("autoDraw",false);}return this._graphic;}},groupMarkers:{value:false}}});function o(){}o.ATTRS={ariaLabel:{value:"Chart Application",setter:function(E){var D=this.get("contentBox");if(D){D.setAttribute("aria-label",E);}return E;}},ariaDescription:{value:"Use the up and down keys to navigate between series. Use the left and right keys to navigate through items in a series.",setter:function(D){if(this._description){this._description.setContent("");this._description.appendChild(g.createTextNode(D));}return D;}},tooltip:{valueFn:"_getTooltip",setter:function(D){return this._updateTooltip(D);}},categoryKey:{value:"category"},categoryType:{value:"category"},interactionType:{value:"marker"},dataProvider:{setter:function(D){return this._setDataValues(D);}},seriesKeys:{},axesCollection:{},graph:{valueFn:"_getGraph"},groupMarkers:{value:false,setter:function(D){if(this.get("graph")){this.get("graph").set("groupMarkers",D);}return D;}}};o.prototype={_itemRendered:function(D){this._itemRenderQueue=this._itemRenderQueue.splice(1+b.Array.indexOf(this._itemRenderQueue,D.currentTarget),1);if(this._itemRenderQueue.length<1){this._redraw();}},_getGraph:function(){var D=new b.Graph({chart:this,groupMarkers:this.get("groupMarkers")});D.after("chartRendered",b.bind(function(E){this.fire("chartRendered");},this));return D;},getSeries:function(F){var D=null,E=this.get("graph");if(E){if(q.isNumber(F)){D=E.getSeriesByIndex(F);}else{D=E.getSeriesByKey(F);}}return D;},getAxisByKey:function(F){var D,E=this.get("axes");if(E&&E.hasOwnProperty(F)){D=E[F];}return D;},getCategoryAxis:function(){var E,D=this.get("categoryKey"),F=this.get("axes");if(F.hasOwnProperty(D)){E=F[D]; -}return E;},_direction:"horizontal",_dataProvider:null,_setDataValues:function(I){if(q.isArray(I[0])){var H,K=[],F=I[0],G=0,E=F.length,J,D=I.length;for(;G"),F=b.UA.ie,D=(F&&F<8)?"rect(1px 1px 1px 1px)":"rect(1px, 1px, 1px, 1px)";E.setStyle("position","absolute");E.setStyle("height","1px");E.setStyle("width","1px");E.setStyle("overflow","hidden");E.setStyle("clip",D);return E;},syncUI:function(){this._redraw();},bindUI:function(){this.after("tooltipChange",b.bind(this._tooltipChangeHandler,this));this.after("widthChange",this._sizeChanged);this.after("heightChange",this._sizeChanged);var K=this.get("tooltip"),E="mouseout",L="mouseover",F=this.get("contentBox"),D=this.get("interactionType"),I=0,J,H="."+n,G=((v&&("ontouchstart" in v))&&!(b.UA.chrome&&b.UA.chrome<6));b.on("keydown",b.bind(function(O){var N=O.keyCode,M=parseFloat(N),P;if(M>36&&M<41){O.halt();P=this._getAriaMessage(M);this._liveRegion.setContent("");this._liveRegion.appendChild(g.createTextNode(P));}},this),this.get("contentBox"));if(D=="marker"){E=K.hideEvent;L=K.showEvent;if(G){b.delegate("touchend",b.bind(this._markerEventDispatcher,this),F,H);b.on("touchend",b.bind(function(M){M.halt(true);if(this._activeMarker){this._activeMarker=null;this.hideTooltip(M);}},this));}else{b.delegate("mouseenter",b.bind(this._markerEventDispatcher,this),F,H);b.delegate("mousedown",b.bind(this._markerEventDispatcher,this),F,H);b.delegate("mouseup",b.bind(this._markerEventDispatcher,this),F,H);b.delegate("mouseleave",b.bind(this._markerEventDispatcher,this),F,H);b.delegate("click",b.bind(this._markerEventDispatcher,this),F,H);b.delegate("mousemove",b.bind(this._positionTooltip,this),F,H);}}else{if(D=="planar"){if(G){this._overlay.on("touchend",b.bind(this._planarEventDispatcher,this));}else{this._overlay.on("mousemove",b.bind(this._planarEventDispatcher,this));this.on("mouseout",this.hideTooltip);}}}if(K){this.on("markerEvent:touchend",b.bind(function(N){var M=N.series.get("markers")[N.index];if(this._activeMarker&&M===this._activeMarker){this._activeMarker=null;this.hideTooltip(N);}else{this._activeMarker=M;K.markerEventHandler.apply(this,[N]);}},this));if(E&&L&&E==L){this.on(D+"Event:"+E,this.toggleTooltip);}else{if(L){this.on(D+"Event:"+L,K[D+"EventHandler"]);}if(E){if(q.isArray(E)){J=E.length;for(;I=I[X].start){M=X;break;}}Y=E.length;for(X=0;X-1){P.updateMarkerState("mouseout",J);}if(W&&W[M]>-1){if(ad&&!isNaN(M)&&M>-1){P.updateMarkerState("mouseover",M);}ab=this.getSeriesItems(P,M);H.push(ab.category);R.push(ab.value);S.push(P);}}this._selectedIndex=M;if(M>-1){this.fire("planarEvent:mouseover",{categoryItem:H,valueItem:R,x:O,y:N,pageX:F,pageY:D,items:S,index:M,originEvent:Z});}else{this.fire("planarEvent:mouseout");}}},_type:"combo",_itemRenderQueue:null,_addToAxesRenderQueue:function(D){if(!this._itemRenderQueue){this._itemRenderQueue=[];}if(b.Array.indexOf(this._itemRenderQueue,D)<0){this._itemRenderQueue.push(D);}},_addToAxesCollection:function(D,F){var E=this.get(D+"AxesCollection");if(!E){E=[];this.set(D+"AxesCollection",E);}E.push(F);},_getDefaultSeriesCollection:function(){return this._parseSeriesCollection();},_parseSeriesCollection:function(W){var M=this.get("direction"),D=W||[],T,Q,O=[],J,I=this.get("seriesKeys").concat(),S,H,P,G=this.get("type"),U,L,V,E,F=this.get("categoryKey"),R=this.get("showMarkers"),N=this.get("showAreaFill"),K=this.get("showLines");if(M=="vertical"){T="yAxis";L="yKey";Q="xAxis";V="xKey";}else{T="xAxis";L="xKey";Q="yAxis";V="yKey";}P=D.length;for(S=0;S-1){I.splice(H,1);}O.push(U);}}if(I.length>0){O=O.concat(I);}P=O.length;for(S=0;S0){F.set("overlapGraph",false);}M[J]=F;}}}return M;},_addAxes:function(){var I=this.get("axes"),E,G,J,D=this.get("width"),F=this.get("height"),H=b.Node.one(this._parentNode);if(!this._axesCollection){this._axesCollection=[];}for(E in I){if(I.hasOwnProperty(E)){G=I[E];if(G instanceof b.Axis){if(!D){this.set("width",H.get("offsetWidth"));D=this.get("width");}if(!F){this.set("height",H.get("offsetHeight"));F=this.get("height");}this._addToAxesRenderQueue(G);J=G.get("position");if(!this.get(J+"AxesCollection")){this.set(J+"AxesCollection",[G]);}else{this.get(J+"AxesCollection").push(G);}this._axesCollection.push(G);if(G.get("keys").hasOwnProperty(this.get("categoryKey"))){this.set("categoryAxis",G);}G.render(this.get("contentBox"));}}}},_addSeries:function(){var D=this.get("graph"),E=this.get("seriesCollection");D.render(this.get("contentBox"));},_addGridlines:function(){var N=this.get("graph"),E=this.get("horizontalGridlines"),F=this.get("verticalGridlines"),M=this.get("direction"),O=this.get("leftAxesCollection"),I=this.get("rightAxesCollection"),K=this.get("bottomAxesCollection"),G=this.get("topAxesCollection"),H,D=this.get("categoryAxis"),L,J;if(this._axesCollection){H=this._axesCollection.concat();H.splice(b.Array.indexOf(H,D),1);}if(E){if(O&&O[0]){L=O[0];}else{if(I&&I[0]){L=I[0];}else{L=M=="horizontal"?D:H[0];}}if(!this._getBaseAttribute(E,"axis")&&L){this._setBaseAttribute(E,"axis",L);}if(this._getBaseAttribute(E,"axis")){N.set("horizontalGridlines",E);}}if(F){if(K&&K[0]){J=K[0];}else{if(G&&G[0]){J=G[0];}else{J=M=="vertical"?D:H[0];}}if(!this._getBaseAttribute(F,"axis")&&J){this._setBaseAttribute(F,"axis",J);}if(this._getBaseAttribute(F,"axis")){N.set("verticalGridlines",F);}}},_getAllKeys:function(I){var F=0,D=I.length,H,E,G={};for(;F0){N=P[0];this.set("categoryKey",N);}G[W]=E;}else{if(W==F){G[W]=E;}else{G[W]=E;if(W!=D&&P&&q.isArray(P)){K=P.length;for(M=0;M-1){H.splice(Q,1);}U=R.length;for(W=0;W-1){H.splice(Q,1);}}if(!G.hasOwnProperty(F)){G[F]={};}if(!(this._getBaseAttribute(G[F],"keys"))){this._setBaseAttribute(G[F],"keys",[N]);}if(!(this._getBaseAttribute(G[F],"position"))){this._setBaseAttribute(G[F],"position",I);}if(!(this._getBaseAttribute(G[F],"type"))){this._setBaseAttribute(G[F],"type",this.get("categoryType"));}if(!G.hasOwnProperty(D)&&H&&H.length>0){G[D]={keys:H};J.push(G[D]);}if(R.length>0){if(H.length>0){H=R.concat(H);}else{H=R;}}if(G.hasOwnProperty(D)){if(!(this._getBaseAttribute(G[D],"position"))){this._setBaseAttribute(G[D],"position",this._getDefaultAxisPosition(G[D],J,L));}if(!(this._getBaseAttribute(G[D],"type"))){this._setBaseAttribute(G[D],"type",Y);}if(!(this._getBaseAttribute(G[D],"keys"))){this._setBaseAttribute(G[D],"keys",H);}}this.set("seriesKeys",H);return G;},_getDefaultAxisPosition:function(G,E,D){var H=this.get("direction"),F=b.Array.indexOf(E,G); -if(E[F-1]&&E[F-1].position){if(H=="horizontal"){if(E[F-1].position=="left"){D="right";}else{if(E[F-1].position=="right"){D="left";}}}else{if(E[F-1].position=="bottom"){D="top";}else{D="bottom";}}}return D;},getSeriesItems:function(I,H){var J=I.get("xAxis"),F=I.get("yAxis"),G=I.get("xKey"),E=I.get("yKey"),K,D;if(this.get("direction")=="vertical"){K={axis:F,key:E,value:F.getKeyValueAt(E,H)};D={axis:J,key:G,value:J.getKeyValueAt(G,H)};}else{D={axis:F,key:E,value:F.getKeyValueAt(E,H)};K={axis:J,key:G,value:J.getKeyValueAt(G,H)};}K.displayName=I.get("categoryDisplayName");D.displayName=I.get("valueDisplayName");K.value=K.axis.getKeyValueAt(K.key,H);D.value=D.axis.getKeyValueAt(D.key,H);return{category:K,value:D};},_sizeChanged:function(G){if(this._axesCollection){var F=this._axesCollection,E=0,D=F.length;for(;E-1;--Z){ag.unshift(Y);Y+=D[Z].get("width");}}if(O){F=[];W=O.length;Z=0;for(Z=W-1;Z>-1;--Z){I+=O[Z].get("width");F.unshift(Q-I);}}if(P){T=[];W=P.length;for(Z=W-1;Z>-1;--Z){T.unshift(ae);ae+=P[Z].get("height");}}if(ad){K=[];W=ad.length;for(Z=W-1;Z>-1;--Z){E+=ad[Z].get("height");K.unshift(aa-E);}}M=Q-(Y+I);N=aa-(E+ae);af.left=Y;af.top=ae;af.bottom=aa-E;af.right=Q-I;if(!U){L=this._getTopOverflow(D,O);R=this._getBottomOverflow(D,O);X=this._getLeftOverflow(ad,P);V=this._getRightOverflow(ad,P);S=L-ae;if(S>0){af.top=L;if(T){Z=0;W=T.length;for(;Z0){af.bottom=aa-R;if(K){Z=0;W=K.length;for(;Z0){af.left=X;if(ag){Z=0;W=ag.length;for(;Z0){af.right=Q-V;if(F){Z=0;W=F.length;for(;Z1){if(N===38){I=I<1?K-1:I-1;}else{if(N===40){I=I>=K-1?0:I+1;}}this._itemIndex=-1;}else{I=0;}this._seriesIndex=I;J=this.getSeries(parseInt(I,10));G=J.get("valueDisplayName")+" series.";}else{if(I>-1){G="";J=this.getSeries(parseInt(I,10));}else{I=0;this._seriesIndex=I;J=this.getSeries(parseInt(I,10));G=J.get("valueDisplayName")+" series.";}E=J._dataLength?J._dataLength:0;if(N===37){D=D>0?D-1:E-1;}else{if(N===39){D=D>=E-1?0:D+1; -}}this._itemIndex=D;M=this.getSeriesItems(J,D);F=M.category;L=M.value;if(F&&L&&F.value&&L.value){G+=F.displayName+": "+F.axis.formatLabel.apply(this,[F.value,F.axis.get("labelFormat")])+", ";G+=L.displayName+": "+L.axis.formatLabel.apply(this,[L.value,L.axis.get("labelFormat")])+", ";}else{G+="No data available.";}G+=(D+1)+" of "+E+". ";}return G;}},{ATTRS:{allowContentOverflow:{value:false},axesStyles:{getter:function(){var F=this.get("axes"),D,E=this._axesStyles;if(F){for(D in F){if(F.hasOwnProperty(D)&&F[D] instanceof b.Axis){if(!E){E={};}E[D]=F[D].get("styles");}}}return E;},setter:function(F){var E=this.get("axes"),D;for(D in F){if(F.hasOwnProperty(D)&&E.hasOwnProperty(D)){this._setBaseAttribute(E[D],"styles",F[D]);}}}},seriesStyles:{getter:function(){var E=this._seriesStyles,F=this.get("graph"),G,D;if(F){G=F.get("seriesDictionary");if(G){E={};for(D in G){if(G.hasOwnProperty(D)){E[D]=G[D].get("styles");}}}}return E;},setter:function(G){var E,D,F;if(q.isArray(G)){F=this.get("seriesCollection");E=0;D=G.length;for(;E0){this.set("seriesKeys",E);}}return{values:{keys:E,type:D},category:{keys:[H],type:this.get("categoryType")}};},getSeriesItems:function(F,E){var G={axis:F.get("categoryAxis"),key:F.get("categoryKey"),displayName:F.get("categoryDisplayName")},D={axis:F.get("valueAxis"),key:F.get("valueKey"),displayName:F.get("valueDisplayName")}; -G.value=G.axis.getKeyValueAt(G.key,E);D.value=D.axis.getKeyValueAt(D.key,E);return{category:G,value:D};},_sizeChanged:function(D){this._redraw();},_redraw:function(){var F=this.get("graph"),D=this.get("width"),E=this.get("height"),G;if(F){G=Math.min(D,E);F.set("width",G);F.set("height",G);}},_tooltipLabelFunction:function(K,D,G,F,E){var J=g.createElement("div"),H=F.getTotalValues(),I=Math.round((D.value/H)*10000)/100;J.appendChild(g.createTextNode(K.displayName+": "+K.axis.get("labelFunction").apply(this,[K.value,K.axis.get("labelFormat")])));J.appendChild(g.createElement("br"));J.appendChild(g.createTextNode(D.displayName+": "+D.axis.get("labelFunction").apply(this,[D.value,D.axis.get("labelFormat")])));J.appendChild(g.createElement("br"));J.appendChild(g.createTextNode(I+"%"));return J;},_getAriaMessage:function(P){var F="",E,M,J,L,I=0,D=this._itemIndex,G=this.get("seriesCollection"),K,N,O,H;J=this.getSeries(parseInt(I,10));H=J.get("markers");K=H&&H.length?H.length:0;if(P===37){D=D>0?D-1:K-1;}else{if(P===39){D=D>=K-1?0:D+1;}}this._itemIndex=D;M=this.getSeriesItems(J,D);E=M.category;L=M.value;N=J.getTotalValues();O=Math.round((L.value/N)*10000)/100;if(E&&L){F+=E.displayName+": "+E.axis.formatLabel.apply(this,[E.value,E.axis.get("labelFormat")])+", ";F+=L.displayName+": "+L.axis.formatLabel.apply(this,[L.value,L.axis.get("labelFormat")])+", ";F+="Percent of total "+L.displayName+": "+O+"%,";}else{F+="No data available,";}F+=(D+1)+" of "+K+". ";return F;}},{ATTRS:{ariaDescription:{value:"Use the left and right keys to navigate through items.",setter:function(D){if(this._description){this._description.setContent("");this._description.appendChild(g.createTextNode(D));}return D;}},axes:{getter:function(){return this._axes;},setter:function(D){this._parseAxes(D);}},seriesCollection:{getter:function(){return this._getSeriesCollection();},setter:function(D){return this._setSeriesCollection(D);}},type:{value:"pie"}}});},"3.5.0",{requires:["dom","datatype-number","datatype-date","event-custom","event-mouseenter","event-touch","widget","widget-position","widget-stack","graphics"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/datatable-sort/datatable-sort-min.js b/lib/yui/3.5.0/build/datatable-sort/datatable-sort-min.js deleted file mode 100644 index 5918a769549..00000000000 --- a/lib/yui/3.5.0/build/datatable-sort/datatable-sort-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("datatable-sort",function(b){var h=b.Lang,e=h.isBoolean,c=h.isString,g=h.isArray,j=h.isObject,f=b.Array,a=h.sub,i={asc:1,desc:-1,"1":1,"-1":-1};function d(){}d.ATTRS={sortable:{value:"auto",validator:"_validateSortable"},sortBy:{validator:"_validateSortBy",getter:"_getSortBy"},strings:{}};b.mix(d.prototype,{sort:function(k,l){return this.fire("sort",b.merge((l||{}),{sortBy:k||this.get("sortBy")}));},SORTABLE_HEADER_TEMPLATE:'
',toggleSort:function(l,r){var q=this._sortBy,s=[],n,p,m,k,o;for(n=0,p=q.length;n=0;--n){if(s[m][k]){s[m][k]*=-1;break;}}}}else{for(n=0,p=s.length;nq)?n:((l=k){o.push(m._id);}}else{o[0][p]=-(m.sortDir|0)||1;}this.fire("sort",{originEvent:n,sortBy:o});}},_parseSortable:function(){var o=this.get("sortable"),n=[],m,k,l;if(g(o)){for(m=0,k=o.length;m=0;--m){if(!n[m].sortable){n.splice(m,1);}}}}}this._sortable=n;},_renderSortable:function(){this._uiSetSortable();this._bindSortUI();},_setSortBy:function(){var n=this._displayColumns,s=this.get("sortBy")||[],p=" "+this.getClassName("sorted"),o,q,k,l,r,m;this._sortBy=[];for(o=0,q=n.length;o=f){this._purge(this._purgeNodes);}},_getEnv:function(){var g=d.config.doc,f=d.UA;return(this._env={async:g&&g.createElement("script").async===true,cssFail:f.gecko>=9||f.webkit>=535.24,cssLoad:((!f.gecko&&!f.webkit)||f.gecko>=9||f.webkit>=535.24)&&!(f.chrome&&f.chrome<=18),preservesScriptOrder:!!(f.gecko||f.opera)});},_getTransaction:function(l,h){var m=[],j,f,k,g;if(!c.isArray(l)){l=[l];}h=d.merge(this.options,h);h.attributes=d.merge(this.options.attributes,h.attributes);for(j=0,f=l.length;j-1){h.splice(g,1);}}}}};e.script=e.js;e.Transaction=a=function(h,g){var f=this;f.id=a._lastId+=1;f.data=g.data;f.errors=[];f.nodes=[];f.options=g;f.requests=h;f._callbacks=[];f._queue=[];f._waiting=0;f.tId=f.id;f.win=g.win||d.config.win;};a._lastId=0;a.prototype={_state:"new",abort:function(f){this._pending=null;this._pendingCSS=null;this._pollTimer=clearTimeout(this._pollTimer);this._queue=[];this._waiting=0;this.errors.push({error:f||"Aborted"});this._finish();},execute:function(n){var h=this,m=h.requests,l=h._state,j,g,f,k;if(l==="done"){n&&n(h.errors.length?h.errors:null,h);return;}else{n&&h._callbacks.push(n);if(l==="executing"){return;}}h._state="executing";h._queue=f=[];if(h.options.timeout){h._timeout=setTimeout(function(){h.abort("Timeout");},h.options.timeout);}for(j=0,g=m.length;j=0){if(k[g].href===p){r.splice(h,1);h-=1;q._progress(null,o);break;}}}else{try{f=!!o.node.sheet.cssRules;r.splice(h,1);h-=1;q._progress(null,o);}catch(m){}}}if(r.length){q._pollTimer=setTimeout(function(){q._poll.call(q);},q.options.pollInterval);}},_progress:function(h,g){var f=this.options;if(h){g.error=h;this.errors.push({error:h,request:g});}g.node._yuiget_finished=g.finished=true;if(f.onProgress){f.onProgress.call(f.context||this,this._getEventData(g));}if(g.autopurge){e._autoPurge(this.options.purgethreshold);e._purgeNodes.push(g.node);}if(this._pending===g){this._pending=null;}this._waiting-=1;this._next();}};},"3.5.0",{requires:["yui-base"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics-svg/graphics-svg-min.js b/lib/yui/3.5.0/build/graphics-svg/graphics-svg-min.js deleted file mode 100644 index ad7e7208b77..00000000000 --- a/lib/yui/3.5.0/build/graphics-svg/graphics-svg-min.js +++ /dev/null @@ -1,10 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("graphics-svg",function(b){var i="svgShape",c=b.Lang,g=b.AttributeLite,d,l,f,h,k,e,j,m=b.config.doc;function a(){}a.prototype={_type:"path",curveTo:function(s,q,z,w,v,u){var o,t,r,n,p,A;if(this._pathType!=="C"){this._pathType="C";t=["C"];this._pathArray.push(t);}else{t=this._pathArray[Math.max(0,this._pathArray.length-1)];if(!t){t=[];this._pathArray.push(t);}}o=this._pathArray.length-1;this._pathArray[o]=this._pathArray[o].concat([Math.round(s),Math.round(q),Math.round(z),Math.round(w),v,u]);r=Math.max(v,Math.max(s,z));p=Math.max(u,Math.max(q,w));n=Math.min(v,Math.min(s,z));A=Math.min(u,Math.min(q,w));this._trackSize(r,p);this._trackSize(n,A);},quadraticCurveTo:function(s,r,v,u){var o,t,q,n,p,w;if(this._pathType!=="Q"){this._pathType="Q";t=["Q"];this._pathArray.push(t);}else{t=this._pathArray[Math.max(0,this._pathArray.length-1)];if(!t){t=[];this._pathArray.push(t);}}o=this._pathArray.length-1;this._pathArray[o]=this._pathArray[o].concat([Math.round(s),Math.round(r),Math.round(v),Math.round(u)]);q=Math.max(v,s);p=Math.max(u,r);n=Math.min(v,s);w=Math.min(u,r);this._trackSize(q,p);this._trackSize(n,w);},drawRect:function(n,q,o,p){this.moveTo(n,q);this.lineTo(n+o,q);this.lineTo(n+o,q+p);this.lineTo(n,q+p);this.lineTo(n,q);},drawRoundRect:function(n,s,o,q,p,r){this.moveTo(n,s+r);this.lineTo(n,s+q-r);this.quadraticCurveTo(n,s+q,n+p,s+q);this.lineTo(n+o-p,s+q);this.quadraticCurveTo(n+o,s+q,n+o,s+q-r);this.lineTo(n+o,s+r);this.quadraticCurveTo(n+o,s,n+o-p,s);this.lineTo(n+p,s);this.quadraticCurveTo(n,s,n,s+r);},drawCircle:function(o,q,n){var p=n*2;this._drawingComplete=false;this._trackSize(o,q);this._trackSize(o+p,q+p);this._pathArray=this._pathArray||[];this._pathArray.push(["M",o+n,q]);this._pathArray.push(["A",n,n,0,1,0,o+n,q+p]);this._pathArray.push(["A",n,n,0,1,0,o+n,q]);return this;},drawEllipse:function(p,s,q,r){var o=q*0.5,n=r*0.5;this._drawingComplete=false;this._trackSize(p,s);this._trackSize(p+q,s+r);this._pathArray=this._pathArray||[];this._pathArray.push(["M",p+o,s]);this._pathArray.push(["A",o,n,0,1,0,p+o,s+r]);this._pathArray.push(["A",o,n,0,1,0,p+o,s]);return this;},drawDiamond:function(o,s,r,n){var q=r*0.5,p=n*0.5;this.moveTo(o+q,s);this.lineTo(o+r,s+p);this.lineTo(o+q,s+n);this.lineTo(o,s+p);this.lineTo(o+q,s);return this;},drawWedge:function(A,v,F,u,q,r){var E,D,t,J,s,B,z,I,H,p,o,G=0,w=q*2,n,C;r=r||q;if(this._pathType!="M"){this._pathType="M";n=["M"];this._pathArray.push(n);}else{n=this._getCurrentArray();}C=this._pathArray.length-1;this._pathArray[C].push(A);this._pathArray[C].push(A);if(Math.abs(u)>360){u=360;}E=Math.ceil(Math.abs(u)/45);D=u/E;t=-(D/180)*Math.PI;J=(F/180)*Math.PI;if(E>0){B=A+Math.cos(F/180*Math.PI)*q;z=v+Math.sin(F/180*Math.PI)*r;this._pathType="L";C++;this._pathArray[C]=["L"];this._pathArray[C].push(Math.round(B));this._pathArray[C].push(Math.round(z));C++;this._pathType="Q";this._pathArray[C]=["Q"];for(;G0){s=o.shift();v=s.length;n=s[0];if(n==="A"){y+=n+s[1]+","+s[2];}else{if(n!="z"){y+=" "+n+(s[1]-q);}else{y+=" z ";}}switch(n){case"L":case"M":case"Q":for(t=2;tthis._right){this._right=n;}if(nthis._bottom){this._bottom=o;}this._width=this._right-this._left;this._height=this._bottom-this._top;}};b.SVGDrawing=a;l=function(n){this._transforms=[];this.matrix=new b.Matrix();this._normalizedMatrix=new b.Matrix();l.superclass.constructor.apply(this,arguments);};l.NAME="svgShape";b.extend(l,b.GraphicBase,b.mix({init:function(){this.initializer.apply(this,arguments);},initializer:function(n){var o=this,p=n.graphic;o.createNode();if(p){o._setGraphic(p);}o._updateHandler();},_setGraphic:function(n){var o;if(n instanceof b.SVGGraphic){this._graphic=n;}else{n=b.one(n);o=new b.SVGGraphic({render:n});o._appendShape(this);this._graphic=o;}},addClass:function(n){var o=this.node;o.className.baseVal=c.trim([o.className.baseVal,n].join(" "));},removeClass:function(n){var o=this.node,p=o.className.baseVal;p=p.replace(new RegExp(n+" "),n).replace(new RegExp(n),"");o.className.baseVal=p;},getXY:function(){var q=this._graphic,o=q.getXY(),n=this.get("x"),p=this.get("y"); -return[o[0]+n,o[1]+p];},setXY:function(o){var p=this._graphic,n=p.getXY();this.set("x",o[0]-n[0]);this.set("y",o[1]-n[1]);},contains:function(n){return n===b.one(this.node);},compareTo:function(n){var o=this.node;return o===n;},test:function(n){return b.Selector.test(this.node,n);},_getDefaultFill:function(){return{type:"solid",opacity:1,cx:0.5,cy:0.5,fx:0.5,fy:0.5,r:0.5};},_getDefaultStroke:function(){return{weight:1,dashstyle:"none",color:"#000",opacity:1};},createNode:function(){var n=m.createElementNS("http://www.w3.org/2000/svg","svg:"+this._type),p=this.get("id"),o=this.get("pointerEvents");this.node=n;this.addClass("yui3-"+i+" yui3-"+this.name);if(p){n.setAttribute("id",p);}if(o){n.setAttribute("pointer-events",o);}if(!this.get("visible")){b.one(n).setStyle("visibility","hidden");}},on:function(o,n){if(b.Node.DOM_EVENTS[o]){return b.one("#"+this.get("id")).on(o,n);}return b.on.apply(this,arguments);},_strokeChangeHandler:function(s){var q=this.node,r=this.get("stroke"),p,n,t,o;if(r&&r.weight&&r.weight>0){o=r.linejoin||"round";p=parseFloat(r.opacity);n=r.dashstyle||"none";t=c.isArray(n)?n.toString():n;r.color=r.color||"#000000";r.weight=r.weight||1;r.opacity=c.isNumber(p)?p:1;r.linecap=r.linecap||"butt";q.setAttribute("stroke-dasharray",t);q.setAttribute("stroke",r.color);q.setAttribute("stroke-linecap",r.linecap);q.setAttribute("stroke-width",r.weight);q.setAttribute("stroke-opacity",r.opacity);if(o=="round"||o=="bevel"){q.setAttribute("stroke-linejoin",o);}else{o=parseInt(o,10);if(c.isNumber(o)){q.setAttribute("stroke-miterlimit",Math.max(o,1));q.setAttribute("stroke-linejoin","miter");}}}else{q.setAttribute("stroke","none");}},_fillChangeHandler:function(r){var p=this.node,q=this.get("fill"),n,o;if(q){o=q.type;if(o=="linear"||o=="radial"){this._setGradientFill(q);p.setAttribute("fill","url(#grad"+this.get("id")+")");}else{if(!q.color){p.setAttribute("fill","none");}else{n=parseFloat(q.opacity);n=c.isNumber(n)?n:1;p.setAttribute("fill",q.color);p.setAttribute("fill-opacity",n);}}}else{p.setAttribute("fill","none");}},_setGradientFill:function(N){var z,v,L,H,p,E=c.isNumber,D=this._graphic,x=N.type,K=D.getGradientNode("grad"+this.get("id"),x),A=N.stops,B=this.get("width"),R=this.get("height"),J=N.rotation,y=Math.PI/180,G=parseFloat(parseFloat(Math.tan(J*y)).toFixed(8)),O,Q,C,I,S="0%",P="100%",t="0%",o="0%",s=N.cx,n=N.cy,u=N.fx,q=N.fy,F=N.r,M=[];if(x=="linear"){s=B/2;n=R/2;if(Math.abs(G)*B/2>=R/2){if(J<180){t=0;o=R;}else{t=R;o=0;}S=s-((n-t)/G);P=s-((n-o)/G);}else{if(J>90&&J<270){S=B;P=0;}else{S=0;P=B;}t=((G*(s-S))-n)*-1;o=((G*(s-P))-n)*-1;}K.setAttribute("spreadMethod","pad");K.setAttribute("width",B);K.setAttribute("height",R);K.setAttribute("x1",Math.round(100*S/B)+"%");K.setAttribute("y1",Math.round(100*t/R)+"%");K.setAttribute("x2",Math.round(100*P/B)+"%");K.setAttribute("y2",Math.round(100*o/R)+"%");}else{K.setAttribute("cx",(s*100)+"%");K.setAttribute("cy",(n*100)+"%");K.setAttribute("fx",(u*100)+"%");K.setAttribute("fy",(q*100)+"%");K.setAttribute("r",(F*100)+"%");}Q=A.length;C=0;for(O=0;O0){H=this._stops.shift();p=false;}else{H=D._createGraphicNode("stop");p=true;}I=A[O];v=I.opacity;L=I.color;z=I.offset||O/(Q-1);z=Math.round(z*100)+"%";v=E(v)?v:1;v=Math.max(0,Math.min(1,v));C=(O+1)/Q;H.setAttribute("offset",z);H.setAttribute("stop-color",L);H.setAttribute("stop-opacity",v);if(p){K.appendChild(H);}M.push(H);}while(this._stops&&this._stops.length>0){K.removeChild(this._stops.shift());}this._stops=M;},_stops:null,set:function(){var n=this;g.prototype.set.apply(n,arguments);if(n.initialized){n._updateHandler();}},translate:function(n,o){this._addTransform("translate",arguments);},translateX:function(n){this._addTransform("translateX",arguments);},translateY:function(n){this._addTransform("translateY",arguments);},skew:function(n,o){this._addTransform("skew",arguments);},skewX:function(n){this._addTransform("skewX",arguments);},skewY:function(n){this._addTransform("skewY",arguments);},rotate:function(n){this._addTransform("rotate",arguments);},scale:function(n,o){this._addTransform("scale",arguments);},_addTransform:function(o,n){n=b.Array(n);this._transform=c.trim(this._transform+" "+o+"("+n.join(", ")+")");n.unshift(o);this._transforms.push(n);if(this.initialized){this._updateTransform();}},_updateTransform:function(){var v=this._type=="path",p=this.node,B,o,r,A,w,t,q,z=this.matrix,n=this._normalizedMatrix,s=0,u=this._transforms.length;if(v||(this._transforms&&this._transforms.length>0)){A=this.get("x");w=this.get("y");r=this.get("transformOrigin");t=A+(r[0]*this.get("width"));q=w+(r[1]*this.get("height"));if(v){if(!(this instanceof b.SVGPath)){t=this._left+(r[0]*this.get("width"));q=this._top+(r[1]*this.get("height"));}n.init({dx:A+this._left,dy:w+this._top});}n.translate(t,q);for(;sp.right?o.right:p.right;o.bottom=o.bottom>p.bottom?o.bottom:p.bottom;o.width=o.right-o.left;o.height=o.bottom-o.top;this._contentBounds=o;}if(this.get("autoDraw")){this._redraw();}},_getUpdatedContentBounds:function(){var r,p,o,n=this._shapes,q={left:0,top:0,right:0,bottom:0};for(p in n){if(n.hasOwnProperty(p)){o=n[p];r=o.getBounds();q.left=Math.min(q.left,r.left);q.top=Math.min(q.top,r.top);q.right=Math.max(q.right,r.right);q.bottom=Math.max(q.bottom,r.bottom);}}q.width=q.right-q.left;q.height=q.bottom-q.top;this._contentBounds=q;return q;},_createGraphics:function(){var n=this._createGraphicNode("svg"),o=this.get("pointerEvents");n.style.position="absolute";n.style.top="0px";n.style.left="0px";n.style.overflow="auto";n.setAttribute("overflow","auto");n.setAttribute("pointer-events",o);return n;},_createGraphicNode:function(p,n){var q=m.createElementNS("http://www.w3.org/2000/svg","svg:"+p),o=n||"none";if(p!=="defs"&&p!=="stop"&&p!=="linearGradient"&&p!="radialGradient"){q.setAttribute("pointer-events",o);}return q;},getGradientNode:function(p,q){var n=this._gradients,r,o=q+"Gradient";if(n.hasOwnProperty(p)&&n[p].tagName.indexOf(q)>-1){r=this._gradients[p];}else{r=this._createGraphicNode(o);if(!this._defs){this._defs=this._createGraphicNode("defs");this._contentNode.appendChild(this._defs);}this._defs.appendChild(r);p=p||"gradient"+Math.round(100000*Math.random());r.setAttribute("id",p);if(n.hasOwnProperty(p)){this._defs.removeChild(n[p]);}n[p]=r;}return r;}});b.SVGGraphic=d;},"3.5.0",{skinnable:false,requires:["graphics"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/matrix/matrix-min.js b/lib/yui/3.5.0/build/matrix/matrix-min.js deleted file mode 100644 index aea75890ff0..00000000000 --- a/lib/yui/3.5.0/build/matrix/matrix-min.js +++ /dev/null @@ -1,8 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("matrix",function(c){var a={_rounder:100000,_round:function(d){d=Math.round(d*a._rounder)/a._rounder;return d;},rad2deg:function(d){var e=d*(180/Math.PI);return e;},deg2rad:function(e){var d=e*(Math.PI/180);return d;},angle2rad:function(d){if(typeof d==="string"&&d.indexOf("rad")>-1){d=parseFloat(d);}else{d=a.deg2rad(parseFloat(d));}return d;},convertTransformToArray:function(d){var e=[[d.a,d.c,d.dx],[d.b,d.d,d.dy],[0,0,1]];return e;},getDeterminant:function(f){var e=0,d=f.length,g=0,h;if(d==2){return f[0][0]*f[1][1]-f[0][1]*f[1][0];}for(;g-1){d=parseFloat(d);}else{d=this.deg2rad(parseFloat(d));}return d;},rotate:function(h,e,j){var g=[],d=this.angle2rad(h),f=this._round(Math.sin(d)),i=this._round(Math.cos(d));this.multiply(i,f,0-f,i,0,0);return this;},translate:function(d,e){d=parseFloat(d)||0;e=parseFloat(e)||0;this.multiply(1,0,0,1,d,e);return this;},identity:function(){var d=this._config,e=this._defaults,f;for(f in d){if(f in e){this[f]=e[f];}}return this;},getMatrixArray:function(){var d=this,e=[[d.a,d.c,d.dx],[d.b,d.d,d.dy],[0,0,1]];return e;},getContentRect:function(q,p,l,k){var i=!isNaN(l)?l:0,o=!isNaN(k)?k:0,z=i+q,j=o+p,s=this,C=s.a,B=s.b,A=s.c,w=s.d,n=s.dx,m=s.dy,v=(C*i+A*o+n),h=(B*i+w*o+m),u=(C*z+A*o+n),g=(B*z+w*o+m),t=(C*i+A*j+n),f=(B*i+w*j+m),r=(C*z+A*j+n),e=(B*z+w*j+m);return{left:Math.min(t,Math.min(v,Math.min(u,r))),right:Math.max(t,Math.max(v,Math.max(u,r))),top:Math.min(g,Math.min(e,Math.min(f,h))),bottom:Math.max(g,Math.max(e,Math.max(f,h)))};},getDeterminant:function(){return c.MatrixUtil.getDeterminant(this.getMatrixArray());},inverse:function(){return c.MatrixUtil.inverse(this.getMatrixArray());},transpose:function(){return c.MatrixUtil.transpose(this.getMatrixArray());},decompose:function(){return c.MatrixUtil.decompose(this.getMatrixArray()); -}};c.Matrix=b;},"3.5.0",{requires:["yui-base"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/pjax-base/pjax-base-min.js b/lib/yui/3.5.0/build/pjax-base/pjax-base-min.js deleted file mode 100644 index 1ae47251781..00000000000 --- a/lib/yui/3.5.0/build/pjax-base/pjax-base-min.js +++ /dev/null @@ -1,7 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("pjax-base",function(f){var d=f.config.win,b=f.Lang,e=f.ClassNameManager.getClassName("pjax"),a="navigate";function c(){}c.prototype={_regexURL:/^((?:[^\/#?:]+:\/\/|\/\/)[^\/]*)?([^?#]*)(\?[^#]*)?(#.*)?$/,initializer:function(){this.publish(a,{defaultFn:this._defNavigateFn});if(this.get("html5")){this._pjaxBindUI();}},destructor:function(){this._pjaxEvents&&this._pjaxEvents.detach();},navigate:function(h,g){h=this._resolveURL(h);if(this._navigate(h,g)){return true;}if(!this._hasSameOrigin(h)){f.error("Security error: The new URL must be of the same origin as the current URL.");}return false;},_getRoot:function(){var h="/",i=f.getLocation().pathname,g;if(i.charAt(i.length-1)===h){return i;}g=i.split(h);g.pop();return g.join(h)+h;},_navigate:function(i,h){if(!this.hasRoute(i)){return false;}h||(h={});h.url=i;var k=this._getURL(),j,g;g=i.replace(/(#.*)$/,function(l,n,m){j=n;return l.substring(m);});if(j&&g===k.replace(/#.*$/,"")){if(!this.get("navigateOnHash")){return false;}h.hash=j;}b.isValue(h.replace)||(h.replace=i===k);if(this.get("html5")||h.force){this.fire(a,h);}else{if(h.replace){d&&d.location.replace(i);}else{d&&(d.location=i);}}return true;},_normalizePath:function(p){var m="..",g="/",h,l,o,j,k,n;if(!p||p===g){return g;}j=p.split(g);n=[];for(h=0,l=j.length;h-1;});},removeRoot:function(j){var i=this.get("root");j=j.replace(this._regexUrlOrigin,"");if(i&&j.indexOf(i)===0){j=j.substring(i.length);}return j.charAt(0)==="/"?j:"/"+j;},replace:function(i){return this._queue(i,true);},route:function(j,k){var i=[];this._routes.push({callback:k,keys:i,path:j,regex:this._getRegex(j,i)});return this;},save:function(i){return this._queue(i);},upgrade:function(){if(!this._html5){return false;}var i=c.getHash();if(i&&i.charAt(0)==="/"){this.once(d,function(){this.replace(i);});return true;}return false;},_decode:function(i){return decodeURIComponent(i.replace(/\+/g," "));},_dequeue:function(){var i=this,j;if(!YUI.Env.windowLoaded){h.once("load",function(){i._dequeue();});return this;}j=e.shift();return j?j():this;},_dispatch:function(n,k,o){var j=this,i=j.match(n),m,l;j._dispatching=j._dispatched=true;if(!i||!i.length){j._dispatching=false;return j;}m=j._getRequest(n,k,o);l=j._getResponse(m);m.next=function(q){var s,r,p;if(q){h.error(q);}else{if((p=i.shift())){r=p.regex.exec(n);s=typeof p.callback==="string"?j[p.callback]:p.callback;if(r.length===p.keys.length+1){m.params=f.hash(p.keys,r.slice(1));}else{m.params=r.concat();}s.call(j,m,l,m.next);}}};m.next();j._dispatching=false;return j._dequeue();},_getHashPath:function(){return c.getHash().replace(this._regexUrlQuery,"");},_getOrigin:function(){var i=h.getLocation();return i.origin||(i.protocol+"//"+i.host);},_getPath:function(){var i=(!this._html5&&this._getHashPath())||h.getLocation().pathname;return this.removeRoot(i);},_getQuery:function(){var i=h.getLocation(),k,j;if(this._html5){return i.search.substring(1);}k=c.getHash();j=k.match(this._regexUrlQuery);return k&&j?j[1]:i.search.substring(1);},_getRegex:function(j,i){if(j instanceof RegExp){return j;}if(j==="*"){return(/.*/);}j=j.replace(this._regexPathParam,function(l,k,m){if(!m){return k==="*"?".*":l;}i.push(m);return k==="*"?"(.*?)":"([^/]*)";});return new RegExp("^"+j+"$");},_getRequest:function(j,i,k){return{path:j,query:this._parseQuery(this._getQuery()),url:i,src:k};},_getResponse:function(j){var i=function(){return j.next.apply(this,arguments);};i.req=j;return i;},_getRoutes:function(){return this._routes.concat();},_getURL:function(){return h.getLocation().toString();},_hasSameOrigin:function(j){var i=((j&&j.match(this._regexUrlOrigin))||[])[0];if(i&&i.indexOf("//")===0){i=h.getLocation().protocol+i;}return !i||i===this._getOrigin();},_joinURL:function(j){var i=this.get("root");j=this.removeRoot(j);if(j.charAt(0)==="/"){j=j.substring(1);}return i&&i.charAt(i.length-1)==="/"?i+j:i+"/"+j;},_parseQuery:b&&b.parse?b.parse:function(m){var n=this._decode,p=m.split("&"),l=0,k=p.length,j={},o;for(;l=3)});h.Controller=h.Router;},"3.5.0",{optional:["querystring-parse"],requires:["array-extras","base-build","history"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/scrollview-base/scrollview-base-min.js b/lib/yui/3.5.0/build/scrollview-base/scrollview-base-min.js deleted file mode 100644 index 134957080cc..00000000000 --- a/lib/yui/3.5.0/build/scrollview-base/scrollview-base-min.js +++ /dev/null @@ -1,8 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("scrollview-base",function(d){var i=d.ClassNameManager.getClassName,x="scrollview",w={vertical:i(x,"vert"),horizontal:i(x,"horiz")},B="scrollEnd",l="flick",b=l,c="drag",a=true,k="ui",o="left",r="top",h="px",p="scrollY",q="scrollX",f="bounce",t="disabled",v="x",u="y",y="boundingBox",n="contentBox",A="",s="0s",j=d.UA.ie,e=d.Transition,g=e.useNative,m=function(E,D,C){return Math.min(Math.max(E,D),C);};function z(){z.superclass.constructor.apply(this,arguments);}d.ScrollView=d.extend(z,d.Widget,{initializer:function(){var C=this;C._cb=C.get(n);C._bb=C.get(y);},_uiSizeCB:function(){},_onTransEnd:function(C){this.fire(B);},bindUI:function(){var C=this;C._bindDrag(C.get(c));C._bindFlick(C.get(b));C._bindAttrs();if(j){C._fixIESelect(C._bb,C._cb);}},_bindAttrs:function(){var C=this,E=C._afterScrollChange,D=C._afterDimChange;this.after({"disabledChange":C._afterDisabledChange,"flickChange":C._afterFlickChange,"dragChange":C._afterDragChange,"scrollYChange":E,"scrollXChange":E,"heightChange":D,"widthChange":D});if(!j){this.after("renderedChange",function(F){});}},_bindDrag:function(C){var D=this._bb;if(C){D.on("drag|gesturemovestart",d.bind(this._onGestureMoveStart,this));}else{D.detach("drag|*");}},_bindFlick:function(D){var C=this._cb;if(D){C.on("flick|flick",d.bind(this._flick,this),D);}else{C.detach("flick|*");}},_bindMousewheel:function(D){var C=this._cb;if(this._scrollsVertical){if(D){C.on("mousewheel",d.bind(this._mousewheel,this),D);}else{C.detach("mousewheel|*");}}},syncUI:function(){this._cDisabled=this.get(t);this._uiDimensionsChange();this._bindMousewheel(a);this.scrollTo(this.get(q),this.get(p));},scrollTo:function(M,L,G,J){if(J===undefined){if(Lthis._maxScrollY){L=this._maxScrollY;}}}if(!this._cDisabled){var F=this._cb,H=(M!==null),E=(L!==null),D=(H)?M*-1:0,C=(E)?L*-1:0,I,K=z._TRANSITION,N=this._transEndCB;G=G||0;J=J||z.EASING;if(H){this.set(q,M,{src:k});}if(E){this.set(p,L,{src:k});}if(g){F.setStyle(K.DURATION,s).setStyle(K.PROPERTY,A);}if(G!==0){I={easing:J,duration:G/1000};if(g){I.transform=this._transform(D,C);}else{if(H){I.left=D+h;}if(E){I.top=C+h;}}if(!N){N=this._transEndCB=d.bind(this._onTransEnd,this);}F.transition(I,N);}else{if(g){F.setStyle("transform",this._transform(D,C));}else{if(H){F.setStyle(o,D+h);}if(E){F.setStyle(r,C+h);}}}}},_transform:function(C,D){return(this._forceHWTransforms)?"translate("+C+"px,"+D+"px) translateZ(0px)":"translate("+C+"px,"+D+"px)";},_moveTo:function(D,C,E){if(g){D.setStyle("transform",this._transform(C,E));}else{D.setStyle(o,C+h);D.setStyle(r,E+h);}},_forceHWTransforms:d.UA.webkit?true:false,_prevent:{start:false,move:true,end:false},_onGestureMoveStart:function(D){var C=this,E=C._bb;if(!C._cDisabled){if(C._prevent.start){D.preventDefault();}C._killTimer();C._hm=E.on("drag|gesturemove",d.bind(C._onGestureMove,C));C._hme=E.on("drag|gesturemoveend",d.bind(C._onGestureMoveEnd,C));C._startY=D.clientY+C.get(p);C._startX=D.clientX+C.get(q);C._startClientY=C._endClientY=D.clientY;C._startClientX=C._endClientX=D.clientX;C._isDragging=false;C._flicking=false;C._snapToEdge=false;}},_onGestureMove:function(D){var C=this;if(C._prevent.move){D.preventDefault();}C._isDragging=true;C._endClientY=D.clientY;C._endClientX=D.clientX;if(C._scrollsVertical){C.set(p,-(D.clientY-C._startY));}if(C._scrollsHorizontal){C.set(q,-(D.clientX-C._startX));}},_onGestureMoveEnd:function(K){if(this._prevent.end){K.preventDefault();}var R=this,G=R._minScrollY,C=R._maxScrollY,H=R._minScrollX,E=R._maxScrollX,J=R._scrollsVertical,S=R._scrollsHorizontal,F=J?R._startClientY:R._startClientX,P=J?R._endClientY:R._endClientX,D=F-P,I=Math.abs(D),M=R._bb,Q,O,N,L;R._hm.detach();R._hme.detach();R._scrolledHalfway=R._snapToEdge=R._isDragging=false;R.lastScrolledAmt=D;if((S&&I>M.get("offsetWidth")/2)||(J&&I>M.get("offsetHeight")/2)){R._scrolledHalfway=true;R._scrolledForward=D>0;}if(J){L=R.get(p);O=m(L,G,C);}if(S){N=R.get(q);Q=m(N,H,E);}if(Q!==N||O!==L){this._snapToEdge=true;if(J){R.set(p,O);}if(S){R.set(q,Q);}}if(R._snapToEdge){return;}R.fire(B,{onGestureMoveEnd:true});return;},_afterScrollChange:function(D){var C=D.duration,F=D.easing,E=D.newVal;if(D.src!==k){if(D.attrName==q){this._uiScrollTo(E,null,C,F);}else{this._uiScrollTo(null,E,C,F);}}},_afterFlickChange:function(C){this._bindFlick(C.newVal);},_afterDisabledChange:function(C){this._cDisabled=C.newVal;},_afterDragChange:function(C){this._bindDrag(C.newVal);},_uiScrollTo:function(C,F,D,E){D=D||this._snapToEdge?400:0;E=E||this._snapToEdge?z.SNAP_EASING:null;this.scrollTo(C,F,D,E);},_afterDimChange:function(){this._uiDimensionsChange();},_getScrollDims:function(){var H,I=this.get(q),G=this.get(p),C=this.get(n),F=this.get(y),E,D=z._TRANSITION;if(g){C.setStyle(D.DURATION,s);C.setStyle(D.PROPERTY,A);}E=this._forceHWTransforms;this._forceHWTransforms=false;this._moveTo(C,0,0);H=[F.get("offsetWidth"),F.get("offsetHeight"),F.get("scrollWidth"),F.get("scrollHeight")];this._moveTo(C,-1*I,-1*G);this._forceHWTransforms=E;return H;},_uiDimensionsChange:function(){var D=this,I=D._bb,H=z.CLASS_NAMES,J=this._getScrollDims(),G=J[0],C=J[1],E=J[2],F=J[3];if(C&&F>C){D._scrollsVertical=true;D._maxScrollY=F-C;D._minScrollY=0;D._scrollHeight=F;D._height=C;I.addClass(H.vertical);}else{D._scrollsVertical=false;delete D._maxScrollY;delete D._minScrollY;delete D._scrollHeight;delete D._height;I.removeClass(H.vertical);}if(G&&E>G){D._scrollsHorizontal=true;D._maxScrollX=E-G;D._minScrollX=0;D._scrollWidth=E;D._width=G;I.addClass(H.horizontal);}else{D._scrollsHorizontal=false;delete D._maxScrollX;delete D._minScrollX;delete D._scrollWidth;delete D._width;I.removeClass(H.horizontal);}},_flick:function(E){var D=E.flick,C=this;if(!C._cDisabled){C._currentVelocity=D.velocity;C._flicking=true;C._cDecel=C.get("deceleration");C._cBounce=C.get("bounce");C._pastYEdge=false;C._pastXEdge=false;C._flickFrame();C.fire(l);}},_mousewheel:function(F){var E=this.get("scrollY"),C=this._cb,D=10,G=E-(F.wheelDelta*D);this.scrollTo(0,G); -if(this.scrollbars){this.scrollbars._update();this.scrollbars.flash();}F.preventDefault();},_flickFrame:function(){var L=this,O,D,G,C,E,H,M=L._scrollsVertical,J=L._scrollsHorizontal,I=L._cDecel,N=L._cBounce,K=L._currentVelocity,F=z.FRAME_STEP;if(M){D=L._maxScrollY;G=L._minScrollY;O=L.get(p)-(K*F);}if(J){E=L._maxScrollX;H=L._minScrollX;C=L.get(q)-(K*F);}K=L._currentVelocity=(K*I);if(Math.abs(K).toFixed(4)<=0.015){L._flicking=false;L._killTimer(!(L._pastYEdge||L._pastXEdge));if(M){if(OD){L._snapToEdge=true;L.set(p,D);}}}if(J){if(CE){L._snapToEdge=true;L.set(q,E);}}}return;}if(M){if(OD){L._pastYEdge=true;L._currentVelocity*=N;}L.set(p,O);}if(J){if(CE){L._pastXEdge=true;L._currentVelocity*=N;}L.set(q,C);}if(!L._flickTimer){L._flickTimer=d.later(F,L,"_flickFrame",null,true);}},_killTimer:function(D){var C=this;if(C._flickTimer){C._flickTimer.cancel();C._flickTimer=null;}if(D){C.fire(B);}},_setScroll:function(I,H){if(this._cDisabled){I=d.Attribute.INVALID_VALUE;}else{var E=this._cachedBounce||this.get(f),D=z.BOUNCE_RANGE,G=(H==v)?this._maxScrollX:this._maxScrollY,F=E?-D:0,C=E?G+D:G;if(!E||!this._isDragging){if(IC){I=C;}}}}return I;},_setScrollX:function(C){return this._setScroll(C,v);},_setScrollY:function(C){return this._setScroll(C,u);}},{NAME:"scrollview",ATTRS:{scrollY:{value:0,setter:"_setScrollY"},scrollX:{value:0,setter:"_setScrollX"},deceleration:{value:0.93},bounce:{value:0.1},flick:{value:{minDistance:10,minVelocity:0.3}},drag:{value:true}},CLASS_NAMES:w,UI_SRC:k,BOUNCE_RANGE:150,FRAME_STEP:30,EASING:"cubic-bezier(0, 0.1, 0, 1.0)",SNAP_EASING:"ease-out",_TRANSITION:{DURATION:e._VENDOR_PREFIX+"TransitionDuration",PROPERTY:e._VENDOR_PREFIX+"TransitionProperty"}});},"3.5.0",{requires:["widget","event-gestures","event-mousewheel","transition"],skinnable:true}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/test/test-min.js b/lib/yui/3.5.0/build/test/test-min.js deleted file mode 100644 index 7ba96edf434..00000000000 --- a/lib/yui/3.5.0/build/test/test-min.js +++ /dev/null @@ -1,12 +0,0 @@ -/* -YUI 3.5.0 (build 5089) -Copyright 2012 Yahoo! Inc. All rights reserved. -Licensed under the BSD License. -http://yuilibrary.com/license/ -*/ -YUI.add("test",function(e){var d={version:"3.5.0"};e.namespace("Test");d.Object=e.Object;d.Array=e.Array;d.Util={mix:e.mix,JSON:e.JSON};d.EventTarget=function(){this._handlers={};};d.EventTarget.prototype={constructor:d.EventTarget,attach:function(f,g){if(typeof this._handlers[f]=="undefined"){this._handlers[f]=[];}this._handlers[f].push(g);},subscribe:function(f,g){this.attach.apply(this,arguments);},fire:function(j){if(typeof j=="string"){j={type:j};}if(!j.target){j.target=this;}if(!j.type){throw new Error("Event object missing 'type' property.");}if(this._handlers[j.type] instanceof Array){var g=this._handlers[j.type];for(var h=0,f=g.length;h"'&]/g,function(h){switch(h){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&";}});}return{JSON:function(g){return d.Util.JSON.stringify(g);},XML:function(h){function g(j){var i="<"+j.type+' name="'+f(j.name)+'"';if(typeof(j.duration)=="number"){i+=' duration="'+j.duration+'"';}if(j.type=="test"){i+=' result="'+j.result+'" message="'+f(j.message)+'">';}else{i+=' passed="'+j.passed+'" failed="'+j.failed+'" ignored="'+j.ignored+'" total="'+j.total+'">';for(var k in j){if(j.hasOwnProperty(k)){if(j[k]&&typeof j[k]=="object"&&!(j[k] instanceof Array)){i+=g(j[k]);}}}}i+="";return i;}return''+g(h);},JUnitXML:function(g){function h(j){var i="";switch(j.type){case"test":if(j.result!="ignore"){i='';if(j.result=="fail"){i+='";}i+="";}break;case"testcase":i='';for(var k in j){if(j.hasOwnProperty(k)){if(j[k]&&typeof j[k]=="object"&&!(j[k] instanceof Array)){i+=h(j[k]);}}}i+="";break;case"testsuite":for(var k in j){if(j.hasOwnProperty(k)){if(j[k]&&typeof j[k]=="object"&&!(j[k] instanceof Array)){i+=h(j[k]);}}}break;case"report":i="";for(var k in j){if(j.hasOwnProperty(k)){if(j[k]&&typeof j[k]=="object"&&!(j[k] instanceof Array)){i+=h(j[k]);}}}i+="";}return i;}return''+h(g);},TAP:function(h){var i=1;function g(j){var k="";switch(j.type){case"test":if(j.result!="ignore"){k="ok "+(i++)+" - "+j.name;if(j.result=="fail"){k="not "+k+" - "+j.message;}k+="\n";}else{k="#Ignored test "+j.name+"\n";}break;case"testcase":k="#Begin testcase "+j.name+"("+j.failed+" failed of "+j.total+")\n";for(var l in j){if(j.hasOwnProperty(l)){if(j[l]&&typeof j[l]=="object"&&!(j[l] instanceof Array)){k+=g(j[l]);}}}k+="#End testcase "+j.name+"\n";break;case"testsuite":k="#Begin testsuite "+j.name+"("+j.failed+" failed of "+j.total+")\n";for(var l in j){if(j.hasOwnProperty(l)){if(j[l]&&typeof j[l]=="object"&&!(j[l] instanceof Array)){k+=g(j[l]);}}}k+="#End testsuite "+j.name+"\n";break;case"report":for(var l in j){if(j.hasOwnProperty(l)){if(j[l]&&typeof j[l]=="object"&&!(j[l] instanceof Array)){k+=g(j[l]);}}}}return k;}return"1.."+h.total+"\n"+g(h);}};}();d.Reporter=function(f,g){this.url=f;this.format=g||d.TestFormat.XML;this._fields=new Object();this._form=null;this._iframe=null;};d.Reporter.prototype={constructor:d.Reporter,addField:function(f,g){this._fields[f]=g;},clearFields:function(){this._fields=new Object();},destroy:function(){if(this._form){this._form.parentNode.removeChild(this._form);this._form=null;}if(this._iframe){this._iframe.parentNode.removeChild(this._iframe);this._iframe=null;}this._fields=null;},report:function(h){if(!this._form){this._form=document.createElement("form");this._form.method="post";this._form.style.visibility="hidden";this._form.style.position="absolute";this._form.style.top=0;document.body.appendChild(this._form);try{this._iframe=document.createElement('',PAGE_HTML:'{TITLE}{META}{LINKED_CSS}{EXTRA_CSS}{CONTENT}',getDocType:function(){var e=d.config.doc.doctype,f=a.DOC_TYPE;if(e){f="";}else{if(d.config.doc.all){e=d.config.doc.all[0];if(e.nodeType){if(e.nodeType===8){if(e.nodeValue){if(e.nodeValue.toLowerCase().indexOf("doctype")!==-1){f="";}}}}}}return f;},DOC_TYPE:'',META:'',NAME:"frame",ATTRS:{title:{value:"Blank Page"},dir:{value:"ltr"},lang:{value:"en-US"},src:{value:"javascript"+((d.UA.ie)?":false":":")+";"},designMode:{writeOnce:true,value:false},content:{value:"
",setter:"_setHTML",getter:"_getHTML"},basehref:{value:false,getter:"_resolveBaseHref"},use:{writeOnce:true,value:["substitute","node","node-style","selector-css3"]},container:{value:"body",setter:function(e){return d.one(e);}},node:{readOnly:true,value:null,getter:function(){return this._iframe;}},id:{writeOnce:true,getter:function(e){if(!e){e="iframe-"+d.guid();}return e;}},linkedcss:{value:"",getter:"_getLinkedCSS",setter:"_setLinkedCSS"},extracss:{value:"",setter:"_setExtraCSS"},host:{value:false},defaultblock:{value:"p"}}});d.Frame=a;},"3.5.0",{skinnable:false,requires:["base","node","selector-css3","substitute","yui-throttle"]}); \ No newline at end of file +if(d.Lang.isFunction(f[f.length-1])){e=f.pop();}if(e){f.push(function(){e.apply(g,arguments);});}g.__use.apply(g,f);},delegate:function(g,f,e,i){var h=this.getInstance();if(!h){return false;}if(!i){i=e;e="body";}return h.delegate(g,f,e,i);},getInstance:function(){return this._instance;},render:function(e){if(this._rendered){return this;}this._rendered=true;if(e){this.set("container",e);}this._create(d.bind(function(i){var k,l,f=d.bind(function(m){this._instanceLoaded(m);},this),h=d.clone(this.get("use")),g={debug:false,win:i.win,doc:i.doc},j=d.bind(function(){g=this._resolveWinDoc(g);k=YUI(g);k.host=this.get("host");try{k.use("node-base",f);if(l){clearInterval(l);}}catch(m){l=setInterval(function(){j();},350);}},this);h.push(j);d.use.apply(d,h);},this));return this;},_handleFocus:function(){var h=this.getInstance(),g=new h.EditorSelection();if(g.anchorNode){var j=g.anchorNode,i;if(j.test("p")&&j.get("innerHTML")===""){j=j.get("parentNode");}i=j.get("childNodes");if(i.size()){if(i.item(0).test("br")){g.selectNode(j,true,false);}else{if(i.item(0).test("p")){j=i.item(0).one("br.yui-cursor");if(j){j=j.get("parentNode");}if(!j){j=i.item(0).get("firstChild");}if(!j){j=i.item(0);}if(j){g.selectNode(j,true,false);}}else{var e=h.one("br.yui-cursor");if(e){var f=e.get("parentNode");if(f){g.selectNode(f,true,false);}}}}}}},focus:function(e){if(d.UA.ie&&d.UA.ie<9){try{d.one("win").focus();if(this.getInstance()){if(this.getInstance().one("win")){this.getInstance().one("win").focus();}}}catch(g){}if(e===true){this._handleFocus();}if(d.Lang.isFunction(e)){e();}}else{try{d.one("win").focus();d.later(100,this,function(){if(this.getInstance()){if(this.getInstance().one("win")){this.getInstance().one("win").focus();}}if(e===true){this._handleFocus();}if(d.Lang.isFunction(e)){e();}});}catch(f){}}return this;},show:function(){this._iframe.setStyles({position:"static",left:""});if(d.UA.gecko){try{if(this.getInstance()){this.getInstance().config.doc.designMode="on";}}catch(f){}this.focus();}return this;},hide:function(){this._iframe.setStyles({position:"absolute",left:"-999999px"});return this;}},{THROTTLE_TIME:100,DOM_EVENTS:{dblclick:1,click:1,paste:1,mouseup:1,mousedown:1,keyup:1,keydown:1,keypress:1,activate:1,deactivate:1,beforedeactivate:1,focusin:1,focusout:1},DEFAULT_CSS:"body { background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } img { cursor: pointer !important; border: none; }",HTML:'',PAGE_HTML:'{TITLE}{META}{LINKED_CSS}{EXTRA_CSS}{CONTENT}',getDocType:function(){var e=d.config.doc.doctype,f=a.DOC_TYPE;if(e){f="";}else{if(d.config.doc.all){e=d.config.doc.all[0];if(e.nodeType){if(e.nodeType===8){if(e.nodeValue){if(e.nodeValue.toLowerCase().indexOf("doctype")!==-1){f="";}}}}}}return f;},DOC_TYPE:'',META:'',NAME:"frame",ATTRS:{title:{value:"Blank Page"},dir:{value:"ltr"},lang:{value:"en-US"},src:{value:"javascript"+((d.UA.ie)?":false":":")+";"},designMode:{writeOnce:true,value:false},content:{value:"
",setter:"_setHTML",getter:"_getHTML"},basehref:{value:false,getter:"_resolveBaseHref"},use:{writeOnce:true,value:["substitute","node","node-style","selector-css3"]},container:{value:"body",setter:function(e){return d.one(e);}},node:{readOnly:true,value:null,getter:function(){return this._iframe;}},id:{writeOnce:true,getter:function(e){if(!e){e="iframe-"+d.guid();}return e;}},linkedcss:{value:"",getter:"_getLinkedCSS",setter:"_setLinkedCSS"},extracss:{value:"",setter:"_setExtraCSS"},host:{value:false},defaultblock:{value:"p"}}});d.Frame=a;},"3.5.1",{skinnable:false,requires:["base","node","selector-css3","substitute","yui-throttle"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/frame/frame.js b/lib/yui/3.5.1/build/frame/frame.js similarity index 99% rename from lib/yui/3.5.0/build/frame/frame.js rename to lib/yui/3.5.1/build/frame/frame.js index 76b1c53b9d2..087ec634c6e 100644 --- a/lib/yui/3.5.0/build/frame/frame.js +++ b/lib/yui/3.5.1/build/frame/frame.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -1005,4 +1005,4 @@ YUI.add('frame', function(Y) { -}, '3.5.0' ,{skinnable:false, requires:['base', 'node', 'selector-css3', 'substitute', 'yui-throttle']}); +}, '3.5.1' ,{skinnable:false, requires:['base', 'node', 'selector-css3', 'substitute', 'yui-throttle']}); diff --git a/lib/yui/3.5.0/build/get-nodejs/get-debug.js b/lib/yui/3.5.1/build/get-nodejs/get-debug.js similarity index 99% rename from lib/yui/3.5.0/build/get-nodejs/get-debug.js rename to lib/yui/3.5.1/build/get-nodejs/get-debug.js index 9c509eb55f1..dfdc74485f6 100644 --- a/lib/yui/3.5.0/build/get-nodejs/get-debug.js +++ b/lib/yui/3.5.1/build/get-nodejs/get-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -205,4 +205,4 @@ YUI.add('get', function(Y) { -}, '3.5.0' ,{requires:['yui-base']}); +}, '3.5.1' ,{requires:['yui-base']}); diff --git a/lib/yui/3.5.0/build/get-nodejs/get-min.js b/lib/yui/3.5.1/build/get-nodejs/get-min.js similarity index 95% rename from lib/yui/3.5.0/build/get-nodejs/get-min.js rename to lib/yui/3.5.1/build/get-nodejs/get-min.js index 11a6e9a135b..f6fd5aa1fe3 100644 --- a/lib/yui/3.5.0/build/get-nodejs/get-min.js +++ b/lib/yui/3.5.1/build/get-nodejs/get-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("get",function(a){var i=require("path"),b=require("vm"),f=require("fs"),e=require("request");a.Get=function(){};a.config.base=i.join(__dirname,"../");YUI.require=require;YUI.process=process;var h=function(j){return j.replace(/\\/g,"\\\\");};a.Get._exec=function(p,l,j){var o=h(i.dirname(l));var q=h(l);if(o.match(/^https?:\/\//)){o=".";q="remoteResource";}var m="(function(YUI) { var __dirname = '"+o+"'; "+"var __filename = '"+q+"'; "+"var process = YUI.process;"+"var require = function(file) {"+" if (file.indexOf('./') === 0) {"+" file = __dirname + file.replace('./', '/'); }"+" return YUI.require(file); }; "+p+" ;return YUI; })";var k=b.createScript(m,l);var n=k.runInThisContext(m);YUI=n(YUI);j(null,l);};a.Get._include=function(m,j){var l=this;if(m.match(/^https?:\/\//)){var k={url:m,timeout:l.timeout};e(k,function(q,p,o){if(q){j(q,m);}else{a.Get._exec(o,m,j);}});}else{if(a.config.useSync){if(i.existsSync(m)){var n=f.readFileSync(m,"utf8");a.Get._exec(n,m,j);}else{j("Path does not exist: "+m,m);}}else{f.readFile(m,"utf8",function(p,o){if(p){j(p,m);}else{a.Get._exec(o,m,j);}});}}};var d=function(k,l,j){if(a.Lang.isFunction(k.onEnd)){k.onEnd.call(a,l,j);}},g=function(j){if(a.Lang.isFunction(j.onSuccess)){j.onSuccess.call(a,j);}d(j,"success","success");},c=function(j,k){if(a.Lang.isFunction(j.onFailure)){j.onFailure.call(a,k,j);}d(j,k,"fail");};a.Get.js=function(t,u){var m=a.Array,r=this,q=m(t),j,o,n=q.length,p=0,k=function(){if(p===n){g(u);}};for(o=0;o= 9 || ua.webkit >= 535.24, + cssFail: ua.gecko >= 9 || ua.compareVersions(ua.webkit, 535.24) >= 0, // True if this browser fires an event when a dynamically injected // link node finishes loading. This is currently true for IE, Opera, @@ -545,8 +545,10 @@ Y.Get = Get = { // DOM 0 "onload" event, but not "load". All versions of IE fire // "onload". // davglass: Seems that Chrome on Android needs this to be false. - cssLoad: ((!ua.gecko && !ua.webkit) || - ua.gecko >= 9 || ua.webkit >= 535.24) && !(ua.chrome && ua.chrome <=18), + cssLoad: ( + (!ua.gecko && !ua.webkit) || ua.gecko >= 9 || + ua.compareVersions(ua.webkit, 535.24) >= 0 + ) && !(ua.chrome && ua.chrome <= 18), // True if this browser preserves script execution order while // loading scripts in parallel as long as the script node's `async` @@ -1269,4 +1271,4 @@ Transaction.prototype = { }; -}, '3.5.0' ,{requires:['yui-base']}); +}, '3.5.1' ,{requires:['yui-base']}); diff --git a/lib/yui/3.5.1/build/get/get-min.js b/lib/yui/3.5.1/build/get/get-min.js new file mode 100644 index 00000000000..78efddd967b --- /dev/null +++ b/lib/yui/3.5.1/build/get/get-min.js @@ -0,0 +1,8 @@ +/* +YUI 3.5.1 (build 22) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("get",function(d){var c=d.Lang,b,e,a;d.Get=e={cssOptions:{attributes:{rel:"stylesheet"},doc:d.config.linkDoc||d.config.doc,pollInterval:50},jsOptions:{autopurge:true,doc:d.config.scriptDoc||d.config.doc},options:{attributes:{charset:"utf-8"},purgethreshold:20},REGEX_CSS:/\.css(?:[?;].*)?$/i,REGEX_JS:/\.js(?:[?;].*)?$/i,_insertCache:{},_pending:null,_purgeNodes:[],_queue:[],abort:function(k){var g,l,h,f,j;if(!k.abort){l=k;j=this._pending;k=null;if(j&&j.transaction.id===l){k=j.transaction;this._pending=null;}else{for(g=0,f=this._queue.length;g=f){this._purge(this._purgeNodes);}},_getEnv:function(){var g=d.config.doc,f=d.UA;return(this._env={async:g&&g.createElement("script").async===true,cssFail:f.gecko>=9||f.compareVersions(f.webkit,535.24)>=0,cssLoad:((!f.gecko&&!f.webkit)||f.gecko>=9||f.compareVersions(f.webkit,535.24)>=0)&&!(f.chrome&&f.chrome<=18),preservesScriptOrder:!!(f.gecko||f.opera)});},_getTransaction:function(l,h){var m=[],j,f,k,g;if(!c.isArray(l)){l=[l];}h=d.merge(this.options,h);h.attributes=d.merge(this.options.attributes,h.attributes);for(j=0,f=l.length;j-1){h.splice(g,1);}}}}};e.script=e.js;e.Transaction=a=function(h,g){var f=this;f.id=a._lastId+=1;f.data=g.data;f.errors=[];f.nodes=[];f.options=g;f.requests=h;f._callbacks=[];f._queue=[];f._waiting=0;f.tId=f.id;f.win=g.win||d.config.win;};a._lastId=0;a.prototype={_state:"new",abort:function(f){this._pending=null;this._pendingCSS=null;this._pollTimer=clearTimeout(this._pollTimer);this._queue=[];this._waiting=0;this.errors.push({error:f||"Aborted"});this._finish();},execute:function(n){var h=this,m=h.requests,l=h._state,j,g,f,k;if(l==="done"){n&&n(h.errors.length?h.errors:null,h);return;}else{n&&h._callbacks.push(n);if(l==="executing"){return;}}h._state="executing";h._queue=f=[];if(h.options.timeout){h._timeout=setTimeout(function(){h.abort("Timeout");},h.options.timeout);}for(j=0,g=m.length;j=0){if(k[g].href===p){r.splice(h,1);h-=1;q._progress(null,o);break;}}}else{try{f=!!o.node.sheet.cssRules;r.splice(h,1);h-=1;q._progress(null,o);}catch(m){}}}if(r.length){q._pollTimer=setTimeout(function(){q._poll.call(q);},q.options.pollInterval);}},_progress:function(h,g){var f=this.options;if(h){g.error=h;this.errors.push({error:h,request:g});}g.node._yuiget_finished=g.finished=true;if(f.onProgress){f.onProgress.call(f.context||this,this._getEventData(g));}if(g.autopurge){e._autoPurge(this.options.purgethreshold);e._purgeNodes.push(g.node);}if(this._pending===g){this._pending=null;}this._waiting-=1;this._next();}};},"3.5.1",{requires:["yui-base"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/get/get.js b/lib/yui/3.5.1/build/get/get.js similarity index 99% rename from lib/yui/3.5.0/build/get/get.js rename to lib/yui/3.5.1/build/get/get.js index 592b58c63e8..09b50e28849 100644 --- a/lib/yui/3.5.0/build/get/get.js +++ b/lib/yui/3.5.1/build/get/get.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -525,7 +525,7 @@ Y.Get = Get = { // True if this browser fires an event when a dynamically injected // link node fails to load. This is currently true for Firefox 9+ // and WebKit 535.24+. - cssFail: ua.gecko >= 9 || ua.webkit >= 535.24, + cssFail: ua.gecko >= 9 || ua.compareVersions(ua.webkit, 535.24) >= 0, // True if this browser fires an event when a dynamically injected // link node finishes loading. This is currently true for IE, Opera, @@ -533,8 +533,10 @@ Y.Get = Get = { // DOM 0 "onload" event, but not "load". All versions of IE fire // "onload". // davglass: Seems that Chrome on Android needs this to be false. - cssLoad: ((!ua.gecko && !ua.webkit) || - ua.gecko >= 9 || ua.webkit >= 535.24) && !(ua.chrome && ua.chrome <=18), + cssLoad: ( + (!ua.gecko && !ua.webkit) || ua.gecko >= 9 || + ua.compareVersions(ua.webkit, 535.24) >= 0 + ) && !(ua.chrome && ua.chrome <= 18), // True if this browser preserves script execution order while // loading scripts in parallel as long as the script node's `async` @@ -1252,4 +1254,4 @@ Transaction.prototype = { }; -}, '3.5.0' ,{requires:['yui-base']}); +}, '3.5.1' ,{requires:['yui-base']}); diff --git a/lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default-debug.js b/lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default-debug.js similarity index 86% rename from lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default-debug.js rename to lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default-debug.js index b125ce59558..7edf8c398bc 100644 --- a/lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default-debug.js +++ b/lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -15,4 +15,4 @@ Y.Path = Y.CanvasPath; Y.Drawing = Y.CanvasDrawing; -}, '3.5.0' ,{skinnable:false}); +}, '3.5.1' ,{skinnable:false}); diff --git a/lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default-min.js b/lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default-min.js similarity index 81% rename from lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default-min.js rename to lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default-min.js index bcc215eb044..476e45e61fb 100644 --- a/lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default-min.js +++ b/lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("graphics-canvas-default",function(a){a.Graphic=a.CanvasGraphic;a.Shape=a.CanvasShape;a.Circle=a.CanvasCircle;a.Rect=a.CanvasRect;a.Ellipse=a.CanvasEllipse;a.Path=a.CanvasPath;a.Drawing=a.CanvasDrawing;},"3.5.0",{skinnable:false}); \ No newline at end of file +YUI.add("graphics-canvas-default",function(a){a.Graphic=a.CanvasGraphic;a.Shape=a.CanvasShape;a.Circle=a.CanvasCircle;a.Rect=a.CanvasRect;a.Ellipse=a.CanvasEllipse;a.Path=a.CanvasPath;a.Drawing=a.CanvasDrawing;},"3.5.1",{skinnable:false}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default.js b/lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default.js similarity index 86% rename from lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default.js rename to lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default.js index b125ce59558..7edf8c398bc 100644 --- a/lib/yui/3.5.0/build/graphics-canvas-default/graphics-canvas-default.js +++ b/lib/yui/3.5.1/build/graphics-canvas-default/graphics-canvas-default.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -15,4 +15,4 @@ Y.Path = Y.CanvasPath; Y.Drawing = Y.CanvasDrawing; -}, '3.5.0' ,{skinnable:false}); +}, '3.5.1' ,{skinnable:false}); diff --git a/lib/yui/3.5.0/build/graphics-canvas/graphics-canvas-debug.js b/lib/yui/3.5.1/build/graphics-canvas/graphics-canvas-debug.js similarity index 99% rename from lib/yui/3.5.0/build/graphics-canvas/graphics-canvas-debug.js rename to lib/yui/3.5.1/build/graphics-canvas/graphics-canvas-debug.js index edf60d83c93..54425ddba30 100644 --- a/lib/yui/3.5.0/build/graphics-canvas/graphics-canvas-debug.js +++ b/lib/yui/3.5.1/build/graphics-canvas/graphics-canvas-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -535,7 +535,7 @@ CanvasDrawing.prototype = { y = 0, w = this.get("width"), h = this.get("height"), - r = fill.rotation, + r = fill.rotation || 0, x1, x2, y1, y2, cx = x + w/2, cy = y + h/2, @@ -1659,10 +1659,6 @@ CanvasShape.ATTRS = { this.matrix.init(); this._transforms = this.matrix.getTransformArray(val); this._transform = val; - if(this.initialized) - { - this._updateTransform(); - } return val; }, @@ -2964,4 +2960,4 @@ Y.extend(CanvasGraphic, Y.GraphicBase, { Y.CanvasGraphic = CanvasGraphic; -}, '3.5.0' ,{skinnable:false, requires:['graphics']}); +}, '3.5.1' ,{skinnable:false, requires:['graphics']}); diff --git a/lib/yui/3.5.0/build/graphics-canvas/graphics-canvas-min.js b/lib/yui/3.5.1/build/graphics-canvas/graphics-canvas-min.js similarity index 60% rename from lib/yui/3.5.0/build/graphics-canvas/graphics-canvas-min.js rename to lib/yui/3.5.1/build/graphics-canvas/graphics-canvas-min.js index e2bfde39203..faae3e0b485 100644 --- a/lib/yui/3.5.0/build/graphics-canvas/graphics-canvas-min.js +++ b/lib/yui/3.5.1/build/graphics-canvas/graphics-canvas-min.js @@ -1,10 +1,10 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("graphics-canvas",function(c){var q="canvasShape",e=c.config.doc,s=c.Lang,k=c.AttributeLite,l,n,t,o,i,f,h=c.Color,p=parseInt,g=parseFloat,m=s.isNumber,j=RegExp,r=h.toRGB,a=h.toHex;function b(){}b.prototype={_toRGBA:function(v,u){u=(u!==undefined)?u:1;if(!h.re_RGB.test(v)){v=a(v);}if(h.re_hex.exec(v)){v="rgba("+[p(j.$1,16),p(j.$2,16),p(j.$3,16)].join(",")+","+u+")";}return v;},_toRGB:function(u){return r(u);},setSize:function(u,v){if(this.get("autoSize")){if(u>this.node.getAttribute("width")){this.node.style.width=u+"px";this.node.setAttribute("width",u);}if(v>this.node.getAttribute("height")){this.node.style.height=v+"px";this.node.setAttribute("height",v);}}},_updateCoords:function(u,v){this._xcoords.push(u);this._ycoords.push(v);},_clearAndUpdateCoords:function(){var u=this._xcoords.pop()||0,v=this._ycoords.pop()||0;this._updateCoords(u,v);},_updateNodePosition:function(){var v=this.get("node"),u=this.get("x"),w=this.get("y");v.style.position="absolute";v.style.left=(u+this._left)+"px";v.style.top=(w+this._top)+"px";},_updateDrawingQueue:function(u){this._methods.push(u);},lineTo:function(D,B,u){var A=arguments,v=0,z,E,C,w=this._stroke&&this._strokeWeight?this._strokeWeight:0;if(!this._lineToMethods){this._lineToMethods=[];}if(typeof D==="string"||typeof D==="number"){A=[[D,B]];}z=A.length;for(;v360){C=360;}I=Math.ceil(Math.abs(C)/45);H=C/I;B=-(H/180)*Math.PI;N=(J/180)*Math.PI;if(I>0){G=F+Math.cos(J/180*Math.PI)*w;E=D+Math.sin(J/180*Math.PI)*z;this.lineTo(G,E);for(;K=R/2){if(L<180){B=G;z=G+R;}else{B=G+R;z=G;}T=A-((v-B)/K);S=A-((v-z)/K);}else{if(L>90&&L<270){T=H+I;S=H;}else{T=H;S=H+I;}B=((K*(A-T))-v)*-1;z=((K*(A-S))-v)*-1;}u=this._context.createLinearGradient(T,B,S,z);for(;Pthis.node.getAttribute("width")){this.node.style.width=u+"px";this.node.setAttribute("width",u);}if(v>this.node.getAttribute("height")){this.node.style.height=v+"px";this.node.setAttribute("height",v);}}},_updateCoords:function(u,v){this._xcoords.push(u);this._ycoords.push(v);},_clearAndUpdateCoords:function(){var u=this._xcoords.pop()||0,v=this._ycoords.pop()||0;this._updateCoords(u,v);},_updateNodePosition:function(){var v=this.get("node"),u=this.get("x"),w=this.get("y");v.style.position="absolute";v.style.left=(u+this._left)+"px";v.style.top=(w+this._top)+"px";},_updateDrawingQueue:function(u){this._methods.push(u);},lineTo:function(D,B,u){var A=arguments,v=0,z,E,C,w=this._stroke&&this._strokeWeight?this._strokeWeight:0;if(!this._lineToMethods){this._lineToMethods=[];}if(typeof D==="string"||typeof D==="number"){A=[[D,B]];}z=A.length;for(;v360){C=360;}I=Math.ceil(Math.abs(C)/45);H=C/I;B=-(H/180)*Math.PI;N=(J/180)*Math.PI;if(I>0){G=F+Math.cos(J/180*Math.PI)*w;E=D+Math.sin(J/180*Math.PI)*z;this.lineTo(G,E);for(;K=R/2){if(L<180){B=G;z=G+R;}else{B=G+R;z=G;}T=A-((v-B)/K);S=A-((v-z)/K);}else{if(L>90&&L<270){T=H+I;S=H;}else{T=H;S=H+I;}B=((K*(A-T))-v)*-1;z=((K*(A-S))-v)*-1;}u=this._context.createLinearGradient(T,B,S,z);for(;P=R){H=Z/R;if(H===1){H=1.01;}L=(X-Q)/H;Y=(B-u)/H;L=L>0?Math.floor(L):Math.ceil(L);Y=Y>0?Math.floor(Y):Math.ceil(Y);X=Q+L;B=u+Y;}if(N>=0.5){v=this._context.createRadialGradient(X,B,N,U,A,N*K);z=1;}else{v=this._context.createRadialGradient(X,B,N,U,A,K/2);z=N*2;}for(;Tthis._right){this._right=u;}if(uthis._bottom){this._bottom=v;}this._width=this._right-this._left;this._height=this._bottom-this._top;}};c.CanvasDrawing=b;l=function(u){this._transforms=[];this.matrix=new c.Matrix();l.superclass.constructor.apply(this,arguments);};l.NAME="canvasShape";c.extend(l,c.GraphicBase,c.mix({init:function(){this.initializer.apply(this,arguments);},initializer:function(u){var v=this,w=u.graphic;v._initProps();v.createNode();v._xcoords=[0];v._ycoords=[0];if(w){this._setGraphic(w);}v._updateHandler();},_setGraphic:function(u){var v;if(u instanceof c.CanvasGraphic){this._graphic=u;}else{u=c.one(u);v=new c.CanvasGraphic({render:u});v._appendShape(this);this._graphic=v;}},addClass:function(u){var v=c.one(this.get("node"));v.addClass(u);},removeClass:function(u){var v=c.one(this.get("node"));v.removeClass(u);},getXY:function(){var z=this.get("graphic"),v=z.getXY(),u=this.get("x"),w=this.get("y");return[v[0]+u,v[1]+w];},setXY:function(w){var A=this.get("graphic"),v=A.getXY(),u=w[0]-v[0],z=w[1]-v[1];this._set("x",u);this._set("y",z);this._updateNodePosition(u,z);},contains:function(u){return u===c.one(this.node);},test:function(u){return c.one(this.get("node")).test(u);},compareTo:function(u){var v=this.node;return v===u;},_getDefaultFill:function(){return{type:"solid",cx:0.5,cy:0.5,fx:0.5,fy:0.5,r:0.5};},_getDefaultStroke:function(){return{weight:1,dashstyle:"none",color:"#000",opacity:1};},_left:0,_right:0,_top:0,_bottom:0,createNode:function(){var u=c.config.doc.createElement("canvas"),v=this.get("id");this._context=u.getContext("2d");u.setAttribute("overflow","visible");u.style.overflow="visible";if(!this.get("visible")){u.style.visibility="hidden";}u.setAttribute("id",v);v="#"+v;this.node=u;this.addClass("yui3-"+q+" yui3-"+this.name);},on:function(v,u){if(c.Node.DOM_EVENTS[v]){return c.one("#"+this.get("id")).on(v,u);}return c.on.apply(this,arguments);},_setStrokeProps:function(A){var v=A.color,z=g(A.weight),y=g(A.opacity),x=A.linejoin||"round",w=A.linecap||"butt",u=A.dashstyle;this._miterlimit=null;this._dashstyle=(u&&c.Lang.isArray(u)&&u.length>1)?u:null;this._strokeWeight=z;if(m(z)&&z>0){this._stroke=1;}else{this._stroke=0;}if(m(y)){this._strokeStyle=this._toRGBA(v,y);}else{this._strokeStyle=v;}this._linecap=w;if(x=="round"||x=="square"){this._linejoin=x;}else{x=parseInt(x,10);if(m(x)){this._miterlimit=Math.max(x,1);this._linejoin="miter";}}},set:function(){var u=this,v=arguments[0];k.prototype.set.apply(u,arguments);if(u.initialized){u._updateHandler();}},_setFillProps:function(y){var w=m,u=y.color,v,x=y.type;if(x=="linear"||x=="radial"){this._fillType=x;}else{if(u){v=y.opacity;if(w(v)){v=Math.max(0,Math.min(1,v));u=this._toRGBA(u,v);}else{u=r(u);}this._fillColor=u;this._fillType="solid";}else{this._fillColor=null;}}},translate:function(u,v){this._translateX+=u;this._translateY+=v;this._addTransform("translate",arguments);},translateX:function(u){this._translateX+=u;this._addTransform("translateX",arguments);},translateY:function(u){this._translateY+=u;this._addTransform("translateY",arguments);},skew:function(u,v){this._addTransform("skew",arguments);},skewX:function(u){this._addTransform("skewX",arguments);},skewY:function(u){this._addTransform("skewY",arguments);},rotate:function(u){this._rotation=u;this._addTransform("rotate",arguments);},scale:function(u,v){this._addTransform("scale",arguments);},_rotation:0,_transform:"",_addTransform:function(v,u){u=c.Array(u);this._transform=s.trim(this._transform+" "+v+"("+u.join(", ")+")");u.unshift(v);this._transforms.push(u);if(this.initialized){this._updateTransform();}},_updateTransform:function(){var A=this.node,z,x,w=this.get("transformOrigin"),v=this.matrix,y=0,u=this._transforms.length;if(this._transforms&&this._transforms.length>0){for(;y0){u=F.shift();if(u){if(u=="closePath"){this._strokeAndFill(v);}if(u&&u=="lineTo"&&this._dashstyle){F.unshift(this._xcoords[C]-this._left,this._ycoords[C]-this._top); -this._drawDashedLine.apply(this,F);}else{v[u].apply(v,F);}}}}this._strokeAndFill(v);this._drawingComplete=true;this._clearAndUpdateCoords();this._updateNodePosition();this._methods=x;}},_strokeAndFill:function(u){if(this._fillType){if(this._fillType=="linear"){u.fillStyle=this._getLinearGradient();}else{if(this._fillType=="radial"){u.fillStyle=this._getRadialGradient();}else{u.fillStyle=this._fillColor;}}u.closePath();u.fill();}if(this._stroke){if(this._strokeWeight){u.lineWidth=this._strokeWeight;}u.lineCap=this._linecap;u.lineJoin=this._linejoin;if(this._miterlimit){u.miterLimit=this._miterlimit;}u.strokeStyle=this._strokeStyle;u.stroke();}},_drawDashedLine:function(D,J,u,G){var v=this._context,H=this._dashstyle[0],F=this._dashstyle[1],x=H+F,A=u-D,E=G-J,I=Math.sqrt(Math.pow(A,2)+Math.pow(E,2)),y=Math.floor(Math.abs(I/x)),w=Math.atan2(E,A),C=D,B=J,z;A=Math.cos(w)*x;E=Math.sin(w)*x;for(z=0;zH){v.lineTo(C+Math.cos(w)*H,B+Math.sin(w)*H);}else{if(I>0){v.lineTo(C+Math.cos(w)*I,B+Math.sin(w)*I);}}v.moveTo(u,G);},clear:function(){this._initProps();if(this.node){this._context.clearRect(0,0,this.node.width,this.node.height);}return this;},getBounds:function(){var B=this.get("stroke"),z=this.get("width"),A=this.get("height"),v=this.get("x"),C=this.get("y"),u=0;if(B&&B.weight){u=B.weight;}z=(v+z+u)-(v-u);A=(C+A+u)-(C-u);v-=u;C-=u;return this.matrix.getContentRect(z,A,v,C);},destroy:function(){var u=this.get("graphic");if(u){u.removeShape(this);}else{this._destroy();}},_destroy:function(){if(this.node){c.one(this.node).remove(true);this._context=null;this.node=null;}}},c.CanvasDrawing.prototype));l.ATTRS={transformOrigin:{valueFn:function(){return[0.5,0.5];}},transform:{setter:function(u){this.matrix.init();this._transforms=this.matrix.getTransformArray(u);this._transform=u;if(this.initialized){this._updateTransform();}return u;},getter:function(){return this._transform;}},node:{readOnly:true,getter:function(){return this.node;}},id:{valueFn:function(){return c.guid();},setter:function(v){var u=this.node;if(u){u.setAttribute("id",v);}return v;}},width:{value:0},height:{value:0},x:{value:0},y:{value:0},visible:{value:true,setter:function(w){var v=this.get("node"),u=w?"visible":"hidden";if(v){v.style.visibility=u;}return w;}},fill:{valueFn:"_getDefaultFill",setter:function(w){var v,u=this.get("fill")||this._getDefaultFill();v=(w)?c.merge(u,w):null;if(v&&v.color){if(v.color===undefined||v.color=="none"){v.color=null;}}this._setFillProps(v);return v;}},stroke:{valueFn:"_getDefaultStroke",setter:function(w){var v=this.get("stroke")||this._getDefaultStroke(),u;if(w&&w.hasOwnProperty("weight")){u=parseInt(w.weight,10);if(!isNaN(u)){w.weight=u;}}w=(w)?c.merge(v,w):null;this._setStrokeProps(w);return w;}},autoSize:{value:false},pointerEvents:{value:"visiblePainted"},graphic:{readOnly:true,getter:function(){return this._graphic;}}};c.CanvasShape=l;n=function(u){n.superclass.constructor.apply(this,arguments);};n.NAME="canvasPath";c.extend(n,c.CanvasShape,{_type:"path",_draw:function(){this._closePath();},createNode:function(){var u=c.config.doc.createElement("canvas"),v=this.get("id");this._context=u.getContext("2d");u.setAttribute("overflow","visible");u.setAttribute("pointer-events","none");u.style.pointerEvents="none";u.style.overflow="visible";u.setAttribute("id",v);v="#"+v;this.node=u;this.addClass("yui3-"+q+" yui3-"+this.name);},end:function(){this._draw();}});n.ATTRS=c.merge(c.CanvasShape.ATTRS,{width:{getter:function(){var u=this._stroke&&this._strokeWeight?(this._strokeWeight*2):0;return this._width-u;},setter:function(u){this._width=u;return u;}},height:{getter:function(){var u=this._stroke&&this._strokeWeight?(this._strokeWeight*2):0;return this._height-u;},setter:function(u){this._height=u;return u;}},path:{readOnly:true,getter:function(){return this._path;}}});c.CanvasPath=n;t=function(){t.superclass.constructor.apply(this,arguments);};t.NAME="canvasRect";c.extend(t,c.CanvasShape,{_type:"rect",_draw:function(){var u=this.get("width"),v=this.get("height");this.clear();this.drawRect(0,0,u,v);this._closePath();}});t.ATTRS=c.CanvasShape.ATTRS;c.CanvasRect=t;o=function(u){o.superclass.constructor.apply(this,arguments);};o.NAME="canvasEllipse";c.extend(o,l,{_type:"ellipse",_draw:function(){var u=this.get("width"),v=this.get("height");this.clear();this.drawEllipse(0,0,u,v);this._closePath();}});o.ATTRS=l.ATTRS;c.CanvasEllipse=o;i=function(u){i.superclass.constructor.apply(this,arguments);};i.NAME="canvasCircle";c.extend(i,c.CanvasShape,{_type:"circle",_draw:function(){var u=this.get("radius");if(u){this.clear();this.drawCircle(0,0,u);this._closePath();}}});i.ATTRS=c.merge(c.CanvasShape.ATTRS,{width:{setter:function(u){this.set("radius",u/2);return u;},getter:function(){return this.get("radius")*2;}},height:{setter:function(u){this.set("radius",u/2);return u;},getter:function(){return this.get("radius")*2;}},radius:{lazyAdd:false}});c.CanvasCircle=i;f=function(){f.superclass.constructor.apply(this,arguments);};f.NAME="canvasPieSlice";c.extend(f,c.CanvasShape,{_type:"path",_draw:function(A){var v=this.get("cx"),B=this.get("cy"),z=this.get("startAngle"),w=this.get("arc"),u=this.get("radius");this.clear();this._left=v;this._right=u;this._top=B;this._bottom=u;this.drawWedge(v,B,z,w,u);this.end();}});f.ATTRS=c.mix({cx:{value:0},cy:{value:0},startAngle:{value:0},arc:{value:0},radius:{value:0}},c.CanvasShape.ATTRS);c.CanvasPieSlice=f;function d(u){d.superclass.constructor.apply(this,arguments);}d.NAME="canvasGraphic";d.ATTRS={render:{},id:{valueFn:function(){return c.guid();},setter:function(v){var u=this._node;if(u){u.setAttribute("id",v);}return v;}},shapes:{readOnly:true,getter:function(){return this._shapes;}},contentBounds:{readOnly:true,getter:function(){return this._contentBounds;}},node:{readOnly:true,getter:function(){return this._node;}},width:{setter:function(u){if(this._node){this._node.style.width=u+"px"; -}return u;}},height:{setter:function(u){if(this._node){this._node.style.height=u+"px";}return u;}},autoSize:{value:false},resizeDown:{getter:function(){return this._resizeDown;},setter:function(u){this._resizeDown=u;if(this._node){this._redraw();}return u;}},x:{getter:function(){return this._x;},setter:function(u){this._x=u;if(this._node){this._node.style.left=u+"px";}return u;}},y:{getter:function(){return this._y;},setter:function(u){this._y=u;if(this._node){this._node.style.top=u+"px";}return u;}},autoDraw:{value:true},visible:{value:true,setter:function(u){this._toggleVisible(u);return u;}}};c.extend(d,c.GraphicBase,{_x:0,_y:0,getXY:function(){var u=c.one(this._node),v;if(u){v=u.getXY();}return v;},_resizeDown:false,initializer:function(v){var y=this.get("render"),u=this.get("width")||0,x=this.get("height")||0;this._shapes={};this._redrawQueue={};this._contentBounds={left:0,top:0,right:0,bottom:0};this._node=e.createElement("div");this._node.style.position="absolute";this.set("width",u);this.set("height",x);if(y){this.render(y);}},render:function(y){var u=c.one(y),z=this._node,v=this.get("width")||parseInt(u.getComputedStyle("width"),10),x=this.get("height")||parseInt(u.getComputedStyle("height"),10);u=u||e.body;u.appendChild(z);z.style.display="block";z.style.position="absolute";z.style.left="0px";z.style.top="0px";this.set("width",v);this.set("height",x);this.parentNode=u;return this;},destroy:function(){this.removeAllShapes();if(this._node){this._removeChildren(this._node);c.one(this._node).destroy();}},addShape:function(u){u.graphic=this;var w=this._getShapeClass(u.type),v=new w(u);this._appendShape(v);return v;},_appendShape:function(v){var w=v.node,u=this._frag||this._node;if(this.get("autoDraw")){u.appendChild(w);}else{this._getDocFrag().appendChild(w);}},removeShape:function(u){if(!(u instanceof l)){if(s.isString(u)){u=this._shapes[u];}}if(u&&u instanceof l){u._destroy();delete this._shapes[u.get("id")];}if(this.get("autoDraw")){this._redraw();}return u;},removeAllShapes:function(){var u=this._shapes,v;for(v in u){if(u.hasOwnProperty(v)){u[v].destroy();}}this._shapes={};},_removeChildren:function(u){if(u&&u.hasChildNodes()){var v;while(u.firstChild){v=u.firstChild;this._removeChildren(v);u.removeChild(v);}}},_toggleVisible:function(x){var w,v=this._shapes,u=x?"visible":"hidden";if(v){for(w in v){if(v.hasOwnProperty(w)){v[w].set("visible",x);}}}this._node.style.visibility=u;},_getShapeClass:function(v){var u=this._shapeClass[v];if(u){return u;}return v;},_shapeClass:{circle:c.CanvasCircle,rect:c.CanvasRect,path:c.CanvasPath,ellipse:c.CanvasEllipse,pieslice:c.CanvasPieSlice},getShapeById:function(v){var u=this._shapes[v];return u;},batch:function(v){var u=this.get("autoDraw");this.set("autoDraw",false);v();this._redraw();this.set("autoDraw",u);},_getDocFrag:function(){if(!this._frag){this._frag=e.createDocumentFragment();}return this._frag;},_redraw:function(){var u=this.get("resizeDown")?this._getUpdatedContentBounds():this._contentBounds;if(this.get("autoSize")){this.set("width",u.right);this.set("height",u.bottom);}if(this._frag){this._node.appendChild(this._frag);this._frag=null;}},addToRedrawQueue:function(u){var w,v;this._shapes[u.get("id")]=u;if(!this.get("resizeDown")){w=u.getBounds();v=this._contentBounds;v.left=v.leftw.right?v.right:w.right;v.bottom=v.bottom>w.bottom?v.bottom:w.bottom;v.width=v.right-v.left;v.height=v.bottom-v.top;this._contentBounds=v;}if(this.get("autoDraw")){this._redraw();}},_getUpdatedContentBounds:function(){var y,w,v,u=this._shapes,x={left:0,top:0,right:0,bottom:0};for(w in u){if(u.hasOwnProperty(w)){v=u[w];y=v.getBounds();x.left=Math.min(x.left,y.left);x.top=Math.min(x.top,y.top);x.right=Math.max(x.right,y.right);x.bottom=Math.max(x.bottom,y.bottom);}}x.width=x.right-x.left;x.height=x.bottom-x.top;this._contentBounds=x;return x;}});c.CanvasGraphic=d;},"3.5.0",{skinnable:false,requires:["graphics"]}); \ No newline at end of file +this._drawDashedLine.apply(this,F);}else{v[u].apply(v,F);}}}}this._strokeAndFill(v);this._drawingComplete=true;this._clearAndUpdateCoords();this._updateNodePosition();this._methods=x;}},_strokeAndFill:function(u){if(this._fillType){if(this._fillType=="linear"){u.fillStyle=this._getLinearGradient();}else{if(this._fillType=="radial"){u.fillStyle=this._getRadialGradient();}else{u.fillStyle=this._fillColor;}}u.closePath();u.fill();}if(this._stroke){if(this._strokeWeight){u.lineWidth=this._strokeWeight;}u.lineCap=this._linecap;u.lineJoin=this._linejoin;if(this._miterlimit){u.miterLimit=this._miterlimit;}u.strokeStyle=this._strokeStyle;u.stroke();}},_drawDashedLine:function(D,J,u,G){var v=this._context,H=this._dashstyle[0],F=this._dashstyle[1],x=H+F,A=u-D,E=G-J,I=Math.sqrt(Math.pow(A,2)+Math.pow(E,2)),y=Math.floor(Math.abs(I/x)),w=Math.atan2(E,A),C=D,B=J,z;A=Math.cos(w)*x;E=Math.sin(w)*x;for(z=0;zH){v.lineTo(C+Math.cos(w)*H,B+Math.sin(w)*H);}else{if(I>0){v.lineTo(C+Math.cos(w)*I,B+Math.sin(w)*I);}}v.moveTo(u,G);},clear:function(){this._initProps();if(this.node){this._context.clearRect(0,0,this.node.width,this.node.height);}return this;},getBounds:function(){var B=this.get("stroke"),z=this.get("width"),A=this.get("height"),v=this.get("x"),C=this.get("y"),u=0;if(B&&B.weight){u=B.weight;}z=(v+z+u)-(v-u);A=(C+A+u)-(C-u);v-=u;C-=u;return this.matrix.getContentRect(z,A,v,C);},destroy:function(){var u=this.get("graphic");if(u){u.removeShape(this);}else{this._destroy();}},_destroy:function(){if(this.node){c.one(this.node).remove(true);this._context=null;this.node=null;}}},c.CanvasDrawing.prototype));l.ATTRS={transformOrigin:{valueFn:function(){return[0.5,0.5];}},transform:{setter:function(u){this.matrix.init();this._transforms=this.matrix.getTransformArray(u);this._transform=u;return u;},getter:function(){return this._transform;}},node:{readOnly:true,getter:function(){return this.node;}},id:{valueFn:function(){return c.guid();},setter:function(v){var u=this.node;if(u){u.setAttribute("id",v);}return v;}},width:{value:0},height:{value:0},x:{value:0},y:{value:0},visible:{value:true,setter:function(w){var v=this.get("node"),u=w?"visible":"hidden";if(v){v.style.visibility=u;}return w;}},fill:{valueFn:"_getDefaultFill",setter:function(w){var v,u=this.get("fill")||this._getDefaultFill();v=(w)?c.merge(u,w):null;if(v&&v.color){if(v.color===undefined||v.color=="none"){v.color=null;}}this._setFillProps(v);return v;}},stroke:{valueFn:"_getDefaultStroke",setter:function(w){var v=this.get("stroke")||this._getDefaultStroke(),u;if(w&&w.hasOwnProperty("weight")){u=parseInt(w.weight,10);if(!isNaN(u)){w.weight=u;}}w=(w)?c.merge(v,w):null;this._setStrokeProps(w);return w;}},autoSize:{value:false},pointerEvents:{value:"visiblePainted"},graphic:{readOnly:true,getter:function(){return this._graphic;}}};c.CanvasShape=l;n=function(u){n.superclass.constructor.apply(this,arguments);};n.NAME="canvasPath";c.extend(n,c.CanvasShape,{_type:"path",_draw:function(){this._closePath();},createNode:function(){var u=c.config.doc.createElement("canvas"),v=this.get("id");this._context=u.getContext("2d");u.setAttribute("overflow","visible");u.setAttribute("pointer-events","none");u.style.pointerEvents="none";u.style.overflow="visible";u.setAttribute("id",v);v="#"+v;this.node=u;this.addClass("yui3-"+q+" yui3-"+this.name);},end:function(){this._draw();}});n.ATTRS=c.merge(c.CanvasShape.ATTRS,{width:{getter:function(){var u=this._stroke&&this._strokeWeight?(this._strokeWeight*2):0;return this._width-u;},setter:function(u){this._width=u;return u;}},height:{getter:function(){var u=this._stroke&&this._strokeWeight?(this._strokeWeight*2):0;return this._height-u;},setter:function(u){this._height=u;return u;}},path:{readOnly:true,getter:function(){return this._path;}}});c.CanvasPath=n;t=function(){t.superclass.constructor.apply(this,arguments);};t.NAME="canvasRect";c.extend(t,c.CanvasShape,{_type:"rect",_draw:function(){var u=this.get("width"),v=this.get("height");this.clear();this.drawRect(0,0,u,v);this._closePath();}});t.ATTRS=c.CanvasShape.ATTRS;c.CanvasRect=t;o=function(u){o.superclass.constructor.apply(this,arguments);};o.NAME="canvasEllipse";c.extend(o,l,{_type:"ellipse",_draw:function(){var u=this.get("width"),v=this.get("height");this.clear();this.drawEllipse(0,0,u,v);this._closePath();}});o.ATTRS=l.ATTRS;c.CanvasEllipse=o;i=function(u){i.superclass.constructor.apply(this,arguments);};i.NAME="canvasCircle";c.extend(i,c.CanvasShape,{_type:"circle",_draw:function(){var u=this.get("radius");if(u){this.clear();this.drawCircle(0,0,u);this._closePath();}}});i.ATTRS=c.merge(c.CanvasShape.ATTRS,{width:{setter:function(u){this.set("radius",u/2);return u;},getter:function(){return this.get("radius")*2;}},height:{setter:function(u){this.set("radius",u/2);return u;},getter:function(){return this.get("radius")*2;}},radius:{lazyAdd:false}});c.CanvasCircle=i;f=function(){f.superclass.constructor.apply(this,arguments);};f.NAME="canvasPieSlice";c.extend(f,c.CanvasShape,{_type:"path",_draw:function(A){var v=this.get("cx"),B=this.get("cy"),z=this.get("startAngle"),w=this.get("arc"),u=this.get("radius");this.clear();this._left=v;this._right=u;this._top=B;this._bottom=u;this.drawWedge(v,B,z,w,u);this.end();}});f.ATTRS=c.mix({cx:{value:0},cy:{value:0},startAngle:{value:0},arc:{value:0},radius:{value:0}},c.CanvasShape.ATTRS);c.CanvasPieSlice=f;function d(u){d.superclass.constructor.apply(this,arguments);}d.NAME="canvasGraphic";d.ATTRS={render:{},id:{valueFn:function(){return c.guid();},setter:function(v){var u=this._node;if(u){u.setAttribute("id",v);}return v;}},shapes:{readOnly:true,getter:function(){return this._shapes;}},contentBounds:{readOnly:true,getter:function(){return this._contentBounds;}},node:{readOnly:true,getter:function(){return this._node;}},width:{setter:function(u){if(this._node){this._node.style.width=u+"px";}return u;}},height:{setter:function(u){if(this._node){this._node.style.height=u+"px"; +}return u;}},autoSize:{value:false},resizeDown:{getter:function(){return this._resizeDown;},setter:function(u){this._resizeDown=u;if(this._node){this._redraw();}return u;}},x:{getter:function(){return this._x;},setter:function(u){this._x=u;if(this._node){this._node.style.left=u+"px";}return u;}},y:{getter:function(){return this._y;},setter:function(u){this._y=u;if(this._node){this._node.style.top=u+"px";}return u;}},autoDraw:{value:true},visible:{value:true,setter:function(u){this._toggleVisible(u);return u;}}};c.extend(d,c.GraphicBase,{_x:0,_y:0,getXY:function(){var u=c.one(this._node),v;if(u){v=u.getXY();}return v;},_resizeDown:false,initializer:function(v){var y=this.get("render"),u=this.get("width")||0,x=this.get("height")||0;this._shapes={};this._redrawQueue={};this._contentBounds={left:0,top:0,right:0,bottom:0};this._node=e.createElement("div");this._node.style.position="absolute";this.set("width",u);this.set("height",x);if(y){this.render(y);}},render:function(y){var u=c.one(y),z=this._node,v=this.get("width")||parseInt(u.getComputedStyle("width"),10),x=this.get("height")||parseInt(u.getComputedStyle("height"),10);u=u||e.body;u.appendChild(z);z.style.display="block";z.style.position="absolute";z.style.left="0px";z.style.top="0px";this.set("width",v);this.set("height",x);this.parentNode=u;return this;},destroy:function(){this.removeAllShapes();if(this._node){this._removeChildren(this._node);c.one(this._node).destroy();}},addShape:function(u){u.graphic=this;var w=this._getShapeClass(u.type),v=new w(u);this._appendShape(v);return v;},_appendShape:function(v){var w=v.node,u=this._frag||this._node;if(this.get("autoDraw")){u.appendChild(w);}else{this._getDocFrag().appendChild(w);}},removeShape:function(u){if(!(u instanceof l)){if(s.isString(u)){u=this._shapes[u];}}if(u&&u instanceof l){u._destroy();delete this._shapes[u.get("id")];}if(this.get("autoDraw")){this._redraw();}return u;},removeAllShapes:function(){var u=this._shapes,v;for(v in u){if(u.hasOwnProperty(v)){u[v].destroy();}}this._shapes={};},_removeChildren:function(u){if(u&&u.hasChildNodes()){var v;while(u.firstChild){v=u.firstChild;this._removeChildren(v);u.removeChild(v);}}},_toggleVisible:function(x){var w,v=this._shapes,u=x?"visible":"hidden";if(v){for(w in v){if(v.hasOwnProperty(w)){v[w].set("visible",x);}}}this._node.style.visibility=u;},_getShapeClass:function(v){var u=this._shapeClass[v];if(u){return u;}return v;},_shapeClass:{circle:c.CanvasCircle,rect:c.CanvasRect,path:c.CanvasPath,ellipse:c.CanvasEllipse,pieslice:c.CanvasPieSlice},getShapeById:function(v){var u=this._shapes[v];return u;},batch:function(v){var u=this.get("autoDraw");this.set("autoDraw",false);v();this._redraw();this.set("autoDraw",u);},_getDocFrag:function(){if(!this._frag){this._frag=e.createDocumentFragment();}return this._frag;},_redraw:function(){var u=this.get("resizeDown")?this._getUpdatedContentBounds():this._contentBounds;if(this.get("autoSize")){this.set("width",u.right);this.set("height",u.bottom);}if(this._frag){this._node.appendChild(this._frag);this._frag=null;}},addToRedrawQueue:function(u){var w,v;this._shapes[u.get("id")]=u;if(!this.get("resizeDown")){w=u.getBounds();v=this._contentBounds;v.left=v.leftw.right?v.right:w.right;v.bottom=v.bottom>w.bottom?v.bottom:w.bottom;v.width=v.right-v.left;v.height=v.bottom-v.top;this._contentBounds=v;}if(this.get("autoDraw")){this._redraw();}},_getUpdatedContentBounds:function(){var y,w,v,u=this._shapes,x={left:0,top:0,right:0,bottom:0};for(w in u){if(u.hasOwnProperty(w)){v=u[w];y=v.getBounds();x.left=Math.min(x.left,y.left);x.top=Math.min(x.top,y.top);x.right=Math.max(x.right,y.right);x.bottom=Math.max(x.bottom,y.bottom);}}x.width=x.right-x.left;x.height=x.bottom-x.top;this._contentBounds=x;return x;}});c.CanvasGraphic=d;},"3.5.1",{skinnable:false,requires:["graphics"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics-canvas/graphics-canvas.js b/lib/yui/3.5.1/build/graphics-canvas/graphics-canvas.js similarity index 99% rename from lib/yui/3.5.0/build/graphics-canvas/graphics-canvas.js rename to lib/yui/3.5.1/build/graphics-canvas/graphics-canvas.js index edf60d83c93..54425ddba30 100644 --- a/lib/yui/3.5.0/build/graphics-canvas/graphics-canvas.js +++ b/lib/yui/3.5.1/build/graphics-canvas/graphics-canvas.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -535,7 +535,7 @@ CanvasDrawing.prototype = { y = 0, w = this.get("width"), h = this.get("height"), - r = fill.rotation, + r = fill.rotation || 0, x1, x2, y1, y2, cx = x + w/2, cy = y + h/2, @@ -1659,10 +1659,6 @@ CanvasShape.ATTRS = { this.matrix.init(); this._transforms = this.matrix.getTransformArray(val); this._transform = val; - if(this.initialized) - { - this._updateTransform(); - } return val; }, @@ -2964,4 +2960,4 @@ Y.extend(CanvasGraphic, Y.GraphicBase, { Y.CanvasGraphic = CanvasGraphic; -}, '3.5.0' ,{skinnable:false, requires:['graphics']}); +}, '3.5.1' ,{skinnable:false, requires:['graphics']}); diff --git a/lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default-debug.js b/lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default-debug.js similarity index 85% rename from lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default-debug.js rename to lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default-debug.js index ac0a429502e..dfe13037941 100644 --- a/lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default-debug.js +++ b/lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -15,4 +15,4 @@ Y.Path = Y.SVGPath; Y.Drawing = Y.SVGDrawing; -}, '3.5.0' ,{skinnable:false}); +}, '3.5.1' ,{skinnable:false}); diff --git a/lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default-min.js b/lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default-min.js similarity index 87% rename from lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default-min.js rename to lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default-min.js index 026e8846bec..8cdfcff2d34 100644 --- a/lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default-min.js +++ b/lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("graphics-svg-default",function(a){a.Graphic=a.SVGGraphic;a.Shape=a.SVGShape;a.Circle=a.SVGCircle;a.Rect=a.SVGRect;a.Ellipse=a.SVGEllipse;a.Path=a.SVGPath;a.Drawing=a.SVGDrawing;},"3.5.0",{skinnable:false}); \ No newline at end of file +YUI.add("graphics-svg-default",function(a){a.Graphic=a.SVGGraphic;a.Shape=a.SVGShape;a.Circle=a.SVGCircle;a.Rect=a.SVGRect;a.Ellipse=a.SVGEllipse;a.Path=a.SVGPath;a.Drawing=a.SVGDrawing;},"3.5.1",{skinnable:false}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default.js b/lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default.js similarity index 85% rename from lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default.js rename to lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default.js index ac0a429502e..dfe13037941 100644 --- a/lib/yui/3.5.0/build/graphics-svg-default/graphics-svg-default.js +++ b/lib/yui/3.5.1/build/graphics-svg-default/graphics-svg-default.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -15,4 +15,4 @@ Y.Path = Y.SVGPath; Y.Drawing = Y.SVGDrawing; -}, '3.5.0' ,{skinnable:false}); +}, '3.5.1' ,{skinnable:false}); diff --git a/lib/yui/3.5.0/build/graphics-svg/graphics-svg-debug.js b/lib/yui/3.5.1/build/graphics-svg/graphics-svg-debug.js similarity index 99% rename from lib/yui/3.5.0/build/graphics-svg/graphics-svg-debug.js rename to lib/yui/3.5.1/build/graphics-svg/graphics-svg-debug.js index 20aff9aae37..6e7388b89c5 100644 --- a/lib/yui/3.5.0/build/graphics-svg/graphics-svg-debug.js +++ b/lib/yui/3.5.1/build/graphics-svg/graphics-svg-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -904,7 +904,7 @@ Y.extend(SVGShape, Y.GraphicBase, Y.mix({ stops = fill.stops, w = this.get("width"), h = this.get("height"), - rotation = fill.rotation, + rotation = fill.rotation || 0, radCon = Math.PI/180, tanRadians = parseFloat(parseFloat(Math.tan(rotation * radCon)).toFixed(8)), i, @@ -1374,10 +1374,6 @@ SVGShape.ATTRS = { this._normalizedMatrix.init(); this._transforms = this.matrix.getTransformArray(val); this._transform = val; - if(this.initialized) - { - this._updateTransform(); - } return val; }, @@ -2862,4 +2858,4 @@ Y.SVGGraphic = SVGGraphic; -}, '3.5.0' ,{skinnable:false, requires:['graphics']}); +}, '3.5.1' ,{skinnable:false, requires:['graphics']}); diff --git a/lib/yui/3.5.1/build/graphics-svg/graphics-svg-min.js b/lib/yui/3.5.1/build/graphics-svg/graphics-svg-min.js new file mode 100644 index 00000000000..1da8dc5dcc1 --- /dev/null +++ b/lib/yui/3.5.1/build/graphics-svg/graphics-svg-min.js @@ -0,0 +1,10 @@ +/* +YUI 3.5.1 (build 22) +Copyright 2012 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ +YUI.add("graphics-svg",function(b){var i="svgShape",c=b.Lang,g=b.AttributeLite,d,l,f,h,k,e,j,m=b.config.doc;function a(){}a.prototype={_type:"path",curveTo:function(s,q,z,w,v,u){var o,t,r,n,p,A;if(this._pathType!=="C"){this._pathType="C";t=["C"];this._pathArray.push(t);}else{t=this._pathArray[Math.max(0,this._pathArray.length-1)];if(!t){t=[];this._pathArray.push(t);}}o=this._pathArray.length-1;this._pathArray[o]=this._pathArray[o].concat([Math.round(s),Math.round(q),Math.round(z),Math.round(w),v,u]);r=Math.max(v,Math.max(s,z));p=Math.max(u,Math.max(q,w));n=Math.min(v,Math.min(s,z));A=Math.min(u,Math.min(q,w));this._trackSize(r,p);this._trackSize(n,A);},quadraticCurveTo:function(s,r,v,u){var o,t,q,n,p,w;if(this._pathType!=="Q"){this._pathType="Q";t=["Q"];this._pathArray.push(t);}else{t=this._pathArray[Math.max(0,this._pathArray.length-1)];if(!t){t=[];this._pathArray.push(t);}}o=this._pathArray.length-1;this._pathArray[o]=this._pathArray[o].concat([Math.round(s),Math.round(r),Math.round(v),Math.round(u)]);q=Math.max(v,s);p=Math.max(u,r);n=Math.min(v,s);w=Math.min(u,r);this._trackSize(q,p);this._trackSize(n,w);},drawRect:function(n,q,o,p){this.moveTo(n,q);this.lineTo(n+o,q);this.lineTo(n+o,q+p);this.lineTo(n,q+p);this.lineTo(n,q);},drawRoundRect:function(n,s,o,q,p,r){this.moveTo(n,s+r);this.lineTo(n,s+q-r);this.quadraticCurveTo(n,s+q,n+p,s+q);this.lineTo(n+o-p,s+q);this.quadraticCurveTo(n+o,s+q,n+o,s+q-r);this.lineTo(n+o,s+r);this.quadraticCurveTo(n+o,s,n+o-p,s);this.lineTo(n+p,s);this.quadraticCurveTo(n,s,n,s+r);},drawCircle:function(o,q,n){var p=n*2;this._drawingComplete=false;this._trackSize(o,q);this._trackSize(o+p,q+p);this._pathArray=this._pathArray||[];this._pathArray.push(["M",o+n,q]);this._pathArray.push(["A",n,n,0,1,0,o+n,q+p]);this._pathArray.push(["A",n,n,0,1,0,o+n,q]);return this;},drawEllipse:function(p,s,q,r){var o=q*0.5,n=r*0.5;this._drawingComplete=false;this._trackSize(p,s);this._trackSize(p+q,s+r);this._pathArray=this._pathArray||[];this._pathArray.push(["M",p+o,s]);this._pathArray.push(["A",o,n,0,1,0,p+o,s+r]);this._pathArray.push(["A",o,n,0,1,0,p+o,s]);return this;},drawDiamond:function(o,s,r,n){var q=r*0.5,p=n*0.5;this.moveTo(o+q,s);this.lineTo(o+r,s+p);this.lineTo(o+q,s+n);this.lineTo(o,s+p);this.lineTo(o+q,s);return this;},drawWedge:function(A,v,F,u,q,r){var E,D,t,J,s,B,z,I,H,p,o,G=0,w=q*2,n,C;r=r||q;if(this._pathType!="M"){this._pathType="M";n=["M"];this._pathArray.push(n);}else{n=this._getCurrentArray();}C=this._pathArray.length-1;this._pathArray[C].push(A);this._pathArray[C].push(A);if(Math.abs(u)>360){u=360;}E=Math.ceil(Math.abs(u)/45);D=u/E;t=-(D/180)*Math.PI;J=(F/180)*Math.PI;if(E>0){B=A+Math.cos(F/180*Math.PI)*q;z=v+Math.sin(F/180*Math.PI)*r;this._pathType="L";C++;this._pathArray[C]=["L"];this._pathArray[C].push(Math.round(B));this._pathArray[C].push(Math.round(z));C++;this._pathType="Q";this._pathArray[C]=["Q"];for(;G0){s=o.shift();v=s.length;n=s[0];if(n==="A"){y+=n+s[1]+","+s[2];}else{if(n!="z"){y+=" "+n+(s[1]-q);}else{y+=" z ";}}switch(n){case"L":case"M":case"Q":for(t=2;tthis._right){this._right=n;}if(nthis._bottom){this._bottom=o;}this._width=this._right-this._left;this._height=this._bottom-this._top;}};b.SVGDrawing=a;l=function(n){this._transforms=[];this.matrix=new b.Matrix();this._normalizedMatrix=new b.Matrix();l.superclass.constructor.apply(this,arguments);};l.NAME="svgShape";b.extend(l,b.GraphicBase,b.mix({init:function(){this.initializer.apply(this,arguments);},initializer:function(n){var o=this,p=n.graphic;o.createNode();if(p){o._setGraphic(p);}o._updateHandler();},_setGraphic:function(n){var o;if(n instanceof b.SVGGraphic){this._graphic=n;}else{n=b.one(n);o=new b.SVGGraphic({render:n});o._appendShape(this);this._graphic=o;}},addClass:function(n){var o=this.node;o.className.baseVal=c.trim([o.className.baseVal,n].join(" "));},removeClass:function(n){var o=this.node,p=o.className.baseVal;p=p.replace(new RegExp(n+" "),n).replace(new RegExp(n),"");o.className.baseVal=p;},getXY:function(){var q=this._graphic,o=q.getXY(),n=this.get("x"),p=this.get("y"); +return[o[0]+n,o[1]+p];},setXY:function(o){var p=this._graphic,n=p.getXY();this.set("x",o[0]-n[0]);this.set("y",o[1]-n[1]);},contains:function(n){return n===b.one(this.node);},compareTo:function(n){var o=this.node;return o===n;},test:function(n){return b.Selector.test(this.node,n);},_getDefaultFill:function(){return{type:"solid",opacity:1,cx:0.5,cy:0.5,fx:0.5,fy:0.5,r:0.5};},_getDefaultStroke:function(){return{weight:1,dashstyle:"none",color:"#000",opacity:1};},createNode:function(){var n=m.createElementNS("http://www.w3.org/2000/svg","svg:"+this._type),p=this.get("id"),o=this.get("pointerEvents");this.node=n;this.addClass("yui3-"+i+" yui3-"+this.name);if(p){n.setAttribute("id",p);}if(o){n.setAttribute("pointer-events",o);}if(!this.get("visible")){b.one(n).setStyle("visibility","hidden");}},on:function(o,n){if(b.Node.DOM_EVENTS[o]){return b.one("#"+this.get("id")).on(o,n);}return b.on.apply(this,arguments);},_strokeChangeHandler:function(s){var q=this.node,r=this.get("stroke"),p,n,t,o;if(r&&r.weight&&r.weight>0){o=r.linejoin||"round";p=parseFloat(r.opacity);n=r.dashstyle||"none";t=c.isArray(n)?n.toString():n;r.color=r.color||"#000000";r.weight=r.weight||1;r.opacity=c.isNumber(p)?p:1;r.linecap=r.linecap||"butt";q.setAttribute("stroke-dasharray",t);q.setAttribute("stroke",r.color);q.setAttribute("stroke-linecap",r.linecap);q.setAttribute("stroke-width",r.weight);q.setAttribute("stroke-opacity",r.opacity);if(o=="round"||o=="bevel"){q.setAttribute("stroke-linejoin",o);}else{o=parseInt(o,10);if(c.isNumber(o)){q.setAttribute("stroke-miterlimit",Math.max(o,1));q.setAttribute("stroke-linejoin","miter");}}}else{q.setAttribute("stroke","none");}},_fillChangeHandler:function(r){var p=this.node,q=this.get("fill"),n,o;if(q){o=q.type;if(o=="linear"||o=="radial"){this._setGradientFill(q);p.setAttribute("fill","url(#grad"+this.get("id")+")");}else{if(!q.color){p.setAttribute("fill","none");}else{n=parseFloat(q.opacity);n=c.isNumber(n)?n:1;p.setAttribute("fill",q.color);p.setAttribute("fill-opacity",n);}}}else{p.setAttribute("fill","none");}},_setGradientFill:function(N){var z,v,L,H,p,E=c.isNumber,D=this._graphic,x=N.type,K=D.getGradientNode("grad"+this.get("id"),x),A=N.stops,B=this.get("width"),R=this.get("height"),J=N.rotation||0,y=Math.PI/180,G=parseFloat(parseFloat(Math.tan(J*y)).toFixed(8)),O,Q,C,I,S="0%",P="100%",t="0%",o="0%",s=N.cx,n=N.cy,u=N.fx,q=N.fy,F=N.r,M=[];if(x=="linear"){s=B/2;n=R/2;if(Math.abs(G)*B/2>=R/2){if(J<180){t=0;o=R;}else{t=R;o=0;}S=s-((n-t)/G);P=s-((n-o)/G);}else{if(J>90&&J<270){S=B;P=0;}else{S=0;P=B;}t=((G*(s-S))-n)*-1;o=((G*(s-P))-n)*-1;}K.setAttribute("spreadMethod","pad");K.setAttribute("width",B);K.setAttribute("height",R);K.setAttribute("x1",Math.round(100*S/B)+"%");K.setAttribute("y1",Math.round(100*t/R)+"%");K.setAttribute("x2",Math.round(100*P/B)+"%");K.setAttribute("y2",Math.round(100*o/R)+"%");}else{K.setAttribute("cx",(s*100)+"%");K.setAttribute("cy",(n*100)+"%");K.setAttribute("fx",(u*100)+"%");K.setAttribute("fy",(q*100)+"%");K.setAttribute("r",(F*100)+"%");}Q=A.length;C=0;for(O=0;O0){H=this._stops.shift();p=false;}else{H=D._createGraphicNode("stop");p=true;}I=A[O];v=I.opacity;L=I.color;z=I.offset||O/(Q-1);z=Math.round(z*100)+"%";v=E(v)?v:1;v=Math.max(0,Math.min(1,v));C=(O+1)/Q;H.setAttribute("offset",z);H.setAttribute("stop-color",L);H.setAttribute("stop-opacity",v);if(p){K.appendChild(H);}M.push(H);}while(this._stops&&this._stops.length>0){K.removeChild(this._stops.shift());}this._stops=M;},_stops:null,set:function(){var n=this;g.prototype.set.apply(n,arguments);if(n.initialized){n._updateHandler();}},translate:function(n,o){this._addTransform("translate",arguments);},translateX:function(n){this._addTransform("translateX",arguments);},translateY:function(n){this._addTransform("translateY",arguments);},skew:function(n,o){this._addTransform("skew",arguments);},skewX:function(n){this._addTransform("skewX",arguments);},skewY:function(n){this._addTransform("skewY",arguments);},rotate:function(n){this._addTransform("rotate",arguments);},scale:function(n,o){this._addTransform("scale",arguments);},_addTransform:function(o,n){n=b.Array(n);this._transform=c.trim(this._transform+" "+o+"("+n.join(", ")+")");n.unshift(o);this._transforms.push(n);if(this.initialized){this._updateTransform();}},_updateTransform:function(){var v=this._type=="path",p=this.node,B,o,r,A,w,t,q,z=this.matrix,n=this._normalizedMatrix,s=0,u=this._transforms.length;if(v||(this._transforms&&this._transforms.length>0)){A=this.get("x");w=this.get("y");r=this.get("transformOrigin");t=A+(r[0]*this.get("width"));q=w+(r[1]*this.get("height"));if(v){if(!(this instanceof b.SVGPath)){t=this._left+(r[0]*this.get("width"));q=this._top+(r[1]*this.get("height"));}n.init({dx:A+this._left,dy:w+this._top});}n.translate(t,q);for(;sp.right?o.right:p.right;o.bottom=o.bottom>p.bottom?o.bottom:p.bottom;o.width=o.right-o.left;o.height=o.bottom-o.top;this._contentBounds=o;}if(this.get("autoDraw")){this._redraw();}},_getUpdatedContentBounds:function(){var r,p,o,n=this._shapes,q={left:0,top:0,right:0,bottom:0};for(p in n){if(n.hasOwnProperty(p)){o=n[p];r=o.getBounds();q.left=Math.min(q.left,r.left);q.top=Math.min(q.top,r.top);q.right=Math.max(q.right,r.right);q.bottom=Math.max(q.bottom,r.bottom);}}q.width=q.right-q.left;q.height=q.bottom-q.top;this._contentBounds=q;return q;},_createGraphics:function(){var n=this._createGraphicNode("svg"),o=this.get("pointerEvents");n.style.position="absolute";n.style.top="0px";n.style.left="0px";n.style.overflow="auto";n.setAttribute("overflow","auto");n.setAttribute("pointer-events",o);return n;},_createGraphicNode:function(p,n){var q=m.createElementNS("http://www.w3.org/2000/svg","svg:"+p),o=n||"none";if(p!=="defs"&&p!=="stop"&&p!=="linearGradient"&&p!="radialGradient"){q.setAttribute("pointer-events",o);}return q;},getGradientNode:function(p,q){var n=this._gradients,r,o=q+"Gradient";if(n.hasOwnProperty(p)&&n[p].tagName.indexOf(q)>-1){r=this._gradients[p];}else{r=this._createGraphicNode(o);if(!this._defs){this._defs=this._createGraphicNode("defs");this._contentNode.appendChild(this._defs);}this._defs.appendChild(r);p=p||"gradient"+Math.round(100000*Math.random());r.setAttribute("id",p);if(n.hasOwnProperty(p)){this._defs.removeChild(n[p]);}n[p]=r;}return r;}});b.SVGGraphic=d;},"3.5.1",{skinnable:false,requires:["graphics"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics-svg/graphics-svg.js b/lib/yui/3.5.1/build/graphics-svg/graphics-svg.js similarity index 99% rename from lib/yui/3.5.0/build/graphics-svg/graphics-svg.js rename to lib/yui/3.5.1/build/graphics-svg/graphics-svg.js index 20aff9aae37..6e7388b89c5 100644 --- a/lib/yui/3.5.0/build/graphics-svg/graphics-svg.js +++ b/lib/yui/3.5.1/build/graphics-svg/graphics-svg.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -904,7 +904,7 @@ Y.extend(SVGShape, Y.GraphicBase, Y.mix({ stops = fill.stops, w = this.get("width"), h = this.get("height"), - rotation = fill.rotation, + rotation = fill.rotation || 0, radCon = Math.PI/180, tanRadians = parseFloat(parseFloat(Math.tan(rotation * radCon)).toFixed(8)), i, @@ -1374,10 +1374,6 @@ SVGShape.ATTRS = { this._normalizedMatrix.init(); this._transforms = this.matrix.getTransformArray(val); this._transform = val; - if(this.initialized) - { - this._updateTransform(); - } return val; }, @@ -2862,4 +2858,4 @@ Y.SVGGraphic = SVGGraphic; -}, '3.5.0' ,{skinnable:false, requires:['graphics']}); +}, '3.5.1' ,{skinnable:false, requires:['graphics']}); diff --git a/lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default-debug.js b/lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default-debug.js similarity index 85% rename from lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default-debug.js rename to lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default-debug.js index f2df51f3d63..509f3597ed7 100644 --- a/lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default-debug.js +++ b/lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -15,4 +15,4 @@ Y.Path = Y.VMLPath; Y.Drawing = Y.VMLDrawing; -}, '3.5.0' ,{skinnable:false}); +}, '3.5.1' ,{skinnable:false}); diff --git a/lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default-min.js b/lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default-min.js similarity index 87% rename from lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default-min.js rename to lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default-min.js index df869dcd3f6..30d65dca4a7 100644 --- a/lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default-min.js +++ b/lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("graphics-vml-default",function(a){a.Graphic=a.VMLGraphic;a.Shape=a.VMLShape;a.Circle=a.VMLCircle;a.Rect=a.VMLRect;a.Ellipse=a.VMLEllipse;a.Path=a.VMLPath;a.Drawing=a.VMLDrawing;},"3.5.0",{skinnable:false}); \ No newline at end of file +YUI.add("graphics-vml-default",function(a){a.Graphic=a.VMLGraphic;a.Shape=a.VMLShape;a.Circle=a.VMLCircle;a.Rect=a.VMLRect;a.Ellipse=a.VMLEllipse;a.Path=a.VMLPath;a.Drawing=a.VMLDrawing;},"3.5.1",{skinnable:false}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default.js b/lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default.js similarity index 85% rename from lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default.js rename to lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default.js index f2df51f3d63..509f3597ed7 100644 --- a/lib/yui/3.5.0/build/graphics-vml-default/graphics-vml-default.js +++ b/lib/yui/3.5.1/build/graphics-vml-default/graphics-vml-default.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -15,4 +15,4 @@ Y.Path = Y.VMLPath; Y.Drawing = Y.VMLDrawing; -}, '3.5.0' ,{skinnable:false}); +}, '3.5.1' ,{skinnable:false}); diff --git a/lib/yui/3.5.0/build/graphics-vml/graphics-vml-debug.js b/lib/yui/3.5.1/build/graphics-vml/graphics-vml-debug.js similarity index 99% rename from lib/yui/3.5.0/build/graphics-vml/graphics-vml-debug.js rename to lib/yui/3.5.1/build/graphics-vml/graphics-vml-debug.js index 888195b7ee7..f820ccf7592 100644 --- a/lib/yui/3.5.0/build/graphics-vml/graphics-vml-debug.js +++ b/lib/yui/3.5.1/build/graphics-vml/graphics-vml-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -1171,7 +1171,7 @@ Y.extend(VMLShape, Y.GraphicBase, Y.mix({ this._skew.matrix = transform; this._skew.on = true; //use offset for translate - this._skew.offset = normalizedMatrix.dx + "px, " + normalizedMatrix.dy + "px"; + this._skew.offset = this._getSkewOffsetValue(normalizedMatrix.dx) + "px, " + this._getSkewOffsetValue(normalizedMatrix.dy) + "px"; this._skew.origin = tx + ", " + ty; } if(this._type != "path") @@ -1181,6 +1181,22 @@ Y.extend(VMLShape, Y.GraphicBase, Y.mix({ node.style.left = x + "px"; node.style.top = y + "px"; }, + + /** + * Normalizes the skew offset values between -32767 and 32767. + * + * @method _getSkewOffsetValue + * @param {Number} val The value to normalize + * @return Number + * @private + */ + _getSkewOffsetValue: function(val) + { + var sign = Y.MatrixUtil.sign(val), + absVal = Math.abs(val); + val = Math.min(absVal, 32767) * sign; + return val; + }, /** * Storage for translateX @@ -1550,10 +1566,6 @@ VMLShape.ATTRS = { transform = this._transforms[i]; } this._transform = val; - if(this.initialized) - { - this._updateTransform(); - } return val; }, @@ -2857,4 +2869,4 @@ Y.VMLGraphic = VMLGraphic; -}, '3.5.0' ,{skinnable:false, requires:['graphics']}); +}, '3.5.1' ,{skinnable:false, requires:['graphics']}); diff --git a/lib/yui/3.5.0/build/graphics-vml/graphics-vml-min.js b/lib/yui/3.5.1/build/graphics-vml/graphics-vml-min.js similarity index 51% rename from lib/yui/3.5.0/build/graphics-vml/graphics-vml-min.js rename to lib/yui/3.5.1/build/graphics-vml/graphics-vml-min.js index 779689ef9d9..36e5441f43d 100644 --- a/lib/yui/3.5.0/build/graphics-vml/graphics-vml-min.js +++ b/lib/yui/3.5.1/build/graphics-vml/graphics-vml-min.js @@ -1,10 +1,10 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("graphics-vml",function(b){var d=b.Lang,j=d.isNumber,f=d.isArray,h=b.DOM,c=b.Selector,m=b.config.doc,e=b.AttributeLite,p,l,o,k,n,i,a;function g(){}g.prototype={_currentX:0,_currentY:0,curveTo:function(t,s,A,z,w,v){var u,q,r,B;w=Math.round(w);v=Math.round(v);this._path+=" c "+Math.round(t)+", "+Math.round(s)+", "+Math.round(A)+", "+Math.round(z)+", "+w+", "+v;this._currentX=w;this._currentY=v;u=Math.max(w,Math.max(t,A));r=Math.max(v,Math.max(s,z));q=Math.min(w,Math.min(t,A));B=Math.min(v,Math.min(s,z));this._trackSize(u,r);this._trackSize(q,B);},quadraticCurveTo:function(v,u,z,w){var r=this._currentX,q=this._currentY,t=r+0.67*(v-r),s=q+0.67*(u-q),B=t+(z-r)*0.34,A=s+(w-q)*0.34;this.curveTo(t,s,B,A,z,w);},drawRect:function(q,t,r,s){this.moveTo(q,t);this.lineTo(q+r,t);this.lineTo(q+r,t+s);this.lineTo(q,t+s);this.lineTo(q,t);this._currentX=q;this._currentY=t;return this;},drawRoundRect:function(q,v,r,t,s,u){this.moveTo(q,v+u);this.lineTo(q,v+t-u);this.quadraticCurveTo(q,v+t,q+s,v+t);this.lineTo(q+r-s,v+t);this.quadraticCurveTo(q+r,v+t,q+r,v+t-u);this.lineTo(q+r,v+u);this.quadraticCurveTo(q+r,v,q+r-s,v);this.lineTo(q+s,v);this.quadraticCurveTo(q,v,q,v+u);return this;},drawCircle:function(r,v,q){var t=0,s=360,u=q*2;s*=65535;this._drawingComplete=false;this._trackSize(r+u,v+u);this._path+=" m "+(r+u)+" "+(v+q)+" ae "+(r+q)+" "+(v+q)+" "+q+" "+q+" "+t+" "+s;return this;},drawEllipse:function(s,A,t,z){var v=0,u=360,r=t*0.5,q=z*0.5;u*=65535;this._drawingComplete=false;this._trackSize(s+t,A+z);this._path+=" m "+(s+t)+" "+(A+q)+" ae "+(s+r)+" "+(A+q)+" "+r+" "+q+" "+v+" "+u;return this;},drawDiamond:function(r,v,u,q){var t=u*0.5,s=q*0.5;this.moveTo(r+t,v);this.lineTo(r+u,v+s);this.lineTo(r+t,v+q);this.lineTo(r,v+s);this.lineTo(r+t,v);return this;},drawWedge:function(s,w,u,t,r,q){var v=r*2;s=Math.round(s);w=Math.round(w);q=q||r;r=Math.round(r);q=Math.round(q);if(Math.abs(t)>360){t=360;}u*=-65535;t*=65536;this._path+=" m "+s+" "+w+" ae "+s+" "+w+" "+r+" "+q+" "+u+" "+t;this._trackSize(v,v);this._currentX=s;this._currentY=w;return this;},lineTo:function(v,u,s){var r=arguments,t,q;if(typeof v==="string"||typeof v==="number"){r=[[v,u]];}q=r.length;if(!this._path){this._path="";}this._path+=" l ";for(t=0;tthis._right){this._right=q;}if(qthis._bottom){this._bottom=r;}this._width=this._right-this._left;this._height=this._bottom-this._top;},_left:0,_right:0,_top:0,_bottom:0,_width:0,_height:0};b.VMLDrawing=g;p=function(){this._transforms=[];this.matrix=new b.Matrix();this._normalizedMatrix=new b.Matrix();p.superclass.constructor.apply(this,arguments);};p.NAME="vmlShape";b.extend(p,b.GraphicBase,b.mix({_type:"shape",init:function(){this.initializer.apply(this,arguments);},initializer:function(q){var r=this,s=q.graphic;r.createNode();if(s){this._setGraphic(s);}this._updateHandler();},_setGraphic:function(q){var r;if(q instanceof b.VMLGraphic){this._graphic=q;}else{q=b.one(q);r=new b.VMLGraphic({render:q});r._appendShape(this);this._graphic=r;}},createNode:function(){var F,B=this.get("x"),z=this.get("y"),C=this.get("width"),H=this.get("height"),E,t,L,I=this.get("visible")?"visible":"hidden",K,v,u,D,r,A,J,q,G,s;E=this.get("id");t=this._type=="path"?"shape":this._type;v="vml"+t+" yui3-vmlShape yui3-"+this.constructor.NAME;u=this._getStrokeProps();G=this._getFillProps();L="<"+t+' xmlns="urn:schemas-microsft.com:vml" id="'+E+'" class="'+v+'" style="behavior:url(#default#VML);display:inline-block;position:absolute;left:'+B+"px;top:"+z+"px;width:"+C+"px;height:"+H+"px;visibility:"+I+'"';if(u&&u.weight&&u.weight>0){D=u.endcap;r=parseFloat(u.opacity);A=u.joinstyle;J=u.miterlimit;q=u.dashstyle;L+=' stroked="t" strokecolor="'+u.color+'" strokeWeight="'+u.weight+'px"';K='";F=m.createElement(L);if(this._strokeNode){F.appendChild(this._strokeNode);}if(this._fillNode){F.appendChild(this._fillNode);}this.node=F;this._strokeFlag=false;this._fillFlag=false;},addClass:function(q){var r=this.node;h.addClass(r,q);},removeClass:function(q){var r=this.node;h.removeClass(r,q);},getXY:function(){var t=this._graphic,r=t.getXY(),q=this.get("x"),s=this.get("y");return[r[0]+q,r[1]+s];},setXY:function(r){var s=this._graphic,q=s.getXY();this.set("x",r[0]-q[0]);this.set("y",r[1]-q[1]);},contains:function(q){return q===b.one(this.node);},compareTo:function(q){var r=this.node;return r===q;},test:function(q){return c.test(this.node,q);},_getStrokeProps:function(){var x,z=this.get("stroke"),v,r,t="",q,s=0,u,y,w;if(z&&z.weight&&z.weight>0){x={}; -y=z.linecap||"flat";w=z.linejoin||"round";if(y!="round"&&y!="square"){y="flat";}v=parseFloat(z.opacity);r=z.dashstyle||"none";z.color=z.color||"#000000";z.weight=z.weight||1;z.opacity=j(v)?v:1;x.stroked=true;x.color=z.color;x.weight=z.weight;x.endcap=y;x.opacity=z.opacity;if(f(r)){t=[];u=r.length;for(s=0;s0){z=A.linecap||"flat";y=A.linejoin||"round";if(z!="round"&&z!="square"){z="flat";}x=parseFloat(A.opacity);r=A.dashstyle||"none";A.color=A.color||"#000000";A.weight=A.weight||1;A.opacity=j(x)?x:1;s.stroked=true;s.strokeColor=A.color;s.strokeWeight=A.weight+"px";if(!this._strokeNode){this._strokeNode=this._createGraphicNode("stroke");s.appendChild(this._strokeNode);}this._strokeNode.endcap=z;this._strokeNode.opacity=A.opacity;if(f(r)){u=[];v=r.length;for(t=0;t';}}}}t.filled=u;}return t;},_fillChangeHandler:function(x){if(!this._fillFlag){return;}var t=this.node,w=this.get("fill"),q,s,u=false,r,v;if(w){if(w.type=="radial"||w.type=="linear"){u=true;v=this._getGradientFill(w);if(this._fillNode){for(r in v){if(v.hasOwnProperty(r)){if(r=="colors"){this._fillNode.colors.value=v[r];}else{this._fillNode[r]=v[r];}}}}else{s='';this._fillNode=m.createElement(s);t.appendChild(this._fillNode);}}else{if(this._fillNode){this._fillNode.opacity=1;this._fillNode.type="solid";}}}}}t.filled=u;this._fillFlag=false;},_updateFillNode:function(q){if(!this._fillNode){this._fillNode=this._createGraphicNode("fill");q.appendChild(this._fillNode);}},_getGradientFill:function(K){var P={},C,A,z=K.type,D=this.get("width"),N=this.get("height"),E=j,I,B=K.stops,M=B.length,x,J,L=0,F,q="",u=K.cx,s=K.cy,v=K.fx,t=K.fy,G=K.r,O,y,H=K.rotation||0;if(z==="linear"){if(H<=270){H=Math.abs(H-270);}else{if(H<360){H=270+(360-H);}else{H=270;}}P.type="gradient";P.angle=H;}else{if(z==="radial"){C=D*(G*2);A=N*(G*2);v=G*2*(v-0.5);t=G*2*(t-0.5);v+=u;t+=s;P.focussize=(C/D)/10+"% "+(A/N)/10+"%";P.alignshape=false;P.type="gradientradial";P.focus="100%";P.focusposition=Math.round(v*100)+"% "+Math.round(t*100)+"%";}}for(;L0?L+1:"";P["opacity"+F]=x+"";q+=", "+y+" "+J;}if(parseFloat(y)<100){q+=", 100% "+J;}P.colors=q.substr(2);return P;},_addTransform:function(r,q){q=b.Array(q);this._transform=d.trim(this._transform+" "+r+"("+q.join(", ")+")");q.unshift(r);this._transforms.push(q);if(this.initialized){this._updateTransform();}},_updateTransform:function(){var t=this.node,E,s,u,D=this.get("x"),B=this.get("y"),z,v,C=this.matrix,q=this._normalizedMatrix,r=this instanceof b.VMLPath,w=0,A=this._transforms.length;if(this._transforms&&this._transforms.length>0){u=this.get("transformOrigin");if(r){q.translate(this._left,this._top);}z=u[0]-0.5;v=u[1]-0.5;z=Math.max(-0.5,Math.min(0.5,z));v=Math.max(-0.5,Math.min(0.5,v));for(;w');this.node.appendChild(this._skew);}this._skew.matrix=s;this._skew.on=true;this._skew.offset=q.dx+"px, "+q.dy+"px";this._skew.origin=z+", "+v;}if(this._type!="path"){this._transforms=[];}t.style.left=D+"px";t.style.top=B+"px";},_translateX:0,_translateY:0,_transform:"",translate:function(q,r){this._translateX+=q;this._translateY+=r;this._addTransform("translate",arguments);},translateX:function(q){this._translateX+=q;this._addTransform("translateX",arguments);},translateY:function(q){this._translateY+=q;this._addTransform("translateY",arguments);},skew:function(q,r){this._addTransform("skew",arguments);},skewX:function(q){this._addTransform("skewX",arguments);},skewY:function(q){this._addTransform("skewY",arguments);},rotate:function(q){this._addTransform("rotate",arguments);},scale:function(q,r){this._addTransform("scale",arguments); -},on:function(r,q){if(b.Node.DOM_EVENTS[r]){return b.one("#"+this.get("id")).on(r,q);}return b.on.apply(this,arguments);},_draw:function(){},_updateHandler:function(s){var r=this,q=r.node;r._fillChangeHandler();r._strokeChangeHandler();q.style.width=this.get("width")+"px";q.style.height=this.get("height")+"px";this._draw();r._updateTransform();},_createGraphicNode:function(q){q=q||this._type;return m.createElement("<"+q+' xmlns="urn:schemas-microsft.com:vml" style="behavior:url(#default#VML);display:inline-block;" class="vml'+q+'"/>');},_getDefaultFill:function(){return{type:"solid",cx:0.5,cy:0.5,fx:0.5,fy:0.5,r:0.5};},_getDefaultStroke:function(){return{weight:1,dashstyle:"none",color:"#000",opacity:1};},set:function(){var q=this;e.prototype.set.apply(q,arguments);if(q.initialized){q._updateHandler();}},getBounds:function(t){var v=this.get("stroke"),s=this.get("width"),u=this.get("height"),r=this.get("x"),z=this.get("y"),q=0;if(v&&v.weight){q=v.weight;}s=(r+s+q)-(r-q);u=(z+u+q)-(z-q);r-=q;z-=q;return this._normalizedMatrix.getContentRect(s,u,r,z);},destroy:function(){var q=this.get("graphic");if(q){q.removeShape(this);}else{this._destroy();}},_destroy:function(){if(this.node){if(this._fillNode){this.node.removeChild(this._fillNode);this._fillNode=null;}if(this._strokeNode){this.node.removeChild(this._strokeNode);this._strokeNode=null;}b.one(this.node).remove(true);}}},b.VMLDrawing.prototype));p.ATTRS={transformOrigin:{valueFn:function(){return[0.5,0.5];}},transform:{setter:function(t){var s=0,q,r;this.matrix.init();this._normalizedMatrix.init();this._transforms=this.matrix.getTransformArray(t);q=this._transforms.length;for(;s0?q*2:0;return r;}},height:{setter:function(q){this.set("radius",q/2);return q;},getter:function(){var q=this.get("radius"),r=q&&q>0?q*2:0;return r;}}});b.VMLCircle=l;a=function(){a.superclass.constructor.apply(this,arguments);};a.NAME="vmlPieSlice";b.extend(a,b.VMLShape,b.mix({_type:"shape",_draw:function(u){var r=this.get("cx"),v=this.get("cy"),t=this.get("startAngle"),s=this.get("arc"),q=this.get("radius");this.clear();this.drawWedge(r,v,t,s,q);this.end();}},b.VMLDrawing.prototype));a.ATTRS=b.mix({cx:{value:0},cy:{value:0},startAngle:{value:0},arc:{value:0},radius:{value:0}},b.VMLShape.ATTRS);b.VMLPieSlice=a;i=function(){i.superclass.constructor.apply(this,arguments);};i.NAME="vmlGraphic";i.ATTRS={render:{},id:{valueFn:function(){return b.guid();},setter:function(r){var q=this._node;if(q){q.setAttribute("id",r);}return r;}},shapes:{readOnly:true,getter:function(){return this._shapes;}},contentBounds:{readOnly:true,getter:function(){return this._contentBounds;}},node:{readOnly:true,getter:function(){return this._node;}},width:{setter:function(q){if(this._node){this._node.style.width=q+"px";}return q;}},height:{setter:function(q){if(this._node){this._node.style.height=q+"px";}return q;}},autoSize:{value:false},resizeDown:{getter:function(){return this._resizeDown;},setter:function(q){this._resizeDown=q;if(this._node){this._redraw();}return q;}},x:{getter:function(){return this._x;},setter:function(q){this._x=q;if(this._node){this._node.style.left=q+"px";}return q;}},y:{getter:function(){return this._y;},setter:function(q){this._y=q;if(this._node){this._node.style.top=q+"px";}return q;}},autoDraw:{value:true},visible:{value:true,setter:function(q){this._toggleVisible(q);return q;}}};b.extend(i,b.GraphicBase,{_x:0,_y:0,getXY:function(){var q=b.one(this._node),r;if(q){r=q.getXY();}return r; -},_resizeDown:false,initializer:function(q){var r=this.get("render");this._shapes={};this._contentBounds={left:0,top:0,right:0,bottom:0};this._node=this._createGraphic();this._node.setAttribute("id",this.get("id"));if(r){this.render(r);}},render:function(t){var q=b.one(t),r=this.get("width")||parseInt(q.getComputedStyle("width"),10),s=this.get("height")||parseInt(q.getComputedStyle("height"),10);q=q||m.body;q.appendChild(this._node);this.setSize(r,s);this.parentNode=q;this.set("width",r);this.set("height",s);return this;},destroy:function(){this.clear();b.one(this._node).remove(true);},addShape:function(q){q.graphic=this;var s=this._getShapeClass(q.type),r=new s(q);this._appendShape(r);return r;},_appendShape:function(r){var s=r.node,q=this._frag||this._node;if(this.get("autoDraw")){q.appendChild(s);}else{this._getDocFrag().appendChild(s);}},removeShape:function(q){if(!q instanceof p){if(d.isString(q)){q=this._shapes[q];}}if(q&&q instanceof p){q._destroy();this._shapes[q.get("id")]=null;delete this._shapes[q.get("id")];}if(this.get("autoDraw")){this._redraw();}},removeAllShapes:function(){var q=this._shapes,r;for(r in q){if(q.hasOwnProperty(r)){q[r].destroy();}}this._shapes={};},_removeChildren:function(q){if(q.hasChildNodes()){var r;while(q.firstChild){r=q.firstChild;this._removeChildren(r);q.removeChild(r);}}},clear:function(){this.removeAllShapes();this._removeChildren(this._node);},_toggleVisible:function(t){var s,r=this._shapes,q=t?"visible":"hidden";if(r){for(s in r){if(r.hasOwnProperty(s)){r[s].set("visible",t);}}}this._node.style.visibility=q;},setSize:function(q,r){q=Math.round(q);r=Math.round(r);this._node.style.width=q+"px";this._node.style.height=r+"px";this._node.coordSize=q+" "+r;},setPosition:function(q,r){q=Math.round(q);r=Math.round(r);this._node.style.left=q+"px";this._node.style.top=r+"px";},_createGraphic:function(){var q=m.createElement('');q.style.display="block";q.style.position="absolute";return q;},_createGraphicNode:function(q){return m.createElement("<"+q+' xmlns="urn:schemas-microsft.com:vml" style="behavior:url(#default#VML);display:inline-block;zoom:1;" />');},getShapeById:function(q){return this._shapes[q];},_getShapeClass:function(r){var q=this._shapeClass[r];if(q){return q;}return r;},_shapeClass:{circle:b.VMLCircle,rect:b.VMLRect,path:b.VMLPath,ellipse:b.VMLEllipse,pieslice:b.VMLPieSlice},batch:function(r){var q=this.get("autoDraw");this.set("autoDraw",false);r.apply();this._redraw();this.set("autoDraw",q);},_getDocFrag:function(){if(!this._frag){this._frag=m.createDocumentFragment();}return this._frag;},addToRedrawQueue:function(q){var s,r;this._shapes[q.get("id")]=q;if(!this._resizeDown){s=q.getBounds();r=this._contentBounds;r.left=r.lefts.right?r.right:s.right;r.bottom=r.bottom>s.bottom?r.bottom:s.bottom;r.width=r.right-r.left;r.height=r.bottom-r.top;this._contentBounds=r;}if(this.get("autoDraw")){this._redraw();}},_redraw:function(){var q=this._resizeDown?this._getUpdatedContentBounds():this._contentBounds;if(this.get("autoSize")){this.setSize(q.right,q.bottom);}if(this._frag){this._node.appendChild(this._frag);this._frag=null;}},_getUpdatedContentBounds:function(){var u,s,r,q=this._shapes,t={left:0,top:0,right:0,bottom:0};for(s in q){if(q.hasOwnProperty(s)){r=q[s];u=r.getBounds();t.left=Math.min(t.left,u.left);t.top=Math.min(t.top,u.top);t.right=Math.max(t.right,u.right);t.bottom=Math.max(t.bottom,u.bottom);}}t.width=t.right-t.left;t.height=t.bottom-t.top;this._contentBounds=t;return t;}});b.VMLGraphic=i;},"3.5.0",{skinnable:false,requires:["graphics"]}); \ No newline at end of file +y=z.linecap||"flat";w=z.linejoin||"round";if(y!="round"&&y!="square"){y="flat";}v=parseFloat(z.opacity);r=z.dashstyle||"none";z.color=z.color||"#000000";z.weight=z.weight||1;z.opacity=j(v)?v:1;x.stroked=true;x.color=z.color;x.weight=z.weight;x.endcap=y;x.opacity=z.opacity;if(f(r)){t=[];u=r.length;for(s=0;s0){z=A.linecap||"flat";y=A.linejoin||"round";if(z!="round"&&z!="square"){z="flat";}x=parseFloat(A.opacity);r=A.dashstyle||"none";A.color=A.color||"#000000";A.weight=A.weight||1;A.opacity=j(x)?x:1;s.stroked=true;s.strokeColor=A.color;s.strokeWeight=A.weight+"px";if(!this._strokeNode){this._strokeNode=this._createGraphicNode("stroke");s.appendChild(this._strokeNode);}this._strokeNode.endcap=z;this._strokeNode.opacity=A.opacity;if(f(r)){u=[];v=r.length;for(t=0;t';}}}}t.filled=u;}return t;},_fillChangeHandler:function(x){if(!this._fillFlag){return;}var t=this.node,w=this.get("fill"),q,s,u=false,r,v;if(w){if(w.type=="radial"||w.type=="linear"){u=true;v=this._getGradientFill(w);if(this._fillNode){for(r in v){if(v.hasOwnProperty(r)){if(r=="colors"){this._fillNode.colors.value=v[r];}else{this._fillNode[r]=v[r];}}}}else{s='';this._fillNode=m.createElement(s);t.appendChild(this._fillNode);}}else{if(this._fillNode){this._fillNode.opacity=1;this._fillNode.type="solid";}}}}}t.filled=u;this._fillFlag=false;},_updateFillNode:function(q){if(!this._fillNode){this._fillNode=this._createGraphicNode("fill");q.appendChild(this._fillNode);}},_getGradientFill:function(K){var P={},C,A,z=K.type,D=this.get("width"),N=this.get("height"),E=j,I,B=K.stops,M=B.length,x,J,L=0,F,q="",u=K.cx,s=K.cy,v=K.fx,t=K.fy,G=K.r,O,y,H=K.rotation||0;if(z==="linear"){if(H<=270){H=Math.abs(H-270);}else{if(H<360){H=270+(360-H);}else{H=270;}}P.type="gradient";P.angle=H;}else{if(z==="radial"){C=D*(G*2);A=N*(G*2);v=G*2*(v-0.5);t=G*2*(t-0.5);v+=u;t+=s;P.focussize=(C/D)/10+"% "+(A/N)/10+"%";P.alignshape=false;P.type="gradientradial";P.focus="100%";P.focusposition=Math.round(v*100)+"% "+Math.round(t*100)+"%";}}for(;L0?L+1:"";P["opacity"+F]=x+"";q+=", "+y+" "+J;}if(parseFloat(y)<100){q+=", 100% "+J;}P.colors=q.substr(2);return P;},_addTransform:function(r,q){q=b.Array(q);this._transform=d.trim(this._transform+" "+r+"("+q.join(", ")+")");q.unshift(r);this._transforms.push(q);if(this.initialized){this._updateTransform();}},_updateTransform:function(){var t=this.node,E,s,u,D=this.get("x"),B=this.get("y"),z,v,C=this.matrix,q=this._normalizedMatrix,r=this instanceof b.VMLPath,w=0,A=this._transforms.length;if(this._transforms&&this._transforms.length>0){u=this.get("transformOrigin");if(r){q.translate(this._left,this._top);}z=u[0]-0.5;v=u[1]-0.5;z=Math.max(-0.5,Math.min(0.5,z));v=Math.max(-0.5,Math.min(0.5,v));for(;w');this.node.appendChild(this._skew);}this._skew.matrix=s;this._skew.on=true;this._skew.offset=this._getSkewOffsetValue(q.dx)+"px, "+this._getSkewOffsetValue(q.dy)+"px";this._skew.origin=z+", "+v;}if(this._type!="path"){this._transforms=[];}t.style.left=D+"px";t.style.top=B+"px";},_getSkewOffsetValue:function(r){var q=b.MatrixUtil.sign(r),s=Math.abs(r);r=Math.min(s,32767)*q;return r;},_translateX:0,_translateY:0,_transform:"",translate:function(q,r){this._translateX+=q;this._translateY+=r;this._addTransform("translate",arguments);},translateX:function(q){this._translateX+=q;this._addTransform("translateX",arguments);},translateY:function(q){this._translateY+=q;this._addTransform("translateY",arguments);},skew:function(q,r){this._addTransform("skew",arguments);},skewX:function(q){this._addTransform("skewX",arguments); +},skewY:function(q){this._addTransform("skewY",arguments);},rotate:function(q){this._addTransform("rotate",arguments);},scale:function(q,r){this._addTransform("scale",arguments);},on:function(r,q){if(b.Node.DOM_EVENTS[r]){return b.one("#"+this.get("id")).on(r,q);}return b.on.apply(this,arguments);},_draw:function(){},_updateHandler:function(s){var r=this,q=r.node;r._fillChangeHandler();r._strokeChangeHandler();q.style.width=this.get("width")+"px";q.style.height=this.get("height")+"px";this._draw();r._updateTransform();},_createGraphicNode:function(q){q=q||this._type;return m.createElement("<"+q+' xmlns="urn:schemas-microsft.com:vml" style="behavior:url(#default#VML);display:inline-block;" class="vml'+q+'"/>');},_getDefaultFill:function(){return{type:"solid",cx:0.5,cy:0.5,fx:0.5,fy:0.5,r:0.5};},_getDefaultStroke:function(){return{weight:1,dashstyle:"none",color:"#000",opacity:1};},set:function(){var q=this;e.prototype.set.apply(q,arguments);if(q.initialized){q._updateHandler();}},getBounds:function(t){var v=this.get("stroke"),s=this.get("width"),u=this.get("height"),r=this.get("x"),z=this.get("y"),q=0;if(v&&v.weight){q=v.weight;}s=(r+s+q)-(r-q);u=(z+u+q)-(z-q);r-=q;z-=q;return this._normalizedMatrix.getContentRect(s,u,r,z);},destroy:function(){var q=this.get("graphic");if(q){q.removeShape(this);}else{this._destroy();}},_destroy:function(){if(this.node){if(this._fillNode){this.node.removeChild(this._fillNode);this._fillNode=null;}if(this._strokeNode){this.node.removeChild(this._strokeNode);this._strokeNode=null;}b.one(this.node).remove(true);}}},b.VMLDrawing.prototype));p.ATTRS={transformOrigin:{valueFn:function(){return[0.5,0.5];}},transform:{setter:function(t){var s=0,q,r;this.matrix.init();this._normalizedMatrix.init();this._transforms=this.matrix.getTransformArray(t);q=this._transforms.length;for(;s0?q*2:0;return r;}},height:{setter:function(q){this.set("radius",q/2);return q;},getter:function(){var q=this.get("radius"),r=q&&q>0?q*2:0;return r;}}});b.VMLCircle=l;a=function(){a.superclass.constructor.apply(this,arguments);};a.NAME="vmlPieSlice";b.extend(a,b.VMLShape,b.mix({_type:"shape",_draw:function(u){var r=this.get("cx"),v=this.get("cy"),t=this.get("startAngle"),s=this.get("arc"),q=this.get("radius");this.clear();this.drawWedge(r,v,t,s,q);this.end();}},b.VMLDrawing.prototype));a.ATTRS=b.mix({cx:{value:0},cy:{value:0},startAngle:{value:0},arc:{value:0},radius:{value:0}},b.VMLShape.ATTRS);b.VMLPieSlice=a;i=function(){i.superclass.constructor.apply(this,arguments);};i.NAME="vmlGraphic";i.ATTRS={render:{},id:{valueFn:function(){return b.guid();},setter:function(r){var q=this._node;if(q){q.setAttribute("id",r);}return r;}},shapes:{readOnly:true,getter:function(){return this._shapes;}},contentBounds:{readOnly:true,getter:function(){return this._contentBounds;}},node:{readOnly:true,getter:function(){return this._node;}},width:{setter:function(q){if(this._node){this._node.style.width=q+"px";}return q;}},height:{setter:function(q){if(this._node){this._node.style.height=q+"px";}return q;}},autoSize:{value:false},resizeDown:{getter:function(){return this._resizeDown;},setter:function(q){this._resizeDown=q;if(this._node){this._redraw();}return q;}},x:{getter:function(){return this._x;},setter:function(q){this._x=q;if(this._node){this._node.style.left=q+"px";}return q;}},y:{getter:function(){return this._y;},setter:function(q){this._y=q;if(this._node){this._node.style.top=q+"px";}return q;}},autoDraw:{value:true},visible:{value:true,setter:function(q){this._toggleVisible(q); +return q;}}};b.extend(i,b.GraphicBase,{_x:0,_y:0,getXY:function(){var q=b.one(this._node),r;if(q){r=q.getXY();}return r;},_resizeDown:false,initializer:function(q){var r=this.get("render");this._shapes={};this._contentBounds={left:0,top:0,right:0,bottom:0};this._node=this._createGraphic();this._node.setAttribute("id",this.get("id"));if(r){this.render(r);}},render:function(t){var q=b.one(t),r=this.get("width")||parseInt(q.getComputedStyle("width"),10),s=this.get("height")||parseInt(q.getComputedStyle("height"),10);q=q||m.body;q.appendChild(this._node);this.setSize(r,s);this.parentNode=q;this.set("width",r);this.set("height",s);return this;},destroy:function(){this.clear();b.one(this._node).remove(true);},addShape:function(q){q.graphic=this;var s=this._getShapeClass(q.type),r=new s(q);this._appendShape(r);return r;},_appendShape:function(r){var s=r.node,q=this._frag||this._node;if(this.get("autoDraw")){q.appendChild(s);}else{this._getDocFrag().appendChild(s);}},removeShape:function(q){if(!q instanceof p){if(d.isString(q)){q=this._shapes[q];}}if(q&&q instanceof p){q._destroy();this._shapes[q.get("id")]=null;delete this._shapes[q.get("id")];}if(this.get("autoDraw")){this._redraw();}},removeAllShapes:function(){var q=this._shapes,r;for(r in q){if(q.hasOwnProperty(r)){q[r].destroy();}}this._shapes={};},_removeChildren:function(q){if(q.hasChildNodes()){var r;while(q.firstChild){r=q.firstChild;this._removeChildren(r);q.removeChild(r);}}},clear:function(){this.removeAllShapes();this._removeChildren(this._node);},_toggleVisible:function(t){var s,r=this._shapes,q=t?"visible":"hidden";if(r){for(s in r){if(r.hasOwnProperty(s)){r[s].set("visible",t);}}}this._node.style.visibility=q;},setSize:function(q,r){q=Math.round(q);r=Math.round(r);this._node.style.width=q+"px";this._node.style.height=r+"px";this._node.coordSize=q+" "+r;},setPosition:function(q,r){q=Math.round(q);r=Math.round(r);this._node.style.left=q+"px";this._node.style.top=r+"px";},_createGraphic:function(){var q=m.createElement('');q.style.display="block";q.style.position="absolute";return q;},_createGraphicNode:function(q){return m.createElement("<"+q+' xmlns="urn:schemas-microsft.com:vml" style="behavior:url(#default#VML);display:inline-block;zoom:1;" />');},getShapeById:function(q){return this._shapes[q];},_getShapeClass:function(r){var q=this._shapeClass[r];if(q){return q;}return r;},_shapeClass:{circle:b.VMLCircle,rect:b.VMLRect,path:b.VMLPath,ellipse:b.VMLEllipse,pieslice:b.VMLPieSlice},batch:function(r){var q=this.get("autoDraw");this.set("autoDraw",false);r.apply();this._redraw();this.set("autoDraw",q);},_getDocFrag:function(){if(!this._frag){this._frag=m.createDocumentFragment();}return this._frag;},addToRedrawQueue:function(q){var s,r;this._shapes[q.get("id")]=q;if(!this._resizeDown){s=q.getBounds();r=this._contentBounds;r.left=r.lefts.right?r.right:s.right;r.bottom=r.bottom>s.bottom?r.bottom:s.bottom;r.width=r.right-r.left;r.height=r.bottom-r.top;this._contentBounds=r;}if(this.get("autoDraw")){this._redraw();}},_redraw:function(){var q=this._resizeDown?this._getUpdatedContentBounds():this._contentBounds;if(this.get("autoSize")){this.setSize(q.right,q.bottom);}if(this._frag){this._node.appendChild(this._frag);this._frag=null;}},_getUpdatedContentBounds:function(){var u,s,r,q=this._shapes,t={left:0,top:0,right:0,bottom:0};for(s in q){if(q.hasOwnProperty(s)){r=q[s];u=r.getBounds();t.left=Math.min(t.left,u.left);t.top=Math.min(t.top,u.top);t.right=Math.max(t.right,u.right);t.bottom=Math.max(t.bottom,u.bottom);}}t.width=t.right-t.left;t.height=t.bottom-t.top;this._contentBounds=t;return t;}});b.VMLGraphic=i;},"3.5.1",{skinnable:false,requires:["graphics"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics-vml/graphics-vml.js b/lib/yui/3.5.1/build/graphics-vml/graphics-vml.js similarity index 99% rename from lib/yui/3.5.0/build/graphics-vml/graphics-vml.js rename to lib/yui/3.5.1/build/graphics-vml/graphics-vml.js index 219ab5eb323..7c32244db61 100644 --- a/lib/yui/3.5.0/build/graphics-vml/graphics-vml.js +++ b/lib/yui/3.5.1/build/graphics-vml/graphics-vml.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -1170,7 +1170,7 @@ Y.extend(VMLShape, Y.GraphicBase, Y.mix({ this._skew.matrix = transform; this._skew.on = true; //use offset for translate - this._skew.offset = normalizedMatrix.dx + "px, " + normalizedMatrix.dy + "px"; + this._skew.offset = this._getSkewOffsetValue(normalizedMatrix.dx) + "px, " + this._getSkewOffsetValue(normalizedMatrix.dy) + "px"; this._skew.origin = tx + ", " + ty; } if(this._type != "path") @@ -1180,6 +1180,22 @@ Y.extend(VMLShape, Y.GraphicBase, Y.mix({ node.style.left = x + "px"; node.style.top = y + "px"; }, + + /** + * Normalizes the skew offset values between -32767 and 32767. + * + * @method _getSkewOffsetValue + * @param {Number} val The value to normalize + * @return Number + * @private + */ + _getSkewOffsetValue: function(val) + { + var sign = Y.MatrixUtil.sign(val), + absVal = Math.abs(val); + val = Math.min(absVal, 32767) * sign; + return val; + }, /** * Storage for translateX @@ -1549,10 +1565,6 @@ VMLShape.ATTRS = { transform = this._transforms[i]; } this._transform = val; - if(this.initialized) - { - this._updateTransform(); - } return val; }, @@ -2856,4 +2868,4 @@ Y.VMLGraphic = VMLGraphic; -}, '3.5.0' ,{skinnable:false, requires:['graphics']}); +}, '3.5.1' ,{skinnable:false, requires:['graphics']}); diff --git a/lib/yui/3.5.0/build/graphics/graphics-debug.js b/lib/yui/3.5.1/build/graphics/graphics-debug.js similarity index 99% rename from lib/yui/3.5.0/build/graphics/graphics-debug.js rename to lib/yui/3.5.1/build/graphics/graphics-debug.js index b48bfb89899..27dfc83d779 100644 --- a/lib/yui/3.5.0/build/graphics/graphics-debug.js +++ b/lib/yui/3.5.1/build/graphics/graphics-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -1130,4 +1130,4 @@ Y.GraphicBase = GraphicBase; */ -}, '3.5.0' ,{requires:['event-custom', 'node', 'pluginhost']}); +}, '3.5.1' ,{requires:['event-custom', 'node', 'pluginhost']}); diff --git a/lib/yui/3.5.0/build/graphics/graphics-min.js b/lib/yui/3.5.1/build/graphics/graphics-min.js similarity index 96% rename from lib/yui/3.5.0/build/graphics/graphics-min.js rename to lib/yui/3.5.1/build/graphics/graphics-min.js index 89f8c1a3010..89167a4193d 100644 --- a/lib/yui/3.5.0/build/graphics/graphics-min.js +++ b/lib/yui/3.5.1/build/graphics/graphics-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("graphics",function(b){var f="setter",g=b.Plugin.Host,j="value",a="valueFn",k="readOnly",c=b.Lang,e="string",h="writeOnce",i,d;d=function(){var l=this;l._ATTR_E_FACADE={};b.EventTarget.call(this,{emitFacade:true});l._state={};l.prototype=b.mix(d.prototype,l.prototype);};d.prototype={addAttrs:function(m){var q=this,o=this.constructor.ATTRS,l,n,p,r=q._state;for(n in o){if(o.hasOwnProperty(n)){l=o[n];if(l.hasOwnProperty(j)){r[n]=l.value;}else{if(l.hasOwnProperty(a)){p=l.valueFn;if(c.isString(p)){r[n]=q[p].apply(q);}else{r[n]=p.apply(q);}}}}}q._state=r;for(n in o){if(o.hasOwnProperty(n)){l=o[n];if(l.hasOwnProperty(k)&&l.readOnly){continue;}if(l.hasOwnProperty(h)&&l.writeOnce){l.readOnly=true;}if(m&&m.hasOwnProperty(n)){if(l.hasOwnProperty(f)){q._state[n]=l.setter.apply(q,[m[n]]);}else{q._state[n]=m[n];}}}}},get:function(m){var o=this,l,n=o.constructor.ATTRS;if(n&&n[m]){l=n[m].getter;if(l){if(typeof l==e){return o[l].apply(o);}return n[m].getter.apply(o);}return o._state[m];}return null;},set:function(l,n){var m;if(c.isObject(l)){for(m in l){if(l.hasOwnProperty(m)){this._set(m,l[m]);}}}else{this._set.apply(this,arguments);}},_set:function(l,p){var o=this,q,m,n=o.constructor.ATTRS;if(n&&n.hasOwnProperty(l)){q=n[l].setter;if(q){m=[p];if(typeof q==e){p=o[q].apply(o,m);}else{p=n[l].setter.apply(o,m);}}o._state[l]=p;}}};b.mix(d,b.EventTarget,false,null,1);b.AttributeLite=d;i=function(l){var n=this,m=b.Plugin&&b.Plugin.Host;if(n._initPlugins&&m){m.call(n);}n.name=n.constructor.NAME;n._eventPrefix=n.constructor.EVENT_PREFIX||n.constructor.NAME;d.call(n);n.addAttrs(l);n.init.apply(this,arguments);if(n._initPlugins){n._initPlugins(l);}n.initialized=true;};i.NAME="baseGraphic";i.prototype={init:function(){this.publish("init",{fireOnce:true});this.initializer.apply(this,arguments);this.fire("init",{cfg:arguments[0]});}};b.mix(i,b.AttributeLite,false,null,1);b.mix(i,g,false,null,1);i.prototype.constructor=i;i.plug=g.plug;i.unplug=g.unplug;b.GraphicBase=i;},"3.5.0",{requires:["event-custom","node","pluginhost"]}); \ No newline at end of file +YUI.add("graphics",function(b){var f="setter",g=b.Plugin.Host,j="value",a="valueFn",k="readOnly",c=b.Lang,e="string",h="writeOnce",i,d;d=function(){var l=this;l._ATTR_E_FACADE={};b.EventTarget.call(this,{emitFacade:true});l._state={};l.prototype=b.mix(d.prototype,l.prototype);};d.prototype={addAttrs:function(m){var q=this,o=this.constructor.ATTRS,l,n,p,r=q._state;for(n in o){if(o.hasOwnProperty(n)){l=o[n];if(l.hasOwnProperty(j)){r[n]=l.value;}else{if(l.hasOwnProperty(a)){p=l.valueFn;if(c.isString(p)){r[n]=q[p].apply(q);}else{r[n]=p.apply(q);}}}}}q._state=r;for(n in o){if(o.hasOwnProperty(n)){l=o[n];if(l.hasOwnProperty(k)&&l.readOnly){continue;}if(l.hasOwnProperty(h)&&l.writeOnce){l.readOnly=true;}if(m&&m.hasOwnProperty(n)){if(l.hasOwnProperty(f)){q._state[n]=l.setter.apply(q,[m[n]]);}else{q._state[n]=m[n];}}}}},get:function(m){var o=this,l,n=o.constructor.ATTRS;if(n&&n[m]){l=n[m].getter;if(l){if(typeof l==e){return o[l].apply(o);}return n[m].getter.apply(o);}return o._state[m];}return null;},set:function(l,n){var m;if(c.isObject(l)){for(m in l){if(l.hasOwnProperty(m)){this._set(m,l[m]);}}}else{this._set.apply(this,arguments);}},_set:function(l,p){var o=this,q,m,n=o.constructor.ATTRS;if(n&&n.hasOwnProperty(l)){q=n[l].setter;if(q){m=[p];if(typeof q==e){p=o[q].apply(o,m);}else{p=n[l].setter.apply(o,m);}}o._state[l]=p;}}};b.mix(d,b.EventTarget,false,null,1);b.AttributeLite=d;i=function(l){var n=this,m=b.Plugin&&b.Plugin.Host;if(n._initPlugins&&m){m.call(n);}n.name=n.constructor.NAME;n._eventPrefix=n.constructor.EVENT_PREFIX||n.constructor.NAME;d.call(n);n.addAttrs(l);n.init.apply(this,arguments);if(n._initPlugins){n._initPlugins(l);}n.initialized=true;};i.NAME="baseGraphic";i.prototype={init:function(){this.publish("init",{fireOnce:true});this.initializer.apply(this,arguments);this.fire("init",{cfg:arguments[0]});}};b.mix(i,b.AttributeLite,false,null,1);b.mix(i,g,false,null,1);i.prototype.constructor=i;i.plug=g.plug;i.unplug=g.unplug;b.GraphicBase=i;},"3.5.1",{requires:["event-custom","node","pluginhost"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/graphics/graphics.js b/lib/yui/3.5.1/build/graphics/graphics.js similarity index 99% rename from lib/yui/3.5.0/build/graphics/graphics.js rename to lib/yui/3.5.1/build/graphics/graphics.js index b48bfb89899..27dfc83d779 100644 --- a/lib/yui/3.5.0/build/graphics/graphics.js +++ b/lib/yui/3.5.1/build/graphics/graphics.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -1130,4 +1130,4 @@ Y.GraphicBase = GraphicBase; */ -}, '3.5.0' ,{requires:['event-custom', 'node', 'pluginhost']}); +}, '3.5.1' ,{requires:['event-custom', 'node', 'pluginhost']}); diff --git a/lib/yui/3.5.0/build/handlebars-base/handlebars-base-debug.js b/lib/yui/3.5.1/build/handlebars-base/handlebars-base-debug.js similarity index 99% rename from lib/yui/3.5.0/build/handlebars-base/handlebars-base-debug.js rename to lib/yui/3.5.1/build/handlebars-base/handlebars-base-debug.js index d36a4b3ce28..58a8464b2b1 100644 --- a/lib/yui/3.5.0/build/handlebars-base/handlebars-base-debug.js +++ b/lib/yui/3.5.1/build/handlebars-base/handlebars-base-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -356,4 +356,4 @@ Converts a precompiled template into a renderable template function. */ -}, '3.5.0' ,{requires:['escape']}); +}, '3.5.1' ,{requires:['escape']}); diff --git a/lib/yui/3.5.0/build/handlebars-base/handlebars-base-min.js b/lib/yui/3.5.1/build/handlebars-base/handlebars-base-min.js similarity index 97% rename from lib/yui/3.5.0/build/handlebars-base/handlebars-base-min.js rename to lib/yui/3.5.1/build/handlebars-base/handlebars-base-min.js index f4253f5ac83..d56a0fd8f58 100644 --- a/lib/yui/3.5.0/build/handlebars-base/handlebars-base-min.js +++ b/lib/yui/3.5.1/build/handlebars-base/handlebars-base-min.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -9,4 +9,4 @@ YUI.add("handlebars-base",function(e){ Handlebars.js - Copyright (C) 2011 Yehuda Katz https://raw.github.com/wycats/handlebars.js/master/LICENSE */ -var d={};d.VERSION="1.0.beta.5";d.helpers={};d.partials={};d.registerHelper=function(g,h,f){if(f){h.not=f;}this.helpers[g]=h;};d.registerPartial=function(f,g){this.partials[f]=g;};d.registerHelper("helperMissing",function(f){if(arguments.length===2){return undefined;}else{throw new Error("Could not find property '"+f+"'");}});var b=Object.prototype.toString,c="[object Function]";d.registerHelper("blockHelperMissing",function(m,k){var f=k.inverse||function(){},o=k.fn;var h="";var n=b.call(m);if(n===c){m=m.call(this);}if(m===true){return o(this);}else{if(m===false||m==null){return f(this);}else{if(n==="[object Array]"){if(m.length>0){for(var l=0,g=m.length;l0){for(var l=0,g=m.length;l0){for(var l=0,g=m.length;l0){for(var l=0,g=m.length;l2){t.push("'"+this.terminals_[D]+"'");}}var F="";if(this.lexer.showPosition){F="Parse error on line "+(w+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+t.join(", ")+", got '"+this.terminals_[I]+"'";}else{F="Parse error on line "+(w+1)+": Unexpected "+(I==1?"end of input":("'"+(this.terminals_[I]||I)+"'"));}this.parseError(F,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:n,expected:t});}if(o==3){if(I==z){throw new Error(F||"Parsing halted.");}J=this.lexer.yyleng;m=this.lexer.yytext;w=this.lexer.yylineno;n=this.lexer.yylloc;I=A();}while(1){if((u.toString()) in M[q]){break;}if(q==0){throw new Error(F||"Parsing halted.");}B(1);q=s[s.length-1];}E=I;I=u;q=s[s.length-1];H=M[q]&&M[q][u];o=3;}if(H[0] instanceof Array&&H.length>1){throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+I);}switch(H[0]){case 1:s.push(I);L.push(this.lexer.yytext);x.push(this.lexer.yylloc);s.push(H[1]);I=null;if(!E){J=this.lexer.yyleng;m=this.lexer.yytext;w=this.lexer.yylineno;n=this.lexer.yylloc;if(o>0){o--;}}else{I=E;E=null;}break;case 2:K=this.productions_[H[1]][1];G.$=L[L.length-K];G._$={first_line:x[x.length-(K||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(K||1)].first_column,last_column:x[x.length-1].last_column};y=this.performAction.call(G,m,J,w,this.yy,H[1],L,x);if(typeof y!=="undefined"){return y;}if(K){s=s.slice(0,-1*K*2);L=L.slice(0,-1*K);x=x.slice(0,-1*K);}s.push(this.productions_[H[1]][0]);L.push(G.$);x.push(G._$);l=M[s[s.length-2]][s[s.length-1]];s.push(l);break;case 3:return true;}}return true;}};var f=(function(){var o=({EOF:1,parseError:function q(t,s){if(this.yy.parseError){this.yy.parseError(t,s);}else{throw new Error(t);}},setInput:function(s){this._input=s;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};return this;},input:function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.match+=t;this.matched+=t;var s=t.match(/\n/);if(s){this.yylineno++;}this._input=this._input.slice(1);return t;},unput:function(s){this._input=s+this._input;return this;},more:function(){this._more=true;return this;},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"");},upcomingInput:function(){var s=this.match;if(s.length<20){s+=this._input.substr(0,20-s.length);}return(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"");},showPosition:function(){var s=this.pastInput();var t=new Array(s.length+1).join("-");return s+this.upcomingInput()+"\n"+t+"^";},next:function(){if(this.done){return this.EOF;}if(!this._input){this.done=true;}var w,u,t,s;if(!this._more){this.yytext="";this.match="";}var x=this._currentRules();for(var v=0;v/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/,/^\[[^\]]*\]/,/^./,/^$/]; o.conditions={"mu":{"rules":[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],"inclusive":false},"emu":{"rules":[2],"inclusive":false},"INITIAL":{"rules":[0,1,26],"inclusive":true}};return o;})();k.lexer=f;return k;})();if(typeof require!=="undefined"&&typeof exports!=="undefined"){exports.parser=a;exports.parse=function(){return a.parse.apply(a,arguments);};exports.main=function b(f){if(!f[1]){throw new Error("Usage: "+f[0]+" FILE");}if(typeof process!=="undefined"){var h=require("fs").readFileSync(require("path").join(process.cwd(),f[1]),"utf8");}else{var g=require("file").path(require("file").cwd());var h=g.join(f[1]).read({charset:"utf-8"});}return exports.parser.parse(h);};if(typeof module!=="undefined"&&require.main===module){exports.main(typeof process!=="undefined"?process.argv.slice(1):require("system").args);}}d.Parser=a;d.parse=function(f){d.Parser.yy=d.AST;return d.Parser.parse(f);};d.print=function(f){return new d.PrintVisitor().accept(f);};d.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(g,f){}};d.log=function(g,f){d.logger.log(g,f);};(function(){d.AST={};d.AST.ProgramNode=function(h,g){this.type="program";this.statements=h;if(g){this.inverse=new d.AST.ProgramNode(g);}};d.AST.MustacheNode=function(i,h,g){this.type="mustache";this.id=i[0];this.params=i.slice(1);this.hash=h;this.escaped=!g;};d.AST.PartialNode=function(h,g){this.type="partial";this.id=h;this.context=g;};var f=function(g,h){if(g.original!==h.original){throw new d.Exception(g.original+" doesn't match "+h.original);}};d.AST.BlockNode=function(h,g,i){f(h.id,i);this.type="block";this.mustache=h;this.program=g;};d.AST.InverseNode=function(h,g,i){f(h.id,i);this.type="inverse";this.mustache=h;this.program=g;};d.AST.ContentNode=function(g){this.type="content";this.string=g;};d.AST.HashNode=function(g){this.type="hash";this.pairs=g;};d.AST.IdNode=function(m){this.type="ID";this.original=m.join(".");var j=[],n=0;for(var k=0,g=m.length;k0){this.source[1]=this.source[1]+", "+v.join(", ");}if(!this.isChild){var q=[];for(var t in this.context.aliases){this.source[1]=this.source[1]+", "+t+"="+this.context.aliases[t];}}if(this.source[1]){this.source[1]="var "+this.source[1].substring(2)+";";}if(!this.isChild){this.source[1]+="\n"+this.context.programs.join("\n")+"\n";}if(!this.environment.isSimple){this.source.push("return buffer;");}var w=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"];for(var s=0,p=this.environment.depths.list.length;sthis.stackVars.length){this.stackVars.push("stack"+this.stackSlot);}return"stack"+this.stackSlot;},popStack:function(){return"stack"+this.stackSlot--;},topStack:function(){return"stack"+this.stackSlot;},quotedString:function(i){return'"'+i.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"';}};var f=("break else new var"+" case finally return void"+" catch for switch while"+" continue function this with"+" default if throw"+" delete in try"+" do instanceof typeof"+" abstract enum int short"+" boolean export interface static"+" byte extends long super"+" char final native synchronized"+" class float package throws"+" const goto private transient"+" debugger implements protected volatile"+" double import public let yield").split(" ");var j=k.RESERVED_WORDS={};for(var h=0,g=f.length;hthis.stackVars.length){this.stackVars.push("stack"+this.stackSlot);}return"stack"+this.stackSlot;},popStack:function(){return"stack"+this.stackSlot--;},topStack:function(){return"stack"+this.stackSlot;},quotedString:function(i){return'"'+i.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"';}};var f=("break else new var"+" case finally return void"+" catch for switch while"+" continue function this with"+" default if throw"+" delete in try"+" do instanceof typeof"+" abstract enum int short"+" boolean export interface static"+" byte extends long super"+" char final native synchronized"+" class float package throws"+" const goto private transient"+" debugger implements protected volatile"+" double import public let yield").split(" ");var j=k.RESERVED_WORDS={};for(var h=0,g=f.length;h{s}',all:function(r,j,s){var p=[],o,m,n,l,q,k;if(!s){s=f;}o=s.escapeHTML!==false;q=s.startsWith?b._START_REGEX:b._REGEX;k=s.replacer||b._REPLACER;j=a(j)?j:[j];for(m=0,n=j.length;m{s}',all:function(r,j,s){var p=[],o,m,n,l,q,k;if(!s){s=f;}o=s.escapeHTML!==false;q=s.startsWith?b._START_REGEX:b._REGEX;k=s.replacer||b._REPLACER;j=a(j)?j:[j];for(m=0,n=j.length;m=2)&&(!b.UA.android||b.UA.android>=2.4));d.nativeHashChange=("onhashchange" in j||"onhashchange" in n)&&(!f||f>7);b.mix(d.prototype,{_init:function(p){var o;p=this._config=p||{};this.force=!!p.force;o=this._initialState=this._initialState||p.initialState||null;this.publish(h,{broadcast:2,defaultFn:this._defChangeFn});if(o){this.replace(o);}},add:function(){var o=m(arguments,0,true);o.unshift(a);return this._change.apply(this,o);},addValue:function(p,r,o){var q={};q[p]=r;return this._change(a,q,o);},get:function(p){var q=l._state,o=k(q);if(p){return o&&e.owns(q,p)?q[p]:undefined;}else{return o?b.mix({},q,true):q;}},replace:function(){var o=m(arguments,0,true);o.unshift(g);return this._change.apply(this,o);},replaceValue:function(p,r,o){var q={};q[p]=r;return this._change(g,q,o);},_change:function(q,p,o){o=o?b.merge(c,o):c;if(o.merge&&k(p)&&k(l._state)){p=b.merge(l._state,p);}this._resolveChanges(q,p,o);return this;},_fireEvents:function(q,p,o){this.fire(h,{_options:o,changed:p.changed,newVal:p.newState,prevVal:p.prevState,removed:p.removed,src:q});e.each(p.changed,function(s,r){this._fireChangeEvent(q,r,s);},this);e.each(p.removed,function(s,r){this._fireRemoveEvent(q,r,s);},this);},_fireChangeEvent:function(q,o,p){this.fire(o+"Change",{newVal:p.newVal,prevVal:p.prevVal,src:q});},_fireRemoveEvent:function(q,o,p){this.fire(o+"Remove",{prevVal:p,src:q});},_resolveChanges:function(u,s,p){var t={},o,r=l._state,q={};s||(s={});p||(p={});if(k(s)&&k(r)){e.each(s,function(v,w){var x=r[w];if(v!==x){t[w]={newVal:v,prevVal:x};o=true;}},this);e.each(r,function(w,v){if(!e.owns(s,v)||s[v]===null){delete s[v];q[v]=w;o=true;}},this);}else{o=s!==r;}if(o||this.force){this._fireEvents(u,{changed:t,newState:s,prevState:r,removed:q},p);}},_storeState:function(p,o){l._state=o||{};},_defChangeFn:function(o){this._storeState(o.src,o.newVal,o._options);}},true);b.HistoryBase=d;},"3.5.0",{requires:["event-custom-complex"]}); \ No newline at end of file +YUI.add("history-base",function(b){var i=b.Lang,e=b.Object,l=YUI.namespace("Env.History"),m=b.Array,n=b.config.doc,f=n.documentMode,j=b.config.win,c={merge:true},h="change",a="add",g="replace";function d(){this._init.apply(this,arguments);}b.augment(d,b.EventTarget,null,null,{emitFacade:true,prefix:"history",preventable:false,queueable:true});if(!l._state){l._state={};}function k(o){return i.type(o)==="object";}d.NAME="historyBase";d.SRC_ADD=a;d.SRC_REPLACE=g;d.html5=!!(j.history&&j.history.pushState&&j.history.replaceState&&("onpopstate" in j||b.UA.gecko>=2)&&(!b.UA.android||b.UA.android>=2.4));d.nativeHashChange=("onhashchange" in j||"onhashchange" in n)&&(!f||f>7);b.mix(d.prototype,{_init:function(p){var o;p=this._config=p||{};this.force=!!p.force;o=this._initialState=this._initialState||p.initialState||null;this.publish(h,{broadcast:2,defaultFn:this._defChangeFn});if(o){this.replace(o);}},add:function(){var o=m(arguments,0,true);o.unshift(a);return this._change.apply(this,o);},addValue:function(p,r,o){var q={};q[p]=r;return this._change(a,q,o);},get:function(p){var q=l._state,o=k(q);if(p){return o&&e.owns(q,p)?q[p]:undefined;}else{return o?b.mix({},q,true):q;}},replace:function(){var o=m(arguments,0,true);o.unshift(g);return this._change.apply(this,o);},replaceValue:function(p,r,o){var q={};q[p]=r;return this._change(g,q,o);},_change:function(q,p,o){o=o?b.merge(c,o):c;if(o.merge&&k(p)&&k(l._state)){p=b.merge(l._state,p);}this._resolveChanges(q,p,o);return this;},_fireEvents:function(q,p,o){this.fire(h,{_options:o,changed:p.changed,newVal:p.newState,prevVal:p.prevState,removed:p.removed,src:q});e.each(p.changed,function(s,r){this._fireChangeEvent(q,r,s);},this);e.each(p.removed,function(s,r){this._fireRemoveEvent(q,r,s);},this);},_fireChangeEvent:function(q,o,p){this.fire(o+"Change",{newVal:p.newVal,prevVal:p.prevVal,src:q});},_fireRemoveEvent:function(q,o,p){this.fire(o+"Remove",{prevVal:p,src:q});},_resolveChanges:function(u,s,p){var t={},o,r=l._state,q={};s||(s={});p||(p={});if(k(s)&&k(r)){e.each(s,function(v,w){var x=r[w];if(v!==x){t[w]={newVal:v,prevVal:x};o=true;}},this);e.each(r,function(w,v){if(!e.owns(s,v)||s[v]===null){delete s[v];q[v]=w;o=true;}},this);}else{o=s!==r;}if(o||this.force){this._fireEvents(u,{changed:t,newState:s,prevState:r,removed:q},p);}},_storeState:function(p,o){l._state=o||{};},_defChangeFn:function(o){this._storeState(o.src,o.newVal,o._options);}},true);b.HistoryBase=d;},"3.5.1",{requires:["event-custom-complex"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/history-base/history-base.js b/lib/yui/3.5.1/build/history-base/history-base.js similarity index 99% rename from lib/yui/3.5.0/build/history-base/history-base.js rename to lib/yui/3.5.1/build/history-base/history-base.js index 32a7e7af2b5..298ec38cdb6 100644 --- a/lib/yui/3.5.0/build/history-base/history-base.js +++ b/lib/yui/3.5.1/build/history-base/history-base.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -643,4 +643,4 @@ Y.mix(HistoryBase.prototype, { Y.HistoryBase = HistoryBase; -}, '3.5.0' ,{requires:['event-custom-complex']}); +}, '3.5.1' ,{requires:['event-custom-complex']}); diff --git a/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-debug.js b/lib/yui/3.5.1/build/history-hash-ie/history-hash-ie-debug.js similarity index 98% rename from lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-debug.js rename to lib/yui/3.5.1/build/history-hash-ie/history-hash-ie-debug.js index bf89519efe6..ac4e080b553 100644 --- a/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-debug.js +++ b/lib/yui/3.5.1/build/history-hash-ie/history-hash-ie-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -141,4 +141,4 @@ if (Y.UA.ie && !Y.HistoryBase.nativeHashChange) { } -}, '3.5.0' ,{requires:['history-hash', 'node-base']}); +}, '3.5.1' ,{requires:['history-hash', 'node-base']}); diff --git a/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-min.js b/lib/yui/3.5.1/build/history-hash-ie/history-hash-ie-min.js similarity index 92% rename from lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-min.js rename to lib/yui/3.5.1/build/history-hash-ie/history-hash-ie-min.js index ee974ed7198..4a02e12a0d3 100644 --- a/lib/yui/3.5.0/build/history-hash-ie/history-hash-ie-min.js +++ b/lib/yui/3.5.1/build/history-hash-ie/history-hash-ie-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("history-hash-ie",function(f){if(f.UA.ie&&!f.HistoryBase.nativeHashChange){var b=f.Do,c=YUI.namespace("Env.HistoryHash"),a=f.HistoryHash,d=c._iframe,e=f.config.win;a.getIframeHash=function(){if(!d||!d.contentWindow){return"";}var g=a.hashPrefix,h=d.contentWindow.location.hash.substr(1);return g&&h.indexOf(g)===0?h.replace(g,""):h;};a._updateIframe=function(h,g){var i=d&&d.contentWindow&&d.contentWindow.document,j=i&&i.location;if(!i||!j){return;}if(g){j.replace(h.charAt(0)==="#"?h:"#"+h);}else{i.open().close();j.hash=h;}};b.before(a._updateIframe,a,"replaceHash",a,true);if(!d){f.on("domready",function(){var g=a.getHash();d=c._iframe=f.Node.getDOMNode(f.Node.create('';al.ATTRS={useARIA:{value:true,writeOnce:true,lazyAdd:false,setter:function(aw){var at=this.get(B),ax,Y,av,au;if(aw){at.set(aq,r);at.all("ul,li,"+M).set(aq,n);at.all((i+am(g,Z))).set(aq,g);at.all((i+aj)).each(function(ay){ax=ay;Y=ay.one(ah);if(Y){Y.set(aq,n);ax=Y.previous();}ax.set(aq,g);ax.set("aria-haspopup",true);av=ay.next();if(av){av.set(aq,r);ax=av.previous();Y=ax.one(ah);if(Y){ax=Y;}au=d.stamp(ax);if(!ax.get(F)){ax.set(F,au);}av.set("aria-labelledby",au);av.set(X,true);}});}}},autoSubmenuDisplay:{value:true,writeOnce:true},submenuShowDelay:{value:250,writeOnce:true},submenuHideDelay:{value:250,writeOnce:true},mouseOutHideDelay:{value:750,writeOnce:true}};d.extend(al,d.Plugin.Base,{_rootMenu:null,_activeItem:null,_activeMenu:null,_hasFocus:false,_blockMouseEvent:false,_currentMouseX:0,_movingToSubmenu:false,_showSubmenuTimer:null,_hideSubmenuTimer:null,_hideAllSubmenusTimer:null,_firstItem:null,initializer:function(au){var av=this,aw=this.get(B),at=[],Y;if(aw){av._rootMenu=aw;aw.all("ul:first-child").addClass(u);aw.all(H).addClass(ag);at.push(aw.on("mouseover",av._onMouseOver,av));at.push(aw.on("mouseout",av._onMouseOut,av));at.push(aw.on("mousemove",av._onMouseMove,av));at.push(aw.on(W,av._toggleSubmenuDisplay,av));at.push(d.on("key",av._toggleSubmenuDisplay,aw,"down:13",av));at.push(aw.on(ac,av._toggleSubmenuDisplay,av));at.push(aw.on("keypress",av._onKeyPress,av));at.push(aw.on(ap,av._onKeyDown,av));Y=aw.get("ownerDocument");at.push(Y.on(W,av._onDocMouseDown,av));at.push(Y.on("focus",av._onDocFocus,av));this._eventHandlers=at;av._initFocusManager();}},destructor:function(){var Y=this._eventHandlers;if(Y){d.Array.each(Y,function(at){at.detach();});this._eventHandlers=null;}this.get(B).unplug("focusManager");},_isRoot:function(Y){return this._rootMenu.compareTo(Y);},_getTopmostSubmenu:function(av){var au=this,Y=m(av),at;if(!Y){at=av;}else{if(au._isRoot(Y)){at=av;}else{at=au._getTopmostSubmenu(Y);}}return at;},_clearActiveItem:function(){var at=this,Y=at._activeItem;if(Y){Y.removeClass(E(Y));}at._activeItem=null;},_setActiveItem:function(at){var Y=this;if(at){Y._clearActiveItem();at.addClass(E(at));Y._activeItem=at;}},_focusItem:function(au){var at=this,Y,av;if(au&&at._hasFocus){Y=m(au);av=P(au);if(Y&&!Y.compareTo(at._activeMenu)){at._activeMenu=Y;at._initFocusManager();}at._focusManager.focus(av);}},_showMenu:function(av){var Y=m(av),au=av.get(s),at=au.getXY();if(this.get(j)){av.set(X,false);}if(Q(Y)){at[1]=at[1]+au.get(aa);}else{at[0]=at[0]+au.get(ad);}av.setXY(at);if(L.ie<8){if(L.ie===6&&!av.hasIFrameShim){av.appendChild(d.Node.create(al.SHIM_TEMPLATE));av.hasIFrameShim=true;}av.setStyles({height:q,width:q});av.setStyles({height:(av.get(aa)+ao),width:(av.get(ad)+ao)});}av.previous().addClass(x);av.removeClass(ag);},_hideMenu:function(av,at){var au=this,aw=av.previous(),Y;aw.removeClass(x);if(at){au._focusItem(aw);au._setActiveItem(aw);}Y=av.one((i+a));if(Y){Y.removeClass(a);}av.setStyles({left:q,top:q});av.addClass(ag);if(au.get(j)){av.set(X,true);}},_hideAllSubmenus:function(at){var Y=this;at.all(H).each(d.bind(function(au){Y._hideMenu(au);},Y));},_cancelShowSubmenuTimer:function(){var at=this,Y=at._showSubmenuTimer;if(Y){Y.cancel();at._showSubmenuTimer=null;}},_cancelHideSubmenuTimer:function(){var Y=this,at=Y._hideSubmenuTimer;if(at){at.cancel();Y._hideSubmenuTimer=null;}},_initFocusManager:function(){var av=this,ax=av._rootMenu,at=av._activeMenu||ax,aw=av._isRoot(at)?q:("#"+at.get("id")),Y=av._focusManager,au,ay,az;if(Q(at)){ay=aw+an+","+aw+o;au={next:"down:39",previous:"down:37"};}else{ay=aw+an;au={next:"down:40",previous:"down:38"};}if(!Y){ax.plug(d.Plugin.NodeFocusManager,{descendants:ay,keys:au,circular:true});Y=ax.focusManager;az="#"+ax.get("id")+H+" a,"+ah;ax.all(az).set("tabIndex",-1);Y.on(G,this._onActiveDescendantChange,Y,this);Y.after(G,this._afterActiveDescendantChange,Y,this); av._focusManager=Y;}else{Y.set(U,-1);Y.set(ae,ay);Y.set("keys",au);}},_onActiveDescendantChange:function(at,Y){if(at.src===I&&Y._activeMenu&&!Y._movingToSubmenu){Y._hideAllSubmenus(Y._activeMenu);}},_afterActiveDescendantChange:function(at,Y){var au;if(at.src===I){au=b(this.get(ae).item(at.newVal),true);Y._setActiveItem(au);}},_onDocFocus:function(aw){var av=this,Y=av._activeItem,au=aw.target,at;if(av._rootMenu.contains(au)){if(av._hasFocus){at=m(au);if(!av._activeMenu.compareTo(at)){av._activeMenu=at;av._initFocusManager();av._focusManager.set(U,au);av._setActiveItem(b(au,true));}}else{av._hasFocus=true;Y=b(au,true);if(Y){av._setActiveItem(Y);}}}else{av._clearActiveItem();av._cancelShowSubmenuTimer();av._hideAllSubmenus(av._rootMenu);av._activeMenu=av._rootMenu;av._initFocusManager();av._focusManager.set(U,0);av._hasFocus=false;}},_onMenuMouseOver:function(av,au){var at=this,Y=at._hideAllSubmenusTimer;if(Y){Y.cancel();at._hideAllSubmenusTimer=null;}at._cancelHideSubmenuTimer();if(av&&!av.compareTo(at._activeMenu)){at._activeMenu=av;if(at._hasFocus){at._initFocusManager();}}if(at._movingToSubmenu&&Q(av)){at._movingToSubmenu=false;}},_hideAndFocusLabel:function(){var au=this,at=au._activeMenu,Y;au._hideAllSubmenus(au._rootMenu);if(at){Y=au._getTopmostSubmenu(at);au._focusItem(Y.previous());}},_onMenuMouseOut:function(az,ax){var aw=this,au=aw._activeMenu,ay=ax.relatedTarget,Y=aw._activeItem,av,at;if(au&&!au.contains(ay)){av=m(au);if(av&&!av.contains(ay)){if(aw.get(t)>0){aw._cancelShowSubmenuTimer();aw._hideAllSubmenusTimer=T(aw.get(t),aw,aw._hideAndFocusLabel);}}else{if(Y){at=m(Y);if(!aw._isRoot(at)){aw._focusItem(at.previous());}}}}},_onMenuLabelMouseOver:function(av,Y){var at=this,aw=at._activeMenu,az=at._isRoot(aw),au=(at.get(V)&&az||!az),ax=at.get("submenuShowDelay"),ay;var aA=function(aB){at._cancelHideSubmenuTimer();at._cancelShowSubmenuTimer();if(!N(av)){ay=av.next();if(ay){at._hideAllSubmenus(aw);at._showSubmenuTimer=T(aB,at,at._showMenu,ay);}}};at._focusItem(av);at._setActiveItem(av);if(au){if(at._movingToSubmenu){d.message("Pause path");at._hoverTimer=T(ax,at,function(){aA(0);});}else{aA(ax);}}},_onMenuLabelMouseOut:function(aw,ay){var ax=this,at=ax._isRoot(ax._activeMenu),av=(ax.get(V)&&at||!at),az=ay.relatedTarget,au=aw.next(),Y=ax._hoverTimer;if(Y){Y.cancel();}ax._clearActiveItem();if(av){if(ax._movingToSubmenu&&!ax._showSubmenuTimer&&au){ax._hideSubmenuTimer=T(ax.get("submenuHideDelay"),ax,ax._hideMenu,au);}else{if(!ax._movingToSubmenu&&au&&(!az||(az&&!au.contains(az)&&!az.compareTo(au)))){ax._cancelShowSubmenuTimer();ax._hideMenu(au);}}}},_onMenuItemMouseOver:function(av,ax){var aw=this,au=aw._activeMenu,Y=aw._isRoot(au),at=(aw.get(V)&&Y||!Y);aw._focusItem(av);aw._setActiveItem(av);if(at&&!aw._movingToSubmenu){aw._hideAllSubmenus(au);}},_onMenuItemMouseOut:function(Y,at){this._clearActiveItem();},_onVerticalMenuKeyDown:function(Y){var at=this,ax=at._activeMenu,aC=at._rootMenu,au=Y.target,aw=false,aB=Y.keyCode,az,av,ay,aA;switch(aB){case 37:av=m(ax);if(av&&Q(av)){at._hideMenu(ax);ay=l(ax.get(s));aA=b(ay);if(aA){if(S(aA)){az=aA.next();if(az){at._showMenu(az);at._focusItem(c(az));at._setActiveItem(c(az));}else{at._focusItem(aA);at._setActiveItem(aA);}}else{at._focusItem(aA);at._setActiveItem(aA);}}}else{if(!at._isRoot(ax)){at._hideMenu(ax,true);}}aw=true;break;case 39:if(S(au)){az=au.next();if(az){at._showMenu(az);at._focusItem(c(az));at._setActiveItem(c(az));}}else{if(Q(aC)){az=at._getTopmostSubmenu(ax);ay=A(az.get(s));aA=b(ay);at._hideAllSubmenus(aC);if(aA){if(S(aA)){az=aA.next();if(az){at._showMenu(az);at._focusItem(c(az));at._setActiveItem(c(az));}else{at._focusItem(aA);at._setActiveItem(aA);}}else{at._focusItem(aA);at._setActiveItem(aA);}}}}aw=true;break;}if(aw){Y.preventDefault();}},_onHorizontalMenuKeyDown:function(ay){var ax=this,av=ax._activeMenu,at=ay.target,Y=b(at,true),aw=false,az=ay.keyCode,au;if(az===40){ax._hideAllSubmenus(av);if(S(Y)){au=Y.next();if(au){ax._showMenu(au);ax._focusItem(c(au));ax._setActiveItem(c(au));}aw=true;}}if(aw){ay.preventDefault();}},_onMouseMove:function(at){var Y=this;T(10,Y,function(){Y._currentMouseX=at.pageX;});},_onMouseOver:function(aw){var av=this,at,Y,ay,au,ax;if(av._blockMouseEvent){av._blockMouseEvent=false;}else{at=aw.target;Y=w(at,true);ay=O(at,true);ax=af(at,true);if(D(Y,at)){av._onMenuMouseOver(Y,aw);Y[R]=true;Y[e]=false;au=m(Y);if(au){au[e]=true;au[R]=false;}}if(D(ay,at)){av._onMenuLabelMouseOver(ay,aw);ay[R]=true;ay[e]=false;}if(D(ax,at)){av._onMenuItemMouseOver(ax,aw);ax[R]=true;ax[e]=false;}}},_onMouseOut:function(at){var au=this,aw=au._activeMenu,aB=false,av,ax,az,Y,ay,aA;au._movingToSubmenu=(aw&&!Q(aw)&&((at.pageX-5)>au._currentMouseX));av=at.target;ax=at.relatedTarget;az=w(av,true);Y=O(av,true);aA=af(av,true);if(h(Y,ax)){au._onMenuLabelMouseOut(Y,at);Y[e]=true;Y[R]=false;}if(h(aA,ax)){au._onMenuItemMouseOut(aA,at);aA[e]=true;aA[R]=false;}if(Y){ay=Y.next();if(ay&&ax&&(ax.compareTo(ay)||ay.contains(ax))){aB=true;}}if(h(az,ax)||aB){au._onMenuMouseOut(az,at);az[e]=true;az[R]=false;}},_toggleSubmenuDisplay:function(au){var av=this,aw=au.target,at=O(aw,true),Y=au.type,aA,az,ay,aB,aC,ax;if(at){aA=f(aw)?aw:aw.ancestor(f);if(aA){ay=aA.getAttribute("href",2);aB=ay.indexOf("#");aC=ay.length;if(aB===0&&aC>1){ax=ay.substr(1,aC);az=at.next();if(az&&(az.get(F)===ax)){if(Y===W||Y===ap){if((L.opera||L.gecko||L.ie)&&Y===ap&&!av._preventClickHandle){av._preventClickHandle=av._rootMenu.on("click",function(aD){aD.preventDefault();av._preventClickHandle.detach();av._preventClickHandle=null;});}if(Y==W){au.preventDefault();au.stopImmediatePropagation();av._hasFocus=true;}if(av._isRoot(m(aw))){if(N(at)){av._hideMenu(az);av._focusItem(at);av._setActiveItem(at);}else{av._hideAllSubmenus(av._rootMenu);av._showMenu(az);av._focusItem(c(az));av._setActiveItem(c(az));}}else{if(av._activeItem==at){av._showMenu(az);av._focusItem(c(az));av._setActiveItem(c(az));}else{if(!at._clickHandle){at._clickHandle=at.on("click",function(){av._hideAllSubmenus(av._rootMenu); -av._hasFocus=false;av._clearActiveItem();at._clickHandle.detach();at._clickHandle=null;});}}}}if(Y===ac){au.preventDefault();}}}}}},_onKeyPress:function(Y){switch(Y.keyCode){case 37:case 38:case 39:case 40:Y.preventDefault();break;}},_onKeyDown:function(ax){var aw=this,Y=aw._activeItem,at=ax.target,av=m(at),au;if(av){aw._activeMenu=av;if(Q(av)){aw._onHorizontalMenuKeyDown(ax);}else{aw._onVerticalMenuKeyDown(ax);}if(ax.keyCode===27){if(!aw._isRoot(av)){if(L.opera){T(0,aw,function(){aw._hideMenu(av,true);});}else{aw._hideMenu(av,true);}ax.stopPropagation();aw._blockMouseEvent=L.gecko?true:false;}else{if(Y){if(S(Y)&&N(Y)){au=Y.next();if(au){aw._hideMenu(au);}}else{aw._focusManager.blur();aw._clearActiveItem();aw._hasFocus=false;}}}}}},_onDocMouseDown:function(av){var au=this,at=au._rootMenu,Y=av.target;if(!(at.compareTo(Y)||at.contains(Y))){au._hideAllSubmenus(at);if(L.webkit){au._hasFocus=false;au._clearActiveItem();}}}});d.namespace("Plugin");d.Plugin.NodeMenuNav=al;},"3.5.0",{requires:["node","classnamemanager","node-focusmanager","plugin"]}); \ No newline at end of file +av._hasFocus=false;av._clearActiveItem();at._clickHandle.detach();at._clickHandle=null;});}}}}if(Y===ac){au.preventDefault();}}}}}},_onKeyPress:function(Y){switch(Y.keyCode){case 37:case 38:case 39:case 40:Y.preventDefault();break;}},_onKeyDown:function(ax){var aw=this,Y=aw._activeItem,at=ax.target,av=m(at),au;if(av){aw._activeMenu=av;if(Q(av)){aw._onHorizontalMenuKeyDown(ax);}else{aw._onVerticalMenuKeyDown(ax);}if(ax.keyCode===27){if(!aw._isRoot(av)){if(L.opera){T(0,aw,function(){aw._hideMenu(av,true);});}else{aw._hideMenu(av,true);}ax.stopPropagation();aw._blockMouseEvent=L.gecko?true:false;}else{if(Y){if(S(Y)&&N(Y)){au=Y.next();if(au){aw._hideMenu(au);}}else{aw._focusManager.blur();aw._clearActiveItem();aw._hasFocus=false;}}}}}},_onDocMouseDown:function(av){var au=this,at=au._rootMenu,Y=av.target;if(!(at.compareTo(Y)||at.contains(Y))){au._hideAllSubmenus(at);if(L.webkit){au._hasFocus=false;au._clearActiveItem();}}}});d.namespace("Plugin");d.Plugin.NodeMenuNav=al;},"3.5.1",{requires:["node","classnamemanager","node-focusmanager","plugin"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/node-menunav/node-menunav.js b/lib/yui/3.5.1/build/node-menunav/node-menunav.js similarity index 99% rename from lib/yui/3.5.0/build/node-menunav/node-menunav.js rename to lib/yui/3.5.1/build/node-menunav/node-menunav.js index e72c8a235b3..6643e1e01d1 100644 --- a/lib/yui/3.5.0/build/node-menunav/node-menunav.js +++ b/lib/yui/3.5.1/build/node-menunav/node-menunav.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -2187,4 +2187,4 @@ Y.namespace('Plugin'); Y.Plugin.NodeMenuNav = NodeMenuNav; -}, '3.5.0' ,{requires:['node', 'classnamemanager', 'node-focusmanager', 'plugin']}); +}, '3.5.1' ,{requires:['node', 'classnamemanager', 'node-focusmanager', 'plugin']}); diff --git a/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-debug.js b/lib/yui/3.5.1/build/node-pluginhost/node-pluginhost-debug.js similarity index 95% rename from lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-debug.js rename to lib/yui/3.5.1/build/node-pluginhost/node-pluginhost-debug.js index b9dc4885418..283d605654d 100644 --- a/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-debug.js +++ b/lib/yui/3.5.1/build/node-pluginhost/node-pluginhost-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -62,4 +62,4 @@ Y.NodeList.prototype.unplug = function() { }; -}, '3.5.0' ,{requires:['node-base', 'pluginhost']}); +}, '3.5.1' ,{requires:['node-base', 'pluginhost']}); diff --git a/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-min.js b/lib/yui/3.5.1/build/node-pluginhost/node-pluginhost-min.js similarity index 89% rename from lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-min.js rename to lib/yui/3.5.1/build/node-pluginhost/node-pluginhost-min.js index 8c27f7abfed..164202ef05e 100644 --- a/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost-min.js +++ b/lib/yui/3.5.1/build/node-pluginhost/node-pluginhost-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("node-pluginhost",function(a){a.Node.plug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.plug.apply(a.Base,b);return a.Node;};a.Node.unplug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.unplug.apply(a.Base,b);return a.Node;};a.mix(a.Node,a.Plugin.Host,false,null,1);a.NodeList.prototype.plug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.plug.apply(a.one(c),b);});};a.NodeList.prototype.unplug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.unplug.apply(a.one(c),b);});};},"3.5.0",{requires:["node-base","pluginhost"]}); \ No newline at end of file +YUI.add("node-pluginhost",function(a){a.Node.plug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.plug.apply(a.Base,b);return a.Node;};a.Node.unplug=function(){var b=a.Array(arguments);b.unshift(a.Node);a.Plugin.Host.unplug.apply(a.Base,b);return a.Node;};a.mix(a.Node,a.Plugin.Host,false,null,1);a.NodeList.prototype.plug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.plug.apply(a.one(c),b);});};a.NodeList.prototype.unplug=function(){var b=arguments;a.NodeList.each(this,function(c){a.Node.prototype.unplug.apply(a.one(c),b);});};},"3.5.1",{requires:["node-base","pluginhost"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost.js b/lib/yui/3.5.1/build/node-pluginhost/node-pluginhost.js similarity index 95% rename from lib/yui/3.5.0/build/node-pluginhost/node-pluginhost.js rename to lib/yui/3.5.1/build/node-pluginhost/node-pluginhost.js index b9dc4885418..283d605654d 100644 --- a/lib/yui/3.5.0/build/node-pluginhost/node-pluginhost.js +++ b/lib/yui/3.5.1/build/node-pluginhost/node-pluginhost.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -62,4 +62,4 @@ Y.NodeList.prototype.unplug = function() { }; -}, '3.5.0' ,{requires:['node-base', 'pluginhost']}); +}, '3.5.1' ,{requires:['node-base', 'pluginhost']}); diff --git a/lib/yui/3.5.0/build/node-screen/node-screen-debug.js b/lib/yui/3.5.1/build/node-screen/node-screen-debug.js similarity index 98% rename from lib/yui/3.5.0/build/node-screen/node-screen-debug.js rename to lib/yui/3.5.1/build/node-screen/node-screen-debug.js index 0010a5683bc..607a56995f7 100644 --- a/lib/yui/3.5.0/build/node-screen/node-screen-debug.js +++ b/lib/yui/3.5.1/build/node-screen/node-screen-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -243,4 +243,4 @@ Y.Node.prototype.inRegion = function(node2, all, altRegion) { }; -}, '3.5.0' ,{requires:['node-base', 'dom-screen']}); +}, '3.5.1' ,{requires:['node-base', 'dom-screen']}); diff --git a/lib/yui/3.5.0/build/node-screen/node-screen-min.js b/lib/yui/3.5.1/build/node-screen/node-screen-min.js similarity index 95% rename from lib/yui/3.5.0/build/node-screen/node-screen-min.js rename to lib/yui/3.5.1/build/node-screen/node-screen-min.js index b7d3e3e8986..45a977c6f5f 100644 --- a/lib/yui/3.5.0/build/node-screen/node-screen-min.js +++ b/lib/yui/3.5.1/build/node-screen/node-screen-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("node-screen",function(a){a.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(b){a.Node.ATTRS[b]={getter:function(){var c=Array.prototype.slice.call(arguments);c.unshift(a.Node.getDOMNode(this));return a.DOM[b].apply(this,c);}};});a.Node.ATTRS.scrollLeft={getter:function(){var b=a.Node.getDOMNode(this);return("scrollLeft" in b)?b.scrollLeft:a.DOM.docScrollX(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollLeft" in b){b.scrollLeft=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(c,a.DOM.docScrollY(b));}}}else{}}};a.Node.ATTRS.scrollTop={getter:function(){var b=a.Node.getDOMNode(this);return("scrollTop" in b)?b.scrollTop:a.DOM.docScrollY(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollTop" in b){b.scrollTop=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(a.DOM.docScrollX(b),c);}}}else{}}};a.Node.importMethod(a.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]);a.Node.ATTRS.region={getter:function(){var b=this.getDOMNode(),c;if(b&&!b.tagName){if(b.nodeType===9){b=b.documentElement;}}if(a.DOM.isWindow(b)){c=a.DOM.viewportRegion(b);}else{c=a.DOM.region(b);}return c;}};a.Node.ATTRS.viewportRegion={getter:function(){return a.DOM.viewportRegion(a.Node.getDOMNode(this));}};a.Node.importMethod(a.DOM,"inViewportRegion");a.Node.prototype.intersect=function(b,d){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.intersect(c,b,d);};a.Node.prototype.inRegion=function(b,d,e){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.inRegion(c,b,d,e);};},"3.5.0",{requires:["node-base","dom-screen"]}); \ No newline at end of file +YUI.add("node-screen",function(a){a.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(b){a.Node.ATTRS[b]={getter:function(){var c=Array.prototype.slice.call(arguments);c.unshift(a.Node.getDOMNode(this));return a.DOM[b].apply(this,c);}};});a.Node.ATTRS.scrollLeft={getter:function(){var b=a.Node.getDOMNode(this);return("scrollLeft" in b)?b.scrollLeft:a.DOM.docScrollX(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollLeft" in b){b.scrollLeft=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(c,a.DOM.docScrollY(b));}}}else{}}};a.Node.ATTRS.scrollTop={getter:function(){var b=a.Node.getDOMNode(this);return("scrollTop" in b)?b.scrollTop:a.DOM.docScrollY(b);},setter:function(c){var b=a.Node.getDOMNode(this);if(b){if("scrollTop" in b){b.scrollTop=c;}else{if(b.document||b.nodeType===9){a.DOM._getWin(b).scrollTo(a.DOM.docScrollX(b),c);}}}else{}}};a.Node.importMethod(a.DOM,["getXY","setXY","getX","setX","getY","setY","swapXY"]);a.Node.ATTRS.region={getter:function(){var b=this.getDOMNode(),c;if(b&&!b.tagName){if(b.nodeType===9){b=b.documentElement;}}if(a.DOM.isWindow(b)){c=a.DOM.viewportRegion(b);}else{c=a.DOM.region(b);}return c;}};a.Node.ATTRS.viewportRegion={getter:function(){return a.DOM.viewportRegion(a.Node.getDOMNode(this));}};a.Node.importMethod(a.DOM,"inViewportRegion");a.Node.prototype.intersect=function(b,d){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.intersect(c,b,d);};a.Node.prototype.inRegion=function(b,d,e){var c=a.Node.getDOMNode(this);if(a.instanceOf(b,a.Node)){b=a.Node.getDOMNode(b);}return a.DOM.inRegion(c,b,d,e);};},"3.5.1",{requires:["node-base","dom-screen"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/node-screen/node-screen.js b/lib/yui/3.5.1/build/node-screen/node-screen.js similarity index 98% rename from lib/yui/3.5.0/build/node-screen/node-screen.js rename to lib/yui/3.5.1/build/node-screen/node-screen.js index e307c317aa4..04ab26a81c5 100644 --- a/lib/yui/3.5.0/build/node-screen/node-screen.js +++ b/lib/yui/3.5.1/build/node-screen/node-screen.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -241,4 +241,4 @@ Y.Node.prototype.inRegion = function(node2, all, altRegion) { }; -}, '3.5.0' ,{requires:['node-base', 'dom-screen']}); +}, '3.5.1' ,{requires:['node-base', 'dom-screen']}); diff --git a/lib/yui/3.5.0/build/node-style/node-style-debug.js b/lib/yui/3.5.1/build/node-style/node-style-debug.js similarity index 97% rename from lib/yui/3.5.0/build/node-style/node-style-debug.js rename to lib/yui/3.5.1/build/node-style/node-style-debug.js index 4bbe04e25f0..dd24cd6d84e 100644 --- a/lib/yui/3.5.0/build/node-style/node-style-debug.js +++ b/lib/yui/3.5.1/build/node-style/node-style-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -109,4 +109,4 @@ Y.NodeList.importMethod(Y.Node.prototype, ['getStyle', 'getComputedStyle', 'setS })(Y); -}, '3.5.0' ,{requires:['dom-style', 'node-base']}); +}, '3.5.1' ,{requires:['dom-style', 'node-base']}); diff --git a/lib/yui/3.5.0/build/node-style/node-style-min.js b/lib/yui/3.5.1/build/node-style/node-style-min.js similarity index 89% rename from lib/yui/3.5.0/build/node-style/node-style-min.js rename to lib/yui/3.5.1/build/node-style/node-style-min.js index 938bdb936df..89b7d1f0c57 100644 --- a/lib/yui/3.5.0/build/node-style/node-style-min.js +++ b/lib/yui/3.5.1/build/node-style/node-style-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("node-style",function(a){(function(b){b.mix(b.Node.prototype,{setStyle:function(c,d){b.DOM.setStyle(this._node,c,d);return this;},setStyles:function(c){b.DOM.setStyles(this._node,c);return this;},getStyle:function(c){return b.DOM.getStyle(this._node,c);},getComputedStyle:function(c){return b.DOM.getComputedStyle(this._node,c);}});b.NodeList.importMethod(b.Node.prototype,["getStyle","getComputedStyle","setStyle","setStyles"]);})(a);},"3.5.0",{requires:["dom-style","node-base"]}); \ No newline at end of file +YUI.add("node-style",function(a){(function(b){b.mix(b.Node.prototype,{setStyle:function(c,d){b.DOM.setStyle(this._node,c,d);return this;},setStyles:function(c){b.DOM.setStyles(this._node,c);return this;},getStyle:function(c){return b.DOM.getStyle(this._node,c);},getComputedStyle:function(c){return b.DOM.getComputedStyle(this._node,c);}});b.NodeList.importMethod(b.Node.prototype,["getStyle","getComputedStyle","setStyle","setStyles"]);})(a);},"3.5.1",{requires:["dom-style","node-base"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/node-style/node-style.js b/lib/yui/3.5.1/build/node-style/node-style.js similarity index 97% rename from lib/yui/3.5.0/build/node-style/node-style.js rename to lib/yui/3.5.1/build/node-style/node-style.js index 4bbe04e25f0..dd24cd6d84e 100644 --- a/lib/yui/3.5.0/build/node-style/node-style.js +++ b/lib/yui/3.5.1/build/node-style/node-style.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -109,4 +109,4 @@ Y.NodeList.importMethod(Y.Node.prototype, ['getStyle', 'getComputedStyle', 'setS })(Y); -}, '3.5.0' ,{requires:['dom-style', 'node-base']}); +}, '3.5.1' ,{requires:['dom-style', 'node-base']}); diff --git a/lib/yui/3.5.0/build/oop/oop-debug.js b/lib/yui/3.5.1/build/oop/oop-debug.js similarity index 99% rename from lib/yui/3.5.0/build/oop/oop-debug.js rename to lib/yui/3.5.1/build/oop/oop-debug.js index cb298c3dd5c..55ab9ed7291 100644 --- a/lib/yui/3.5.0/build/oop/oop-debug.js +++ b/lib/yui/3.5.1/build/oop/oop-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -393,4 +393,4 @@ Y.rbind = function(f, c) { }; -}, '3.5.0' ,{requires:['yui-base']}); +}, '3.5.1' ,{requires:['yui-base']}); diff --git a/lib/yui/3.5.0/build/oop/oop-min.js b/lib/yui/3.5.1/build/oop/oop-min.js similarity index 97% rename from lib/yui/3.5.0/build/oop/oop-min.js rename to lib/yui/3.5.1/build/oop/oop-min.js index ba0848730d7..bde8d6085d0 100644 --- a/lib/yui/3.5.0/build/oop/oop-min.js +++ b/lib/yui/3.5.1/build/oop/oop-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("oop",function(h){var d=h.Lang,c=h.Array,b=Object.prototype,a="_~yuim~_",e=b.hasOwnProperty,g=b.toString;function f(l,k,m,i,j){if(l&&l[j]&&l!==h){return l[j].call(l,k,m);}else{switch(c.test(l)){case 1:return c[j](l,k,m);case 2:return c[j](h.Array(l,0,true),k,m);default:return h.Object[j](l,k,m,i);}}}h.augment=function(i,k,r,o,s){var n=i.prototype,m=n&&k,q=k.prototype,v=n||i,j,u,p,l,t;s=s?h.Array(s):[];if(m){u={};p={};l={};j=function(x,w){if(r||!(w in n)){if(g.call(x)==="[object Function]"){l[w]=x;u[w]=p[w]=function(){return t(this,x,arguments);};}else{u[w]=x;}}};t=function(w,y,z){for(var x in l){if(e.call(l,x)&&w[x]===p[x]){w[x]=l[x];}}k.apply(w,s);return y.apply(w,z);};if(o){h.Array.each(o,function(w){if(w in q){j(q[w],w);}});}else{h.Object.each(q,j,null,true);}}h.mix(v,u||q,r,o);if(!m){k.apply(v,s);}return i;};h.aggregate=function(k,j,i,l){return h.mix(k,j,i,l,0,true);};h.extend=function(l,k,i,n){if(!k||!l){h.error("extend failed, verify dependencies");}var m=k.prototype,j=h.Object(m);l.prototype=j;j.constructor=l;l.superclass=m;if(k!=Object&&m.constructor==b.constructor){m.constructor=k;}if(i){h.mix(j,i,true);}if(n){h.mix(l,n,true);}return l;};h.each=function(k,j,l,i){return f(k,j,l,i,"each");};h.some=function(k,j,l,i){return f(k,j,l,i,"some");};h.clone=function(l,m,r,s,k,q){if(!d.isObject(l)){return l;}if(h.instanceOf(l,YUI)){return l;}var n,j=q||{},i,p=h.each;switch(d.type(l)){case"date":return new Date(l);case"regexp":return l;case"function":return l;case"array":n=[];break;default:if(l[a]){return j[l[a]];}i=h.guid();n=(m)?{}:h.Object(l);l[a]=i;j[i]=l;}if(!l.addEventListener&&!l.attachEvent){p(l,function(t,o){if((o||o===0)&&(!r||(r.call(s||this,t,o,this,l)!==false))){if(o!==a){if(o=="prototype"){}else{this[o]=h.clone(t,m,r,s,k||l,j);}}}},n);}if(!q){h.Object.each(j,function(t,o){if(t[a]){try{delete t[a];}catch(u){t[a]=null;}}},this);j=null;}return n;};h.bind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?j.concat(h.Array(arguments,0,true)):arguments;return m.apply(k||m,l);};};h.rbind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?h.Array(arguments,0,true).concat(j):arguments;return m.apply(k||m,l);};};},"3.5.0",{requires:["yui-base"]}); \ No newline at end of file +YUI.add("oop",function(h){var d=h.Lang,c=h.Array,b=Object.prototype,a="_~yuim~_",e=b.hasOwnProperty,g=b.toString;function f(l,k,m,i,j){if(l&&l[j]&&l!==h){return l[j].call(l,k,m);}else{switch(c.test(l)){case 1:return c[j](l,k,m);case 2:return c[j](h.Array(l,0,true),k,m);default:return h.Object[j](l,k,m,i);}}}h.augment=function(i,k,r,o,s){var n=i.prototype,m=n&&k,q=k.prototype,v=n||i,j,u,p,l,t;s=s?h.Array(s):[];if(m){u={};p={};l={};j=function(x,w){if(r||!(w in n)){if(g.call(x)==="[object Function]"){l[w]=x;u[w]=p[w]=function(){return t(this,x,arguments);};}else{u[w]=x;}}};t=function(w,y,z){for(var x in l){if(e.call(l,x)&&w[x]===p[x]){w[x]=l[x];}}k.apply(w,s);return y.apply(w,z);};if(o){h.Array.each(o,function(w){if(w in q){j(q[w],w);}});}else{h.Object.each(q,j,null,true);}}h.mix(v,u||q,r,o);if(!m){k.apply(v,s);}return i;};h.aggregate=function(k,j,i,l){return h.mix(k,j,i,l,0,true);};h.extend=function(l,k,i,n){if(!k||!l){h.error("extend failed, verify dependencies");}var m=k.prototype,j=h.Object(m);l.prototype=j;j.constructor=l;l.superclass=m;if(k!=Object&&m.constructor==b.constructor){m.constructor=k;}if(i){h.mix(j,i,true);}if(n){h.mix(l,n,true);}return l;};h.each=function(k,j,l,i){return f(k,j,l,i,"each");};h.some=function(k,j,l,i){return f(k,j,l,i,"some");};h.clone=function(l,m,r,s,k,q){if(!d.isObject(l)){return l;}if(h.instanceOf(l,YUI)){return l;}var n,j=q||{},i,p=h.each;switch(d.type(l)){case"date":return new Date(l);case"regexp":return l;case"function":return l;case"array":n=[];break;default:if(l[a]){return j[l[a]];}i=h.guid();n=(m)?{}:h.Object(l);l[a]=i;j[i]=l;}if(!l.addEventListener&&!l.attachEvent){p(l,function(t,o){if((o||o===0)&&(!r||(r.call(s||this,t,o,this,l)!==false))){if(o!==a){if(o=="prototype"){}else{this[o]=h.clone(t,m,r,s,k||l,j);}}}},n);}if(!q){h.Object.each(j,function(t,o){if(t[a]){try{delete t[a];}catch(u){t[a]=null;}}},this);j=null;}return n;};h.bind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?j.concat(h.Array(arguments,0,true)):arguments;return m.apply(k||m,l);};};h.rbind=function(i,k){var j=arguments.length>2?h.Array(arguments,2,true):null;return function(){var m=d.isString(i)?k[i]:i,l=(j)?h.Array(arguments,0,true).concat(j):arguments;return m.apply(k||m,l);};};},"3.5.1",{requires:["yui-base"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/oop/oop.js b/lib/yui/3.5.1/build/oop/oop.js similarity index 99% rename from lib/yui/3.5.0/build/oop/oop.js rename to lib/yui/3.5.1/build/oop/oop.js index cb298c3dd5c..55ab9ed7291 100644 --- a/lib/yui/3.5.0/build/oop/oop.js +++ b/lib/yui/3.5.1/build/oop/oop.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -393,4 +393,4 @@ Y.rbind = function(f, c) { }; -}, '3.5.0' ,{requires:['yui-base']}); +}, '3.5.1' ,{requires:['yui-base']}); diff --git a/lib/yui/3.5.0/build/overlay/assets/overlay-core.css b/lib/yui/3.5.1/build/overlay/assets/overlay-core.css similarity index 92% rename from lib/yui/3.5.0/build/overlay/assets/overlay-core.css rename to lib/yui/3.5.1/build/overlay/assets/overlay-core.css index 64f7d3ba19a..2a607032104 100644 --- a/lib/yui/3.5.0/build/overlay/assets/overlay-core.css +++ b/lib/yui/3.5.1/build/overlay/assets/overlay-core.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay-skin.css b/lib/yui/3.5.1/build/overlay/assets/skins/night/overlay-skin.css similarity index 99% rename from lib/yui/3.5.0/build/overlay/assets/skins/night/overlay-skin.css rename to lib/yui/3.5.1/build/overlay/assets/skins/night/overlay-skin.css index 3dd3f2db83a..ae26f6023af 100644 --- a/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay-skin.css +++ b/lib/yui/3.5.1/build/overlay/assets/skins/night/overlay-skin.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay.css b/lib/yui/3.5.1/build/overlay/assets/skins/night/overlay.css similarity index 99% rename from lib/yui/3.5.0/build/overlay/assets/skins/night/overlay.css rename to lib/yui/3.5.1/build/overlay/assets/skins/night/overlay.css index b52284a30b4..b4a8c393bff 100644 --- a/lib/yui/3.5.0/build/overlay/assets/skins/night/overlay.css +++ b/lib/yui/3.5.1/build/overlay/assets/skins/night/overlay.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay-skin.css b/lib/yui/3.5.1/build/overlay/assets/skins/sam/overlay-skin.css similarity index 83% rename from lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay-skin.css rename to lib/yui/3.5.1/build/overlay/assets/skins/sam/overlay-skin.css index 7cef9228d45..34c9dbfc3a0 100644 --- a/lib/yui/3.5.0/build/overlay/assets/skins/sam/overlay-skin.css +++ b/lib/yui/3.5.1/build/overlay/assets/skins/sam/overlay-skin.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/assets/skins/sam/overlay.css b/lib/yui/3.5.1/build/overlay/assets/skins/sam/overlay.css similarity index 93% rename from lib/yui/3.5.0/build/assets/skins/sam/overlay.css rename to lib/yui/3.5.1/build/overlay/assets/skins/sam/overlay.css index 14edf580b96..c126405c3fd 100644 --- a/lib/yui/3.5.0/build/assets/skins/sam/overlay.css +++ b/lib/yui/3.5.1/build/overlay/assets/skins/sam/overlay.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/overlay/overlay-debug.js b/lib/yui/3.5.1/build/overlay/overlay-debug.js similarity index 93% rename from lib/yui/3.5.0/build/overlay/overlay-debug.js rename to lib/yui/3.5.1/build/overlay/overlay-debug.js index 11fb3b14cd4..6fe339e7739 100644 --- a/lib/yui/3.5.0/build/overlay/overlay-debug.js +++ b/lib/yui/3.5.1/build/overlay/overlay-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -32,4 +32,4 @@ YUI.add('overlay', function(Y) { Y.Overlay = Y.Base.create("overlay", Y.Widget, [Y.WidgetStdMod, Y.WidgetPosition, Y.WidgetStack, Y.WidgetPositionAlign, Y.WidgetPositionConstrain]); -}, '3.5.0' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); +}, '3.5.1' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); diff --git a/lib/yui/3.5.0/build/overlay/overlay-min.js b/lib/yui/3.5.1/build/overlay/overlay-min.js similarity index 80% rename from lib/yui/3.5.0/build/overlay/overlay-min.js rename to lib/yui/3.5.1/build/overlay/overlay-min.js index 14669cd7c9d..9a79d9065be 100644 --- a/lib/yui/3.5.0/build/overlay/overlay-min.js +++ b/lib/yui/3.5.1/build/overlay/overlay-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("overlay",function(a){a.Overlay=a.Base.create("overlay",a.Widget,[a.WidgetStdMod,a.WidgetPosition,a.WidgetStack,a.WidgetPositionAlign,a.WidgetPositionConstrain]);},"3.5.0",{requires:["widget","widget-stdmod","widget-position","widget-stack","widget-position-align","widget-position-constrain"]}); \ No newline at end of file +YUI.add("overlay",function(a){a.Overlay=a.Base.create("overlay",a.Widget,[a.WidgetStdMod,a.WidgetPosition,a.WidgetStack,a.WidgetPositionAlign,a.WidgetPositionConstrain]);},"3.5.1",{requires:["widget","widget-stdmod","widget-position","widget-stack","widget-position-align","widget-position-constrain"]}); \ No newline at end of file diff --git a/lib/yui/3.5.0/build/overlay/overlay.js b/lib/yui/3.5.1/build/overlay/overlay.js similarity index 93% rename from lib/yui/3.5.0/build/overlay/overlay.js rename to lib/yui/3.5.1/build/overlay/overlay.js index 11fb3b14cd4..6fe339e7739 100644 --- a/lib/yui/3.5.0/build/overlay/overlay.js +++ b/lib/yui/3.5.1/build/overlay/overlay.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -32,4 +32,4 @@ YUI.add('overlay', function(Y) { Y.Overlay = Y.Base.create("overlay", Y.Widget, [Y.WidgetStdMod, Y.WidgetPosition, Y.WidgetStack, Y.WidgetPositionAlign, Y.WidgetPositionConstrain]); -}, '3.5.0' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); +}, '3.5.1' ,{requires:['widget', 'widget-stdmod', 'widget-position', 'widget-stack', 'widget-position-align', 'widget-position-constrain']}); diff --git a/lib/yui/3.5.0/build/panel/assets/panel-core.css b/lib/yui/3.5.1/build/panel/assets/panel-core.css similarity index 96% rename from lib/yui/3.5.0/build/panel/assets/panel-core.css rename to lib/yui/3.5.1/build/panel/assets/panel-core.css index a62d8a76815..7fe3df3ef71 100644 --- a/lib/yui/3.5.0/build/panel/assets/panel-core.css +++ b/lib/yui/3.5.1/build/panel/assets/panel-core.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/panel/assets/raw/icons_window_close_max_restore_min.psd b/lib/yui/3.5.1/build/panel/assets/raw/icons_window_close_max_restore_min.psd similarity index 100% rename from lib/yui/3.5.0/build/panel/assets/raw/icons_window_close_max_restore_min.psd rename to lib/yui/3.5.1/build/panel/assets/raw/icons_window_close_max_restore_min.psd diff --git a/lib/yui/3.5.0/build/panel/assets/skins/night/panel-skin.css b/lib/yui/3.5.1/build/panel/assets/skins/night/panel-skin.css similarity index 99% rename from lib/yui/3.5.0/build/panel/assets/skins/night/panel-skin.css rename to lib/yui/3.5.1/build/panel/assets/skins/night/panel-skin.css index 90d61de2796..b786909711d 100644 --- a/lib/yui/3.5.0/build/panel/assets/skins/night/panel-skin.css +++ b/lib/yui/3.5.1/build/panel/assets/skins/night/panel-skin.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/panel/assets/skins/night/panel.css b/lib/yui/3.5.1/build/panel/assets/skins/night/panel.css similarity index 99% rename from lib/yui/3.5.0/build/panel/assets/skins/night/panel.css rename to lib/yui/3.5.1/build/panel/assets/skins/night/panel.css index 5e394c88328..b4a68627a44 100644 --- a/lib/yui/3.5.0/build/panel/assets/skins/night/panel.css +++ b/lib/yui/3.5.1/build/panel/assets/skins/night/panel.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/panel/assets/skins/night/sprite_icons.png b/lib/yui/3.5.1/build/panel/assets/skins/night/sprite_icons.png similarity index 100% rename from lib/yui/3.5.0/build/panel/assets/skins/night/sprite_icons.png rename to lib/yui/3.5.1/build/panel/assets/skins/night/sprite_icons.png diff --git a/lib/yui/3.5.0/build/panel/assets/skins/sam/panel-skin.css b/lib/yui/3.5.1/build/panel/assets/skins/sam/panel-skin.css similarity index 99% rename from lib/yui/3.5.0/build/panel/assets/skins/sam/panel-skin.css rename to lib/yui/3.5.1/build/panel/assets/skins/sam/panel-skin.css index aa0a0541f7b..ae4a07ec441 100644 --- a/lib/yui/3.5.0/build/panel/assets/skins/sam/panel-skin.css +++ b/lib/yui/3.5.1/build/panel/assets/skins/sam/panel-skin.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/panel/assets/skins/sam/panel.css b/lib/yui/3.5.1/build/panel/assets/skins/sam/panel.css similarity index 98% rename from lib/yui/3.5.0/build/panel/assets/skins/sam/panel.css rename to lib/yui/3.5.1/build/panel/assets/skins/sam/panel.css index 07c04be7c01..134c57aebf0 100644 --- a/lib/yui/3.5.0/build/panel/assets/skins/sam/panel.css +++ b/lib/yui/3.5.1/build/panel/assets/skins/sam/panel.css @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ diff --git a/lib/yui/3.5.0/build/panel/assets/skins/sam/sprite_icons.png b/lib/yui/3.5.1/build/panel/assets/skins/sam/sprite_icons.png similarity index 100% rename from lib/yui/3.5.0/build/panel/assets/skins/sam/sprite_icons.png rename to lib/yui/3.5.1/build/panel/assets/skins/sam/sprite_icons.png diff --git a/lib/yui/3.5.0/build/panel/panel-debug.js b/lib/yui/3.5.1/build/panel/panel-debug.js similarity index 97% rename from lib/yui/3.5.0/build/panel/panel-debug.js rename to lib/yui/3.5.1/build/panel/panel-debug.js index faba4b05623..3812ceade01 100644 --- a/lib/yui/3.5.0/build/panel/panel-debug.js +++ b/lib/yui/3.5.1/build/panel/panel-debug.js @@ -1,5 +1,5 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ @@ -102,4 +102,4 @@ Y.Panel = Y.Base.create('panel', Y.Widget, [ }); -}, '3.5.0' ,{requires:['widget', 'widget-autohide', 'widget-buttons', 'widget-modality', 'widget-position', 'widget-position-align', 'widget-position-constrain', 'widget-stack', 'widget-stdmod'], skinnable:true}); +}, '3.5.1' ,{requires:['widget', 'widget-autohide', 'widget-buttons', 'widget-modality', 'widget-position', 'widget-position-align', 'widget-position-constrain', 'widget-stack', 'widget-stdmod'], skinnable:true}); diff --git a/lib/yui/3.5.0/build/panel/panel-min.js b/lib/yui/3.5.1/build/panel/panel-min.js similarity index 88% rename from lib/yui/3.5.0/build/panel/panel-min.js rename to lib/yui/3.5.1/build/panel/panel-min.js index 2a9acaf1a5a..a976c50e0b7 100644 --- a/lib/yui/3.5.0/build/panel/panel-min.js +++ b/lib/yui/3.5.1/build/panel/panel-min.js @@ -1,7 +1,7 @@ /* -YUI 3.5.0 (build 5089) +YUI 3.5.1 (build 22) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("panel",function(b){var a=b.ClassNameManager.getClassName;b.Panel=b.Base.create("panel",b.Widget,[b.WidgetPosition,b.WidgetStdMod,b.WidgetAutohide,b.WidgetButtons,b.WidgetModality,b.WidgetPositionAlign,b.WidgetPositionConstrain,b.WidgetStack],{BUTTONS:{close:{label:"Close",action:"hide",section:"header",template:'