| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 13 | 2 | 1 | 0.989 | SourceElements[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 13 | 151 | Closure/closure/goog/graphics/svgelement.js |
| 2 | 13 | 245 | Closure/closure/goog/graphics/svgelement.js |
| ||||
/**
* Update the position of the rectangle.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
goog.graphics.SvgRectElement.prototype.setPosition= function (x, y){
this.getGraphics( ).setElementAttributes(this.getElement( ), { 'x': x, 'y': y } );
} ;
/**
* Update the size of the rectangle.
* @param {number} width Width of rectangle.
* @param {number} height Height of rectangle.
*/
goog.graphics.SvgRectElement.prototype.setSize= function (width, height){
this.getGraphics( ).setElementAttributes(this.getElement( ),
{ 'width': width, 'height': height } );
} ;
|
| ||||
/**
* Update the position of the image.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
goog.graphics.SvgImageElement.prototype.setPosition= function (x, y){
this.getGraphics( ).setElementAttributes(this.getElement( ), { 'x': x, 'y': y } );
} ;
/**
* Update the size of the image.
* @param {number} width Width of image.
* @param {number} height Height of image.
*/
goog.graphics.SvgImageElement.prototype.setSize= function (width, height){
this.getGraphics( ).setElementAttributes(this.getElement( ),
{ 'width': width, 'height': height } );
} ;
|
| |||
/**
* Update the position of the rectangle.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
/**
* Update the position of the image.
* @param {number} x X coordinate (left).
* @param {number} y Y coordinate (top).
*/
goog.graphics. [[#variable61afcf80]].prototype.setPosition= function (x,y)
{ this.getGraphics( ).setElementAttributes(this.getElement( ), { 'x':x,
'y':y } );
} ;
/**
* Update the size of the rectangle.
* @param {number} width Width of rectangle.
* @param {number} height Height of rectangle.
*/
/**
* Update the size of the image.
* @param {number} width Width of image.
* @param {number} height Height of image.
*/
goog.graphics. [[#variable61afcf80]].prototype.setSize= function (width,height)
{ this.getGraphics( ).setElementAttributes(this.getElement( ), { 'width':width,
'height':height } );
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#61afcf80]] | SvgRectElement |
| 1 | 2 | [[#61afcf80]] | SvgImageElement |