UNPKG

igniteui-react-charts

Version:

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

226 lines (225 loc) 8.01 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends } from "tslib"; import { HorizontalAnchoredCategorySeries } from "./HorizontalAnchoredCategorySeries"; import { IUnknownValuePlotting_$type } from "igniteui-react-core"; import { CategoryLineRasterizer } from "./CategoryLineRasterizer"; import { UnknownValuePlotting_$type } from "igniteui-react-core"; import { DependencyProperty } from "igniteui-react-core"; import { typeCast, runOn, enumGetBox, markType, markDep } from "igniteui-react-core"; import { List$1 } from "igniteui-react-core"; import { Path } from "igniteui-react-core"; import { ScalerParams } from "./ScalerParams"; import { ChartSelection } from "./ChartSelection"; import { PropertyMetadata } from "igniteui-react-core"; import { AnchoredCategorySeriesView } from "./AnchoredCategorySeriesView"; import { Defaults } from "./Defaults"; import { ISortingAxis_$type } from "./ISortingAxis"; import { Color } from "igniteui-react-core"; /** * @hidden */ var LineSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LineSeries, _super); function LineSeries() { var _this = _super.call(this) || this; _this.acx = null; _this.acx = new CategoryLineRasterizer(); _this.ab = LineSeries.$; _this.ach = 0; return _this; } LineSeries.prototype.bk = function () { return new LineSeries(); }; LineSeries.prototype.get_fk = function () { return true; }; LineSeries.prototype.ct = function () { return new LineSeriesView(this); }; LineSeries.prototype.q1 = function (a) { _super.prototype.q1.call(this, a); this.acy = a; }; LineSeries.prototype.zq = function () { return true; }; LineSeries.prototype.get_ew = function () { return true; }; LineSeries.prototype.preferredCategoryMode = function (a) { return this.ach; }; LineSeries.prototype.o5 = function (a, b) { _super.prototype.o5.call(this, a, b); var c = b; c.dk(); }; LineSeries.prototype.aam = function (a, b) { _super.prototype.aam.call(this, a, b); var c = b.c0.d; var d = typeCast(LineSeriesView.$, b); var e = a.h; var f = this.getEffectiveViewport1(b); this.y4.a2(this, this.zo(), runOn(this, this.yo), this.zx(b), this.zy(b)); var g = false; var h = this.y4.b; if (h != null) { g = true; } if (g) { var i = new ScalerParams(0, b.b2, b.b1, this.ace.ch, f); this.aai(e, -1, this.valueColumn.count, this.ace, i, b.r, -1); } var j = d.dr; var k = d.ds; var l = d.dq; this.y4.ad(j, true, false, true, false); this.y4.ad(k, true, false, true, false); this.y4.ad(l, false, true, false, false); l._opacity = 0.75 * this.y4.j; if (b.c4(a)) { d.dl(e.count, e, true, this.unknownValuePlotting, this.aau(e, e.count - 1, b.b1, b.b2), c, this.id); b.c7(a); } }; LineSeries.prototype.ak = function (a, b) { var c = new List$1(ChartSelection.$, 0); this.p4(a, c, b); return c.toArray(); }; LineSeries.prototype.p4 = function (a, b, c) { this.aae(a, b, c, this.yv, 0); }; LineSeries.prototype.ra = function (a, b, c, d) { _super.prototype.ra.call(this, a, b, c, d); switch (b) { case LineSeries.$$p[0]: this.y1.m = this.unknownValuePlotting == 0; this.rs(false); this.ql(); break; } }; Object.defineProperty(LineSeries.prototype, "useHighMarkerFidelity", { get: function () { return this.zs; }, enumerable: false, configurable: true }); LineSeries.$t = markType(LineSeries, 'LineSeries', HorizontalAnchoredCategorySeries.$, [IUnknownValuePlotting_$type]); LineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, LineSeries, 'raisePropertyChanged', ['UnknownValuePlotting::ac0', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]); return LineSeries; }(HorizontalAnchoredCategorySeries)); export { LineSeries }; /** * @hidden */ var LineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LineSeriesView, _super); function LineSeriesView(a) { var _this = _super.call(this, a) || this; _this.dj = null; _this.du = new Path(); _this.dt = new Path(); _this.dv = new Path(); _this.dp = new Path(); _this.dn = new Path(); _this.dm = new Path(); _this.dj = a; return _this; } LineSeriesView.prototype.ax = function () { _super.prototype.ax.call(this); if (!this.r) { this.dj.xc = Defaults.e; } }; Object.defineProperty(LineSeriesView.prototype, "dr", { get: function () { return this.du; }, enumerable: false, configurable: true }); Object.defineProperty(LineSeriesView.prototype, "ds", { get: function () { return this.dv; }, enumerable: false, configurable: true }); Object.defineProperty(LineSeriesView.prototype, "dq", { get: function () { return this.dt; }, enumerable: false, configurable: true }); LineSeriesView.prototype.dk = function () { this.dt.an = null; this.du.an = null; this.dv.an = null; this.av(); }; LineSeriesView.prototype.dl = function (a, b, c, d, e, f, g) { this.dj.acx.a = typeCast(ISortingAxis_$type, this.c2.fetchXAxis()) !== null ? true : false; this.dj.acx.m(this.du, this.dt, this.dv, a, b, c, d, e, f, g); this.av(); }; LineSeriesView.prototype.bh = function () { _super.prototype.bh.call(this); }; LineSeriesView.prototype.bi = function () { _super.prototype.bi.call(this); this.dn.an = this.du.an; this.dp.an = this.dv.an; this.dm.an = this.dt.an; var a = this.bv(); this.dn._stroke = a; this.dn.ad = this.f.ie + 3; this.dp._stroke = a; this.dp.ad = this.f.ie + 3; this.dm._fill = a; this.dm._opacity = 1; }; LineSeriesView.prototype.bc = function (a, b) { _super.prototype.bc.call(this, a, b); if (a.d) { if (b) { a.t(this.dm); a.t(this.dn); a.t(this.dp); } else { a.t(this.dt); a.t(this.du); a.t(this.dv); } } }; LineSeriesView.prototype.aq = function (a) { _super.prototype.aq.call(this, a); this.f.bc.exportPathData(a, this.du, "lowerShape", ["Lower", "Main"]); this.f.bc.exportPathData(a, this.dv, "upperShape", ["Upper"]); this.f.bc.exportPathData(a, this.dt, "translucentShape", ["Translucent"]); }; LineSeriesView.prototype.ai = function () { var a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.v3 = a; this.f.jm = 3; this.f.jn = 1; this.f.jo = 4; this.f.hc = false; }; LineSeriesView.$t = markType(LineSeriesView, 'LineSeriesView', AnchoredCategorySeriesView.$); return LineSeriesView; }(AnchoredCategorySeriesView)); export { LineSeriesView };