CloneSet276


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6310.987SourceElements[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11054
Closure/closure/goog/positioning/absoluteposition.js
21055
Closure/closure/goog/positioning/clientposition.js
3652
Closure/closure/goog/positioning/viewportposition.js
Clone Instance
1
Line Count
10
Source Line
54
Source File
Closure/closure/goog/positioning/absoluteposition.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);


Clone Instance
2
Line Count
10
Source Line
55
Source File
Closure/closure/goog/positioning/clientposition.js

/**
 * 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);


Clone Instance
3
Line Count
6
Source Line
52
Source File
Closure/closure/goog/positioning/viewportposition.js

/**
 * 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);


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60d0a600]]
ViewportPosition 
12[[#60d0a600]]
ClientPosition 
13[[#60d0a600]]
AbsolutePosition