mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-01 09:27:14 +08:00
33 lines
765 B
JavaScript
33 lines
765 B
JavaScript
/* eslint-disable */
|
|
|
|
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
import PooledClass from '../../vendor/PooledClass';
|
|
|
|
const twoArgumentPooler = PooledClass.twoArgumentPooler;
|
|
|
|
/**
|
|
* Position does not expose methods for construction via an `HTMLDOMElement`,
|
|
* because it isn't meaningful to construct such a thing without first defining
|
|
* a frame of reference.
|
|
*
|
|
* @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;
|
|
}
|
|
|
|
Position.prototype.destructor = function() {
|
|
this.left = null;
|
|
this.top = null;
|
|
};
|
|
|
|
PooledClass.addPoolingTo(Position, twoArgumentPooler);
|
|
|
|
export default Position;
|