| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 5 | 3 | 0.972 | SourceElements[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 124 | Closure/closure/goog/fx/dom.js |
| 2 | 7 | 245 | Closure/closure/goog/fx/dom.js |
| 3 | 7 | 280 | Closure/closure/goog/fx/dom.js |
| 4 | 7 | 517 | Closure/closure/goog/fx/dom.js |
| 5 | 7 | 585 | Closure/closure/goog/fx/dom.js |
| ||||
/**
* Creates an animation object that will slide an element from A to B. (This
* in effect automatically sets up the onanimate event for an Animation object)
*
* Start and End should be 2 dimensional arrays
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 2D array for start coordinates (X, Y).
* @param {Array.<number>} end 2D array for end coordinates (X, Y).
* @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.Slide= function (element, start, end, time, opt_acc){
if (start.length!= 2
|| end.length!= 2) {
throw Error('Start and end points must be 2D');
}
goog.fx.dom.PredefinedEffect.apply(this, arguments);
} ;
goog.inherits(goog.fx.dom.Slide, goog.fx.dom.PredefinedEffect);
|
| ||||
/**
* Creates an animation object that will scroll an element from A to B.
*
* Start and End should be 2 dimensional arrays
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 2D array for start scroll left and top.
* @param {Array.<number>} end 2D array for end scroll left and top.
* @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.Scroll= function (element, start, end, time, opt_acc){
if (start.length!= 2
|| end.length!= 2) {
throw Error('Start and end points must be 2D');
}
goog.fx.dom.PredefinedEffect.apply(this, arguments);
} ;
goog.inherits(goog.fx.dom.Scroll, goog.fx.dom.PredefinedEffect);
|
| ||||
/**
* Creates an animation object that will resize an element between two widths
* and heights.
*
* Start and End should be 2 dimensional arrays
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 2D array for start width and height.
* @param {Array.<number>} end 2D array for end width and 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.Resize= function (element, start, end, time, opt_acc){
if (start.length!= 2
|| end.length!= 2) {
throw Error('Start and end points must be 2D');
}
goog.fx.dom.PredefinedEffect.apply(this, arguments);
} ;
goog.inherits(goog.fx.dom.Resize, goog.fx.dom.PredefinedEffect);
|
| ||||
/**
* Provides a transformation of an elements background-color.
*
* Start and End should be 3D arrays representing R,G,B
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 3D Array for RGB of start color.
* @param {Array.<number>} end 3D Array for RGB of end color.
* @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.BgColorTransform= function (element, start, end, time, opt_acc){
if (start.length!= 3
|| end.length!= 3) {
throw Error('Start and end points must be 3D');
}
goog.fx.dom.PredefinedEffect.apply(this, arguments);
} ;
goog.inherits(goog.fx.dom.BgColorTransform, goog.fx.dom.PredefinedEffect);
|
| ||||
/**
* Provides a transformation of an elements color.
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 3D Array representing R,G,B.
* @param {Array.<number>} end 3D Array representing R,G,B.
* @param {number} time Length of animation in milliseconds.
* @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1.
* @constructor
* @extends {goog.fx.dom.PredefinedEffect}
*/
goog.fx.dom.ColorTransform= function (element, start, end, time, opt_acc){
if (start.length!= 3
|| end.length!= 3) {
throw Error('Start and end points must be 3D');
}
goog.fx.dom.PredefinedEffect.apply(this, arguments);
} ;
goog.inherits(goog.fx.dom.ColorTransform, goog.fx.dom.PredefinedEffect);
|
| |||
/**
* Creates an animation object that will slide an element from A to B. (This
* in effect automatically sets up the onanimate event for an Animation object)
*
* Start and End should be 2 dimensional arrays
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 2D array for start coordinates (X, Y).
* @param {Array.<number>} end 2D array for end coordinates (X, Y).
* @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
*/
/**
* Provides a transformation of an elements background-color.
*
* Start and End should be 3D arrays representing R,G,B
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 3D Array for RGB of start color.
* @param {Array.<number>} end 3D Array for RGB of end color.
* @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 scroll an element from A to B.
*
* Start and End should be 2 dimensional arrays
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 2D array for start scroll left and top.
* @param {Array.<number>} end 2D array for end scroll left and top.
* @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 widths
* and heights.
*
* Start and End should be 2 dimensional arrays
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 2D array for start width and height.
* @param {Array.<number>} end 2D array for end width and 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
*/
/**
* Provides a transformation of an elements color.
*
* @param {Element} element Dom Node to be used in the animation.
* @param {Array.<number>} start 3D Array representing R,G,B.
* @param {Array.<number>} end 3D Array representing R,G,B.
* @param {number} time Length of animation in milliseconds.
* @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1.
* @constructor
* @extends {goog.fx.dom.PredefinedEffect}
*/
goog.fx.dom. [[#variable566501a0]]= function (element,start,end,time,opt_acc)
{ if (start.length!= [[#variable566503c0]]
|| end.length!= [[#variable566503c0]])
{ throw Error( [[#variable56650100]]);
}
goog.fx.dom.PredefinedEffect.apply(this,arguments);
} ;
goog.inherits(goog.fx.dom. [[#variable566501a0]],goog.fx.dom.PredefinedEffect);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#566501a0]] | Slide |
| 1 | 2 | [[#566501a0]] | BgColorTransform |
| 1 | 3 | [[#566501a0]] | Scroll |
| 1 | 4 | [[#566501a0]] | Resize |
| 1 | 5 | [[#566501a0]] | ColorTransform |
| 2 | 1 | [[#566503c0]] | 2 |
| 2 | 2 | [[#566503c0]] | 3 |
| 2 | 3 | [[#566503c0]] | 2 |
| 2 | 4 | [[#566503c0]] | 2 |
| 2 | 5 | [[#566503c0]] | 3 |
| 3 | 1 | [[#56650100]] | 'Start and end points must be 2D' |
| 3 | 2 | [[#56650100]] | 'Start and end points must be 3D' |
| 3 | 3 | [[#56650100]] | 'Start and end points must be 2D' |
| 3 | 4 | [[#56650100]] | 'Start and end points must be 2D' |
| 3 | 5 | [[#56650100]] | 'Start and end points must be 3D' |