igniteui-angular-gauges
Version:
Ignite UI Angular gauge components.
1,334 lines (1,316 loc) • 694 kB
JavaScript
/*!
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 { Base, PathGeometry, PathFigure, LineSegment, Point_$type, BrushUtil, markType, List$1, GeometryUtil, ArcSegment, Size, PolyLineSegment, InterpolationUtil, markEnum, DependencyObject, PropertyChangedEventArgs, INotifyPropertyChanged_$type, markDep, DependencyProperty, PropertyMetadata, Brush, ObservableCollection$1, EventArgs, fromEnum, StringBuilder, PointData, SizeData, String_$type, typeCast, Control, TextBlock, Path, delegateCombine, runOn, Rect, DoubleAnimator, StackPool$1, isNaN_, isInfinity, RectData, AppearanceHelper, PathVisualData, GetPointsSettings, PolygonUtil, Number_$type, Tuple$2, DeviceUtils, delegateRemove, BindingFormatter, fromEn, FontUtil, HighlightedValueDisplayMode_$type, enumGetBox, Array_$type, BrushCollection, Dictionary$2, CanvasScalingHelpers, CanvasGestureDOMEventProxy, intDivide, arrayCopy1, RenderingContext, CanvasViewRenderer, TypeRegistrar, EventProxy, truncate, stringIsNullOrEmpty, FontDefaults, brushToString, stringToBrush, toSpinal, initializePropertiesFromCss, IgCollection, SyncableObservableCollection$2, 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 { 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
*/
let LinearGraphBackingFrame = /*@__PURE__*/ (() => {
class LinearGraphBackingFrame extends Base {
constructor() {
super();
this.e = null;
this.f = null;
this.c = 0;
this.b = 0;
this.a = 0;
}
g(a, b, c) {
let d = new PathGeometry();
let e = new PathFigure();
let f, g, h, i;
if (c == 1) {
f = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a * this.a, y: 0 };
return $ret;
})());
g = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a * this.b, y: 0 };
return $ret;
})());
h = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a * this.b, y: b };
return $ret;
})());
i = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a * this.a, y: b };
return $ret;
})());
}
else {
f = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: 0, y: a * (1 - this.b) };
return $ret;
})());
g = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: b, y: a * (1 - this.b) };
return $ret;
})());
h = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: b, y: a * (1 - this.a) };
return $ret;
})());
i = ((() => {
let $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;
}
d(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;
})();
/*
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
*/
let LinearGraphRectFrame = /*@__PURE__*/ (() => {
class LinearGraphRectFrame extends Base {
constructor() {
super(...arguments);
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;
}
k(a, b, c, d) {
let e = new PathGeometry();
let f = new PathFigure();
let g, h, i, j;
if (d == 1) {
g = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a.x + b * this.b, y: c - this.d };
return $ret;
})());
h = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a.x + b * this.c, y: c - this.d };
return $ret;
})());
i = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a.x + b * this.f, y: c - this.g };
return $ret;
})());
j = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: a.x + b * this.e, y: c - this.g };
return $ret;
})());
}
else {
g = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: this.g, y: b * (1 - this.f) };
return $ret;
})());
h = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: this.d, y: b * (1 - this.c) };
return $ret;
})());
i = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: this.d, y: b * (1 - this.b) };
return $ret;
})());
j = ((() => {
let $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;
}
static a(a, b, c, d) {
let 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;
})();
/*
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
*/
let LinearGraphFrame = /*@__PURE__*/ (() => {
class LinearGraphFrame extends Base {
constructor() {
super();
this.a = null;
this.b = null;
this.a = new LinearGraphBackingFrame();
this.b = new LinearGraphRectFrame();
}
d(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;
})();
/*
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
*/
let MorphSegment = /*@__PURE__*/ (() => {
class MorphSegment extends Base {
constructor() {
super();
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);
}
i(a) {
this.g.clear();
let b = 20;
if (this.b) {
let c;
let d;
let e;
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];
}
let f = GeometryUtil.s(d, e, this.h, !this.c, this.d);
let g = GeometryUtil.g(f, d);
let h = GeometryUtil.g(f, e);
while (this.c && h < g) {
h += Math.PI * 2;
}
while (!this.c && h > g) {
h -= Math.PI * 2;
}
let i = 0;
for (let 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 {
let k;
let l;
let m;
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];
}
let n = l.x;
let o = l.y;
let p = m.x;
let q = m.y;
for (let 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;
}
l(a, b, c, d, e) {
let f = this;
let g = null;
let h = f.f;
let i = h.count;
if (i == 0) {
return a;
}
if (b._segments.count == 0) {
let 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) {
let k = new ArcSegment();
g = k;
let 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 {
let m = new PolyLineSegment();
g = m;
if (i > 1) {
let n;
let o = m._points;
for (let 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;
}
j(a, b, c) {
let d = this;
let e = d;
let f = b.f;
let g = false;
let h = c.f;
let 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) {
let j;
let k = e.f.count;
for (let 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;
}
}
k() {
this.f.clear();
this.g.clear();
this.e = false;
this.a = false;
this.b = false;
}
}
MorphSegment.$t = markType(MorphSegment, 'MorphSegment');
return MorphSegment;
})();
/*
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
*/
let LinearGraphNeedleFrame = /*@__PURE__*/ (() => {
class LinearGraphNeedleFrame extends Base {
constructor() {
super();
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();
}
static a(a, b, c, d) {
let 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;
}
t(a, b, c) {
let d = new PathGeometry();
let e = new PathFigure();
let 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);
let 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;
})();
/*
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
*/
let LinearGraphScaleFrame = /*@__PURE__*/ (() => {
class LinearGraphScaleFrame extends Base {
constructor() {
super();
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();
}
ae(a, b, c, d) {
let e = new PathGeometry();
let f = new PathFigure();
let g = a.x;
let h = a.y;
let i, j, k, l;
if (d == 1) {
i = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: g + b * this.s, y: h };
return $ret;
})());
j = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: g + b * this.t, y: h };
return $ret;
})());
k = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: g + b * this.t, y: h + c };
return $ret;
})());
l = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: g + b * this.s, y: h + c };
return $ret;
})());
}
else {
i = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: g, y: b * (1 - this.t) };
return $ret;
})());
j = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: g + c, y: b * (1 - this.t) };
return $ret;
})());
k = ((() => {
let $ret = new LineSegment(1);
$ret.c = { $type: Point_$type, x: g + c, y: b * (1 - this.s) };
return $ret;
})());
l = ((() => {
let $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;
}
y(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);
}
a(a, b, c, d) {
let e = Math.max(c.length, d.length);
let f = Math.min(c.length, d.length);
if (b.length != e) {
b = new Array(e);
}
let g = 0;
if (c.length > 0) {
g = c[c.length - 1];
}
let h = 0;
if (d.length > 0) {
h = d[d.length - 1];
}
let i = c.length > d.length;
let j = 0;
for (j = 0; j < f; j++) {
b[j] = c[j] + (d[j] - c[j]) * a;
}
let k;
let 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;
}
b(a, b, c, d) {
let e = Math.max(c.length, d.length);
let f = Math.min(c.length, d.length);
if (b.length != e) {
b = new Array(e);
}
let g = null;
if (c.length > 0) {
g = c[c.length - 1];
}
let h = null;
if (d.length > 0) {
h = d[d.length - 1];
}
let i = c.length > d.length;
let j = 0;
for (j = 0; j < f; j++) {
b[j] = d[j];
}
let k;
let 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;
}
aa(a, b, c, d) {
InterpolationUtil.e(LinearGraphRectFrame.$, b, a, c, d, () => new LinearGraphRectFrame(), LinearGraphRectFrame.a);
}
k(a, b, c) {
let d = 1 - a;
return LinearGraphRectFrame.a(a, d, b, c);
}
z(a, b, c, d) {
InterpolationUtil.e(LinearGraphNeedleFrame.$, b, a, c, d, () => new LinearGraphNeedleFrame(), LinearGraphNeedleFrame.a);
}
}
LinearGraphScaleFrame.$t = markType(LinearGraphScaleFrame, 'LinearGraphScaleFrame');
return 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
*/
let BulletGraphScaleFrame = /*@__PURE__*/ (() => {
class BulletGraphScaleFrame extends LinearGraphScaleFrame {
constructor() {
super();
this.ag = null;
this.af = null;
this.ag = new LinearGraphRectFrame();
this.af = new LinearGraphRectFrame();
}
y(a, b, c) {
super.y(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;
})();
/*
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
*/
let BulletGraphFrame = /*@__PURE__*/ (() => {
class BulletGraphFrame extends LinearGraphFrame {
constructor() {
super();
this._c = null;
this.c = new BulletGraphScaleFrame();
}
get_c() {
return this._c;
}
set_c(a) {
this._c = a;
}
get c() {
return this.get_c();
}
set c(a) {
this.set_c(a);
}
}
BulletGraphFrame.$t = markType(BulletGraphFrame, 'BulletGraphFrame', LinearGraphFrame.$);
return BulletGraphFrame;
})();
/*
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
*/
let LinearGraphScaler = /*@__PURE__*/ (() => {
class LinearGraphScaler extends Base {
constructor(a, b, c, d, e) {
super();
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;
}
get j() {
return this.g;
}
get h() {
return this.b;
}
i(a) {
let b = (a - this.d) / (this.c - this.d);
if (this.a) {
b = 1 - b;
}
let c = this.g + (this.b - this.g) * b;
c = Math.round(c * 100) / 100;
return c;
}
k(a) {
let b = (a - this.g) / (this.b - this.g);
if (this.a) {
b = 1 - b;
}
let c = this.d + (this.c - this.d) * b;
return c;
}
}
LinearGraphScaler.$t = markType(LinearGraphScaler, 'LinearGraphScaler');
return LinearGraphScaler;
})();
/*
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
*/
let 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
*/
let XamLinearGraphRange = /*@__PURE__*/ (() => {
class XamLinearGraphRange extends DependencyObject {
constructor() {
super();
this.propertyChanged = null;
}
ac(a, b, c) {
}
ab(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;
})();
/*
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
*/
let LinearGraphRangeCollection = /*@__PURE__*/ (() => {
class LinearGraphRangeCollection extends ObservableCollection$1 {
constructor() {
super(XamLinearGraphRange.$, 0);
}
}
LinearGraphRangeCollection.$t = markType(LinearGraphRangeCollection, 'LinearGraphRangeCollection', ObservableCollection$1.$.specialize(XamLinearGraphRange.$));
return LinearGraphRangeCollection;
})();
/*
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
*/
let FormatLinearGraphLabelEventArgs = /*@__PURE__*/ (() => {
class FormatLinearGraphLabelEventArgs extends EventArgs {
constructor() {
super(...arguments);
this.actualMinimumValue = 0;
this.actualMaximumValue = 0;
this.value = 0;
this.label = null;
}
}
FormatLinearGraphLabelEventArgs.$t = markType(FormatLinearGraphLabelEventArgs, 'FormatLinearGraphLabelEventArgs', EventArgs.$);
return 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
*/
let AlignLinearGraphLabelEventArgs = /*@__PURE__*/ (() => {
class AlignLinearGraphLabelEventArgs extends FormatLinearGraphLabelEventArgs {
constructor() {
super(...arguments);
this.width = 0;
this.height = 0;
this.offsetX = 0;
this.offsetY = 0;
}
}
AlignLinearGraphLabelEventArgs.$t = markType(AlignLinearGraphLabelEventArgs, 'AlignLinearGraphLabelEventArgs', FormatLinearGraphLabelEventArgs.$);
return AlignLinearGraphLabelEventArgs;
})();
/*
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
*/
let LinearGraphVisualData = /*@__PURE__*/ (() => {
class LinearGraphVisualData extends Base {
constructor() {
super(...arguments);
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;
}
get scalePath() {
return this._scalePath;
}
set scalePath(a) {
this._scalePath = a;
}
get backingPath() {
return this._backingPath;
}
set backingPath(a) {
this._backingPath = a;
}
get underlayPath() {
return this._underlayPath;
}
set underlayPath(a) {
this._underlayPath = a;
}
get overlayPath() {
return this._overlayPath;
}
set overlayPath(a) {
this._overlayPath = a;
}
get scale() {
return this._scale;
}
set scale(a) {
this._scale = a;
}
get scaleLabels() {
return this._scaleLabels;
}
set scaleLabels(a) {
this._scaleLabels = a;
}
get scaleTickmarks() {
return this._scaleTickmarks;
}
set scaleTickmarks(a) {
this._scaleTickmarks = a;
}
get ranges() {
return this._ranges;
}
set ranges(a) {
this._ranges = a;
}
get toolTip() {
return this._toolTip;
}
set toolTip(a) {
this._toolTip = a;
}
get name() {
return this._name;
}
set name(a) {
this._name = a;
}
scaleByViewport() {
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) {
for (let a of fromEnum(this.scaleLabels)) {
a.scaleByViewport(this.viewport);
}
}
if (this.scaleTickmarks != null) {
for (let b of fromEnum(this.scaleTickmarks)) {
if (b.tickPath != null) {
b.tickPath.scaleByViewport(this.viewport);
}
}
}
if (this.ranges != null) {
for (let c of fromEnum(this.ranges)) {
if (c.rangePath != null) {
c.rangePath.scaleByViewport(this.viewport);
}
}
}
}
serialize() {
let a = new StringBuilder(0);
let 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(", ");
}
let c = true;
a.l("scaleLabels: [");
for (let d of fromEnum(this.scaleLabels)) {
if (c) {
c = false;
}
else {
a.l(", ");
}
a.u(d.serialize());
}
a.u("]");
}
if (this.scaleTickmarks != null) {
if (b) {
b = false;
}
else {
a.l(", ");
}
let e = true;
a.l("scaleTickmarks: [");
for (let f of fromEnum(this.scaleTickmarks)) {
if (e) {
e = false;
}
else {
a.l(", ");
}
a.u(f.serialize());
}
a.u("]");
}
if (this.ranges != null) {
if (b) {
b = false;
}
else {
a.l(", ");
}
let g = true;
a.l("ranges: [");
for (let h of fromEnum(this.ranges)) {
if (g) {
g = false;
}
else {
a.l(", ");
}
a.u(h.serialize());
}
a.u("]");
}
if (this.name != null) {
if (b) {
b = false;
}
else {
a.l(", ");
}
a.l("name: '");
a.l(this.name);
a.u("'");
}
if (this.toolTip != null) {
if (b) {
b = false;
}
else {
a.l(", ");
}
a.l("toolTip: ");
a.l(this.toolTip.serialize());
}
if (b) {
b = false;
}
else {
a.l(", ");
}
a.l("viewport: {");
a.l("left: " + this.viewport.left + ", top: " + this.viewport.top + ", width: " + this.viewport.width + ", height: " + this.viewport.height);
a.u("}");
a.l("}");
return a.toString();
}
get viewport() {
return this._viewport;
}
set viewport(a) {
this._viewport = a;
}
}
LinearGraphVisualData.$t = markType(LinearGraphVisualData, 'LinearGraphVisualData');
return LinearGraphVisualData;
})();
/*
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
*/
let BulletGraphVisualData = /*@__PURE__*/ (() => {
class BulletGraphVisualData extends LinearGraphVisualData {
constructor() {
super(...arguments);
this._targetValuePath = null;
this._valuePath = null;
this._highlightValuePath = null;
this._scaleBackgroundPath = null;
this._targetValue = null;
this._value = null;
this._highlightValue = null;
}
get targetValuePath() {
return this._targetValuePath;
}
set targetValuePath(a) {
this._targetValuePath = a;
}
get valuePath() {
return this._valuePath;
}
set valuePath(a) {
this._valuePath = a;
}
get highlightValuePath() {
return this._highlightValuePath;
}
set highlightValuePath(a) {
this._highlightValuePath = a;
}
get scaleBackgroundPath() {
return this._scaleBackgroundPath;
}
set scaleBackgroundPath(a) {
this._scaleBackgroundPath = a;
}
get targetValue() {
return this._targetValue;
}
set targetValue(a) {
this._targetValue = a;
}
get value() {
return this._value;
}
set value(a) {
this._value = a;
}
get highlightValue() {
return this._highlightValue;
}
set highlightValue(a) {
this._highlightValue = a;
}
scaleByViewport() {
super.scaleByViewport();
if (this.targetValuePath != null) {
this.targetValuePath.scaleByViewport(this.viewport);
}
if (this.valuePath != null) {
this.valuePath.scaleByViewport(this.viewport);
}
if (this.highlightValuePath != null) {
this.highlightValuePath.scaleByViewport(this.viewport);
}
if (this.scaleBackgroundPath != null) {
this.scaleBackgroundPath.scaleByViewport(this.viewport);
}
}
serialize() {
let a = super.serialize();
let b = new StringBuilder(0);
let c = a.length == 0;
if (this.targetValuePath != null) {
if (c) {
c = false;
}
else {
b.l(", ");