UNPKG

igniteui-react-charts

Version:

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

229 lines (228 loc) 8.53 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, __read, __spreadArray } from "tslib"; import { DependencyObject } from "igniteui-react-core"; import { INotifyPropertyChanged_$type, Base, PropertyChangedEventArgs, typeCast, markType, markDep } from "igniteui-react-core"; import { DependencyProperty } from "igniteui-react-core"; import { Series } from "./Series"; import { Brush } from "igniteui-react-core"; import { Thickness } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; /** * @hidden */ var CalloutAnnotation = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CalloutAnnotation, _super); function CalloutAnnotation() { var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this; _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; return _this; } CalloutAnnotation.prototype.br = function (a, b, c) { this.bq(a, b, c); if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } }; CalloutAnnotation.prototype.bq = function (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; }; Object.defineProperty(CalloutAnnotation.prototype, "formatLabel", { get: function () { return this._formatLabel; }, set: function (a) { this._formatLabel = a; }, enumerable: false, configurable: true }); Object.defineProperty(CalloutAnnotation.prototype, "backgroundPadding", { get: function () { if (this.o) { this.o = false; this.cw = new Thickness(1, this.ad, this.af, this.ae, this.ac); } return this.cw; }, set: function (a) { this.backgroundPaddingLeft = a.left; this.backgroundPaddingTop = a.top; this.backgroundPaddingRight = a.right; this.backgroundPaddingBottom = a.bottom; }, enumerable: false, configurable: true }); 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; }(DependencyObject)); export { CalloutAnnotation }; /** * @hidden */ var CalloutAnnotationWrapper = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CalloutAnnotationWrapper, _super); function CalloutAnnotationWrapper() { var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this; _this.a = null; _this.c = null; _this.e = 0; _this.f = 0; return _this; } Object.defineProperty(CalloutAnnotationWrapper.prototype, "b", { get: function () { return this.a; }, set: function (a) { this.a = a; this.a.k = this; }, enumerable: false, configurable: true }); CalloutAnnotationWrapper.prototype.equals = function (a) { var b = typeCast(CalloutAnnotationWrapper.$, a); if (b == null) { return _super.prototype.equals.call(this, a); } if (b.b == null && this.b == null) { return _super.prototype.equals.call(this, 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.prototype.equals.call(this, a); }; CalloutAnnotationWrapper.prototype.getHashCode = function () { if (this.b == null || this.b.ao == null) { return _super.prototype.getHashCode.call(this); } return Base.getHashCodeStatic(this.b.ao); }; CalloutAnnotationWrapper.$t = markType(CalloutAnnotationWrapper, 'CalloutAnnotationWrapper'); return CalloutAnnotationWrapper; }(Base)); export { CalloutAnnotationWrapper };