2015-01-30 01:10:49 +00:00
|
|
|
/**
|
2016-07-05 13:34:00 +00:00
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-07-05 13:34:00 +00:00
|
|
|
*
|
2018-05-11 02:06:46 +00:00
|
|
|
* @format
|
2015-01-30 01:10:49 +00:00
|
|
|
*/
|
|
|
|
|
2015-12-01 01:14:10 +00:00
|
|
|
'use strict';
|
2015-01-30 01:10:49 +00:00
|
|
|
|
2018-03-03 23:04:46 +00:00
|
|
|
const PooledClass = require('PooledClass');
|
2015-01-30 01:10:49 +00:00
|
|
|
|
2018-03-03 23:04:46 +00:00
|
|
|
const twoArgumentPooler = PooledClass.twoArgumentPooler;
|
2015-01-30 01:10:49 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Position does not expose methods for construction via an `HTMLDOMElement`,
|
|
|
|
* because it isn't meaningful to construct such a thing without first defining
|
2015-12-15 17:08:39 +00:00
|
|
|
* a frame of reference.
|
2015-01-30 01:10:49 +00:00
|
|
|
*
|
|
|
|
* @param {number} windowStartKey Key that window starts at.
|
|
|
|
* @param {number} windowEndKey Key that window ends at.
|
|
|
|
*/
|
|
|
|
function Position(left, top) {
|
|
|
|
this.left = left;
|
|
|
|
this.top = top;
|
|
|
|
}
|
|
|
|
|
2015-11-07 03:50:10 +00:00
|
|
|
Position.prototype.destructor = function() {
|
|
|
|
this.left = null;
|
|
|
|
this.top = null;
|
|
|
|
};
|
|
|
|
|
2015-01-30 01:10:49 +00:00
|
|
|
PooledClass.addPoolingTo(Position, twoArgumentPooler);
|
|
|
|
|
|
|
|
module.exports = Position;
|