/** * Created by W.X. on 2016/11/18. */ import {Unit} from "../../../drawing/Unit"; export class Position { private _x: Unit; private _y: Unit; constructor(left = Unit.pixel(0), top = Unit.pixel(0)) { this._x = left; this._y = top; } clone() { return new Position(this._x.clone(), this._y.clone()); } get x(): Unit { return this._x; } set x(value: Unit) { this._x = value; } get y(): Unit { return this._y; } set y(value: Unit) { this._y = value; } }