UNPKG

igniteui-react-charts

Version:

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

200 lines (198 loc) 7.32 kB
import { __extends } from "tslib"; import { IgrValueBrushScale } from "./igr-value-brush-scale"; import { IgrContourValueResolver } from "./igr-contour-value-resolver"; import { IgrScatterTriangulationSeries } from "./igr-scatter-triangulation-series"; import { ScatterContourSeries } from "./ScatterContourSeries"; /** * Series class for rendering isarithmic contours based on a triangulation of X+Y+Value points in the ItemsSource. */ var IgrScatterContourSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrScatterContourSeries, _super); function IgrScatterContourSeries(props) { return _super.call(this, props) || this; } IgrScatterContourSeries.prototype.createImplementation = function () { return new ScatterContourSeries(); }; Object.defineProperty(IgrScatterContourSeries.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrScatterContourSeries.prototype, "isLineContour", { /** * Gets whether the current series shows a line contour shape. */ get: function () { return this.i.fk; }, enumerable: false, configurable: true }); Object.defineProperty(IgrScatterContourSeries.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.zg; }, set: function (v) { this.i.zg = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrScatterContourSeries.prototype, "valueMemberAsLegendLabel", { /** * Gets or sets the label displayed before series value in the Data Legend. */ get: function () { return this.i.zc; }, set: function (v) { this.i.zc = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrScatterContourSeries.prototype, "valueMemberAsLegendUnit", { /** * Gets or sets the unit displayed after series value in the Data Legend. */ get: function () { return this.i.ze; }, set: function (v) { this.i.ze = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrScatterContourSeries.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.y6; if (r == null) { return null; } if (!r.externalObject) { var e = IgrValueBrushScale._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.y6 = null : this.i.y6 = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgrScatterContourSeries.prototype, "actualFillScale", { /** * Gets actual fill scale that is set on the FillScale property or default FillScale */ get: function () { var r = this.i.y5; if (r == null) { return null; } if (!r.externalObject) { var e = IgrValueBrushScale._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.y5 = null : this.i.y5 = v.i; }, enumerable: false, configurable: true }); Object.defineProperty(IgrScatterContourSeries.prototype, "valueResolver", { /** * Gets or set the ContourValueResolver used to determine the numeric values of contours. */ get: function () { var r = this.i.y3; if (r == null) { return null; } if (!r.externalObject) { var e = IgrContourValueResolver._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.y3 = null : this.i.y3 = v.i; }, enumerable: false, configurable: true }); IgrScatterContourSeries.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; }; IgrScatterContourSeries.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; }; IgrScatterContourSeries.prototype.getItemValue = function (item, memberPathName) { var iv = this.i.ku(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 */ IgrScatterContourSeries.prototype.getMemberPathValue = function (memberPathName) { var iv = this.i.mi(memberPathName); return (iv); }; return IgrScatterContourSeries; }(IgrScatterTriangulationSeries)); export { IgrScatterContourSeries };