mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
5e33dbcfcc
Summary: This was a confusing place for them. BoundingDimensions, Position, and Touchable were only used in Touchable; StaticContainer I moved to Libraries/Components. @public Reviewed By: @vjeux Differential Revision: D2530730 fb-gh-sync-id: e636a6b7259c2bd3ab52c82ebd59a6c66c9e7e7a
28 lines
618 B
JavaScript
28 lines
618 B
JavaScript
/**
|
|
* @providesModule Position
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
var PooledClass = require('PooledClass');
|
|
|
|
var 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 refrence.
|
|
*
|
|
* @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;
|
|
}
|
|
|
|
PooledClass.addPoolingTo(Position, twoArgumentPooler);
|
|
|
|
module.exports = Position;
|
|
|