a:26:{s:9:"#provides";s:17:"dojox.image.Badge";s:9:"#resource";s:14:"image/Badge.js";s:9:"#requires";a:3:{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:"dijit._Templated";i:2;s:5:"dijit";}i:2;a:3:{i:0;s:6:"common";i:1;s:14:"dojo.fx.easing";i:2;s:4:"dojo";}}s:17:"dojox.image.Badge";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:2:{i:0;s:13:"dijit._Widget";i:1;s:16:"dijit._Templated";}}s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dijit._Templated.prototype";}}s:7:"summary";s:53:"A simple grid of Images that loops through thumbnails";s:9:"classlike";b:1;}s:27:"dojox.image.Badge.baseClass";a:2:{s:9:"prototype";s:17:"dojox.image.Badge";s:7:"summary";s:0:"";}s:32:"dojox.image.Badge.templateString";a:2:{s:9:"prototype";s:17:"dojox.image.Badge";s:7:"summary";s:0:"";}s:26:"dojox.image.Badge.children";a:3:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:6:"String";s:7:"summary";s:58:"A CSS3 Selector that determines the node to become a child";}s:22:"dojox.image.Badge.rows";a:3:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:7:"Integer";s:7:"summary";s:25:"Number of Rows to display";}s:22:"dojox.image.Badge.cols";a:3:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:7:"Integer";s:7:"summary";s:28:"Number of Columns to display";}s:26:"dojox.image.Badge.cellSize";a:3:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:7:"Integer";s:7:"summary";s:28:"Size in PX of each thumbnail";}s:23:"dojox.image.Badge.delay";a:3:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:7:"Integer";s:7:"summary";s:55:"Time (in ms) to show the image before sizing down again";}s:25:"dojox.image.Badge.threads";a:3:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:7:"Integer";s:7:"summary";s:81:"how many cycles will be going "simultaneously" (>2 not reccommended)";}s:24:"dojox.image.Badge.easing";a:4:{s:9:"prototype";s:17:"dojox.image.Badge";s:8:"instance";s:17:"dojox.image.Badge";s:4:"type";s:15:"Function|String";s:7:"summary";s:77:"An easing function to use when showing the node (does not apply to shrinking)";}s:25:"dojox.image.Badge.startup";a:4:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:6:"source";s:159:" if(this._started){ return; } if(dojo.isString(this.easing)){ this.easing = dojo.getObject(this.easing); } this.inherited(arguments); this._init();";s:7:"summary";s:0:"";}s:23:"dojox.image.Badge._init";a:5:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:6:"source";s:754:" var _row = 0, _w = this.cellSize; dojo.style(this.domNode, { width: _w * this.cols + "px", height: _w * this.rows + "px" }); this._nl = dojo.query(this.children, this.containerNode) .forEach(function(n, _idx){ var _col = _idx % this.cols, t = _row * _w, l = _col * _w; dojo.style(n, { top: t + "px", left: l + "px", width: _w - 2 + "px", height: _w - 2 + "px" }); if(_col == this.cols - 1){ _row++; } dojo.addClass(n, this.baseClass + "Image"); }, this); ; var l = this._nl.length; while(this.threads--){ var s = Math.floor(Math.random() * l); setTimeout(dojo.hitch(this,"_enbiggen", { target: this._nl[s] }), this.delay * this.threads); }";s:7:"summary";s:27:"Setup and layout the images";s:7:"private";b:1;}s:26:"dojox.image.Badge._getCell";a:6:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:1:{s:4:"type";s:7:"DomNode";}}s:6:"source";s:221:" var _pos = this._nl.indexOf(n); if(_pos >= 0){ var _col = _pos % this.cols; var _row = Math.floor(_pos / this.cols); return { x: _col, y: _row, n: this._nl[_pos], io: _pos }; }else{ return undefined; }";s:7:"summary";s:54:"Return information about the position for a given node";s:7:"private";b:1;}s:27:"dojox.image.Badge._getImage";a:5:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:6:"source";s:19:" return "url('')";";s:7:"summary";s:69:"Returns the next image in the list, or the first one if not available";s:7:"private";b:1;}s:27:"dojox.image.Badge._enbiggen";a:6:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:13:"Event|DomNode";}}s:6:"source";s:1045:" var _pos = this._getCell(e.target || e); if (_pos){ // we have a node, and know where it is var _cc = (this.cellSize * 2) - 2; var props = { height: _cc, width: _cc }; var _tehDecider = function(){ // if we have room, we'll want to decide which direction to go // let "teh decider" decide. return Math.round(Math.random()); }; if(_pos.x == this.cols - 1 || (_pos.x > 0 && _tehDecider() )){ // we have to go left, at right edge (or we want to and not on left edge) props.left = this.cellSize * (_pos.x - 1); } if(_pos.y == this.rows - 1 || (_pos.y > 0 && _tehDecider() )){ // we have to go up, at bottom edge (or we want to and not at top) props.top = this.cellSize * (_pos.y - 1); } var bc = this.baseClass; dojo.addClass(_pos.n, bc + "Top"); dojo.addClass(_pos.n, bc + "Seen"); dojo.animateProperty({ node: _pos.n, properties: props, onEnd: dojo.hitch(this, "_loadUnder", _pos, props), easing: this.easing }).play(); }";s:7:"summary";s:34:"Show the passed node in the picker";s:7:"private";b:1;}s:28:"dojox.image.Badge._loadUnder";a:6:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"info";a:1:{s:4:"type";s:0:"";}s:5:"props";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:657:" var idx = info.io; var nodes = []; var isLeft = (props.left >= 0); var isUp = (props.top >= 0); var c = this.cols, // the three node index's we're allegedly over: e = idx + (isLeft ? -1 : 1), f = idx + (isUp ? -c : c), // don't ask: g = (isUp ? (isLeft ? e - c : f + 1) : (isLeft ? f - 1 : e + c)), bc = this.baseClass; dojo.forEach([e, f, g], function(x){ var n = this._nl[x]; if(n){ if(dojo.hasClass(n, bc + "Seen")){ // change the background image out? dojo.removeClass(n, bc + "Seen"); } } },this); setTimeout(dojo.hitch(this, "_disenbiggen", info, props), this.delay * 1.25);";s:7:"summary";s:89:"figure out which three images are being covered, and determine if they need loaded or not";s:7:"private";b:1;}s:30:"dojox.image.Badge._disenbiggen";a:6:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"info";a:1:{s:4:"type";s:0:"";}s:5:"props";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:327:" if(props.top >= 0){ props.top += this.cellSize; } if(props.left >= 0){ props.left += this.cellSize; } var _cc = this.cellSize - 2; dojo.animateProperty({ node: info.n, properties: dojo.mixin(props, { width:_cc, height:_cc }), onEnd: dojo.hitch(this, "_cycle", info, props) }).play(5);";s:7:"summary";s:65:"Hide the passed node (info.n), passing along properties received.";s:7:"private";b:1;}s:24:"dojox.image.Badge._cycle";a:6:{s:9:"prototype";s:17:"dojox.image.Badge";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"info";a:1:{s:4:"type";s:0:"";}s:5:"props";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:281:" var bc = this.baseClass; dojo.removeClass(info.n, bc + "Top"); var ns = this._nl.filter(function(n){ return !dojo.hasClass(n, bc + "Seen") }); var c = ns[Math.floor(Math.random() * ns.length)]; setTimeout(dojo.hitch(this,"_enbiggen", { target: c }), this.delay / 2)";s:7:"summary";s:52:"Select an un-viewed image from the list, and show it";s:7:"private";b:1;}s:21:"dojox.image.Badge._nl";a:3:{s:8:"instance";s:17:"dojox.image.Badge";s:7:"private";b:1;s:7:"summary";s:0:"";}s:11:"props.width";a:1:{s:7:"summary";s:0:"";}s:12:"props.height";a:1:{s:7:"summary";s:0:"";}s:11:"dojox.image";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:"";}}