UNPKG

igniteui-webcomponents-charts

Version:

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

248 lines (246 loc) 9.86 kB
import { __extends } from "tslib"; import { IgcValueBrushScaleComponent } from "./igc-value-brush-scale-component"; import { IgcContourValueResolverComponent } from "./igc-contour-value-resolver-component"; import { IgcScatterTriangulationSeriesComponent } from "./igc-scatter-triangulation-series-component"; import { ScatterContourSeries } from "./ScatterContourSeries"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Series class for rendering isarithmic contours based on a triangulation of X+Y+Value points in the ItemsSource. */ var IgcScatterContourSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcScatterContourSeriesComponent, _super); function IgcScatterContourSeriesComponent() { return _super.call(this) || this; } IgcScatterContourSeriesComponent.prototype.createImplementation = function () { return new ScatterContourSeries(); }; Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcScatterContourSeriesComponent.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(); } }; IgcScatterContourSeriesComponent.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(IgcScatterContourSeriesComponent, "observedAttributes", { get: function () { if (IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent == null) { var names = getAllPropertyNames(IgcScatterContourSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent = names; } return IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent; }, enumerable: false, configurable: true }); IgcScatterContourSeriesComponent.register = function () { if (!IgcScatterContourSeriesComponent._isElementRegistered) { IgcScatterContourSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcScatterContourSeriesComponent.htmlTagName, IgcScatterContourSeriesComponent); } }; Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "isLineContour", { /** * Gets whether the current series shows a line contour shape. */ get: function () { return this.i.fk; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "valueMemberPath", { /** * Gets or set the name of the property from which to retrieve the numeric values from the ItemsSource items. */ get: function () { return this.i.za; }, set: function (v) { this.i.za = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "valueMemberAsLegendLabel", { /** * Gets or sets the label displayed before series value in the Data Legend. */ get: function () { return this.i.y6; }, set: function (v) { this.i.y6 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "valueMemberAsLegendUnit", { /** * Gets or sets the unit displayed after series value in the Data Legend. */ get: function () { return this.i.y8; }, set: function (v) { this.i.y8 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "fillScale", { /** * Gets or sets the ValueBrushScale to use when determining Brushes for each contour line, based on the values found in ValueMemberPath. */ get: function () { var r = this.i.y0; if (r == null) { return null; } if (!r.externalObject) { var e = IgcValueBrushScaleComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; }, set: function (v) { if (v != null && this._stylingContainer && v._styling) v._styling(this._stylingContainer, this, this); v == null ? this.i.y0 = null : this.i.y0 = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "actualFillScale", { /** * Gets actual fill scale that is set on the FillScale property or default FillScale */ get: function () { var r = this.i.yz; if (r == null) { return null; } if (!r.externalObject) { var e = IgcValueBrushScaleComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; }, set: function (v) { if (v != null && this._stylingContainer && v._styling) v._styling(this._stylingContainer, this, this); v == null ? this.i.yz = null : this.i.yz = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgcScatterContourSeriesComponent.prototype, "valueResolver", { /** * Gets or set the ContourValueResolver used to determine the numeric values of contours. */ get: function () { var r = this.i.yx; if (r == null) { return null; } if (!r.externalObject) { var e = IgcContourValueResolverComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; }, set: function (v) { if (v != null && this._stylingContainer && v._styling) v._styling(this._stylingContainer, this, this); v == null ? this.i.yx = null : this.i.yx = v.i; }, enumerable: false, configurable: true }); IgcScatterContourSeriesComponent.prototype.findByName = function (name) { var baseResult = _super.prototype.findByName.call(this, name); if (baseResult) { return baseResult; } if (this.fillScale && this.fillScale.name && this.fillScale.name == name) { return this.fillScale; } if (this.actualFillScale && this.actualFillScale.name && this.actualFillScale.name == name) { return this.actualFillScale; } if (this.valueResolver && this.valueResolver.name && this.valueResolver.name == name) { return this.valueResolver; } return null; }; IgcScatterContourSeriesComponent.prototype._styling = function (container, component, parent) { _super.prototype._styling.call(this, container, component, parent); this._inStyling = true; if (this.fillScale && this.fillScale._styling) { this.fillScale._styling(container, component, this); } if (this.actualFillScale && this.actualFillScale._styling) { this.actualFillScale._styling(container, component, this); } if (this.valueResolver && this.valueResolver._styling) { this.valueResolver._styling(container, component, this); } this._inStyling = false; }; IgcScatterContourSeriesComponent.prototype.getItemValue = function (item, memberPathName) { var iv = this.i.kr(item, memberPathName); return (iv); }; /** * Gets the value of a requested member path from the series. * @param memberPathName * The property name of a valid member path for the series */ IgcScatterContourSeriesComponent.prototype.getMemberPathValue = function (memberPathName) { var iv = this.i.mf(memberPathName); return (iv); }; IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent = null; IgcScatterContourSeriesComponent.htmlTagName = "igc-scatter-contour-series"; IgcScatterContourSeriesComponent._isElementRegistered = false; return IgcScatterContourSeriesComponent; }(IgcScatterTriangulationSeriesComponent)); export { IgcScatterContourSeriesComponent };