UNPKG

igniteui-angular-gauges

Version:

Ignite UI Angular gauge components.

1,343 lines (1,326 loc) 773 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 * as i0 from '@angular/core'; import { ɵɵngDeclareFactory, ɵɵFactoryTarget, ɵɵngDeclareComponent, ɵɵngDeclareClassMetadata, Component, Input, EventEmitter, Renderer2, ViewContainerRef, NgZone, ComponentFactoryResolver, Injector, ChangeDetectionStrategy, ViewChild, ContentChildren, Output, ɵɵngDeclareNgModule, ɵɵngDeclareInjector, NgModule } from '@angular/core'; import { PathGeometry, PathFigure, LineSegment, Point_$type, BrushUtil, markType, Base, List$1, GeometryUtil, ArcSegment, Size, PolyLineSegment, InterpolationUtil, markEnum, PropertyChangedEventArgs, DependencyObject, INotifyPropertyChanged_$type, markDep, DependencyProperty, PropertyMetadata, Brush, ObservableCollection$1, EventArgs, fromEnum, StringBuilder, PointData, SizeData, String_$type, typeCast, TextBlock, Path, delegateCombine, runOn, Rect, DoubleAnimator, StackPool$1, isNaN_, isInfinity, RectData, AppearanceHelper, PathVisualData, GetPointsSettings, PolygonUtil, Number_$type, Tuple$2, DeviceUtils, delegateRemove, BindingFormatter, fromEn, FontUtil, Control, HighlightedValueDisplayMode_$type, enumGetBox, Array_$type, BrushCollection, Dictionary$2, CanvasScalingHelpers, CanvasGestureDOMEventProxy, intDivide, arrayCopy1, RenderingContext, CanvasViewRenderer, TypeRegistrar, EventProxy, truncate, stringIsNullOrEmpty, FontDefaults, brushToString, stringToBrush, toSpinal, initializePropertiesFromCss, SyncableObservableCollection$2, IgCollection, NamePatcher, AngularRenderer, CollectionAdapter, NotifyCollectionChangedAction, AngularWrapper, IgxDataContext, ensureEnum, fromBrushCollection, toBrushCollection, ensureBool, arrayFindByName, toPoint, IgxNumberFormatSpecifierModule, IgxNumberFormatSpecifierDynamicModule, IgxDVInteractivityModule, IgxDVInteractivityDynamicModule, DoubleValueChangedEventArgs, IgxDoubleValueChangedEventArgs, MathUtil, PathSegment, FontInfo, Stack$1, TransformGroup, RotateTransform, SweepDirection_$type, Delegate_$type, fromPoint } from 'igniteui-angular-core'; import { __extends, __values } from 'tslib'; import { CommonModule } from '@angular/common'; /* 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. */ /** * @hidden */ var LinearGraphBackingFrame = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphBackingFrame, _super); function LinearGraphBackingFrame() { var _this = _super.call(this) || this; _this.e = null; _this.f = null; _this.c = 0; _this.b = 0; _this.a = 0; return _this; } LinearGraphBackingFrame.prototype.g = function (a, b, c) { var _this = this; var d = new PathGeometry(); var e = new PathFigure(); var f, g, h, i; if (c == 1) { f = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a * _this.a, y: 0 }; return $ret; })()); g = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a * _this.b, y: 0 }; return $ret; })()); h = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a * _this.b, y: b }; return $ret; })()); i = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a * _this.a, y: b }; return $ret; })()); } else { f = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: 0, y: a * (1 - _this.b) }; return $ret; })()); g = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: b, y: a * (1 - _this.b) }; return $ret; })()); h = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: b, y: a * (1 - _this.a) }; return $ret; })()); i = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: 0, y: a * (1 - _this.a) }; return $ret; })()); } e._startPoint = f.c; e._segments.add(g); e._segments.add(h); e._segments.add(i); e._isClosed = true; d.c.add(e); return d; }; LinearGraphBackingFrame.prototype.d = function (a, b, c) { this.c = b.c + (c.c - b.c) * a; this.e = BrushUtil.n(b.e, a, c.e, 0); this.f = BrushUtil.n(b.f, a, c.f, 0); this.b = b.b + (c.b - b.b) * a; this.a = b.a + (c.a - b.a) * a; }; LinearGraphBackingFrame.$t = markType(LinearGraphBackingFrame, 'LinearGraphBackingFrame'); return LinearGraphBackingFrame; }(Base)); /* 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. */ /** * @hidden */ var LinearGraphRectFrame = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphRectFrame, _super); function LinearGraphRectFrame() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.e = 0; _this.f = 0; _this.b = 0; _this.c = 0; _this.g = 0; _this.d = 0; _this.i = null; _this.j = null; _this.h = 0; return _this; } LinearGraphRectFrame.prototype.k = function (a, b, c, d) { var _this = this; var e = new PathGeometry(); var f = new PathFigure(); var g, h, i, j; if (d == 1) { g = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a.x + b * _this.b, y: c - _this.d }; return $ret; })()); h = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a.x + b * _this.c, y: c - _this.d }; return $ret; })()); i = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a.x + b * _this.f, y: c - _this.g }; return $ret; })()); j = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: a.x + b * _this.e, y: c - _this.g }; return $ret; })()); } else { g = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: _this.g, y: b * (1 - _this.f) }; return $ret; })()); h = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: _this.d, y: b * (1 - _this.c) }; return $ret; })()); i = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: _this.d, y: b * (1 - _this.b) }; return $ret; })()); j = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: _this.g, y: b * (1 - _this.e) }; return $ret; })()); } f._startPoint = g.c; f._segments.add(h); f._segments.add(i); f._segments.add(j); f._isClosed = true; e.c.add(f); return e; }; LinearGraphRectFrame.a = function (a, b, c, d) { var e = new LinearGraphRectFrame(); e.i = BrushUtil.n(c.i, a, d.i, 0); e.j = BrushUtil.n(c.j, a, d.j, 0); e.h = b * c.h + a * d.h; e.e = b * c.e + a * d.e; e.f = b * c.f + a * d.f; e.g = b * c.g + a * d.g; e.d = b * c.d + a * d.d; e.b = b * c.b + a * d.b; e.c = b * c.c + a * d.c; return e; }; LinearGraphRectFrame.$t = markType(LinearGraphRectFrame, 'LinearGraphRectFrame'); return LinearGraphRectFrame; }(Base)); /* 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. */ /** * @hidden */ var LinearGraphFrame = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphFrame, _super); function LinearGraphFrame() { var _this = _super.call(this) || this; _this.a = null; _this.b = null; _this.a = new LinearGraphBackingFrame(); _this.b = new LinearGraphRectFrame(); return _this; } LinearGraphFrame.prototype.d = function (a, b, c) { this.b = LinearGraphRectFrame.a(a, 1 - a, b.b, c.b); this.c.y(a, b.c, c.c); this.a.d(a, b.a, c.a); }; LinearGraphFrame.$t = markType(LinearGraphFrame, 'LinearGraphFrame'); return LinearGraphFrame; }(Base)); /* 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. */ /** * @hidden */ var MorphSegment = /** @class */ /*@__PURE__*/ (function (_super) { __extends(MorphSegment, _super); function MorphSegment() { var _this = _super.call(this) || this; _this.f = null; _this.g = null; _this.b = false; _this.h = 0; _this.e = false; _this.a = false; _this.d = false; _this.c = false; _this.f = new List$1(Point_$type, 0); _this.g = new List$1(Point_$type, 0); return _this; } MorphSegment.prototype.i = function (a) { this.g.clear(); var b = 20; if (this.b) { var c = void 0; var d = void 0; var e = void 0; if (this.f.count == 0) { d = { $type: Point_$type, x: 0, y: 0 }; e = { $type: Point_$type, x: 0, y: 0 }; } else { d = this.f._inner[0]; e = this.f._inner[1]; } var f = GeometryUtil.s(d, e, this.h, !this.c, this.d); var g = GeometryUtil.g(f, d); var h = GeometryUtil.g(f, e); while (this.c && h < g) { h += Math.PI * 2; } while (!this.c && h > g) { h -= Math.PI * 2; } var i = 0; for (var j = 0; j < b; j++) { c = j / b; if (this.c) { i = g + (h - g) * c; } else { i = g - (g - h) * c; } this.g.add({ $type: Point_$type, x: f.x + Math.cos(i) * this.h, y: f.y + Math.sin(i) * this.h }); } } else { var k = void 0; var l = void 0; var m = void 0; if (this.f.count == 0) { l = { $type: Point_$type, x: 0, y: 0 }; m = { $type: Point_$type, x: 0, y: 0 }; } else { l = this.f._inner[0]; m = this.f._inner[1]; } var n = l.x; var o = l.y; var p = m.x; var q = m.y; for (var r = 0; r < b; r++) { k = r / b; this.g.add({ $type: Point_$type, x: n + (p - n) * k, y: o + (q - o) * k }); } } this.a = true; }; MorphSegment.prototype.l = function (a, b, c, d, e) { var f = this; var g = null; var h = f.f; var i = h.count; if (i == 0) { return a; } if (b._segments.count == 0) { var j = h._inner[0]; b._startPoint = { $type: Point_$type, x: d + c * j.x, y: e + c * j.y }; } if (f.b) { if (i > 1) { var k = new ArcSegment(); g = k; var l = h._inner[1]; k.e = { $type: Point_$type, x: d + c * l.x, y: e + c * l.y }; k.b = f.d; k.d = f.c ? 1 : 0; k.f = new Size(1, f.h * c, f.h * c); a = k.e; } } else { var m = new PolyLineSegment(); g = m; if (i > 1) { var n = void 0; var o = m._points; for (var p = 1; p < i; p++) { n = h._inner[p]; o.add({ $type: Point_$type, x: d + c * n.x, y: e + c * n.y }); } a = m._points._inner[m._points.count - 1]; } } b._segments.add(g); return a; }; MorphSegment.prototype.j = function (a, b, c) { var d = this; var e = d; var f = b.f; var g = false; var h = c.f; var i = false; if (f.count == 0 && h.count == 0) { return; } e.b = false; e.e = false; e.a = false; e.d = false; e.c = false; if (b.e) { g = true; } if (c.e) { i = true; } if (b.b != c.b || b.e || c.e || b.d != c.d || b.c != c.c) { g = true; i = true; e.e = true; } if (g && !b.e) { if (!b.a) { b.i(c.h); } f = b.g; } if (i && !c.e) { if (!c.a) { c.i(b.h); } h = c.g; } if (b.e) { f = b.g; } if (c.e) { h = c.g; } e.g.clear(); if (b.b && c.b) { e.b = true; } InterpolationUtil.d(e.f, a, f, h); if (e.e) { var j = void 0; var k = e.f.count; for (var l = 0; l < k; l++) { j = e.f._inner[l]; e.g.add({ $type: Point_$type, x: j.x, y: j.y }); } e.a = true; } if (b.d == c.d) { e.d = c.d; } if (b.c == c.c) { e.c = c.c; } if (e.b) { e.h = b.h + (c.h - b.h) * a; } }; MorphSegment.prototype.k = function () { this.f.clear(); this.g.clear(); this.e = false; this.a = false; this.b = false; }; MorphSegment.$t = markType(MorphSegment, 'MorphSegment'); return MorphSegment; }(Base)); /* 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. */ /** * @hidden */ var LinearGraphNeedleFrame = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphNeedleFrame, _super); function LinearGraphNeedleFrame() { var _this = _super.call(this) || this; _this.n = 0; _this.m = 0; _this.q = 0; _this.p = 0; _this.l = 0; _this.r = null; _this.s = null; _this.o = 0; _this.f = null; _this.g = null; _this.d = null; _this.j = null; _this.i = null; _this.k = null; _this.e = null; _this.h = null; _this.b = null; _this.c = null; _this.f = new MorphSegment(); _this.g = new MorphSegment(); _this.d = new MorphSegment(); _this.j = new MorphSegment(); _this.i = new MorphSegment(); _this.k = new MorphSegment(); _this.e = new MorphSegment(); _this.h = new MorphSegment(); _this.b = new MorphSegment(); _this.c = new MorphSegment(); return _this; } LinearGraphNeedleFrame.a = function (a, b, c, d) { var e = new LinearGraphNeedleFrame(); e.n = c.n + (d.n - c.n) * a; e.m = c.m + (d.m - c.m) * a; e.q = c.q + (d.q - c.q) * a; e.l = c.l + (d.l - c.l) * a; e.p = c.p + (d.p - c.p) * a; e.r = BrushUtil.n(c.r, a, d.r, 0); e.s = BrushUtil.n(c.s, a, d.s, 0); e.o = c.o + (d.o - c.o) * a; e.f.j(a, c.f, d.f); e.g.j(a, c.g, d.g); e.d.j(a, c.d, d.d); e.j.j(a, c.j, d.j); e.i.j(a, c.i, d.i); e.k.j(a, c.k, d.k); e.e.j(a, c.e, d.e); e.h.j(a, c.h, d.h); e.b.j(a, c.b, d.b); e.c.j(a, c.c, d.c); return e; }; LinearGraphNeedleFrame.prototype.t = function (a, b, c) { var d = new PathGeometry(); var e = new PathFigure(); var f = { $type: Point_$type, x: NaN, y: NaN }; f = this.i.l(f, e, a, b, c); f = this.j.l(f, e, a, b, c); f = this.d.l(f, e, a, b, c); f = this.g.l(f, e, a, b, c); f = this.f.l(f, e, a, b, c); f = this.h.l(f, e, a, b, c); f = this.e.l(f, e, a, b, c); e._isClosed = true; d.c.add(e); var g = new PathFigure(); if (this.b.f.count > 0 || this.c.f.count > 0) { f = this.b.l(f, g, a, b, c); f = this.c.l(f, g, a, b, c); g._isClosed = true; d.c.add(g); } return d; }; LinearGraphNeedleFrame.$t = markType(LinearGraphNeedleFrame, 'LinearGraphNeedleFrame'); return LinearGraphNeedleFrame; }(Base)); /* 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. */ /** * @hidden */ var LinearGraphScaleFrame = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphScaleFrame, _super); function LinearGraphScaleFrame() { var _this = _super.call(this) || this; _this.m = null; _this.u = 0; _this.r = 0; _this.s = 0; _this.t = 0; _this.l = null; _this.j = null; _this.w = 0; _this.v = 0; _this.ad = null; _this.x = 0; _this.i = null; _this.p = 0; _this.o = 0; _this.ac = null; _this.q = 0; _this.e = null; _this.d = null; _this.f = null; _this.c = null; _this.g = null; _this.h = null; _this.n = 0; _this.ab = null; _this.m = new List$1(LinearGraphRectFrame.$, 0); _this.j = new Array(0); _this.i = new Array(0); _this.e = new Array(0); _this.d = new Array(0); _this.f = new Array(0); _this.c = new Array(0); _this.g = new Array(0); _this.h = new Array(0); _this.l = new LinearGraphRectFrame(); return _this; } LinearGraphScaleFrame.prototype.ae = function (a, b, c, d) { var _this = this; var e = new PathGeometry(); var f = new PathFigure(); var g = a.x; var h = a.y; var i, j, k, l; if (d == 1) { i = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g + b * _this.s, y: h }; return $ret; })()); j = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g + b * _this.t, y: h }; return $ret; })()); k = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g + b * _this.t, y: h + c }; return $ret; })()); l = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g + b * _this.s, y: h + c }; return $ret; })()); } else { i = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g, y: b * (1 - _this.t) }; return $ret; })()); j = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g + c, y: b * (1 - _this.t) }; return $ret; })()); k = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g + c, y: b * (1 - _this.s) }; return $ret; })()); l = ((function () { var $ret = new LineSegment(1); $ret.c = { $type: Point_$type, x: g, y: b * (1 - _this.s) }; return $ret; })()); } f._startPoint = i.c; f._segments.add(j); f._segments.add(k); f._segments.add(l); f._isClosed = true; e.c.add(f); return e; }; LinearGraphScaleFrame.prototype.y = function (a, b, c) { this.ad = BrushUtil.n(b.ad, a, c.ad, 0); this.ac = BrushUtil.n(b.ac, a, c.ac, 0); if (b.ab == null && c.ab == null) { this.ab = null; } else { this.ab = BrushUtil.n(b.ab, a, c.ab, 0); } this.u = b.u + (c.u - b.u) * a; this.r = b.r + (c.r - b.r) * a; this.s = b.s + (c.s - b.s) * a; this.t = b.t + (c.t - b.t) * a; this.n = b.n + (c.n - b.n) * a; this.w = b.w + (c.w - b.w) * a; this.v = b.v + (c.v - b.v) * a; this.p = b.p + (c.p - b.p) * a; this.o = b.o + (c.o - b.o) * a; this.x = b.x + (c.x - b.x) * a; this.q = b.q + (c.q - b.q) * a; this.j = this.a(a, this.j, b.j, c.j); this.i = this.a(a, this.i, b.i, c.i); this.e = this.a(a, this.e, b.e, c.e); this.f = this.a(a, this.f, b.f, c.f); this.c = this.a(a, this.c, b.c, c.c); this.g = this.a(a, this.g, b.g, c.g); this.h = this.a(a, this.h, b.h, c.h); this.d = this.b(a, this.d, b.d, c.d); this.aa(a, this.m, b.m, c.m); this.l = this.k(a, b.l, c.l); }; LinearGraphScaleFrame.prototype.a = function (a, b, c, d) { var e = Math.max(c.length, d.length); var f = Math.min(c.length, d.length); if (b.length != e) { b = new Array(e); } var g = 0; if (c.length > 0) { g = c[c.length - 1]; } var h = 0; if (d.length > 0) { h = d[d.length - 1]; } var i = c.length > d.length; var j = 0; for (j = 0; j < f; j++) { b[j] = c[j] + (d[j] - c[j]) * a; } var k; var l; for (j = f; j < e; j++) { if (i) { k = c[j]; l = h; } else { k = g; l = d[j]; } b[j] = k + (l - k) * a; } return b; }; LinearGraphScaleFrame.prototype.b = function (a, b, c, d) { var e = Math.max(c.length, d.length); var f = Math.min(c.length, d.length); if (b.length != e) { b = new Array(e); } var g = null; if (c.length > 0) { g = c[c.length - 1]; } var h = null; if (d.length > 0) { h = d[d.length - 1]; } var i = c.length > d.length; var j = 0; for (j = 0; j < f; j++) { b[j] = d[j]; } var k; var l; for (j = f; j < e; j++) { if (i) { k = c[j]; l = h; } else { k = g; l = d[j]; } if (l != null) { b[j] = l; } else { b[j] = k; } } return b; }; LinearGraphScaleFrame.prototype.aa = function (a, b, c, d) { InterpolationUtil.e(LinearGraphRectFrame.$, b, a, c, d, function () { return new LinearGraphRectFrame(); }, LinearGraphRectFrame.a); }; LinearGraphScaleFrame.prototype.k = function (a, b, c) { var d = 1 - a; return LinearGraphRectFrame.a(a, d, b, c); }; LinearGraphScaleFrame.prototype.z = function (a, b, c, d) { InterpolationUtil.e(LinearGraphNeedleFrame.$, b, a, c, d, function () { return new LinearGraphNeedleFrame(); }, LinearGraphNeedleFrame.a); }; LinearGraphScaleFrame.$t = markType(LinearGraphScaleFrame, 'LinearGraphScaleFrame'); return LinearGraphScaleFrame; }(Base)); /* 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. */ /** * @hidden */ var BulletGraphScaleFrame = /** @class */ /*@__PURE__*/ (function (_super) { __extends(BulletGraphScaleFrame, _super); function BulletGraphScaleFrame() { var _this = _super.call(this) || this; _this.ag = null; _this.af = null; _this.ag = new LinearGraphRectFrame(); _this.af = new LinearGraphRectFrame(); return _this; } BulletGraphScaleFrame.prototype.y = function (a, b, c) { _super.prototype.y.call(this, a, b, c); this.ag = LinearGraphRectFrame.a(a, 1 - a, b.ag, c.ag); this.af = LinearGraphRectFrame.a(a, 1 - a, b.af, c.af); }; BulletGraphScaleFrame.$t = markType(BulletGraphScaleFrame, 'BulletGraphScaleFrame', LinearGraphScaleFrame.$); return BulletGraphScaleFrame; }(LinearGraphScaleFrame)); /* 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. */ /** * @hidden */ var BulletGraphFrame = /** @class */ /*@__PURE__*/ (function (_super) { __extends(BulletGraphFrame, _super); function BulletGraphFrame() { var _this = _super.call(this) || this; _this._c = null; _this.c = new BulletGraphScaleFrame(); return _this; } BulletGraphFrame.prototype.get_c = function () { return this._c; }; BulletGraphFrame.prototype.set_c = function (a) { this._c = a; }; Object.defineProperty(BulletGraphFrame.prototype, "c", { get: function () { return this.get_c(); }, set: function (a) { this.set_c(a); }, enumerable: false, configurable: true }); BulletGraphFrame.$t = markType(BulletGraphFrame, 'BulletGraphFrame', LinearGraphFrame.$); return BulletGraphFrame; }(LinearGraphFrame)); /* 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. */ /** * @hidden */ var LinearGraphScaler = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphScaler, _super); function LinearGraphScaler(a, b, c, d, e) { var _this = _super.call(this) || this; _this.f = 0; _this.e = 0; _this.d = 0; _this.c = 0; _this.a = false; _this.g = 0; _this.b = 0; _this.f = c; _this.e = d; _this.a = e; _this.d = a; _this.c = b; _this.g = c; _this.b = d; return _this; } Object.defineProperty(LinearGraphScaler.prototype, "j", { get: function () { return this.g; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphScaler.prototype, "h", { get: function () { return this.b; }, enumerable: false, configurable: true }); LinearGraphScaler.prototype.i = function (a) { var b = (a - this.d) / (this.c - this.d); if (this.a) { b = 1 - b; } var c = this.g + (this.b - this.g) * b; c = Math.round(c * 100) / 100; return c; }; LinearGraphScaler.prototype.k = function (a) { var b = (a - this.g) / (this.b - this.g); if (this.a) { b = 1 - b; } var c = this.d + (this.c - this.d) * b; return c; }; LinearGraphScaler.$t = markType(LinearGraphScaler, 'LinearGraphScaler'); return LinearGraphScaler; }(Base)); /* 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. */ /** * Describes the orientation of a linear scale. */ var LinearScaleOrientation = /*@__PURE__*/ (function (LinearScaleOrientation) { /** * The scale has a horizontal orientation. */ LinearScaleOrientation[LinearScaleOrientation["Horizontal"] = 0] = "Horizontal"; /** * The scale has a vertical orientation. */ LinearScaleOrientation[LinearScaleOrientation["Vertical"] = 1] = "Vertical"; return LinearScaleOrientation; })({}); /** * @hidden */ var LinearScaleOrientation_$type = markEnum('LinearScaleOrientation', 'Horizontal,0|Vertical,1'); /* 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. */ /** * @hidden */ var XamLinearGraphRange = /** @class */ /*@__PURE__*/ (function (_super) { __extends(XamLinearGraphRange, _super); function XamLinearGraphRange() { var _this = _super.call(this) || this; _this.propertyChanged = null; return _this; } XamLinearGraphRange.prototype.ac = function (a, b, c) { }; XamLinearGraphRange.prototype.ab = function (a, b, c) { this.ac(a, b, c); if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } }; XamLinearGraphRange.$t = markType(XamLinearGraphRange, 'XamLinearGraphRange', DependencyObject.$, [INotifyPropertyChanged_$type]); XamLinearGraphRange.$$p = markDep(DependencyProperty, PropertyMetadata, XamLinearGraphRange, 'ab', ['Brush:an:ad', [Brush.$, null], 'EndValue:j:ae', [1, NaN], 'InnerEndExtent:k:af', [1, NaN], 'InnerStartExtent:l:ag', [1, NaN], 'Name:u:ah', [2, null], 'OuterEndExtent:m:ai', [1, NaN], 'OuterStartExtent:n:aj', [1, NaN], 'Outline:ao:ak', [Brush.$, null], 'StartValue:o:al', [1, NaN], 'StrokeThickness:p:am', [1, 1]]); return XamLinearGraphRange; }(DependencyObject)); /* 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. */ /** * @hidden */ var LinearGraphRangeCollection = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphRangeCollection, _super); function LinearGraphRangeCollection() { return _super.call(this, XamLinearGraphRange.$, 0) || this; } LinearGraphRangeCollection.$t = markType(LinearGraphRangeCollection, 'LinearGraphRangeCollection', ObservableCollection$1.$.specialize(XamLinearGraphRange.$)); return LinearGraphRangeCollection; }(ObservableCollection$1)); /* 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. */ /** * @hidden */ var FormatLinearGraphLabelEventArgs = /** @class */ /*@__PURE__*/ (function (_super) { __extends(FormatLinearGraphLabelEventArgs, _super); function FormatLinearGraphLabelEventArgs() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.actualMinimumValue = 0; _this.actualMaximumValue = 0; _this.value = 0; _this.label = null; return _this; } FormatLinearGraphLabelEventArgs.$t = markType(FormatLinearGraphLabelEventArgs, 'FormatLinearGraphLabelEventArgs', EventArgs.$); return FormatLinearGraphLabelEventArgs; }(EventArgs)); /* 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. */ /** * @hidden */ var AlignLinearGraphLabelEventArgs = /** @class */ /*@__PURE__*/ (function (_super) { __extends(AlignLinearGraphLabelEventArgs, _super); function AlignLinearGraphLabelEventArgs() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.width = 0; _this.height = 0; _this.offsetX = 0; _this.offsetY = 0; return _this; } AlignLinearGraphLabelEventArgs.$t = markType(AlignLinearGraphLabelEventArgs, 'AlignLinearGraphLabelEventArgs', FormatLinearGraphLabelEventArgs.$); return AlignLinearGraphLabelEventArgs; }(FormatLinearGraphLabelEventArgs)); /* 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. */ /** * @hidden */ var LinearGraphVisualData = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LinearGraphVisualData, _super); function LinearGraphVisualData() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._scalePath = null; _this._backingPath = null; _this._underlayPath = null; _this._overlayPath = null; _this._scale = null; _this._scaleLabels = null; _this._scaleTickmarks = null; _this._ranges = null; _this._toolTip = null; _this._name = null; _this._viewport = null; return _this; } Object.defineProperty(LinearGraphVisualData.prototype, "scalePath", { get: function () { return this._scalePath; }, set: function (a) { this._scalePath = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "backingPath", { get: function () { return this._backingPath; }, set: function (a) { this._backingPath = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "underlayPath", { get: function () { return this._underlayPath; }, set: function (a) { this._underlayPath = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "overlayPath", { get: function () { return this._overlayPath; }, set: function (a) { this._overlayPath = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "scale", { get: function () { return this._scale; }, set: function (a) { this._scale = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "scaleLabels", { get: function () { return this._scaleLabels; }, set: function (a) { this._scaleLabels = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "scaleTickmarks", { get: function () { return this._scaleTickmarks; }, set: function (a) { this._scaleTickmarks = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "ranges", { get: function () { return this._ranges; }, set: function (a) { this._ranges = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "toolTip", { get: function () { return this._toolTip; }, set: function (a) { this._toolTip = a; }, enumerable: false, configurable: true }); Object.defineProperty(LinearGraphVisualData.prototype, "name", { get: function () { return this._name; }, set: function (a) { this._name = a; }, enumerable: false, configurable: true }); LinearGraphVisualData.prototype.scaleByViewport = function () { var e_1, _a, e_2, _b, e_3, _c; if (this.scalePath != null) { this.scalePath.scaleByViewport(this.viewport); } if (this.backingPath != null) { this.backingPath.scaleByViewport(this.viewport); } if (this.underlayPath != null) { this.underlayPath.scaleByViewport(this.viewport); } if (this.overlayPath != null) { this.overlayPath.scaleByViewport(this.viewport); } if (this.scaleLabels != null) { try { for (var _d = __values(fromEnum(this.scaleLabels)), _e = _d.next(); !_e.done; _e = _d.next()) { var a = _e.value; a.scaleByViewport(this.viewport); } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_1) throw e_1.error; } } } if (this.scaleTickmarks != null) { try { for (var _f = __values(fromEnum(this.scaleTickmarks)), _g = _f.next(); !_g.done; _g = _f.next()) { var b = _g.value; if (b.tickPath != null) { b.tickPath.scaleByViewport(this.viewport); } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_2) throw e_2.error; } } } if (this.ranges != null) { try { for (var _h = __values(fromEnum(this.ranges)), _j = _h.next(); !_j.done; _j = _h.next()) { var c = _j.value; if (c.rangePath != null) { c.rangePath.scaleByViewport(this.viewport); } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_j && !_j.done && (_c = _h.return)) _c.call(_h); } finally { if (e_3) throw e_3.error; } } } }; LinearGraphVisualData.prototype.serialize = function () { var e_4, _a, e_5, _b, e_6, _c; var a = new StringBuilder(0); var b = true; a.u("{"); if (this.scalePath != null) { if (b) { b = false; } else { a.l(", "); } a.l("scalePath: "); a.u(this.scalePath.serialize()); } if (this.backingPath != null) { if (b) { b = false; } else { a.l(", "); } a.l("backingPath: "); a.u(this.backingPath.serialize()); } if (this.underlayPath != null) { if (b) { b = false; } else { a.l(", "); } a.l("underlayPath: "); a.u(this.underlayPath.serialize()); } if (this.overlayPath != null) { if (b) { b = false; } else { a.l(", "); } a.l("overlayPath: "); a.u(this.overlayPath.serialize()); } if (this.scaleLabels != null) { if (b) { b = false; } else { a.l(", "); } var c = true; a.l("scaleLabels: ["); try { for (var _d = __values(fromEnum(this.scaleLabels)), _e = _d.next(); !_e.done; _e = _d.next()) { var d = _e.value; if (c) { c = false; } else { a.l(", "); } a.u(d.serialize()); } } catch (e_4_1) { e_4 = { error: e_4_1 }; } finally { try { if (_e && !_e.done && (_a = _d.return)) _a.call(_d); } finally { if (e_4) throw e_4.error; } } a.u("]"); } if (this.scaleTickmarks != null) { if (b) { b = false; } else { a.l(", "); } var e = true; a.l("scaleTickmarks: ["); try { for (var _f = __values(fromEnum(this.scaleTickmarks)), _g = _f.next(); !_g.done; _g = _f.next()) { var f = _g.value; if (e) { e = false; } else { a.l(", "); } a.u(f.serialize()); } } catch (e_5_1) { e_5 = { error: e_5_1 }; } finally { try { if (_g && !_g.done && (_b = _f.return)) _b.call(_f); } finally { if (e_5) throw e_5.error; } } a.u("]"); } if (this.ranges != null) { if (b) { b = false; } else { a.l(", "); } var g = true; a.l("ranges: ["); try { for (var _h = __values(fromEnum(this.ranges)), _j = _h.next(); !_j.done; _j = _h.next()) { var h = _j.value; if (g) { g = false; } else { a.l(", "); } a.u(h.serialize()); } } catch (e_6_1) { e_6 = { error: e_6_1 };