/** * Created by W.X. on 2016/11/18. */ import {Unit} from "../../../drawing/Unit"; export class Size { private _width: Unit; private _height: Unit; constructor(width = Unit.pixel(0), height = Unit.pixel(0)) { this._width = width; this._height = height; } clone() { return new Size(this._width.clone(), this._height.clone()); } get width(): Unit { return this._width; } set width(value: Unit) { this._width = value; } get height(): Unit { return this._height; } set height(value: Unit) { this._height = value; } }