UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

214 lines (213 loc) 8.29 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 { DependencyObject } from "igniteui-angular-core"; import { INotifyPropertyChanged_$type, Base, PropertyChangedEventArgs, typeCast, markType, markDep } from "igniteui-angular-core"; import { DependencyProperty } from "igniteui-angular-core"; import { Series } from "./Series"; import { Brush } from "igniteui-angular-core"; import { Thickness } from "igniteui-angular-core"; import { PropertyMetadata } from "igniteui-angular-core"; /** * @hidden */ export let CalloutAnnotation = /*@__PURE__*/ (() => { class CalloutAnnotation extends DependencyObject { constructor() { super(...arguments); this.propertyChanged = null; this.k = null; this.ap = 0; this.aq = 0; this.bc = null; this.bn = null; this.ao = null; this.an = null; this.l = null; this.co = null; this._formatLabel = null; this.cr = null; this.cl = null; this.cq = null; this.cp = null; this.al = 0; this.r = false; this.o = true; this.cw = null; this.ad = NaN; this.af = NaN; this.ae = NaN; this.ac = NaN; this.q = false; this.ak = 10; this.ai = 10; this.aj = 0; this.cn = null; this.cm = null; this.bb = null; this.ah = 5; this.ag = 0; this.n = null; } br(a, b, c) { this.bq(a, b, c); if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } } bq(a, b, c) { switch (a) { case CalloutAnnotation.$$p[24]: this.ap = c; break; case CalloutAnnotation.$$p[25]: this.aq = c; break; case CalloutAnnotation.$$p[20]: this.l = c; break; case CalloutAnnotation.$$p[15]: this.an = c; break; case CalloutAnnotation.$$p[17]: this.ao = c; break; case CalloutAnnotation.$$p[23]: this.bc = c; break; case CalloutAnnotation.$$p[16]: this.co = c; break; case CalloutAnnotation.$$p[22]: this.cr = c; break; case CalloutAnnotation.$$p[18]: this.cp = c; break; case CalloutAnnotation.$$p[19]: this.cq = c; break; case CalloutAnnotation.$$p[5]: this.cl = c; break; case CalloutAnnotation.$$p[21]: this.al = c; break; case CalloutAnnotation.$$p[2]: this.o = true; this.ad = c; break; case CalloutAnnotation.$$p[4]: this.o = true; this.af = c; break; case CalloutAnnotation.$$p[3]: this.o = true; this.ae = c; break; case CalloutAnnotation.$$p[1]: this.o = true; this.ac = c; break; case CalloutAnnotation.$$p[8]: this.ah = c; break; case CalloutAnnotation.$$p[7]: this.ag = c; break; case CalloutAnnotation.$$p[14]: this.ak = c; break; case CalloutAnnotation.$$p[9]: this.ai = c; break; case CalloutAnnotation.$$p[12]: this.aj = c; break; case CalloutAnnotation.$$p[6]: this.cm = c; break; case CalloutAnnotation.$$p[11]: this.cn = c; break; case CalloutAnnotation.$$p[13]: this.q = c; break; case CalloutAnnotation.$$p[10]: this.bb = c; break; } this.r = true; } get formatLabel() { return this._formatLabel; } set formatLabel(a) { this._formatLabel = a; } get backgroundPadding() { if (this.o) { this.o = false; this.cw = new Thickness(1, this.ad, this.af, this.ae, this.ac); } return this.cw; } set backgroundPadding(a) { this.backgroundPaddingLeft = a.left; this.backgroundPaddingTop = a.top; this.backgroundPaddingRight = a.right; this.backgroundPaddingBottom = a.bottom; } } CalloutAnnotation.$t = markType(CalloutAnnotation, 'CalloutAnnotation', DependencyObject.$, [INotifyPropertyChanged_$type]); CalloutAnnotation.$$p = markDep(DependencyProperty, PropertyMetadata, CalloutAnnotation, 'br', ['BackgroundCornerRadius', [1, NaN], 'BackgroundPaddingBottom', [1, NaN], 'BackgroundPaddingLeft', [1, NaN], 'BackgroundPaddingRight', [1, NaN], 'BackgroundPaddingTop', [1, NaN], 'Background', [Brush.$, null], 'BadgeBackground', [Brush.$, null], 'BadgeCorner', [1, 0], 'BadgeGap', [1, 5], 'BadgeHeight', [1, 10], 'BadgeImage', [2, null], 'BadgeOutline', [Brush.$, null], 'BadgeThickness', [1, 0], 'BadgeVisible', [0, false], 'BadgeWidth', [1, 10], 'Content', [4, null], 'ItemColor', [Brush.$, null], 'Key', [4, null], 'LeaderBrush', [Brush.$, null], 'Outline', [Brush.$, null], 'Series', [Series.$, null], 'StrokeThickness', [1, 0], 'TextColor', [Brush.$, null], 'Text', [2, null], 'XValue', [4, 0], 'YValue', [4, 0]]); return CalloutAnnotation; })(); /** * @hidden */ export let CalloutAnnotationWrapper = /*@__PURE__*/ (() => { class CalloutAnnotationWrapper extends Base { constructor() { super(...arguments); this.a = null; this.c = null; this.e = 0; this.f = 0; } get b() { return this.a; } set b(a) { this.a = a; this.a.k = this; } equals(a) { let b = typeCast(CalloutAnnotationWrapper.$, a); if (b == null) { return super.equals(a); } if (b.b == null && this.b == null) { return super.equals(a); } if (b.b == null) { return false; } if (this.b.ao != null || b.b.ao != null) { return Base.equalsStatic(this.b.ao, b.b.ao); } return super.equals(a); } getHashCode() { if (this.b == null || this.b.ao == null) { return super.getHashCode(); } return Base.getHashCodeStatic(this.b.ao); } } CalloutAnnotationWrapper.$t = markType(CalloutAnnotationWrapper, 'CalloutAnnotationWrapper'); return CalloutAnnotationWrapper; })();