UNPKG

igniteui-webcomponents-charts

Version:

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

211 lines (209 loc) 8.2 kB
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. */ export let IgcScatterContourSeriesComponent = /*@__PURE__*/ (() => { class IgcScatterContourSeriesComponent extends IgcScatterTriangulationSeriesComponent { createImplementation() { return new ScatterContourSeries(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent == null) { let names = getAllPropertyNames(IgcScatterContourSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent = names; } return IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent; } static register() { if (!IgcScatterContourSeriesComponent._isElementRegistered) { IgcScatterContourSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcScatterContourSeriesComponent.htmlTagName, IgcScatterContourSeriesComponent); } } /** * Gets whether the current series shows a line contour shape. */ get isLineContour() { return this.i.fk; } /** * Gets or set the name of the property from which to retrieve the numeric values from the ItemsSource items. */ get valueMemberPath() { return this.i.za; } set valueMemberPath(v) { this.i.za = v; } /** * Gets or sets the label displayed before series value in the Data Legend. */ get valueMemberAsLegendLabel() { return this.i.y6; } set valueMemberAsLegendLabel(v) { this.i.y6 = v; } /** * Gets or sets the unit displayed after series value in the Data Legend. */ get valueMemberAsLegendUnit() { return this.i.y8; } set valueMemberAsLegendUnit(v) { this.i.y8 = v; } /** * Gets or sets the ValueBrushScale to use when determining Brushes for each contour line, based on the values found in ValueMemberPath. */ get fillScale() { const r = this.i.y0; if (r == null) { return null; } if (!r.externalObject) { let e = IgcValueBrushScaleComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; } set fillScale(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; } /** * Gets actual fill scale that is set on the FillScale property or default FillScale */ get actualFillScale() { const r = this.i.yz; if (r == null) { return null; } if (!r.externalObject) { let e = IgcValueBrushScaleComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; } set actualFillScale(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; } /** * Gets or set the ContourValueResolver used to determine the numeric values of contours. */ get valueResolver() { const r = this.i.yx; if (r == null) { return null; } if (!r.externalObject) { let e = IgcContourValueResolverComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; } set valueResolver(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; } findByName(name) { var baseResult = super.findByName(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; } _styling(container, component, parent) { super._styling(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; } getItemValue(item, memberPathName) { let 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 */ getMemberPathValue(memberPathName) { let iv = this.i.mf(memberPathName); return (iv); } } IgcScatterContourSeriesComponent._observedAttributesIgcScatterContourSeriesComponent = null; IgcScatterContourSeriesComponent.htmlTagName = "igc-scatter-contour-series"; IgcScatterContourSeriesComponent._isElementRegistered = false; return IgcScatterContourSeriesComponent; })();