a:23:{s:9:"#provides";s:15:"dojox.fx.Shadow";s:9:"#resource";s:12:"fx/Shadow.js";s:9:"#requires";a:2:{i:0;a:3:{i:0;s:6:"common";i:1;s:13:"dijit._Widget";i:2;s:5:"dijit";}i:1;a:3:{i:0;s:6:"common";i:1;s:16:"dojo.NodeList-fx";i:2;s:4:"dojo";}}s:15:"dojox.fx.Shadow";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:1:{i:0;s:13:"dijit._Widget";}}s:7:"summary";s:29:"Adds a drop-shadow to a node.";s:8:"examples";a:1:{i:0;s:173:" // add drop shadows to all nodes with class="hasShadow" dojo.query(".hasShadow").forEach(function(n){ var foo = new dojox.fx.Shadow({ node: n }); foo.startup(); });";}s:9:"classlike";b:1;}s:25:"dojox.fx.Shadow.shadowPng";a:3:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:6:"String";s:7:"summary";s:36:"Base location for drop-shadow images";}s:31:"dojox.fx.Shadow.shadowThickness";a:3:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:7:"Integer";s:7:"summary";s:35:"How wide (in px) to make the shadow";}s:28:"dojox.fx.Shadow.shadowOffset";a:3:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:7:"Integer";s:7:"summary";s:40:"How deep to make the shadow appear to be";}s:23:"dojox.fx.Shadow.opacity";a:3:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:5:"Float";s:7:"summary";s:29:"Overall opacity of the shadow";}s:23:"dojox.fx.Shadow.animate";a:3:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:7:"Boolean";s:7:"summary";s:40:"A toggle to disable animated transitions";}s:20:"dojox.fx.Shadow.node";a:2:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:7:"summary";s:0:"";}s:23:"dojox.fx.Shadow.startup";a:4:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:8:"Function";s:6:"source";s:810:" this.inherited(arguments); this.node.style.position = "relative"; // make all the pieces of the shadow, and position/size them as much // as possible (but a lot of the coordinates are set in sizeShadow this.pieces={}; var x1 = -1 * this.shadowThickness; var y0 = this.shadowOffset; var y1 = this.shadowOffset + this.shadowThickness; this._makePiece("tl", "top", y0, "left", x1); this._makePiece("l", "top", y1, "left", x1, "scale"); this._makePiece("tr", "top", y0, "left", 0); this._makePiece("r", "top", y1, "left", 0, "scale"); this._makePiece("bl", "top", 0, "left", x1); this._makePiece("b", "top", 0, "left", 0, "crop"); this._makePiece("br", "top", 0, "left", 0); this.nodeList = dojo.query(".shadowPiece",this.node); this.setOpacity(this.opacity); this.resize();";s:7:"summary";s:23:"Initializes the shadow.";}s:26:"dojox.fx.Shadow._makePiece";a:6:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:8:"Function";s:10:"parameters";a:6:{s:4:"name";a:1:{s:4:"type";s:0:"";}s:10:"vertAttach";a:1:{s:4:"type";s:0:"";}s:9:"vertCoord";a:1:{s:4:"type";s:0:"";}s:10:"horzAttach";a:1:{s:4:"type";s:0:"";}s:9:"horzCoord";a:1:{s:4:"type";s:0:"";}s:6:"sizing";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:613:" var img; var url = this.shadowPng + name.toUpperCase() + ".png"; if(dojo.isIE < 7){ img = dojo.create("div"); img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"'"+ (sizing?", sizingMethod='"+sizing+"'":"") + ")"; }else{ img = dojo.create("img", { src:url }); } img.style.position="absolute"; img.style[vertAttach]=vertCoord+"px"; img.style[horzAttach]=horzCoord+"px"; img.style.width=this.shadowThickness+"px"; img.style.height=this.shadowThickness+"px"; dojo.addClass(img,"shadowPiece"); this.pieces[name]=img; this.node.appendChild(img);";s:7:"summary";s:51:"append a shadow pieces to the node, and position it";s:7:"private";b:1;}s:26:"dojox.fx.Shadow.setOpacity";a:5:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"n";a:1:{s:4:"type";s:5:"Float";}s:8:"animArgs";a:2:{s:8:"optional";b:1;s:4:"type";s:6:"Object";}}s:6:"source";s:310:" if(dojo.isIE){ return; } if(!animArgs){ animArgs = {}; } if(this.animate){ var _anims = []; this.nodeList.forEach(function(node){ _anims.push(dojo._fade(dojo.mixin(animArgs,{ node: node, end: n }))); }); dojo.fx.combine(_anims).play(); }else{ this.nodeList.style("opacity",n); } ";s:7:"summary";s:65:"set the opacity of the underlay note: does not work in IE? FIXME.";}s:27:"dojox.fx.Shadow.setDisabled";a:5:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"disabled";a:1:{s:4:"type";s:7:"Boolean";}}s:6:"source";s:364:" if(disabled){ if(this.disabled){ return; } if(this.animate){ this.nodeList.fadeOut().play(); }else{ this.nodeList.style("visibility","hidden"); } this.disabled = true; }else{ if(!this.disabled){ return; } if(this.animate){ this.nodeList.fadeIn().play(); }else{ this.nodeList.style("visibility","visible"); } this.disabled = false; }";s:7:"summary";s:27:"enable / disable the shadow";}s:22:"dojox.fx.Shadow.resize";a:5:{s:9:"prototype";s:15:"dojox.fx.Shadow";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"args";a:1:{s:4:"type";s:30:"dojox.fx._arg.ShadowResizeArgs";}}s:6:"source";s:570:" var x; var y; if(args){ x = args.x; y = args.y; }else{ var co = dojo._getBorderBox(this.node); x = co.w; y = co.h; } var sideHeight = y - (this.shadowOffset+this.shadowThickness); if (sideHeight < 0) { sideHeight = 0; } if (y < 1) { y = 1; } if (x < 1) { x = 1; } with(this.pieces){ l.style.height = sideHeight+"px"; r.style.height = sideHeight+"px"; b.style.width = x+"px"; bl.style.top = y+"px"; b.style.top = y+"px"; br.style.top = y+"px"; tr.style.left = x+"px"; r.style.left = x+"px"; br.style.left = x+"px"; }";s:7:"summary";s:45:"Resizes the shadow based on width and height.";}s:35:"dojox.fx.Shadow.node.style.position";a:2:{s:8:"instance";s:15:"dojox.fx.Shadow";s:7:"summary";s:0:"";}s:22:"dojox.fx.Shadow.pieces";a:2:{s:8:"instance";s:15:"dojox.fx.Shadow";s:7:"summary";s:0:"";}s:24:"dojox.fx.Shadow.nodeList";a:2:{s:8:"instance";s:15:"dojox.fx.Shadow";s:7:"summary";s:0:"";}s:24:"dojox.fx.Shadow.disabled";a:2:{s:8:"instance";s:15:"dojox.fx.Shadow";s:7:"summary";s:0:"";}s:13:"animArgs.node";a:1:{s:7:"summary";s:0:"";}s:12:"animArgs.end";a:1:{s:7:"summary";s:0:"";}s:8:"dojox.fx";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}