Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 4 | 0.973 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 669 | Closure/closure/goog/graphics/svggraphics.js |
2 | 5 | 830 | Closure/closure/goog/graphics/vmlgraphics.js |
| ||||
/** * Create an empty group of drawing elements. * * @param {goog.graphics.SvgGroupElement=} opt_group The group wrapper element * to append to. If not specified, appends to the main canvas. * * @return {goog.graphics.GroupElement} The newly created group. */ goog.graphics.SvgGraphics.prototype.createGroup= function (opt_group){ var element= this.createSvgElement_('g'); var parent= opt_group || this.canvasElement; parent.getElement( ).appendChild(element); return new goog.graphics.SvgGroupElement(element, this ); } ; |
| ||||
/** * Create an empty group of drawing elements. * * @param {goog.graphics.VmlGroupElement=} opt_group The group wrapper element * to append to. If not specified, appends to the main canvas. * * @return {goog.graphics.GroupElement} The newly created group. */ goog.graphics.VmlGraphics.prototype.createGroup= function (opt_group){ var element= this.createFullSizeElement_('group'); var parent= opt_group || this.canvasElement; parent.getElement( ).appendChild(element); return new goog.graphics.VmlGroupElement(element, this ); } ; |
| |||
/** * Create an empty group of drawing elements. * * @param {goog.graphics.SvgGroupElement=} opt_group The group wrapper element * to append to. If not specified, appends to the main canvas. * * @return {goog.graphics.GroupElement} The newly created group. */ /** * Create an empty group of drawing elements. * * @param {goog.graphics.VmlGroupElement=} opt_group The group wrapper element * to append to. If not specified, appends to the main canvas. * * @return {goog.graphics.GroupElement} The newly created group. */ goog.graphics. [[#variable1fef88a0]].prototype.createGroup= function (opt_group) { var element=this. [[#variable1fef8820]]( [[#variable1fef8760]]); var parent=opt_group || this.canvasElement; parent.getElement( ).appendChild(element); return new goog.graphics. [[#variable1fef8700]](element,this ); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1fef88a0]] | SvgGraphics |
1 | 2 | [[#1fef88a0]] | VmlGraphics |
2 | 1 | [[#1fef8820]] | createSvgElement_ |
2 | 2 | [[#1fef8820]] | createFullSizeElement_ |
3 | 1 | [[#1fef8760]] | 'g' |
3 | 2 | [[#1fef8760]] | 'group' |
4 | 1 | [[#1fef8700]] | SvgGroupElement |
4 | 2 | [[#1fef8700]] | VmlGroupElement |