UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

144 lines (141 loc) 5.55 kB
import { __extends } from "tslib"; import { IgcNumericAxisBaseComponent } from "./igc-numeric-axis-base-component"; import { NumericRadiusAxis } from "./NumericRadiusAxis"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent radius axis for polar and radial series. * * ```ts * this.series1.angleAxisName = "AngleAxis"; * this.series1.valueAxisName = "numericYAxis"; * ``` */ export var IgcNumericRadiusAxisComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcNumericRadiusAxisComponent, _super); function IgcNumericRadiusAxisComponent() { return _super.call(this) || this; } IgcNumericRadiusAxisComponent.prototype.createImplementation = function () { return new NumericRadiusAxis(); }; Object.defineProperty(IgcNumericRadiusAxisComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcNumericRadiusAxisComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } }; IgcNumericRadiusAxisComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcNumericRadiusAxisComponent, "observedAttributes", { get: function () { if (IgcNumericRadiusAxisComponent._observedAttributesIgcNumericRadiusAxisComponent == null) { var names = getAllPropertyNames(IgcNumericRadiusAxisComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcNumericRadiusAxisComponent._observedAttributesIgcNumericRadiusAxisComponent = names; } return IgcNumericRadiusAxisComponent._observedAttributesIgcNumericRadiusAxisComponent; }, enumerable: false, configurable: true }); IgcNumericRadiusAxisComponent.register = function () { if (!IgcNumericRadiusAxisComponent._isElementRegistered) { IgcNumericRadiusAxisComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcNumericRadiusAxisComponent.htmlTagName, IgcNumericRadiusAxisComponent); } }; Object.defineProperty(IgcNumericRadiusAxisComponent.prototype, "isRadial", { /** * Checks if the axis is of radial axis type * * ```ts * let isRadial: boolean = this.series.isRadial; * ``` */ get: function () { return this.i.du; }, enumerable: false, configurable: true }); Object.defineProperty(IgcNumericRadiusAxisComponent.prototype, "radiusExtentScale", { /** * Defines the percentage of the maximum radius extent to use as the maximum radius. Should be * a value between 0.0 and 1.0. */ get: function () { return this.i.tq; }, set: function (v) { this.i.tq = +v; this._a("radiusExtentScale", this.i.tq); }, enumerable: false, configurable: true }); Object.defineProperty(IgcNumericRadiusAxisComponent.prototype, "innerRadiusExtentScale", { /** * Defines the percentage of the maximum radius extent to leave blank at the center of the chart. Should be * a value between 0.0 and 1.0. */ get: function () { return this.i.tp; }, set: function (v) { this.i.tp = +v; this._a("innerRadiusExtentScale", this.i.tp); }, enumerable: false, configurable: true }); /** * Returns a world coordinates radius length (0 - 0.5) from a raw axis value. * @param unscaledValue * The raw axis value. */ IgcNumericRadiusAxisComponent.prototype.getScaledValue = function (unscaledValue) { var iv = this.i.tm(unscaledValue); return (iv); }; /** * Returns a raw axis value from the world coordinates radius length provided. * @param scaledValue * The scaled world coordinates radius length. * * Class containing several properties which are used as parameters passed to scaling operations in a `SeriesViewer`. */ IgcNumericRadiusAxisComponent.prototype.getUnscaledValue = function (scaledValue) { var iv = this.i.to(scaledValue); return (iv); }; IgcNumericRadiusAxisComponent._observedAttributesIgcNumericRadiusAxisComponent = null; IgcNumericRadiusAxisComponent.htmlTagName = "igc-numeric-radius-axis"; IgcNumericRadiusAxisComponent._isElementRegistered = false; return IgcNumericRadiusAxisComponent; }(IgcNumericAxisBaseComponent));