igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
1,643 lines (1,641 loc) • 62.3 kB
JavaScript
import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core';
import { IgxAxisComponent } from "./igx-axis-component";
import { DataToolTipLayerGroupingMode, DataToolTipLayerGroupingMode_$type } from "igniteui-angular-core";
import { DataTooltipGroupedPositionX, DataTooltipGroupedPositionX_$type } from "igniteui-angular-core";
import { DataTooltipGroupedPositionY, DataTooltipGroupedPositionY_$type } from "igniteui-angular-core";
import { DataAbbreviationMode, DataAbbreviationMode_$type } from "igniteui-angular-core";
import { DataLegendValueMode, DataLegendValueMode_$type } from "igniteui-angular-core";
import { DataLegendHeaderDateMode, DataLegendHeaderDateMode_$type } from "igniteui-angular-core";
import { DataLegendHeaderTimeMode, DataLegendHeaderTimeMode_$type } from "igniteui-angular-core";
import { DataLegendSummaryType, DataLegendSummaryType_$type } from "igniteui-angular-core";
import { LegendItemBadgeShape, LegendItemBadgeShape_$type } from "igniteui-angular-core";
import { DataLegendLayoutMode, DataLegendLayoutMode_$type } from "igniteui-angular-core";
import { DataLegendUnitsMode, DataLegendUnitsMode_$type } from "igniteui-angular-core";
import { DataLegendLabelMode, DataLegendLabelMode_$type } from "igniteui-angular-core";
import { IgxAnnotationLayerComponent } from "./igx-annotation-layer-component";
import { IgxSeriesComponent } from "./igx-series-component";
import { DataToolTipLayer } from "./DataToolTipLayer";
import { ensureBool, ensureEnum, brushToString, stringToBrush, arrayFindByName } from "igniteui-angular-core";
import { Thickness } from "igniteui-angular-core";
import { FontInfo } from "igniteui-angular-core";
import * as i0 from "@angular/core";
/**
* Represents an annotation layer that displays grouped tooltips with summaries for series.
*/
export class IgxDataToolTipLayerComponent extends IgxAnnotationLayerComponent {
createImplementation() {
return new DataToolTipLayer();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
get isToolTipLayer() {
return this.i.f8;
}
/**
* Gets whether the series is an annotation layer displayed only when hovering over the chart.
*/
get isAnnotationHoverLayer() {
return this.i.eu;
}
/**
* Gets whether the default tooltip behaviors for the chart are disabled if this layer is present.
*/
get isDefaultTooltipBehaviorDisabled() {
return this.i.e5;
}
/**
* Gets or sets the Axis to target this annotation to. If null, this annotation layer will not render content.
*/
get targetAxis() {
const r = this.i.aa3;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = IgxAxisComponent._createFromInternal(r);
if (e) {
e._implementation = r;
}
Object.defineProperty(r, 'externalObject', { value: e, enumerable: false, configurable: true, writable: true });
}
return r.externalObject;
}
set targetAxis(v) {
if (v != null && this._stylingContainer && v._styling)
v._styling(this._stylingContainer, this, this);
v == null ? this.i.aa3 = null : this.i.aa3 = v.i;
}
/**
* Gets or sets whether to use value interpolation when drawing the tooltips.
*/
get useInterpolation() {
return this.i.acl;
}
set useInterpolation(v) {
this.i.acl = ensureBool(v);
}
/**
* Gets or sets the grouping mode to apply to use for the tooltip layer.
*/
get groupingMode() {
return this.i.abm;
}
set groupingMode(v) {
this.i.abm = ensureEnum(DataToolTipLayerGroupingMode_$type, v);
}
/**
* Gets the actual resolved tooltip layer grouping mode.
*/
get actualGroupingMode() {
return this.i.abl;
}
set actualGroupingMode(v) {
this.i.abl = ensureEnum(DataToolTipLayerGroupingMode_$type, v);
}
/**
* Gets or sets the offset of the tooltip layer on the X axis.
*/
get positionOffsetX() {
return this.i.acw;
}
set positionOffsetX(v) {
this.i.acw = +v;
}
/**
* Gets or sets the offset of the tooltip layer on the Y axis.
*/
get positionOffsetY() {
return this.i.acx;
}
set positionOffsetY(v) {
this.i.acx = +v;
}
/**
* Gets or sets the default offset of the tooltip layer on the X axis.
*/
get defaultPositionOffsetX() {
return this.i.acu;
}
set defaultPositionOffsetX(v) {
this.i.acu = +v;
}
/**
* Gets or sets the default offset of the tooltip layer on the Y axis.
*/
get defaultPositionOffsetY() {
return this.i.acv;
}
set defaultPositionOffsetY(v) {
this.i.acv = +v;
}
/**
* Gets or sets the tooltip position mode on the X axis for grouped series.
*/
get groupedPositionModeX() {
return this.i.abe;
}
set groupedPositionModeX(v) {
this.i.abe = ensureEnum(DataTooltipGroupedPositionX_$type, v);
}
/**
* Gets the actual resolved tooltip position mode on the X axis for grouped series.
*/
get actualGroupedPositionModeX() {
return this.i.abd;
}
set actualGroupedPositionModeX(v) {
this.i.abd = ensureEnum(DataTooltipGroupedPositionX_$type, v);
}
/**
* Gets or sets the tooltip position mode on the Y axis for grouped series.
*/
get groupedPositionModeY() {
return this.i.abi;
}
set groupedPositionModeY(v) {
this.i.abi = ensureEnum(DataTooltipGroupedPositionY_$type, v);
}
/**
* Gets the actual resolved tooltip position mode on the Y axis for grouped series.
*/
get actualGroupedPositionModeY() {
return this.i.abh;
}
set actualGroupedPositionModeY(v) {
this.i.abh = ensureEnum(DataTooltipGroupedPositionY_$type, v);
}
/**
* Gets or sets whether the data legend should update when the series data is mutated.
*/
get shouldUpdateWhenSeriesDataChanges() {
return this.i.ack;
}
set shouldUpdateWhenSeriesDataChanges(v) {
this.i.ack = ensureBool(v);
}
/**
* 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 includedSeries() {
return this.i.aa0;
}
set includedSeries(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aa0 = v;
}
/**
* 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 excludedSeries() {
return this.i.aav;
}
set excludedSeries(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aav = v;
}
/**
* 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 includedColumns() {
return this.i.aaz;
}
set includedColumns(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aaz = v;
}
/**
* 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 excludedColumns() {
return this.i.aau;
}
set excludedColumns(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aau = v;
}
/**
* Gets or sets mode for abbreviating large numbers displayed in the legend
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get valueFormatAbbreviation() {
return this.i.aa4;
}
set valueFormatAbbreviation(v) {
this.i.aa4 = ensureEnum(DataAbbreviationMode_$type, v);
}
/**
* Gets or sets maximum digits for formatting numbers displayed in the legend
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get valueFormatMaxFractions() {
return this.i.adx;
}
set valueFormatMaxFractions(v) {
this.i.adx = +v;
}
/**
* Gets or sets minimum digits for formatting numbers displayed in the legend
* This property is ignored when setting ValueFormatSpecifiers or ValueFormatString properties
*/
get valueFormatMinFractions() {
return this.i.ady;
}
set valueFormatMinFractions(v) {
this.i.ady = +v;
}
/**
* Gets or sets the mode for displaying values in the data legend, e.g. Currency ($500.25), Decimal (500.25), Integer (500)
*/
get valueFormatMode() {
return this.i.abb;
}
set valueFormatMode(v) {
this.i.abb = ensureEnum(DataLegendValueMode_$type, v);
}
/**
* 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 valueFormatCulture() {
return this.i.af1;
}
set valueFormatCulture(v) {
this.i.af1 = v;
}
/**
* 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 valueFormatUseGrouping() {
return this.i.acm;
}
set valueFormatUseGrouping(v) {
this.i.acm = ensureBool(v);
}
/**
* Gets or sets the format string for values displayed in the data legend.
*/
get valueFormatString() {
return this.i.af7;
}
set valueFormatString(v) {
this.i.af7 = v;
}
/**
* Gets or sets the format specifiers to use with the ValueFormatString string.
*/
get valueFormatSpecifiers() {
return this.i.aa1;
}
set valueFormatSpecifiers(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aa1 = v;
}
get valueRowMarginBottom() {
return this.i.ajb ? this.i.ajb.bottom : NaN;
}
set valueRowMarginBottom(v) {
this.ensureValueRowMargin();
const __nv = +v;
if (this.i.ajb.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ajb.left;
__copy.right = this.i.ajb.right;
__copy.top = this.i.ajb.top;
this.i.ajb = __copy;
}
get valueRowMarginLeft() {
return this.i.ajb ? this.i.ajb.left : NaN;
}
set valueRowMarginLeft(v) {
this.ensureValueRowMargin();
const __nv = +v;
if (this.i.ajb.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ajb.bottom;
__copy.right = this.i.ajb.right;
__copy.top = this.i.ajb.top;
this.i.ajb = __copy;
}
get valueRowMarginRight() {
return this.i.ajb ? this.i.ajb.right : NaN;
}
set valueRowMarginRight(v) {
this.ensureValueRowMargin();
const __nv = +v;
if (this.i.ajb.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ajb.bottom;
__copy.left = this.i.ajb.left;
__copy.top = this.i.ajb.top;
this.i.ajb = __copy;
}
get valueRowMarginTop() {
return this.i.ajb ? this.i.ajb.top : NaN;
}
set valueRowMarginTop(v) {
this.ensureValueRowMargin();
const __nv = +v;
if (this.i.ajb.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ajb.bottom;
__copy.left = this.i.ajb.left;
__copy.right = this.i.ajb.right;
this.i.ajb = __copy;
}
ensureValueRowMargin() {
if (this.i.ajb) {
return;
}
this.i.ajb = new Thickness(2);
}
/**
* Gets or sets whether to show series rows.
*/
get valueRowVisible() {
return this.i.acn;
}
set valueRowVisible(v) {
this.i.acn = ensureBool(v);
}
/**
* Gets or sets text displayed when data column is missing a value, e.g. "no data"
*/
get valueTextWhenMissingData() {
return this.i.agg;
}
set valueTextWhenMissingData(v) {
this.i.agg = v;
}
/**
* Gets or sets whether to use series colors when displaying values in the legend
*/
get valueTextUseSeriesColors() {
return this.i.aco;
}
set valueTextUseSeriesColors(v) {
this.i.aco = ensureBool(v);
}
get valueTextMarginBottom() {
return this.i.ajc ? this.i.ajc.bottom : NaN;
}
set valueTextMarginBottom(v) {
this.ensureValueTextMargin();
const __nv = +v;
if (this.i.ajc.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ajc.left;
__copy.right = this.i.ajc.right;
__copy.top = this.i.ajc.top;
this.i.ajc = __copy;
}
get valueTextMarginLeft() {
return this.i.ajc ? this.i.ajc.left : NaN;
}
set valueTextMarginLeft(v) {
this.ensureValueTextMargin();
const __nv = +v;
if (this.i.ajc.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ajc.bottom;
__copy.right = this.i.ajc.right;
__copy.top = this.i.ajc.top;
this.i.ajc = __copy;
}
get valueTextMarginRight() {
return this.i.ajc ? this.i.ajc.right : NaN;
}
set valueTextMarginRight(v) {
this.ensureValueTextMargin();
const __nv = +v;
if (this.i.ajc.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ajc.bottom;
__copy.left = this.i.ajc.left;
__copy.top = this.i.ajc.top;
this.i.ajc = __copy;
}
get valueTextMarginTop() {
return this.i.ajc ? this.i.ajc.top : NaN;
}
set valueTextMarginTop(v) {
this.ensureValueTextMargin();
const __nv = +v;
if (this.i.ajc.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ajc.bottom;
__copy.left = this.i.ajc.left;
__copy.right = this.i.ajc.right;
this.i.ajc = __copy;
}
ensureValueTextMargin() {
if (this.i.ajc) {
return;
}
this.i.ajc = new Thickness(2);
}
/**
* Gets or sets the units text color.
*/
get valueTextColor() {
return brushToString(this.i.aiu);
}
set valueTextColor(v) {
this.i.aiu = stringToBrush(v);
}
/**
* Gets or Sets the style to use for the units text.
*/
get valueTextStyle() {
if (this.i.aca == null) {
return null;
}
return this.i.aca.fontString;
}
set valueTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.aca = fi;
}
/**
* Gets or sets the format string for header text displayed in the data legend.
*/
get headerFormatString() {
return this.i.ael;
}
set headerFormatString(v) {
this.i.ael = v;
}
/**
* Gets or sets the format specifiers to use with the HeaderFormatString string.
*/
get headerFormatSpecifiers() {
return this.i.aay;
}
set headerFormatSpecifiers(v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
const re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.aay = v;
}
/**
* Gets or sets globalization culture when displaying header as date time
* This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties
*/
get headerFormatCulture() {
return this.i.aeh;
}
set headerFormatCulture(v) {
this.i.aeh = v;
}
/**
* Gets or sets date format for the header
* This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties
*/
get headerFormatDate() {
return this.i.aa5;
}
set headerFormatDate(v) {
this.i.aa5 = ensureEnum(DataLegendHeaderDateMode_$type, v);
}
/**
* Gets or sets time format for the header
* This property is ignored when setting HeaderFormatSpecifiers or HeaderFormatString properties
*/
get headerFormatTime() {
return this.i.aa6;
}
set headerFormatTime(v) {
this.i.aa6 = ensureEnum(DataLegendHeaderTimeMode_$type, v);
}
/**
* Gets or sets the HeaderText for the data legend.
*/
get headerText() {
return this.i.aeq;
}
set headerText(v) {
this.i.aeq = v;
}
/**
* Gets or sets the header text color.
*/
get headerTextColor() {
return brushToString(this.i.aik);
}
set headerTextColor(v) {
this.i.aik = stringToBrush(v);
}
get headerTextMarginBottom() {
return this.i.ai5 ? this.i.ai5.bottom : NaN;
}
set headerTextMarginBottom(v) {
this.ensureHeaderTextMargin();
const __nv = +v;
if (this.i.ai5.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai5.left;
__copy.right = this.i.ai5.right;
__copy.top = this.i.ai5.top;
this.i.ai5 = __copy;
}
get headerTextMarginLeft() {
return this.i.ai5 ? this.i.ai5.left : NaN;
}
set headerTextMarginLeft(v) {
this.ensureHeaderTextMargin();
const __nv = +v;
if (this.i.ai5.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai5.bottom;
__copy.right = this.i.ai5.right;
__copy.top = this.i.ai5.top;
this.i.ai5 = __copy;
}
get headerTextMarginRight() {
return this.i.ai5 ? this.i.ai5.right : NaN;
}
set headerTextMarginRight(v) {
this.ensureHeaderTextMargin();
const __nv = +v;
if (this.i.ai5.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai5.bottom;
__copy.left = this.i.ai5.left;
__copy.top = this.i.ai5.top;
this.i.ai5 = __copy;
}
get headerTextMarginTop() {
return this.i.ai5 ? this.i.ai5.top : NaN;
}
set headerTextMarginTop(v) {
this.ensureHeaderTextMargin();
const __nv = +v;
if (this.i.ai5.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai5.bottom;
__copy.left = this.i.ai5.left;
__copy.right = this.i.ai5.right;
this.i.ai5 = __copy;
}
ensureHeaderTextMargin() {
if (this.i.ai5) {
return;
}
this.i.ai5 = new Thickness(2);
}
get headerRowMarginBottom() {
return this.i.ai4 ? this.i.ai4.bottom : NaN;
}
set headerRowMarginBottom(v) {
this.ensureHeaderRowMargin();
const __nv = +v;
if (this.i.ai4.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai4.left;
__copy.right = this.i.ai4.right;
__copy.top = this.i.ai4.top;
this.i.ai4 = __copy;
}
get headerRowMarginLeft() {
return this.i.ai4 ? this.i.ai4.left : NaN;
}
set headerRowMarginLeft(v) {
this.ensureHeaderRowMargin();
const __nv = +v;
if (this.i.ai4.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai4.bottom;
__copy.right = this.i.ai4.right;
__copy.top = this.i.ai4.top;
this.i.ai4 = __copy;
}
get headerRowMarginRight() {
return this.i.ai4 ? this.i.ai4.right : NaN;
}
set headerRowMarginRight(v) {
this.ensureHeaderRowMargin();
const __nv = +v;
if (this.i.ai4.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai4.bottom;
__copy.left = this.i.ai4.left;
__copy.top = this.i.ai4.top;
this.i.ai4 = __copy;
}
get headerRowMarginTop() {
return this.i.ai4 ? this.i.ai4.top : NaN;
}
set headerRowMarginTop(v) {
this.ensureHeaderRowMargin();
const __nv = +v;
if (this.i.ai4.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai4.bottom;
__copy.left = this.i.ai4.left;
__copy.right = this.i.ai4.right;
this.i.ai4 = __copy;
}
ensureHeaderRowMargin() {
if (this.i.ai4) {
return;
}
this.i.ai4 = new Thickness(2);
}
/**
* Gets or sets whether to show Header row.
*/
get headerRowVisible() {
return this.i.acd;
}
set headerRowVisible(v) {
this.i.acd = ensureBool(v);
}
/**
* Gets or Sets the style to use for the header text.
*/
get headerTextStyle() {
if (this.i.ab2 == null) {
return null;
}
return this.i.ab2.fontString;
}
set headerTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab2 = fi;
}
/**
* Gets or sets whether to show Header row.
*/
get groupRowVisible() {
return this.i.acc;
}
set groupRowVisible(v) {
this.i.acc = ensureBool(v);
}
/**
* Gets or sets the Group text color.
*/
get groupTextColor() {
return brushToString(this.i.aij);
}
set groupTextColor(v) {
this.i.aij = stringToBrush(v);
}
get groupTextMarginBottom() {
return this.i.ai3 ? this.i.ai3.bottom : NaN;
}
set groupTextMarginBottom(v) {
this.ensureGroupTextMargin();
const __nv = +v;
if (this.i.ai3.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai3.left;
__copy.right = this.i.ai3.right;
__copy.top = this.i.ai3.top;
this.i.ai3 = __copy;
}
get groupTextMarginLeft() {
return this.i.ai3 ? this.i.ai3.left : NaN;
}
set groupTextMarginLeft(v) {
this.ensureGroupTextMargin();
const __nv = +v;
if (this.i.ai3.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai3.bottom;
__copy.right = this.i.ai3.right;
__copy.top = this.i.ai3.top;
this.i.ai3 = __copy;
}
get groupTextMarginRight() {
return this.i.ai3 ? this.i.ai3.right : NaN;
}
set groupTextMarginRight(v) {
this.ensureGroupTextMargin();
const __nv = +v;
if (this.i.ai3.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai3.bottom;
__copy.left = this.i.ai3.left;
__copy.top = this.i.ai3.top;
this.i.ai3 = __copy;
}
get groupTextMarginTop() {
return this.i.ai3 ? this.i.ai3.top : NaN;
}
set groupTextMarginTop(v) {
this.ensureGroupTextMargin();
const __nv = +v;
if (this.i.ai3.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai3.bottom;
__copy.left = this.i.ai3.left;
__copy.right = this.i.ai3.right;
this.i.ai3 = __copy;
}
ensureGroupTextMargin() {
if (this.i.ai3) {
return;
}
this.i.ai3 = new Thickness(2);
}
get groupRowMarginBottom() {
return this.i.ai2 ? this.i.ai2.bottom : NaN;
}
set groupRowMarginBottom(v) {
this.ensureGroupRowMargin();
const __nv = +v;
if (this.i.ai2.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai2.left;
__copy.right = this.i.ai2.right;
__copy.top = this.i.ai2.top;
this.i.ai2 = __copy;
}
get groupRowMarginLeft() {
return this.i.ai2 ? this.i.ai2.left : NaN;
}
set groupRowMarginLeft(v) {
this.ensureGroupRowMargin();
const __nv = +v;
if (this.i.ai2.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai2.bottom;
__copy.right = this.i.ai2.right;
__copy.top = this.i.ai2.top;
this.i.ai2 = __copy;
}
get groupRowMarginRight() {
return this.i.ai2 ? this.i.ai2.right : NaN;
}
set groupRowMarginRight(v) {
this.ensureGroupRowMargin();
const __nv = +v;
if (this.i.ai2.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai2.bottom;
__copy.left = this.i.ai2.left;
__copy.top = this.i.ai2.top;
this.i.ai2 = __copy;
}
get groupRowMarginTop() {
return this.i.ai2 ? this.i.ai2.top : NaN;
}
set groupRowMarginTop(v) {
this.ensureGroupRowMargin();
const __nv = +v;
if (this.i.ai2.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai2.bottom;
__copy.left = this.i.ai2.left;
__copy.right = this.i.ai2.right;
this.i.ai2 = __copy;
}
ensureGroupRowMargin() {
if (this.i.ai2) {
return;
}
this.i.ai2 = new Thickness(2);
}
/**
* Gets or Sets the style to use for the Group text.
*/
get groupTextStyle() {
if (this.i.ab1 == null) {
return null;
}
return this.i.ab1.fontString;
}
set groupTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab1 = fi;
}
/**
* Gets or sets the summary text color.
*/
get summaryTitleTextColor() {
return brushToString(this.i.ain);
}
set summaryTitleTextColor(v) {
this.i.ain = stringToBrush(v);
}
/**
* Gets or Sets the style to use for the summary text.
*/
get summaryTitleTextStyle() {
if (this.i.ab5 == null) {
return null;
}
return this.i.ab5.fontString;
}
set summaryTitleTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab5 = fi;
}
/**
* Gets or sets the SummaryType for the data legend.
*/
get summaryType() {
return this.i.aa9;
}
set summaryType(v) {
this.i.aa9 = ensureEnum(DataLegendSummaryType_$type, v);
}
/**
* Gets or sets the SummaryTitleText for the data legend.
*/
get summaryTitleText() {
return this.i.afa;
}
set summaryTitleText(v) {
this.i.afa = v;
}
get summaryTitleTextMarginBottom() {
return this.i.ai8 ? this.i.ai8.bottom : NaN;
}
set summaryTitleTextMarginBottom(v) {
this.ensureSummaryTitleTextMargin();
const __nv = +v;
if (this.i.ai8.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai8.left;
__copy.right = this.i.ai8.right;
__copy.top = this.i.ai8.top;
this.i.ai8 = __copy;
}
get summaryTitleTextMarginLeft() {
return this.i.ai8 ? this.i.ai8.left : NaN;
}
set summaryTitleTextMarginLeft(v) {
this.ensureSummaryTitleTextMargin();
const __nv = +v;
if (this.i.ai8.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai8.bottom;
__copy.right = this.i.ai8.right;
__copy.top = this.i.ai8.top;
this.i.ai8 = __copy;
}
get summaryTitleTextMarginRight() {
return this.i.ai8 ? this.i.ai8.right : NaN;
}
set summaryTitleTextMarginRight(v) {
this.ensureSummaryTitleTextMargin();
const __nv = +v;
if (this.i.ai8.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai8.bottom;
__copy.left = this.i.ai8.left;
__copy.top = this.i.ai8.top;
this.i.ai8 = __copy;
}
get summaryTitleTextMarginTop() {
return this.i.ai8 ? this.i.ai8.top : NaN;
}
set summaryTitleTextMarginTop(v) {
this.ensureSummaryTitleTextMargin();
const __nv = +v;
if (this.i.ai8.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai8.bottom;
__copy.left = this.i.ai8.left;
__copy.right = this.i.ai8.right;
this.i.ai8 = __copy;
}
ensureSummaryTitleTextMargin() {
if (this.i.ai8) {
return;
}
this.i.ai8 = new Thickness(2);
}
get summaryRowMarginBottom() {
return this.i.ai7 ? this.i.ai7.bottom : NaN;
}
set summaryRowMarginBottom(v) {
this.ensureSummaryRowMargin();
const __nv = +v;
if (this.i.ai7.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai7.left;
__copy.right = this.i.ai7.right;
__copy.top = this.i.ai7.top;
this.i.ai7 = __copy;
}
get summaryRowMarginLeft() {
return this.i.ai7 ? this.i.ai7.left : NaN;
}
set summaryRowMarginLeft(v) {
this.ensureSummaryRowMargin();
const __nv = +v;
if (this.i.ai7.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai7.bottom;
__copy.right = this.i.ai7.right;
__copy.top = this.i.ai7.top;
this.i.ai7 = __copy;
}
get summaryRowMarginRight() {
return this.i.ai7 ? this.i.ai7.right : NaN;
}
set summaryRowMarginRight(v) {
this.ensureSummaryRowMargin();
const __nv = +v;
if (this.i.ai7.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai7.bottom;
__copy.left = this.i.ai7.left;
__copy.top = this.i.ai7.top;
this.i.ai7 = __copy;
}
get summaryRowMarginTop() {
return this.i.ai7 ? this.i.ai7.top : NaN;
}
set summaryRowMarginTop(v) {
this.ensureSummaryRowMargin();
const __nv = +v;
if (this.i.ai7.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai7.bottom;
__copy.left = this.i.ai7.left;
__copy.right = this.i.ai7.right;
this.i.ai7 = __copy;
}
ensureSummaryRowMargin() {
if (this.i.ai7) {
return;
}
this.i.ai7 = new Thickness(2);
}
/**
* Gets or sets the units text color.
*/
get summaryValueTextColor() {
return brushToString(this.i.aip);
}
set summaryValueTextColor(v) {
this.i.aip = stringToBrush(v);
}
/**
* Gets or Sets the style to use for the units text.
*/
get summaryValueTextStyle() {
if (this.i.ab7 == null) {
return null;
}
return this.i.ab7.fontString;
}
set summaryValueTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab7 = fi;
}
/**
* Gets or sets the units text for the data legend.
*/
get summaryLabelText() {
return this.i.ae5;
}
set summaryLabelText(v) {
this.i.ae5 = v;
}
/**
* Gets or sets the units text color.
*/
get summaryLabelTextColor() {
return brushToString(this.i.aim);
}
set summaryLabelTextColor(v) {
this.i.aim = stringToBrush(v);
}
/**
* Gets or Sets the style to use for the units text.
*/
get summaryLabelTextStyle() {
if (this.i.ab4 == null) {
return null;
}
return this.i.ab4.fontString;
}
set summaryLabelTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab4 = fi;
}
/**
* Gets or sets the units text for the data legend.
*/
get summaryUnitsText() {
return this.i.afg;
}
set summaryUnitsText(v) {
this.i.afg = v;
}
/**
* Gets or sets the units text color.
*/
get summaryUnitsTextColor() {
return brushToString(this.i.aio);
}
set summaryUnitsTextColor(v) {
this.i.aio = stringToBrush(v);
}
/**
* Gets or Sets the style to use for the units text.
*/
get summaryUnitsTextStyle() {
if (this.i.ab6 == null) {
return null;
}
return this.i.ab6.fontString;
}
set summaryUnitsTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab6 = fi;
}
get badgeMarginBottom() {
return this.i.ai1 ? this.i.ai1.bottom : NaN;
}
set badgeMarginBottom(v) {
this.ensureBadgeMargin();
const __nv = +v;
if (this.i.ai1.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai1.left;
__copy.right = this.i.ai1.right;
__copy.top = this.i.ai1.top;
this.i.ai1 = __copy;
}
get badgeMarginLeft() {
return this.i.ai1 ? this.i.ai1.left : NaN;
}
set badgeMarginLeft(v) {
this.ensureBadgeMargin();
const __nv = +v;
if (this.i.ai1.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai1.bottom;
__copy.right = this.i.ai1.right;
__copy.top = this.i.ai1.top;
this.i.ai1 = __copy;
}
get badgeMarginRight() {
return this.i.ai1 ? this.i.ai1.right : NaN;
}
set badgeMarginRight(v) {
this.ensureBadgeMargin();
const __nv = +v;
if (this.i.ai1.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai1.bottom;
__copy.left = this.i.ai1.left;
__copy.top = this.i.ai1.top;
this.i.ai1 = __copy;
}
get badgeMarginTop() {
return this.i.ai1 ? this.i.ai1.top : NaN;
}
set badgeMarginTop(v) {
this.ensureBadgeMargin();
const __nv = +v;
if (this.i.ai1.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai1.bottom;
__copy.left = this.i.ai1.left;
__copy.right = this.i.ai1.right;
this.i.ai1 = __copy;
}
ensureBadgeMargin() {
if (this.i.ai1) {
return;
}
this.i.ai1 = new Thickness(2);
}
/**
* Gets or sets the BadgeShape for the data legend.
*/
get badgeShape() {
return this.i.abq;
}
set badgeShape(v) {
this.i.abq = ensureEnum(LegendItemBadgeShape_$type, v);
}
/**
* Gets or sets the layout of content in the data legend
*/
get layoutMode() {
return this.i.aa8;
}
set layoutMode(v) {
this.i.aa8 = ensureEnum(DataLegendLayoutMode_$type, v);
}
/**
* Gets or sets the UnitsMode for the data legend.
*/
get unitsDisplayMode() {
return this.i.aba;
}
set unitsDisplayMode(v) {
this.i.aba = ensureEnum(DataLegendUnitsMode_$type, v);
}
/**
* Gets or sets the units text for the data legend.
*/
get unitsText() {
return this.i.afu;
}
set unitsText(v) {
this.i.afu = v;
}
/**
* Gets or sets the units text color.
*/
get unitsTextColor() {
return brushToString(this.i.ait);
}
set unitsTextColor(v) {
this.i.ait = stringToBrush(v);
}
get unitsTextMarginBottom() {
return this.i.aja ? this.i.aja.bottom : NaN;
}
set unitsTextMarginBottom(v) {
this.ensureUnitsTextMargin();
const __nv = +v;
if (this.i.aja.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.aja.left;
__copy.right = this.i.aja.right;
__copy.top = this.i.aja.top;
this.i.aja = __copy;
}
get unitsTextMarginLeft() {
return this.i.aja ? this.i.aja.left : NaN;
}
set unitsTextMarginLeft(v) {
this.ensureUnitsTextMargin();
const __nv = +v;
if (this.i.aja.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.aja.bottom;
__copy.right = this.i.aja.right;
__copy.top = this.i.aja.top;
this.i.aja = __copy;
}
get unitsTextMarginRight() {
return this.i.aja ? this.i.aja.right : NaN;
}
set unitsTextMarginRight(v) {
this.ensureUnitsTextMargin();
const __nv = +v;
if (this.i.aja.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.aja.bottom;
__copy.left = this.i.aja.left;
__copy.top = this.i.aja.top;
this.i.aja = __copy;
}
get unitsTextMarginTop() {
return this.i.aja ? this.i.aja.top : NaN;
}
set unitsTextMarginTop(v) {
this.ensureUnitsTextMargin();
const __nv = +v;
if (this.i.aja.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.aja.bottom;
__copy.left = this.i.aja.left;
__copy.right = this.i.aja.right;
this.i.aja = __copy;
}
ensureUnitsTextMargin() {
if (this.i.aja) {
return;
}
this.i.aja = new Thickness(2);
}
/**
* Gets or Sets the style to use for the units text.
*/
get unitsTextStyle() {
if (this.i.ab9 == null) {
return null;
}
return this.i.ab9.fontString;
}
set unitsTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab9 = fi;
}
get titleTextMarginBottom() {
return this.i.ai9 ? this.i.ai9.bottom : NaN;
}
set titleTextMarginBottom(v) {
this.ensureTitleTextMargin();
const __nv = +v;
if (this.i.ai9.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai9.left;
__copy.right = this.i.ai9.right;
__copy.top = this.i.ai9.top;
this.i.ai9 = __copy;
}
get titleTextMarginLeft() {
return this.i.ai9 ? this.i.ai9.left : NaN;
}
set titleTextMarginLeft(v) {
this.ensureTitleTextMargin();
const __nv = +v;
if (this.i.ai9.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai9.bottom;
__copy.right = this.i.ai9.right;
__copy.top = this.i.ai9.top;
this.i.ai9 = __copy;
}
get titleTextMarginRight() {
return this.i.ai9 ? this.i.ai9.right : NaN;
}
set titleTextMarginRight(v) {
this.ensureTitleTextMargin();
const __nv = +v;
if (this.i.ai9.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai9.bottom;
__copy.left = this.i.ai9.left;
__copy.top = this.i.ai9.top;
this.i.ai9 = __copy;
}
get titleTextMarginTop() {
return this.i.ai9 ? this.i.ai9.top : NaN;
}
set titleTextMarginTop(v) {
this.ensureTitleTextMargin();
const __nv = +v;
if (this.i.ai9.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai9.bottom;
__copy.left = this.i.ai9.left;
__copy.right = this.i.ai9.right;
this.i.ai9 = __copy;
}
ensureTitleTextMargin() {
if (this.i.ai9) {
return;
}
this.i.ai9 = new Thickness(2);
}
/**
* Gets or sets the display text color.
*/
get titleTextColor() {
return brushToString(this.i.aiq);
}
set titleTextColor(v) {
this.i.aiq = stringToBrush(v);
}
/**
* Gets or Sets the style to use for the display text.
*/
get titleTextStyle() {
if (this.i.ab8 == null) {
return null;
}
return this.i.ab8.fontString;
}
set titleTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab8 = fi;
}
/**
* Gets or sets the mode for displaying labels before series values in the data legend, e.g. O: H: L: C: for financial series
*/
get labelDisplayMode() {
return this.i.aa7;
}
set labelDisplayMode(v) {
this.i.aa7 = ensureEnum(DataLegendLabelMode_$type, v);
}
/**
* Gets or sets the units text color.
*/
get labelTextColor() {
return brushToString(this.i.ail);
}
set labelTextColor(v) {
this.i.ail = stringToBrush(v);
}
get labelTextMarginBottom() {
return this.i.ai6 ? this.i.ai6.bottom : NaN;
}
set labelTextMarginBottom(v) {
this.ensureLabelTextMargin();
const __nv = +v;
if (this.i.ai6.bottom === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.bottom = __nv;
__copy.left = this.i.ai6.left;
__copy.right = this.i.ai6.right;
__copy.top = this.i.ai6.top;
this.i.ai6 = __copy;
}
get labelTextMarginLeft() {
return this.i.ai6 ? this.i.ai6.left : NaN;
}
set labelTextMarginLeft(v) {
this.ensureLabelTextMargin();
const __nv = +v;
if (this.i.ai6.left === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.left = __nv;
__copy.bottom = this.i.ai6.bottom;
__copy.right = this.i.ai6.right;
__copy.top = this.i.ai6.top;
this.i.ai6 = __copy;
}
get labelTextMarginRight() {
return this.i.ai6 ? this.i.ai6.right : NaN;
}
set labelTextMarginRight(v) {
this.ensureLabelTextMargin();
const __nv = +v;
if (this.i.ai6.right === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.right = __nv;
__copy.bottom = this.i.ai6.bottom;
__copy.left = this.i.ai6.left;
__copy.top = this.i.ai6.top;
this.i.ai6 = __copy;
}
get labelTextMarginTop() {
return this.i.ai6 ? this.i.ai6.top : NaN;
}
set labelTextMarginTop(v) {
this.ensureLabelTextMargin();
const __nv = +v;
if (this.i.ai6.top === __nv) {
return;
}
const __copy = new Thickness(2);
__copy.top = __nv;
__copy.bottom = this.i.ai6.bottom;
__copy.left = this.i.ai6.left;
__copy.right = this.i.ai6.right;
this.i.ai6 = __copy;
}
ensureLabelTextMargin() {
if (this.i.ai6) {
return;
}
this.i.ai6 = new Thickness(2);
}
/**
* Gets or Sets the style to use for the units text.
*/
get labelTextStyle() {
if (this.i.ab3 == null) {
return null;
}
return this.i.ab3.fontString;
}
set labelTextStyle(v) {
let fi = new FontInfo();
fi.fontString = v;
this.i.ab3 = fi;
}
/**
* Gets or sets the background of the tooltip containers.
*/
get toolTipBackground() {
return brushToString(this.i.air);
}
set toolTipBackground(v) {
this.i.air = stringToBrush(v);
}
/**
* Gets or sets the border color of the tooltip containers.
*/
get toolTipBorderBrush() {
return brushToString(this.i.ais);
}
set toolTipBorderBrush(v) {
this.i.ais = stringToBrush(v);
}
/**
* Gets or sets the border thickness of the tooltip containers.
*/
get toolTipBorderThickness() {
return this.i.ac2;
}
set toolTipBorderThickness(v) {
this.i.ac2 = +v;
}
findByName(name) {
var baseResult = super.findByName(name);
if (baseResult) {
return baseResult;
}
if (this.targetAxis && this.targetAxis.name && this.targetAxis.name == name) {
return this.targetAxis;
}
if (this.valueFormatSpecifiers != null && arrayFindByName(this.valueFormatSpecifiers, name)) {
return arrayFindByName(this.valueFormatSpecifiers, name);
}
if (this.headerFormatSpecifiers != null && arrayFindByName(this.headerFormatSpecifiers, name)) {
return arrayFindByName(this.headerFormatSpecifiers, name);
}
return null;
}
_styling(container, component, parent) {
super._styling(container, component, parent);
this._inStyling = true;
if (this.targetAxis && this.targetAxis._styling) {
this.targetAxis._styling(container, component, this);
}
this._inStyling = false;
}
/**
* Hides any tooltips presented by the layer, if any.
*/
hideToolTips() {
this.i.qn();
}
/**
* Hides any tooltips presented by the layer, if any.
*/
hideToolTipsImmediate() {
this.i.qo();
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0-rc.1", ngImport: i0, type: IgxDataToolTipLayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0-rc.1", type: IgxDataToolTipLayerComponent, isStandalone: true, selector: "igx-data-tool-tip-layer", inputs: { targetAxis: "targetAxis", useInterpolation: "useInterpolation", groupingMode: "groupingMode", actualGroupingMode: "actualGroupingMode", positionOffsetX: "positionOffsetX", positionOffsetY: "positionOffsetY", defaultPositionOffsetX: "defaultPositionOffsetX", defaultPositionOffsetY: "defaultPositionOffsetY", groupedPositionModeX: "groupedPositionModeX", actualGroupedPositionModeX: "actualGroupedPositionModeX", groupedPositionModeY: "groupedPositionModeY", actualGroupedPositionModeY: "actualGroupedPositionModeY", shouldUpdateWhenSeriesDataChanges: "shouldUpdateWhenSeriesDataChanges", includedSeries: "includedSeries", excludedSeries: "excludedSeries", includedColumns: "includedColumns", excludedColumns: "excludedColumns", valueFormatAbbreviation: "valueFormatAbbreviation", valueFormatMaxFractions: "valueFormatMaxFractions", valueFormatMinFractions: "valueFormatMinFractions", valueFormatMode: "valueFormatMode", valueFormatCulture: "valueFormatCulture", valueFormatUseGrouping: "valueFormatUseGrouping", valueFormatString: "valueFormatString", valueFormatSpecifiers: "valueFormatSpecifiers", valueRowMarginBottom: "valueRowMarginBottom", valueRowMarginLeft: "valueRowMarginLeft", valueRowMarginRight: "valueRowMarginRight", valueRowMarginTop: "valueRowMarginTop", valueRowVisible: "valueRowVisible", valueTextWhenMissingData: "valueTextWhenMissingData", valueTextUseSeriesColors: "valueTextUseSeriesColors", valueTextMarginBottom: "valueTextMarginBottom", valueTextMarginLeft: "valueTextMarginLeft