igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
1,541 lines • 56.9 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, "isAnnotationHoverLayer", {
/**
* Gets whether the series is an annotation layer displayed only when hovering over the chart.
*/
get: function () {
return this.i.et;
},
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.e4;
},
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.aap;
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.aap = null : this.i.aap = 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.ab7;
},
set: function (v) {
this.i.ab7 = 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.aa8;
},
set: function (v) {
this.i.aa8 = 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.aa7;
},
set: function (v) {
this.i.aa7 = 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.acg;
},
set: function (v) {
this.i.acg = +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.ach;
},
set: function (v) {
this.i.ach = +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.ace;
},
set: function (v) {
this.i.ace = +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.acf;
},
set: function (v) {
this.i.acf = +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.aa0;
},
set: function (v) {
this.i.aa0 = 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.aaz;
},
set: function (v) {
this.i.aaz = 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.aa4;
},
set: function (v) {
this.i.aa4 = 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.aa3;
},
set: function (v) {
this.i.aa3 = 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.ab6;
},
set: function (v) {
this.i.ab6 = 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.aam;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aam = 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.aah;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aah = 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.aal;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aal = 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.aag;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aag = 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.aaq;
},
set: function (v) {
this.i.aaq = 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.adh;
},
set: function (v) {
this.i.adh = +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.adi;
},
set: function (v) {
this.i.adi = +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.aax;
},
set: function (v) {
this.i.aax = 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.afl;
},
set: function (v) {
this.i.afl = 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.ab8;
},
set: function (v) {
this.i.ab8 = 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.afr;
},
set: function (v) {
this.i.afr = 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.aan;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aan = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginBottom", {
get: function () {
return this.i.aiv ? this.i.aiv.bottom : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aiv.bottom = +v;
this.i.aiv = this.i.aiv;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginLeft", {
get: function () {
return this.i.aiv ? this.i.aiv.left : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aiv.left = +v;
this.i.aiv = this.i.aiv;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginRight", {
get: function () {
return this.i.aiv ? this.i.aiv.right : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aiv.right = +v;
this.i.aiv = this.i.aiv;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowMarginTop", {
get: function () {
return this.i.aiv ? this.i.aiv.top : NaN;
},
set: function (v) {
this.ensureValueRowMargin();
this.i.aiv.top = +v;
this.i.aiv = this.i.aiv;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureValueRowMargin = function () {
if (this.i.aiv) {
return;
}
this.i.aiv = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueRowVisible", {
/**
* Gets or sets whether to show series rows.
*/
get: function () {
return this.i.ab9;
},
set: function (v) {
this.i.ab9 = 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.af0;
},
set: function (v) {
this.i.af0 = 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.aca;
},
set: function (v) {
this.i.aca = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginBottom", {
get: function () {
return this.i.aiw ? this.i.aiw.bottom : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.aiw.bottom = +v;
this.i.aiw = this.i.aiw;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginLeft", {
get: function () {
return this.i.aiw ? this.i.aiw.left : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.aiw.left = +v;
this.i.aiw = this.i.aiw;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginRight", {
get: function () {
return this.i.aiw ? this.i.aiw.right : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.aiw.right = +v;
this.i.aiw = this.i.aiw;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextMarginTop", {
get: function () {
return this.i.aiw ? this.i.aiw.top : NaN;
},
set: function (v) {
this.ensureValueTextMargin();
this.i.aiw.top = +v;
this.i.aiw = this.i.aiw;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureValueTextMargin = function () {
if (this.i.aiw) {
return;
}
this.i.aiw = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "valueTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.aie);
},
set: function (v) {
this.i.aie = 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.abw == null) {
return null;
}
return this.i.abw.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abw = 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.ad5;
},
set: function (v) {
this.i.ad5 = 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.aak;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aak = 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.ad1;
},
set: function (v) {
this.i.ad1 = 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.aar;
},
set: function (v) {
this.i.aar = 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.aas;
},
set: function (v) {
this.i.aas = 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.aea;
},
set: function (v) {
this.i.aea = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextColor", {
/**
* Gets or sets the header text color.
*/
get: function () {
return brushToString(this.i.ah4);
},
set: function (v) {
this.i.ah4 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginBottom", {
get: function () {
return this.i.aip ? this.i.aip.bottom : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.aip.bottom = +v;
this.i.aip = this.i.aip;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginLeft", {
get: function () {
return this.i.aip ? this.i.aip.left : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.aip.left = +v;
this.i.aip = this.i.aip;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginRight", {
get: function () {
return this.i.aip ? this.i.aip.right : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.aip.right = +v;
this.i.aip = this.i.aip;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerTextMarginTop", {
get: function () {
return this.i.aip ? this.i.aip.top : NaN;
},
set: function (v) {
this.ensureHeaderTextMargin();
this.i.aip.top = +v;
this.i.aip = this.i.aip;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureHeaderTextMargin = function () {
if (this.i.aip) {
return;
}
this.i.aip = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginBottom", {
get: function () {
return this.i.aio ? this.i.aio.bottom : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.aio.bottom = +v;
this.i.aio = this.i.aio;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginLeft", {
get: function () {
return this.i.aio ? this.i.aio.left : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.aio.left = +v;
this.i.aio = this.i.aio;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginRight", {
get: function () {
return this.i.aio ? this.i.aio.right : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.aio.right = +v;
this.i.aio = this.i.aio;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowMarginTop", {
get: function () {
return this.i.aio ? this.i.aio.top : NaN;
},
set: function (v) {
this.ensureHeaderRowMargin();
this.i.aio.top = +v;
this.i.aio = this.i.aio;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureHeaderRowMargin = function () {
if (this.i.aio) {
return;
}
this.i.aio = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "headerRowVisible", {
/**
* Gets or sets whether to show Header row.
*/
get: function () {
return this.i.abz;
},
set: function (v) {
this.i.abz = 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.abo == null) {
return null;
}
return this.i.abo.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abo = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowVisible", {
/**
* Gets or sets whether to show Header row.
*/
get: function () {
return this.i.aby;
},
set: function (v) {
this.i.aby = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextColor", {
/**
* Gets or sets the Group text color.
*/
get: function () {
return brushToString(this.i.ah3);
},
set: function (v) {
this.i.ah3 = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginBottom", {
get: function () {
return this.i.ain ? this.i.ain.bottom : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ain.bottom = +v;
this.i.ain = this.i.ain;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginLeft", {
get: function () {
return this.i.ain ? this.i.ain.left : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ain.left = +v;
this.i.ain = this.i.ain;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginRight", {
get: function () {
return this.i.ain ? this.i.ain.right : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ain.right = +v;
this.i.ain = this.i.ain;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextMarginTop", {
get: function () {
return this.i.ain ? this.i.ain.top : NaN;
},
set: function (v) {
this.ensureGroupTextMargin();
this.i.ain.top = +v;
this.i.ain = this.i.ain;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureGroupTextMargin = function () {
if (this.i.ain) {
return;
}
this.i.ain = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginBottom", {
get: function () {
return this.i.aim ? this.i.aim.bottom : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.aim.bottom = +v;
this.i.aim = this.i.aim;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginLeft", {
get: function () {
return this.i.aim ? this.i.aim.left : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.aim.left = +v;
this.i.aim = this.i.aim;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginRight", {
get: function () {
return this.i.aim ? this.i.aim.right : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.aim.right = +v;
this.i.aim = this.i.aim;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupRowMarginTop", {
get: function () {
return this.i.aim ? this.i.aim.top : NaN;
},
set: function (v) {
this.ensureGroupRowMargin();
this.i.aim.top = +v;
this.i.aim = this.i.aim;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureGroupRowMargin = function () {
if (this.i.aim) {
return;
}
this.i.aim = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "groupTextStyle", {
/**
* Gets or Sets the style to use for the Group text.
*/
get: function () {
if (this.i.abn == null) {
return null;
}
return this.i.abn.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abn = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextColor", {
/**
* Gets or sets the summary text color.
*/
get: function () {
return brushToString(this.i.ah7);
},
set: function (v) {
this.i.ah7 = 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.abr == null) {
return null;
}
return this.i.abr.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abr = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryType", {
/**
* Gets or sets the SummaryType for the data legend.
*/
get: function () {
return this.i.aav;
},
set: function (v) {
this.i.aav = 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.aeu;
},
set: function (v) {
this.i.aeu = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginBottom", {
get: function () {
return this.i.ais ? this.i.ais.bottom : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ais.bottom = +v;
this.i.ais = this.i.ais;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginLeft", {
get: function () {
return this.i.ais ? this.i.ais.left : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ais.left = +v;
this.i.ais = this.i.ais;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginRight", {
get: function () {
return this.i.ais ? this.i.ais.right : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ais.right = +v;
this.i.ais = this.i.ais;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryTitleTextMarginTop", {
get: function () {
return this.i.ais ? this.i.ais.top : NaN;
},
set: function (v) {
this.ensureSummaryTitleTextMargin();
this.i.ais.top = +v;
this.i.ais = this.i.ais;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureSummaryTitleTextMargin = function () {
if (this.i.ais) {
return;
}
this.i.ais = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginBottom", {
get: function () {
return this.i.air ? this.i.air.bottom : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.air.bottom = +v;
this.i.air = this.i.air;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginLeft", {
get: function () {
return this.i.air ? this.i.air.left : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.air.left = +v;
this.i.air = this.i.air;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginRight", {
get: function () {
return this.i.air ? this.i.air.right : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.air.right = +v;
this.i.air = this.i.air;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryRowMarginTop", {
get: function () {
return this.i.air ? this.i.air.top : NaN;
},
set: function (v) {
this.ensureSummaryRowMargin();
this.i.air.top = +v;
this.i.air = this.i.air;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureSummaryRowMargin = function () {
if (this.i.air) {
return;
}
this.i.air = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryValueTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.ah9);
},
set: function (v) {
this.i.ah9 = 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.abt == null) {
return null;
}
return this.i.abt.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abt = 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.aep;
},
set: function (v) {
this.i.aep = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryLabelTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.ah6);
},
set: function (v) {
this.i.ah6 = 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.abq == null) {
return null;
}
return this.i.abq.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abq = 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.ae0;
},
set: function (v) {
this.i.ae0 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "summaryUnitsTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.ah8);
},
set: function (v) {
this.i.ah8 = 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.abs == null) {
return null;
}
return this.i.abs.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abs = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginBottom", {
get: function () {
return this.i.ail ? this.i.ail.bottom : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ail.bottom = +v;
this.i.ail = this.i.ail;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginLeft", {
get: function () {
return this.i.ail ? this.i.ail.left : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ail.left = +v;
this.i.ail = this.i.ail;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginRight", {
get: function () {
return this.i.ail ? this.i.ail.right : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ail.right = +v;
this.i.ail = this.i.ail;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeMarginTop", {
get: function () {
return this.i.ail ? this.i.ail.top : NaN;
},
set: function (v) {
this.ensureBadgeMargin();
this.i.ail.top = +v;
this.i.ail = this.i.ail;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureBadgeMargin = function () {
if (this.i.ail) {
return;
}
this.i.ail = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "badgeShape", {
/**
* Gets or sets the BadgeShape for the data legend.
*/
get: function () {
return this.i.abc;
},
set: function (v) {
this.i.abc = 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.aau;
},
set: function (v) {
this.i.aau = 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.aaw;
},
set: function (v) {
this.i.aaw = 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.afe;
},
set: function (v) {
this.i.afe = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextColor", {
/**
* Gets or sets the units text color.
*/
get: function () {
return brushToString(this.i.aid);
},
set: function (v) {
this.i.aid = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginBottom", {
get: function () {
return this.i.aiu ? this.i.aiu.bottom : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.aiu.bottom = +v;
this.i.aiu = this.i.aiu;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginLeft", {
get: function () {
return this.i.aiu ? this.i.aiu.left : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.aiu.left = +v;
this.i.aiu = this.i.aiu;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginRight", {
get: function () {
return this.i.aiu ? this.i.aiu.right : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.aiu.right = +v;
this.i.aiu = this.i.aiu;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextMarginTop", {
get: function () {
return this.i.aiu ? this.i.aiu.top : NaN;
},
set: function (v) {
this.ensureUnitsTextMargin();
this.i.aiu.top = +v;
this.i.aiu = this.i.aiu;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureUnitsTextMargin = function () {
if (this.i.aiu) {
return;
}
this.i.aiu = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "unitsTextStyle", {
/**
* Gets or Sets the style to use for the units text.
*/
get: function () {
if (this.i.abv == null) {
return null;
}
return this.i.abv.fontString;
},
set: function (v) {
var fi = new FontInfo();
fi.fontString = v;
this.i.abv = fi;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginBottom", {
get: function () {
return this.i.ait ? this.i.ait.bottom : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ait.bottom = +v;
this.i.ait = this.i.ait;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginLeft", {
get: function () {
return this.i.ait ? this.i.ait.left : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ait.left = +v;
this.i.ait = this.i.ait;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginRight", {
get: function () {
return this.i.ait ? this.i.ait.right : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ait.right = +v;
this.i.ait = this.i.ait;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextMarginTop", {
get: function () {
return this.i.ait ? this.i.ait.top : NaN;
},
set: function (v) {
this.ensureTitleTextMargin();
this.i.ait.top = +v;
this.i.ait = this.i.ait;
},
enumerable: false,
configurable: true
});
IgrDataToolTipLayer.prototype.ensureTitleTextMargin = function () {
if (this.i.ait) {
return;
}
this.i.ait = new Thickness(2);
};
Object.defineProperty(IgrDataToolTipLayer.prototype, "titleTextColor", {
/**
* Gets or sets the display text col