Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 2 | 0.965 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 202 | Closure/closure/goog/graphics/canvasgraphics.js |
2 | 18 | 314 | Closure/closure/goog/graphics/svggraphics.js |
| ||||
/** * Changes the coordinate system position. * @param {number} left The coordinate system left bound. * @param {number} top The coordinate system top bound. */ goog.graphics.CanvasGraphics.prototype.setCoordOrigin= function (left, top){ this.coordLeft= left; this.coordTop= top; this.redraw( ); } ; /** * Changes the coordinate size. * @param {number} coordWidth The coordinate width. * @param {number} coordHeight The coordinate height. */ goog.graphics.CanvasGraphics.prototype.setCoordSize= function (coordWidth, coordHeight){ goog.graphics.CanvasGraphics.superClass_.setCoordSize.apply(this, arguments); this.redraw( ); } ; |
| ||||
/** * Changes the coordinate system position. * @param {number} left The coordinate system left bound. * @param {number} top The coordinate system top bound. */ goog.graphics.SvgGraphics.prototype.setCoordOrigin= function (left, top){ this.coordLeft= left; this.coordTop= top; this.setViewBox_( ); } ; /** * Changes the coordinate size. * @param {number} coordWidth The coordinate width. * @param {number} coordHeight The coordinate height. */ goog.graphics.SvgGraphics.prototype.setCoordSize= function (coordWidth, coordHeight){ goog.graphics.SvgGraphics.superClass_.setCoordSize.apply( this, arguments); this.setViewBox_( ); } ; |
| |||
/** * Changes the coordinate system position. * @param {number} left The coordinate system left bound. * @param {number} top The coordinate system top bound. */ goog.graphics. [[#variable62fdc900]].prototype.setCoordOrigin= function (left,top) { this.coordLeft=left; this.coordTop=top; this. [[#variable62fdc840]]( ); } ; /** * Changes the coordinate size. * @param {number} coordWidth The coordinate width. * @param {number} coordHeight The coordinate height. */ goog.graphics. [[#variable62fdc900]].prototype.setCoordSize= function (coordWidth,coordHeight) { goog.graphics. [[#variable62fdc900]].superClass_.setCoordSize.apply(this,arguments); this. [[#variable62fdc840]]( ); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62fdc900]] | SvgGraphics |
1 | 2 | [[#62fdc900]] | CanvasGraphics |
2 | 1 | [[#62fdc840]] | setViewBox_ |
2 | 2 | [[#62fdc840]] | redraw |