Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.985 | SourceElements[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 315 | Closure/closure/goog/fx/dom.js |
2 | 14 | 346 | Closure/closure/goog/fx/dom.js |
| ||||
/** * Creates an animation object that will resize an element between two widths * * Start and End should be numbers * * @param {Element} element Dom Node to be used in the animation. * @param {number} start Start width. * @param {number} end End width. * @param {number} time Length of animation in milliseconds. * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1. * @extends {goog.fx.dom.PredefinedEffect} * @constructor */ goog.fx.dom.ResizeWidth= function (element, start, end, time, opt_acc){ goog.fx.dom.PredefinedEffect.call(this, element, [start], [end], time, opt_acc); } ; goog.inherits(goog.fx.dom.ResizeWidth, goog.fx.dom.PredefinedEffect); /** * Animation event handler that will resize an element by setting its width. * @protected * @override */ goog.fx.dom.ResizeWidth.prototype.updateStyle= function ( ) { this.element.style.width= Math.round(this.coords[0])+ 'px'; } ; |
| ||||
/** * Creates an animation object that will resize an element between two heights * * Start and End should be numbers * * @param {Element} element Dom Node to be used in the animation. * @param {number} start Start height. * @param {number} end End height. * @param {number} time Length of animation in milliseconds. * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1. * @extends {goog.fx.dom.PredefinedEffect} * @constructor */ goog.fx.dom.ResizeHeight= function (element, start, end, time, opt_acc){ goog.fx.dom.PredefinedEffect.call(this, element, [start], [end], time, opt_acc); } ; goog.inherits(goog.fx.dom.ResizeHeight, goog.fx.dom.PredefinedEffect); /** * Animation event handler that will resize an element by setting its height. * @protected * @override */ goog.fx.dom.ResizeHeight.prototype.updateStyle= function ( ) { this.element.style.height= Math.round(this.coords[0])+ 'px'; } ; |
| |||
/** * Creates an animation object that will resize an element between two widths * * Start and End should be numbers * * @param {Element} element Dom Node to be used in the animation. * @param {number} start Start width. * @param {number} end End width. * @param {number} time Length of animation in milliseconds. * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1. * @extends {goog.fx.dom.PredefinedEffect} * @constructor */ /** * Creates an animation object that will resize an element between two heights * * Start and End should be numbers * * @param {Element} element Dom Node to be used in the animation. * @param {number} start Start height. * @param {number} end End height. * @param {number} time Length of animation in milliseconds. * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1. * @extends {goog.fx.dom.PredefinedEffect} * @constructor */ goog.fx.dom. [[#variable5cea1620]]= function (element,start,end,time,opt_acc) { goog.fx.dom.PredefinedEffect.call(this,element,[start],[end],time,opt_acc); } ; goog.inherits(goog.fx.dom. [[#variable5cea1620]],goog.fx.dom.PredefinedEffect); /** * Animation event handler that will resize an element by setting its width. * @protected * @override */ /** * Animation event handler that will resize an element by setting its height. * @protected * @override */ goog.fx.dom. [[#variable5cea1620]].prototype.updateStyle= function ( ) { this.element.style. [[#variable5749c4a0]]=Math.round(this.coords[0])+'px'; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5cea1620]] | ResizeWidth |
1 | 2 | [[#5cea1620]] | ResizeHeight |
2 | 1 | [[#5749c4a0]] | width |
2 | 2 | [[#5749c4a0]] | height |