Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 3 | 1 | 0.987 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 54 | Closure/closure/goog/positioning/absoluteposition.js |
2 | 10 | 55 | Closure/closure/goog/positioning/clientposition.js |
3 | 6 | 52 | Closure/closure/goog/positioning/viewportposition.js |
| ||||
/** * Encapsulates a popup position where the popup absolutely positioned by * setting the left/top style elements directly to the specified values. * The position is generally relative to the element's offsetParent. Normally, * this is the document body, but can be another element if the popup element * is scoped by an element with relative position. * * @param {number|!goog.math.Coordinate} arg1 Left position or coordinate. * @param {number=} opt_arg2 Top position. * @constructor * @extends {goog.positioning.AbstractPosition} */ goog.positioning.AbsolutePosition= function (arg1, opt_arg2){ /** * Coordinate to position popup at. * @type {goog.math.Coordinate} */ this.coordinate= arg1 instanceof goog.math.Coordinate ? arg1 :new goog.math.Coordinate( /** @type {number} */ (arg1), opt_arg2); } ; goog.inherits(goog.positioning.AbsolutePosition, goog.positioning.AbstractPosition); |
| ||||
/** * Encapsulates a popup position where the popup is positioned relative to the * window (client) coordinates. This calculates the correct position to * use even if the element is relatively positioned to some other element. This * is for trying to position an element at the spot of the mouse cursor in * a MOUSEMOVE event. Just use the event.clientX and event.clientY as the * parameters. * * @param {number|goog.math.Coordinate} arg1 Left position or coordinate. * @param {number=} opt_arg2 Top position. * @constructor * @extends {goog.positioning.AbstractPosition} */ goog.positioning.ClientPosition= function (arg1, opt_arg2){ /** * Coordinate to position popup at. * @type {goog.math.Coordinate} */ this.coordinate= arg1 instanceof goog.math.Coordinate ? arg1 :new goog.math.Coordinate( /** @type {number} */ (arg1), opt_arg2); } ; goog.inherits(goog.positioning.ClientPosition, goog.positioning.AbstractPosition); |
| ||||
/** * Encapsulates a popup position where the popup is positioned according to * coordinates relative to the element's viewport (page). This calculates the * correct position to use even if the element is relatively positioned to some * other element. * * @param {number|goog.math.Coordinate} arg1 Left position or coordinate. * @param {number=} opt_arg2 Top position. * @constructor * @extends {goog.positioning.AbstractPosition} */ goog.positioning.ViewportPosition= function (arg1, opt_arg2){ this.coordinate= arg1 instanceof goog.math.Coordinate ? arg1 :new goog.math.Coordinate( /** @type {number} */ (arg1), opt_arg2); } ; goog.inherits(goog.positioning.ViewportPosition, goog.positioning.AbstractPosition); |
| |||
/** * Encapsulates a popup position where the popup is positioned according to * coordinates relative to the element's viewport (page). This calculates the * correct position to use even if the element is relatively positioned to some * other element. * * @param {number|goog.math.Coordinate} arg1 Left position or coordinate. * @param {number=} opt_arg2 Top position. * @constructor * @extends {goog.positioning.AbstractPosition} */ /** * Encapsulates a popup position where the popup is positioned relative to the * window (client) coordinates. This calculates the correct position to * use even if the element is relatively positioned to some other element. This * is for trying to position an element at the spot of the mouse cursor in * a MOUSEMOVE event. Just use the event.clientX and event.clientY as the * parameters. * * @param {number|goog.math.Coordinate} arg1 Left position or coordinate. * @param {number=} opt_arg2 Top position. * @constructor * @extends {goog.positioning.AbstractPosition} */ /** * Encapsulates a popup position where the popup absolutely positioned by * setting the left/top style elements directly to the specified values. * The position is generally relative to the element's offsetParent. Normally, * this is the document body, but can be another element if the popup element * is scoped by an element with relative position. * * @param {number|!goog.math.Coordinate} arg1 Left position or coordinate. * @param {number=} opt_arg2 Top position. * @constructor * @extends {goog.positioning.AbstractPosition} */ goog.positioning. [[#variable60d0a600]]= function (arg1,opt_arg2) { /** * Coordinate to position popup at. * @type {goog.math.Coordinate} */ this.coordinate=arg1 instanceof goog.math.Coordinate ?arg1 :new goog.math.Coordinate( /** @type {number} */ (arg1),opt_arg2); } ; goog.inherits(goog.positioning. [[#variable60d0a600]],goog.positioning.AbstractPosition); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#60d0a600]] | ViewportPosition |
1 | 2 | [[#60d0a600]] | ClientPosition |
1 | 3 | [[#60d0a600]] | AbsolutePosition |