UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

61 lines (60 loc) 2.41 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.PolarAxisLayoutState = exports.AxisLayoutState = void 0; /** * Properties to describe axis layout state */ var AxisLayoutState = /** @class */ (function () { function AxisLayoutState() { this.axisSize = 0; // Additional horizontal size required by axis for correct rendering this.additionalLeftSize = 0; this.additionalRightSize = 0; // Additional vertical size required by axis for correct rendering this.additionalTopSize = 0; this.additionalBottomSize = 0; } AxisLayoutState.prototype.clear = function () { this.axisSize = 0; this.additionalLeftSize = 0; this.additionalRightSize = 0; this.additionalTopSize = 0; this.additionalBottomSize = 0; }; return AxisLayoutState; }()); exports.AxisLayoutState = AxisLayoutState; var PolarAxisLayoutState = /** @class */ (function (_super) { __extends(PolarAxisLayoutState, _super); function PolarAxisLayoutState() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.leftScale = -1; _this.rightScale = 1; _this.topScale = 1; _this.bottomScale = -1; return _this; } PolarAxisLayoutState.prototype.clear = function () { this.leftScale = -1; this.rightScale = 1; this.topScale = 1; this.bottomScale = -1; }; return PolarAxisLayoutState; }(AxisLayoutState)); exports.PolarAxisLayoutState = PolarAxisLayoutState;