igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,542 lines (1,541 loc) • 57.2 kB
JavaScript
import { __extends } from "tslib";
import { IgrAxis } from "./igr-axis";
import { DataToolTipLayerGroupingMode_$type } from "igniteui-react-core";
import { DataTooltipGroupedPositionX_$type } from "igniteui-react-core";
import { DataTooltipGroupedPositionY_$type } from "igniteui-react-core";
import { DataAbbreviationMode_$type } from "igniteui-react-core";
import { DataLegendValueMode_$type } from "igniteui-react-core";
import { DataLegendHeaderDateMode_$type } from "igniteui-react-core";
import { DataLegendHeaderTimeMode_$type } from "igniteui-react-core";
import { DataLegendSummaryType_$type } from "igniteui-react-core";
import { LegendItemBadgeShape_$type } from "igniteui-react-core";
import { DataLegendLayoutMode_$type } from "igniteui-react-core";
import { DataLegendUnitsMode_$type } from "igniteui-react-core";
import { DataLegendLabelMode_$type } from "igniteui-react-core";
import { IgrAnnotationLayer } from "./igr-annotation-layer";
import { DataToolTipLayer } from "./DataToolTipLayer";
import { ensureBool, ensureEnum, brushToString, stringToBrush, arrayFindByName } from "igniteui-react-core";
import { Thickness } from "igniteui-react-core";
import { FontInfo } from "igniteui-react-core";
/**
* Represents an annotation layer that displays grouped tooltips with summaries for series.
*/
var IgrDataToolTipLayer = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrDataToolTipLayer, _super);
function IgrDataToolTipLayer(props) {
var _this = _super.call(this, props) || this;
_this._targetAxisName = null;
return _this;
}
IgrDataToolTipLayer.prototype.createImplementation = function () {
return new DataToolTipLayer();
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "isToolTipLayer", {
get: function () {
return this.i.f8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "isAnnotationHoverLayer", {
/**
* Gets whether the series is an annotation layer displayed only when hovering over the chart.
*/
get: function () {
return this.i.eu;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "isDefaultTooltipBehaviorDisabled", {
/**
* Gets whether the default tooltip behaviors for the chart are disabled if this layer is present.
*/
get: function () {
return this.i.e5;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "targetAxis", {
/**
* Gets or sets the Axis to target this annotation to. If null, this annotation layer will not render content.
*/
get: function () {
var r = this.i.aa2;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = IgrAxis._createFromInternal(r);
if (e) {
e._implementation = r;
}
r.externalObject = e;
}
return r.externalObject;
},
set: function (v) {
if (v != null && this._stylingContainer && v._styling)
v._styling(this._stylingContainer, this, this);
v == null ? this.i.aa2 = null : this.i.aa2 = v.i;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "targetAxisName", {
/**
* Gets or sets the name to use to resolve targetAxis from markup.
*/
get: function () {
return this._targetAxisName;
},
set: function (v) {
this._targetAxisName = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "useInterpolation", {
/**
* Gets or sets whether to use value interpolation when drawing the tooltips.
*/
get: function () {
return this.i.ack;
},
set: function (v) {
this.i.ack = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupingMode", {
/**
* Gets or sets the grouping mode to apply to use for the tooltip layer.
*/
get: function () {
return this.i.abl;
},
set: function (v) {
this.i.abl = ensureEnum(DataToolTipLayerGroupingMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "actualGroupingMode", {
/**
* Gets the actual resolved tooltip layer grouping mode.
*/
get: function () {
return this.i.abk;
},
set: function (v) {
this.i.abk = ensureEnum(DataToolTipLayerGroupingMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "positionOffsetX", {
/**
* Gets or sets the offset of the tooltip layer on the X axis.
*/
get: function () {
return this.i.acv;
},
set: function (v) {
this.i.acv = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "positionOffsetY", {
/**
* Gets or sets the offset of the tooltip layer on the Y axis.
*/
get: function () {
return this.i.acw;
},
set: function (v) {
this.i.acw = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "defaultPositionOffsetX", {
/**
* Gets or sets the default offset of the tooltip layer on the X axis.
*/
get: function () {
return this.i.act;
},
set: function (v) {
this.i.act = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "defaultPositionOffsetY", {
/**
* Gets or sets the default offset of the tooltip layer on the Y axis.
*/
get: function () {
return this.i.acu;
},
set: function (v) {
this.i.acu = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupedPositionModeX", {
/**
* Gets or sets the tooltip position mode on the X axis for grouped series.
*/
get: function () {
return this.i.abd;
},
set: function (v) {
this.i.abd = ensureEnum(DataTooltipGroupedPositionX_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "actualGroupedPositionModeX", {
/**
* Gets the actual resolved tooltip position mode on the X axis for grouped series.
*/
get: function () {
return this.i.abc;
},
set: function (v) {
this.i.abc = ensureEnum(DataTooltipGroupedPositionX_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupedPositionModeY", {
/**
* Gets or sets the tooltip position mode on the Y axis for grouped series.
*/
get: function () {
return this.i.abh;
},
set: function (v) {
this.i.abh = ensureEnum(DataTooltipGroupedPositionY_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "actualGroupedPositionModeY", {
/**
* Gets the actual resolved tooltip position mode on the Y axis for grouped series.
*/
get: function () {
return this.i.abg;
},
set: function (v) {
this.i.abg = ensureEnum(DataTooltipGroupedPositionY_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "shouldUpdateWhenSeriesDataChanges", {
/**
* Gets or sets whether the data legend should update when the series data is mutated.
*/
get: function () {
return this.i.acj;
},
set: function (v) {
this.i.acj = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "includedSeries", {
/**
* Gets or sets indexes, titles, or names of series to include in displaying in the data legend, e.g. "0, 1" or "Series1 Title, Series2 Title"
* The ExcludedSeries property takes precedence over values of IncludedSeries property
*/
get: function () {
return this.i.aaz;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aaz = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "excludedSeries", {
/**
* Gets or sets indexes, titles, or names of series to exclude from displaying in the data legend, e.g. "0, 1" or "Series1 Title, Series2 Title"
* The ExcludedSeries property takes precedence over values of IncludedSeries property
*/
get: function () {
return this.i.aau;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aau = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "includedColumns", {
/**
* Gets or sets names of data columns or their labels to include in displaying in the data tooltip, e.g. "High, Low" or "H, L"
* The ExcludedColumns property takes precedence over values of IncludedColumns property
*/
get: function () {
return this.i.aay;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aay = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "excludedColumns", {
/**
* Gets or sets names of data columns or their labels to exclude from displaying in the data tooltip, e.g. "High, Low" or "H, L"
* The ExcludedColumns property takes precedence over values of IncludedColumns property
*/
get: function () {
return this.i.aat;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aat = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatAbbreviation", {
/**
* Gets or sets mode for abbreviating large numbers displayed in the legend
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get: function () {
return this.i.aa3;
},
set: function (v) {
this.i.aa3 = ensureEnum(DataAbbreviationMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatMaxFractions", {
/**
* Gets or sets maximum digits for formatting numbers displayed in the legend
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get: function () {
return this.i.adw;
},
set: function (v) {
this.i.adw = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatMinFractions", {
/**
* Gets or sets minimum digits for formatting numbers displayed in the legend
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get: function () {
return this.i.adx;
},
set: function (v) {
this.i.adx = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatMode", {
/**
* Gets or sets the mode for displaying values in the data legend, e.g. Currency ($500.25), Decimal (500.25), Integer (500)
*/
get: function () {
return this.i.aba;
},
set: function (v) {
this.i.aba = ensureEnum(DataLegendValueMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatCulture", {
/**
* Gets or sets globalization culture when displaying values as currencies, e.g. use "en-GB" to display British pound symbol when the ValueFormatMode property is set to 'Currency' mode
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get: function () {
return this.i.af0;
},
set: function (v) {
this.i.af0 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatUseGrouping", {
/**
* Gets or sets whether or not use grouping separator, e.g, 15,000 for 15000
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get: function () {
return this.i.acl;
},
set: function (v) {
this.i.acl = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatString", {
/**
* Gets or sets the format string for values displayed in the data legend.
*/
get: function () {
return this.i.af6;
},
set: function (v) {
this.i.af6 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueFormatSpecifiers", {
/**
* Gets or sets the format specifiers to use with the ValueFormatString string.
*/
get: function () {
return this.i.aa0;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aa0 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginBottom", {
get: function () {
return this.i.aja ? this.i.aja.bottom : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aja.bottom = +v;
this.i.aja = this.i.aja;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginLeft", {
get: function () {
return this.i.aja ? this.i.aja.left : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aja.left = +v;
this.i.aja = this.i.aja;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginRight", {
get: function () {
return this.i.aja ? this.i.aja.right : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aja.right = +v;
this.i.aja = this.i.aja;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginTop", {
get: function () {
return this.i.aja ? this.i.aja.top : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aja.top = +v;
this.i.aja = this.i.aja;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureValueRowMargin = function () {
if (this.i.aja) {
return;
}
this.i.aja = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowVisible", {
/**
* Gets or sets whether to show series rows.
*/
get: function () {
return this.i.acm;
},
set: function (v) {
this.i.acm = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextWhenMissingData", {
/**
* Gets or sets text displayed when data column is missing a value, e.g. "no data"
*/
get: function () {
return this.i.agf;
},
set: function (v) {
this.i.agf = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextUseSeriesColors", {
/**
* Gets or sets whether to use series colors when displaying values in the legend
*/
get: function () {
return this.i.acn;
},
set: function (v) {
this.i.acn = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginBottom", {
get: function () {
return this.i.ajb ? this.i.ajb.bottom : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.ajb.bottom = +v;
this.i.ajb = this.i.ajb;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginLeft", {
get: function () {
return this.i.ajb ? this.i.ajb.left : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.ajb.left = +v;
this.i.ajb = this.i.ajb;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginRight", {
get: function () {
return this.i.ajb ? this.i.ajb.right : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.ajb.right = +v;
this.i.ajb = this.i.ajb;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginTop", {
get: function () {
return this.i.ajb ? this.i.ajb.top : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.ajb.top = +v;
this.i.ajb = this.i.ajb;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureValueTextMargin = function () {
if (this.i.ajb) {
return;
}
this.i.ajb = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.ait);
},
set: function (v) {
this.i.ait = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextStyle", {
/**
* Gets or Sets the style to use for the units text.
*/
get: function () {
if (this.i.ab9 == null) {
return null;
}
return this.i.ab9.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab9 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerFormatString", {
/**
* Gets or sets the format string for header text displayed in the data legend.
*/
get: function () {
return this.i.aek;
},
set: function (v) {
this.i.aek = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerFormatSpecifiers", {
/**
* Gets or sets the format specifiers to use with the HeaderFormatString string.
*/
get: function () {
return this.i.aax;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aax = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerFormatCulture", {
/**
* Gets or sets globalization culture when displaying header as date time
* This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties
*/
get: function () {
return this.i.aeg;
},
set: function (v) {
this.i.aeg = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerFormatDate", {
/**
* Gets or sets date format for the header
* This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties
*/
get: function () {
return this.i.aa4;
},
set: function (v) {
this.i.aa4 = ensureEnum(DataLegendHeaderDateMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerFormatTime", {
/**
* Gets or sets time format for the header
* This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties
*/
get: function () {
return this.i.aa5;
},
set: function (v) {
this.i.aa5 = ensureEnum(DataLegendHeaderTimeMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerText", {
/**
* Gets or sets the HeaderText for the data legend.
*/
get: function () {
return this.i.aep;
},
set: function (v) {
this.i.aep = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextColor", {
/**
* Gets or sets the header text color.
*/
get: function () {
return brushToString(this.i.aij);
},
set: function (v) {
this.i.aij = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginBottom", {
get: function () {
return this.i.ai4 ? this.i.ai4.bottom : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.ai4.bottom = +v;
this.i.ai4 = this.i.ai4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginLeft", {
get: function () {
return this.i.ai4 ? this.i.ai4.left : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.ai4.left = +v;
this.i.ai4 = this.i.ai4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginRight", {
get: function () {
return this.i.ai4 ? this.i.ai4.right : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.ai4.right = +v;
this.i.ai4 = this.i.ai4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginTop", {
get: function () {
return this.i.ai4 ? this.i.ai4.top : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.ai4.top = +v;
this.i.ai4 = this.i.ai4;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureHeaderTextMargin = function () {
if (this.i.ai4) {
return;
}
this.i.ai4 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginBottom", {
get: function () {
return this.i.ai3 ? this.i.ai3.bottom : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.ai3.bottom = +v;
this.i.ai3 = this.i.ai3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginLeft", {
get: function () {
return this.i.ai3 ? this.i.ai3.left : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.ai3.left = +v;
this.i.ai3 = this.i.ai3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginRight", {
get: function () {
return this.i.ai3 ? this.i.ai3.right : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.ai3.right = +v;
this.i.ai3 = this.i.ai3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginTop", {
get: function () {
return this.i.ai3 ? this.i.ai3.top : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.ai3.top = +v;
this.i.ai3 = this.i.ai3;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureHeaderRowMargin = function () {
if (this.i.ai3) {
return;
}
this.i.ai3 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowVisible", {
/**
* Gets or sets whether to show Header row.
*/
get: function () {
return this.i.acc;
},
set: function (v) {
this.i.acc = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextStyle", {
/**
* Gets or Sets the style to use for the header text.
*/
get: function () {
if (this.i.ab1 == null) {
return null;
}
return this.i.ab1.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab1 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowVisible", {
/**
* Gets or sets whether to show Header row.
*/
get: function () {
return this.i.acb;
},
set: function (v) {
this.i.acb = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextColor", {
/**
* Gets or sets the Group text color.
*/
get: function () {
return brushToString(this.i.aii);
},
set: function (v) {
this.i.aii = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginBottom", {
get: function () {
return this.i.ai2 ? this.i.ai2.bottom : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ai2.bottom = +v;
this.i.ai2 = this.i.ai2;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginLeft", {
get: function () {
return this.i.ai2 ? this.i.ai2.left : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ai2.left = +v;
this.i.ai2 = this.i.ai2;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginRight", {
get: function () {
return this.i.ai2 ? this.i.ai2.right : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ai2.right = +v;
this.i.ai2 = this.i.ai2;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginTop", {
get: function () {
return this.i.ai2 ? this.i.ai2.top : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ai2.top = +v;
this.i.ai2 = this.i.ai2;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureGroupTextMargin = function () {
if (this.i.ai2) {
return;
}
this.i.ai2 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginBottom", {
get: function () {
return this.i.ai1 ? this.i.ai1.bottom : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.ai1.bottom = +v;
this.i.ai1 = this.i.ai1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginLeft", {
get: function () {
return this.i.ai1 ? this.i.ai1.left : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.ai1.left = +v;
this.i.ai1 = this.i.ai1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginRight", {
get: function () {
return this.i.ai1 ? this.i.ai1.right : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.ai1.right = +v;
this.i.ai1 = this.i.ai1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginTop", {
get: function () {
return this.i.ai1 ? this.i.ai1.top : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.ai1.top = +v;
this.i.ai1 = this.i.ai1;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureGroupRowMargin = function () {
if (this.i.ai1) {
return;
}
this.i.ai1 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextStyle", {
/**
* Gets or Sets the style to use for the Group text.
*/
get: function () {
if (this.i.ab0 == null) {
return null;
}
return this.i.ab0.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab0 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextColor", {
/**
* Gets or sets the summary text color.
*/
get: function () {
return brushToString(this.i.aim);
},
set: function (v) {
this.i.aim = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextStyle", {
/**
* Gets or Sets the style to use for the summary text.
*/
get: function () {
if (this.i.ab4 == null) {
return null;
}
return this.i.ab4.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab4 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryType", {
/**
* Gets or sets the SummaryType for the data legend.
*/
get: function () {
return this.i.aa8;
},
set: function (v) {
this.i.aa8 = ensureEnum(DataLegendSummaryType_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleText", {
/**
* Gets or sets the SummaryTitleText for the data legend.
*/
get: function () {
return this.i.ae9;
},
set: function (v) {
this.i.ae9 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginBottom", {
get: function () {
return this.i.ai7 ? this.i.ai7.bottom : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ai7.bottom = +v;
this.i.ai7 = this.i.ai7;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginLeft", {
get: function () {
return this.i.ai7 ? this.i.ai7.left : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ai7.left = +v;
this.i.ai7 = this.i.ai7;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginRight", {
get: function () {
return this.i.ai7 ? this.i.ai7.right : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ai7.right = +v;
this.i.ai7 = this.i.ai7;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginTop", {
get: function () {
return this.i.ai7 ? this.i.ai7.top : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ai7.top = +v;
this.i.ai7 = this.i.ai7;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureSummaryTitleTextMargin = function () {
if (this.i.ai7) {
return;
}
this.i.ai7 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginBottom", {
get: function () {
return this.i.ai6 ? this.i.ai6.bottom : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.ai6.bottom = +v;
this.i.ai6 = this.i.ai6;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginLeft", {
get: function () {
return this.i.ai6 ? this.i.ai6.left : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.ai6.left = +v;
this.i.ai6 = this.i.ai6;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginRight", {
get: function () {
return this.i.ai6 ? this.i.ai6.right : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.ai6.right = +v;
this.i.ai6 = this.i.ai6;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginTop", {
get: function () {
return this.i.ai6 ? this.i.ai6.top : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.ai6.top = +v;
this.i.ai6 = this.i.ai6;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureSummaryRowMargin = function () {
if (this.i.ai6) {
return;
}
this.i.ai6 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryValueTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.aio);
},
set: function (v) {
this.i.aio = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryValueTextStyle", {
/**
* Gets or Sets the style to use for the units text.
*/
get: function () {
if (this.i.ab6 == null) {
return null;
}
return this.i.ab6.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab6 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryLabelText", {
/**
* Gets or sets the units text for the data legend.
*/
get: function () {
return this.i.ae4;
},
set: function (v) {
this.i.ae4 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryLabelTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.ail);
},
set: function (v) {
this.i.ail = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryLabelTextStyle", {
/**
* Gets or Sets the style to use for the units text.
*/
get: function () {
if (this.i.ab3 == null) {
return null;
}
return this.i.ab3.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab3 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryUnitsText", {
/**
* Gets or sets the units text for the data legend.
*/
get: function () {
return this.i.aff;
},
set: function (v) {
this.i.aff = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryUnitsTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.ain);
},
set: function (v) {
this.i.ain = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryUnitsTextStyle", {
/**
* Gets or Sets the style to use for the units text.
*/
get: function () {
if (this.i.ab5 == null) {
return null;
}
return this.i.ab5.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab5 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginBottom", {
get: function () {
return this.i.ai0 ? this.i.ai0.bottom : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ai0.bottom = +v;
this.i.ai0 = this.i.ai0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginLeft", {
get: function () {
return this.i.ai0 ? this.i.ai0.left : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ai0.left = +v;
this.i.ai0 = this.i.ai0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginRight", {
get: function () {
return this.i.ai0 ? this.i.ai0.right : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ai0.right = +v;
this.i.ai0 = this.i.ai0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginTop", {
get: function () {
return this.i.ai0 ? this.i.ai0.top : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ai0.top = +v;
this.i.ai0 = this.i.ai0;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureBadgeMargin = function () {
if (this.i.ai0) {
return;
}
this.i.ai0 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeShape", {
/**
* Gets or sets the BadgeShape for the data legend.
*/
get: function () {
return this.i.abp;
},
set: function (v) {
this.i.abp = ensureEnum(LegendItemBadgeShape_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "layoutMode", {
/**
* Gets or sets the layout of content in the data legend
*/
get: function () {
return this.i.aa7;
},
set: function (v) {
this.i.aa7 = ensureEnum(DataLegendLayoutMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsDisplayMode", {
/**
* Gets or sets the UnitsMode for the data legend.
*/
get: function () {
return this.i.aa9;
},
set: function (v) {
this.i.aa9 = ensureEnum(DataLegendUnitsMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsText", {
/**
* Gets or sets the units text for the data legend.
*/
get: function () {
return this.i.aft;
},
set: function (v) {
this.i.aft = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.ais);
},
set: function (v) {
this.i.ais = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginBottom", {
get: function () {
return this.i.ai9 ? this.i.ai9.bottom : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.ai9.bottom = +v;
this.i.ai9 = this.i.ai9;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginLeft", {
get: function () {
return this.i.ai9 ? this.i.ai9.left : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.ai9.left = +v;
this.i.ai9 = this.i.ai9;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginRight", {
get: function () {
return this.i.ai9 ? this.i.ai9.right : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.ai9.right = +v;
this.i.ai9 = this.i.ai9;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginTop", {
get: function () {
return this.i.ai9 ? this.i.ai9.top : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.ai9.top = +v;
this.i.ai9 = this.i.ai9;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureUnitsTextMargin = function () {
if (this.i.ai9) {
return;
}
this.i.ai9 = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextStyle", {
/**
* Gets or Sets the style to use for the units text.
*/
get: function () {
if (this.i.ab8 == null) {
return null;
}
return this.i.ab8.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.ab8 = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginBottom", {
get: function () {
return this.i.ai8 ? this.i.ai8.bottom : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ai8.bottom = +v;
this.i.ai8 = this.i.ai8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginLeft", {
get: function () {
return this.i.ai8 ? this.i.ai8.left : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ai8.left = +v;
this.i.ai8 = this.i.ai8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginRight", {
get: function () {
return this.i.ai8 ? this.i.ai8.right : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ai8.right = +v;
this.i.ai8 = this.i.ai8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginTop", {
get: function () {
return this.i.ai8 ? this.i.ai8.top : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ai8.top = +v;
this.i.ai8 = this.i.ai8;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureTitleTextMargin = function () {
if (this.i.ai8) {