UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

32 lines (31 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Size = void 0; /** * Defines a Size type with Width, Height */ var Size = /** @class */ (function () { /** * Creates an instance of the Size with specified width and height * @param width * @param height */ function Size(width, height) { this.width = width; this.height = height; } /** * Returns true if a size numerically equals another size * @param size1 * @param size2 */ Size.isEqual = function (size1, size2) { return (size1 === null || size1 === void 0 ? void 0 : size1.width) === (size2 === null || size2 === void 0 ? void 0 : size2.width) && (size1 === null || size1 === void 0 ? void 0 : size1.height) === (size2 === null || size2 === void 0 ? void 0 : size2.height); }; /** * The static Empty size returns a Size with Width=0, Height=0 */ Size.EMPTY = new Size(0, 0); return Size; }()); exports.Size = Size;