/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { EventEmitter, Output, Component, Input } from '@angular/core';
import { Visibility_$type } from "igniteui-angular-core";
import { TransitionInSpeedType_$type } from './TransitionInSpeedType';
import { SeriesHitTestMode_$type } from './SeriesHitTestMode';
import { brushToString, stringToBrush, toPoint, fromPoint, fromRect, stringToColor, colorToString, ensureEnum, ensureBool, toSpinal, initializePropertiesFromCss, NamePatcher } from "igniteui-angular-core";
import { IgxRenderRequestedEventArgs } from './igx-render-requested-event-args';
import { delegateCombine, TypeRegistrar } from "igniteui-angular-core";
import { SeriesVisibleRangeMode_$type } from './SeriesVisibleRangeMode';
import { SeriesHighlightingMode_$type } from './SeriesHighlightingMode';
import { SeriesOutlineMode_$type } from './SeriesOutlineMode';
import { LegendItemBadgeMode_$type } from "igniteui-angular-core";
import { LegendItemBadgeShape_$type } from "igniteui-angular-core";
import * as i0 from "@angular/core";
//import { DataLegendSeriesContext, DataLegendSeriesContext_$type } from 'igniteui-core/DataLegendSeriesContext';
//import { DataLegendSeriesInfo, DataLegendSeriesInfo_$type } from 'igniteui-core/DataLegendSeriesInfo';
export const IgxSeriesComponent_PROVIDERS = [];
/**
 * Represents the base class for all IgxDataChartComponent series.
*/
export let IgxSeriesComponent = /*@__PURE__*/ (() => {
    class IgxSeriesComponent {
        constructor() {
            //@Input()
            //set opacity(value: number) {
            //    this.i.opacity = +value;
            //}
            //get opacity(): number {
            //    return this.i.opacity;
            //}
            //@Input()
            //set visibility(v: Visibility) {
            //    this.i.visibility = ensureEnum<Visibility>(Visibility_$type, v);
            //}
            //get visibility(): Visibility {
            //    return this.i.visibility;
            //}
            this._chartLevelData = null;
            this._dataSource = null;
            this._tooltipTemplate = null;
            this._tooltipContent = null;
            this._tooltipContainerTemplate = null;
            this._renderer = null;
            this.__p = null;
            this._hasUserValues = new Set();
            this._stylingContainer = null;
            this._stylingParent = null;
            this._inStyling = false;
            this._renderRequested = null;
            this._zoneRunner = null;
            if (this._styling) {
                NamePatcher.ensureStylablePatched(Object.getPrototypeOf(this));
            }
            this._implementation = this.createImplementation();
            this._implementation.externalObject = this;
            this.onImplementationCreated();
        }
        get i() {
            return this._implementation;
        }
        onImplementationCreated() {
        }
        createImplementation() {
            return null;
        }
        get seriesInternal() {
            return this.i;
        }
        ngOnInit() {
        }
        set name(value) {
            this.i.name = value;
        }
        get name() {
            return this.i.name;
        }
        /**
         * Gets or sets the legend used for the current series.
        */
        get legend() {
            if (this.i.legend != null)
                return this.i.legend.externalObject;
        }
        set legend(v) {
            if (v != undefined && v != null)
                this.i.legend = v.i;
        }
        provideData(data) {
            this._chartLevelData = data;
            this.updateDataSource();
        }
        onUpdateDataSource(dataSource) {
            return dataSource;
        }
        updateDataSource() {
            if (this._dataSource == null) {
                this.i.itemsSource = this.onUpdateDataSource(this._chartLevelData);
            }
            else {
                this.i.itemsSource = this.onUpdateDataSource(this._dataSource);
            }
        }
        set dataSource(value) {
            this._dataSource = value;
            this.updateDataSource();
            //console.log("setting axis data source: " + value)
        }
        get dataSource() {
            if (this._dataSource != null) {
                return this._dataSource;
            }
            return this.i.itemsSource;
        }
        bindAxes(axes) {
        }
        set tooltipTemplate(value) {
            this._tooltipTemplate = value;
            if (value == null) {
                if (this._tooltipContent !== null) {
                    this._tooltipContent.destroy();
                    this._tooltipContent = null;
                }
            }
            if (this._tooltipContent != null) {
                this._tooltipContent.instance.template = this._tooltipTemplate;
            }
            else {
                if (this.owner != null) {
                    this.owner._ensureTooltipCreated(this);
                }
            }
        }
        get tooltipTemplate() {
            return this._tooltipTemplate;
        }
        set tooltipContainerTemplate(value) {
            this._tooltipContainerTemplate = value;
            if (this._tooltipContent != null) {
                this._tooltipContent.instance.containerTemplate = this._tooltipContainerTemplate;
            }
        }
        get tooltipContainerTemplate() {
            return this._tooltipContainerTemplate;
        }
        _ensureTooltipCreated(createTooltip, createWrapper) {
            if (this._tooltipTemplate == null) {
                this.i.toolTip = null;
            }
            if (this._tooltipContent == null && this._tooltipTemplate != null) {
                let tooltip = createTooltip();
                if (tooltip == null) {
                    return;
                }
                this._tooltipContent = tooltip;
                tooltip.instance.template = this._tooltipTemplate;
                this.i.toolTip = createWrapper(tooltip.location.nativeElement);
            }
        }
        _ensureTooltipDestroyed() {
            if (this._tooltipContent !== null) {
                this._tooltipContent.destroy();
                this._tooltipContent = null;
            }
        }
        _provideRenderer(renderer) {
            this._renderer = renderer;
            this._zoneRunner = (act) => {
                if (renderer !== null) {
                    renderer._ngZone.run(act);
                }
                else {
                    act();
                }
            };
        }
        static _createFromInternal(internal) {
            if (!internal) {
                return null;
            }
            if (!internal.$type) {
                return null;
            }
            let name = internal.$type.name;
            let externalName = "Igx" + name + "Component";
            if (!TypeRegistrar.isRegistered(externalName)) {
                return null;
            }
            return TypeRegistrar.create(externalName);
        }
        /**
     * Gets unique key used to identify the series in data legend
    */
        get dataLegendKey() {
            return this.i.dataLegendKey;
        }
        /**
         * Gets whether the series is an annotation layer.
        *
        * ```ts
        * let isAnnotationLayer: boolean = this.series.isAnnotationLayer;
        * ```
        */
        get isAnnotationLayer() {
            return this.i.dc;
        }
        /**
         * Gets whether the series is an crosshair annotation layer.
        */
        get isAnnotationCrosshairLayer() {
            return this.i.c9;
        }
        /**
         * Gets whether the series is an callout annotation layer.
        */
        get isAnnotationCalloutLayer() {
            return this.i.c8;
        }
        /**
         * Gets whether the series is an annotation layer displayed only when hovering over the chart.
         * Crosshair Layer, Category Highlight Layer, Category Tooltip Layer, Item Tooltip Layer
        */
        get isAnnotationHoverLayer() {
            return this.i.db;
        }
        /**
         * Gets whether the series is final value annotation layer.
        */
        get isAnnotationFinalValue() {
            return this.i.da;
        }
        /**
         * Gets whether the current series is oriented vertically.
        *
        * ```ts
        * let isVertical: boolean = this.series.isVertical;
        * ```
        */
        get isVertical() {
            return this.i.isVertical;
        }
        /**
         * Gets whether the current series is a stack fragment.
        *
        * ```ts
        * let isFragment: boolean = this.series.isFragment;
        * ```
        */
        get isFragment() {
            return this.i.dv;
        }
        /**
         * Gets whether the current series shows an area or line shape.
        *
        * ```ts
        * let isAreaorLine: boolean = this.series.isAreaorLine;
        * ```
        */
        get isAreaOrLine() {
            return this.i.de;
        }
        /**
         * Gets whether the current series shows an area shape.
        */
        get isArea() {
            return this.i.dd;
        }
        /**
         * Gets whether the current series shows an area shape.
        */
        get hasValueAxis() {
            return this.i.c6;
        }
        /**
         * Gets whether the current series shows an area shape.
        */
        get isValueAxisInverted() {
            return this.i.ek;
        }
        /**
         * Gets whether the current series shows only line shapes.
        */
        get isLineOnly() {
            return this.i.d2;
        }
        /**
         * Gets whether the current series shows a line contour shape.
        */
        get isLineContour() {
            return this.i.d1;
        }
        /**
         * Gets whether the current series shows a spline shape.
        */
        get isSpline() {
            return this.i.eh;
        }
        /**
         * Gets whether the current series shows a column shape.
        */
        get isColumn() {
            return this.i.di;
        }
        /**
         * Gets whether the current series shows a horizontal column shape.
        */
        get isBar() {
            return this.i.dg;
        }
        /**
         * Gets whether the current series shows a waterfall column shape.
        */
        get isWaterfall() {
            return this.i.el;
        }
        /**
         * Gets whether the current series shows a polyline shape.
        */
        get isPolyline() {
            return this.i.d9;
        }
        /**
         * Gets whether the current series shows a polygon shape.
        */
        get isPolygon() {
            return this.i.d8;
        }
        /**
         * Gets whether the current series shows pixels.
        */
        get isPixel() {
            return this.i.d6;
        }
        /**
         * Gets whether the current series shows a pie shape.
        */
        get isPie() {
            return this.i.d5;
        }
        /**
         * Gets whether the current series shows a tile imagery.
        */
        get isTile() {
            return this.i.ej;
        }
        /**
         * Gets whether the current series shows step shapes.
        */
        get isStep() {
            return this.i.ei;
        }
        /**
         * Gets whether the current series shows interactive shape controls.
        */
        get isShapeControl() {
            return this.i.ef;
        }
        /**
         * Gets whether the current series is a polar type series.
        *
        * ```ts
        * let isPolar: boolean = this.series.isPolar;
        * ```
        */
        get isPolar() {
            return this.i.d7;
        }
        /**
         * Gets whether the current series is a scatter type series.
        *
        * ```ts
        * let isScatter: boolean = this.series.isScatter;
        * ```
        */
        get isScatter() {
            return this.i.ed;
        }
        /**
         * Gets whether the current series is a radial type series.
        *
        * ```ts
        * let isRadial: boolean = this.series.isRadial;
        * ```
        */
        get isRadial() {
            return this.i.eb;
        }
        /**
         * Gets whether the current series is a stacked type series.
        *
        * ```ts
        * let isStacked: boolean = this.series.isStacked;
        * ```
        */
        get isStacked() {
            return this.i.isStacked;
        }
        /**
         * Gets whether the current series is a financial type series.
        *
        * ```ts
        * let isFinancial: boolean = this.series.isFinancial;
        * ```
        */
        get isFinancial() {
            return this.i.dq;
        }
        /**
         * Gets whether the current series is a range type series.
        *
        * ```ts
        * let isRange: boolean = this.series.isRange;
        * ```
        */
        get isRange() {
            return this.i.ec;
        }
        /**
         * Gets whether the current series is a category type series.
        *
        * ```ts
        * let isCategory: boolean = this.series.isCategory;
        * ```
        */
        get isCategory() {
            return this.i.dh;
        }
        /**
         * Gets whether the current series is a geographic series.
        *
        * ```ts
        * let isGeographic: boolean = this.series.isGeographic;
        * ```
        */
        get isGeographic() {
            return this.i.dw;
        }
        /**
         * Gets whether the current series is a shape type series.
        */
        get isShape() {
            return this.i.ee;
        }
        /**
         * Gets whether the series is a value overlay.
        */
        get isValueOverlay() {
            return this.i.isValueOverlay;
        }
        /**
         * Gets whether the series has only marker as visuals
        */
        get hasOnlyMarkers() {
            return this.i.c4;
        }
        /**
         * Gets whether the series has financial OHLC/candlestick visuals
        */
        get isFinancialSeries() {
            return this.i.dt;
        }
        /**
         * Gets whether the series is financial overlay
        */
        get isFinancialOverlay() {
            return this.i.ds;
        }
        /**
         * Gets whether the series is financial indicator
        */
        get isFinancialIndicator() {
            return this.i.dr;
        }
        /**
         * Gets whether the series is financial waterfall
        */
        get isFinancialWaterfall() {
            return this.i.du;
        }
        /**
         * Gets whether the default crosshair behavior should be disabled if this series is present.
        *
        * `isDefaultCrosshairBehaviorDisabled` defaults to true for annotation layers. When not using annotaion layers, you can show crosshairs by setting the chart's `CrosshairVisibility` to true.
        *
        * ```ts
        * let isDefaultCrosshairBehaviorDisabled: boolean = this.series.isDefaultCrosshairBehaviorDisabled;
        * ```
        */
        get isDefaultCrosshairBehaviorDisabled() {
            return this.i.dk;
        }
        /**
         * Gets whether the default tooltip behavior should be disabled if this series is present.
        *
        * ```ts
        *  let isDefaultTooltipBehaviorDisabled: boolean = this.series.isDefaultTooltipBehaviorDisabled;
        * ```
        */
        get isDefaultTooltipBehaviorDisabled() {
            return this.i.dl;
        }
        /**
         * Returns whether the current series supports visual markers.
        *
        * ```ts
        * let hasMarkers: boolean = this.series.hasMarkers;
        * ```
        */
        get hasMarkers() {
            return this.i.hasMarkers;
        }
        /**
         * Gets if the series uses an index, which can be used to auto-assign it a color.
        *
        * ```ts
        * let isIndexed: boolean = this.series.isIndexed;
        * ```
        */
        get isIndexed() {
            return this.i.dz;
        }
        /**
         * Gets if the series should appear in any legends.
        *
        * ```ts
        * let isUsableInLegend: boolean = this.series.isUsableInLegend;
        * ```
        */
        get isUsableInLegend() {
            return this.i.isUsableInLegend;
        }
        /**
         * Gets or sets the legend item visibility for the current series object.
        *
        * The `LegendItemVisibilty` can be used to exclude only certain `IgxSeriesComponent` from the `IgxLegendComponent`.
        */
        get legendItemVisibility() {
            return this.i.p7;
        }
        set legendItemVisibility(v) {
            this.i.p7 = ensureEnum(Visibility_$type, v);
        }
        /**
         * Gets or sets the LegendItemBadgeTemplate property.
         * The legend item badge is created according to the LegendItemBadgeTemplate on-demand by
         * the series object itself.
        */
        get legendItemBadgeTemplate() {
            return this.i.legendItemBadgeTemplate;
        }
        set legendItemBadgeTemplate(v) {
            this.i.legendItemBadgeTemplate = v;
        }
        /**
         * Gets the actual legend item badge template used by the series.
        */
        get actualLegendItemBadgeTemplate() {
            return this.i.ne;
        }
        set actualLegendItemBadgeTemplate(v) {
            this.i.ne = v;
        }
        /**
         * Gets the effective legend badge outline for the current series.
        */
        get actualLegendItemBadgeOutline() {
            return brushToString(this.i.o5);
        }
        set actualLegendItemBadgeOutline(v) {
            this.i.o5 = stringToBrush(v);
        }
        /**
         * Gets the effective legend badge fill for the current series.
        */
        get actualLegendItemBadgeBrush() {
            return brushToString(this.i.o4);
        }
        set actualLegendItemBadgeBrush(v) {
            this.i.o4 = stringToBrush(v);
        }
        /**
         * Gets or sets the type of legend badge representing the current series in a legend.
         * This property will be ignored when the LegendItemTemplate/LegendItemBadgeTemplate property is set on the series
        */
        get legendItemBadgeShape() {
            return this.i.legendItemBadgeShape;
        }
        set legendItemBadgeShape(v) {
            this.i.legendItemBadgeShape = ensureEnum(LegendItemBadgeShape_$type, v);
        }
        /**
         * Gets or sets the mode of legend badge representing the current series in a legend.
         * This property will be ignored when the LegendItemTemplate/LegendItemBadgeTemplate property is set on the series
        */
        get legendItemBadgeMode() {
            return this.i.a9;
        }
        set legendItemBadgeMode(v) {
            this.i.a9 = ensureEnum(LegendItemBadgeMode_$type, v);
        }
        /**
         * Gets or sets the LegendItemTemplate property.
         * The legend item control content is created according to the LegendItemTemplate on-demand by
         * the series object itself.
        */
        get legendItemTemplate() {
            return this.i.legendItemTemplate;
        }
        set legendItemTemplate(v) {
            this.i.legendItemTemplate = v;
        }
        /**
         * Gets or sets the DiscreteLegendItemTemplate property.
         * The legend item control content is created according to the DiscreteLegendItemTemplate on-demand by
         * the series object itself.
        */
        get discreteLegendItemTemplate() {
            return this.i.nf;
        }
        set discreteLegendItemTemplate(v) {
            this.i.nf = v;
        }
        /**
         * Gets or sets the easing function used to morph the current series.
        *
        * The `TransitioninDuration` and `transitionEasingFunction` can be used to play animation when data is added or removed from a `IgxSeriesComponent`. To play an initial animation see `transitionInDuration`.
        *
        * ```ts
        * this.series.transitionEasingFunction =  EasingFunctions.cubicEase;
        * ```
        */
        get transitionEasingFunction() {
            return this.i.cf;
        }
        set transitionEasingFunction(v) {
            this.i.cf = v;
        }
        /**
         * Gets or sets the EasingFunction used to morph the current series during the initial transition.
        *
        * The `transitionInEasingFunction` can be used with `IsTransitionInEnabled` to cofigure the animation when a new datasource is loaded.
        *
        * ```ts
        * this.series.transitionInEasingFunction =  EasingFunctions.cubicEase;
        * ```
        */
        get transitionInEasingFunction() {
            return this.i.cg;
        }
        set transitionInEasingFunction(v) {
            this.i.cg = v;
        }
        /**
         * Gets or sets the duration of the current series's morph.
        *
        * The `transitionDuration` can be used to play animation when data is added or removed from a `IgxSeriesComponent`. To play an initial animation see `transitionInDuration`.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data"
        *     animateSeriesWhenAxisRangeChanges=true>
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         transitionInMode="accordionFromBottom"
        *         isTransitionInEnabled=true
        *         transitionInSpeedType="indexScaled"
        *         transitionDuration=500
        *         transitionInDuration=500>
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.transitionDuration = 500;
        * ```
        */
        get transitionDuration() {
            return this.i.ho;
        }
        set transitionDuration(v) {
            this.i.ho = +v;
        }
        get actualResolution() {
            return this.i.fv;
        }
        set actualResolution(v) {
            this.i.fv = +v;
        }
        /**
         * Gets or sets the current series object's rendering resolution.
        *
        * Setting the `resolution` on a Series to a higher value can help with performance, but it will lower the graphical fidelity of the line. As such, it can be increased up until the fidelity is unacceptable.
        *
        * ```html
        *  <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-line-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         resolution=1.5>
        *     </igx-line-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.resolution = 1.5;
        * ```
        */
        get resolution() {
            return this.i.gv;
        }
        set resolution(v) {
            this.i.gv = +v;
        }
        /**
         * Gets or sets the top margin to use when getting a visible axis range for the series.
        */
        get visibleRangeMarginTop() {
            return this.i.g6;
        }
        set visibleRangeMarginTop(v) {
            this.i.g6 = +v;
        }
        /**
         * Gets or sets the bottom margin to use when getting a visible axis range for the series.
        */
        get visibleRangeMarginBottom() {
            return this.i.g3;
        }
        set visibleRangeMarginBottom(v) {
            this.i.g3 = +v;
        }
        /**
         * Gets or sets the left margin to use when getting a visible axis range for the series.
        */
        get visibleRangeMarginLeft() {
            return this.i.g4;
        }
        set visibleRangeMarginLeft(v) {
            this.i.g4 = +v;
        }
        /**
         * Gets or sets the right margin to use when getting a visible axis range for the series.
        */
        get visibleRangeMarginRight() {
            return this.i.g5;
        }
        set visibleRangeMarginRight(v) {
            this.i.g5 = +v;
        }
        /**
         * Gets or sets the Title property.
         * The legend item control is created according to the Title on-demand by
         * the series object itself.
        *
        * The `IgxSeriesComponent` `title` may be used in tooltips and legends.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         showDefaultTooltip="true"
        *         title="InStock Items">
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.title = "InStock Items";
        * ```
        */
        get title() {
            return this.i.title;
        }
        set title(v) {
            this.i.title = v;
        }
        /**
         * Gets or sets the brush to use for the series.
        *
        * The `brush` along with the `outline` and `Negative Brush` can be used to affect the visuals of the `IgxSeriesComponent`.
        *
        * ```html
        * <igx-data-chart #chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-area-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         brush="red">
        *     </igx-area-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.brush = "red";
        * ```
        */
        get brush() {
            return brushToString(this.i.o7);
        }
        set brush(v) {
            this.i.o7 = stringToBrush(v);
        }
        /**
         * Gets the effective brush for the current series object.
        *
        * ```ts
        * let actualBrush: string = series.actualBrush;
        * ```
        */
        get actualBrush() {
            return brushToString(this.i.o3);
        }
        set actualBrush(v) {
            this.i.o3 = stringToBrush(v);
        }
        /**
         * Gets or sets the brush to use for the outline of the series.
         * Some series types, such as LineSeries, do not display outlines.  Therefore, this property does not affect some charts.
        *
        * The `outline` along with the `brush` and `NegativeBrush` can be used to affect the visuals of the `IgxSeriesComponent`.
        *
        * ```html
        * <igx-data-chart #chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-area-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         outline="red">
        *     </igx-area-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.brush = "red";
        * ```
        */
        get outline() {
            return brushToString(this.i.pc);
        }
        set outline(v) {
            this.i.pc = stringToBrush(v);
        }
        /**
         * Gets the effective outline for the current series object.
        *
        * ```ts
        * let actualOutline: string = series.ActualOutline;
        * ```
        */
        get actualOutline() {
            return brushToString(this.i.o6);
        }
        set actualOutline(v) {
            this.i.o6 = stringToBrush(v);
        }
        /**
         * Gets or sets the width of the current series object's line thickness.
        *
        * Depending on the `IgxSeriesComponent` type, this can be the main brush used, or just the outline. For example, when using a `IgxLineSeriesComponent` it will affect the thickness of the lines drawn, whereas when using a `IgxColumnSeriesComponent` it will affect the outer border thickness of the columns.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-line-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         thickness=5>
        *     </igx-line-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.thickness=5;
        * ```
        */
        get thickness() {
            return this.i.g1;
        }
        set thickness(v) {
            this.i.g1 = +v;
        }
        /**
         * Gets the effective Thickness for the current series object.
        */
        get actualThickness() {
            return this.i.fw;
        }
        set actualThickness(v) {
            this.i.fw = +v;
        }
        /**
         * Gets actual highlighting mode
        */
        get actualHighlightingMode() {
            return this.i.bk;
        }
        set actualHighlightingMode(v) {
            this.i.bk = ensureEnum(SeriesHighlightingMode_$type, v);
        }
        /**
         * Gets actual highlighting fade opacity
        */
        get actualHighlightingFadeOpacity() {
            return this.i.ft;
        }
        set actualHighlightingFadeOpacity(v) {
            this.i.ft = +v;
        }
        /**
         * Gets or sets the target opacity to fade to for fade style highlighting.
        */
        get highlightingFadeOpacity() {
            return this.i.gr;
        }
        set highlightingFadeOpacity(v) {
            this.i.gr = +v;
        }
        /**
         * Gets or sets whether the ActualLegend is FinancialLegend or normal Legend.
        */
        get isActualLegendFinancial() {
            return this.i.c7;
        }
        set isActualLegendFinancial(v) {
            this.i.c7 = ensureBool(v);
        }
        /**
         * Gets or sets whether the component level highlight mode is ignored.
        */
        get isComponentHighlightingModeIgnored() {
            return this.i.dj;
        }
        set isComponentHighlightingModeIgnored(v) {
            this.i.dj = ensureBool(v);
        }
        /**
         * Gets or sets whether highlighting should be enabled for this series, if this type of series supports highlighting.
        *
        * ```html
        * <igx-data-chart #chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         isHighlightEnabled="true">
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.isHighlightingEnabled = true;
        * ```
        */
        get isHighlightingEnabled() {
            return this.i.dx;
        }
        set isHighlightingEnabled(v) {
            this.i.dx = ensureBool(v);
        }
        /**
         * Gets or sets whether this series should suppress it's auto callouts
        */
        get shouldHideAutoCallouts() {
            return this.i.er;
        }
        set shouldHideAutoCallouts(v) {
            this.i.er = ensureBool(v);
        }
        /**
         * Gets or sets whether drop shadow should be enabled for this series.
        *
        * `isDropShadowEnabled` is used to decide whether drop shadow should be enabled for this series.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-line-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         isDropShadowEnabled=true>
        *     </igx-line-series>
        *     </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.isDropShadowEnabled = true;
        * ```
        */
        get isDropShadowEnabled() {
            return this.i.dn;
        }
        set isDropShadowEnabled(v) {
            this.i.dn = ensureBool(v);
        }
        /**
         * Gets or sets the shadow blur.
         * This property is ignored when
         * Series.UseSingleShadow is set to true.
        *
        * `shadowBlur` can be set in conjection with `isDropShadowEnabled` to further define the drop shadow effect.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         isDropShadowEnabled="true"
        *         shadowBlur="7"
        *         shadowColor="blue">
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.shadowBlur = 7;
        * ```
        */
        get shadowBlur() {
            return this.i.gy;
        }
        set shadowBlur(v) {
            this.i.gy = +v;
        }
        /**
         * Gets or sets the drop shadow color.
        *
        * `shadowColor` can be set in conjection with `isDropShadowEnabled` to further define the drop shadow effect.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         isDropShadowEnabled="true"
        *         shadowBlur="7"
        *         shadowColor="blue">
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.shadowColor = "blue";
        * ```
        */
        get shadowColor() {
            return colorToString(this.i.pf);
        }
        set shadowColor(v) {
            this.i.pf = stringToColor(v);
        }
        /**
         * Gets or sets whether drop shadow is applied to the whole series visual or to each of the individual shapes forming the series.
         * When this property is set to true, no
         * Series.ShadowBlur is applied.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-line-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         isDropShadowEnabled=true
        *         markerType="circle"
        *         useSingleShadow=true>
        *     </igx-line-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.useSingleShadow = true;
        * ```
        */
        get useSingleShadow() {
            return this.i.e9;
        }
        set useSingleShadow(v) {
            this.i.e9 = ensureBool(v);
        }
        /**
         * Gets or sets the drop shadow x-offset.
        *
        * `shadowOffsetX` can be set in conjection with `isDropShadowEnabled` to further define the drop shadow effect.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         isDropShadowEnabled="true"
        *         shadowOffsetX="10"
        *         shadowOffsetY="10">
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.shadowOffsetX = 10;
        * ```
        */
        get shadowOffsetX() {
            return this.i.gz;
        }
        set shadowOffsetX(v) {
            this.i.gz = +v;
        }
        /**
         * Gets or sets the drop shadow y-offset.
        *
        * `shadowOffsetY` can be set in conjection with `isDropShadowEnabled` to further define the drop shadow effect.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         isDropShadowEnabled="true"
        *         shadowOffsetX="10"
        *         shadowOffsetY="10">
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.shadowOffsetY = 10;
        * ```
        */
        get shadowOffsetY() {
            return this.i.g0;
        }
        set shadowOffsetY(v) {
            this.i.g0 = +v;
        }
        /**
         * Gets or sets the opacity applied to the area fill visual.
         * This property only applies to series that have area visual.
        *
        * ```html
        * <igx-data-chart #chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-area-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         areaFillOpacity=.5>
        *     </igx-area-series>
        * </igx-data-chart>
        * ```
        */
        get areaFillOpacity() {
            return this.i.f1;
        }
        set areaFillOpacity(v) {
            this.i.f1 = +v;
        }
        /**
         * Gets the actual opacity applied to the area fill visual.
        *
        * ```ts
        * let actualFillOpacity: number = series.actualAreaFillOpacity;
        * ```
        */
        get actualAreaFillOpacity() {
            return this.i.fs;
        }
        set actualAreaFillOpacity(v) {
            this.i.fs = +v;
        }
        /**
         * Gets or sets the opacity applied to the fill of the markers.
         * This property only applies to series that have area visual.
        */
        get markerFillOpacity() {
            return this.i.gs;
        }
        set markerFillOpacity(v) {
            this.i.gs = +v;
        }
        /**
         * Gets the actual opacity applied to the fill of the markers.
        */
        get actualMarkerFillOpacity() {
            return this.i.fu;
        }
        set actualMarkerFillOpacity(v) {
            this.i.fu = +v;
        }
        /**
         * Gets if the default tooltip has been selected for display.
        *
        * To use the default tooltip set `showDefaultTooltip` to true.
        *
        * ```ts
        * let isDefaultToolTipSelected: boolean = this.series.isDefaultToolTipSelected;
        * ```
        */
        get isDefaultToolTipSelected() {
            return this.i.dm;
        }
        set isDefaultToolTipSelected(v) {
            this.i.dm = ensureBool(v);
        }
        /**
         * Gets or sets whether default tooltip will be shown.
        *
        * The default tooltips display all the information relevant to the particular series item (series title, data values, axis values etc.) and are styled to match the series' style. When using default tooltips, you should also set the series `title`.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         showDefaultTooltip="true"
        *         title="InStock Items">
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.showDefaultTooltip ="true";
        * ```
        */
        get showDefaultTooltip() {
            return this.i.et;
        }
        set showDefaultTooltip(v) {
            this.i.et = ensureBool(v);
        }
        /**
         * Gets or sets the visible range mode to use.
        */
        get visibleRangeMode() {
            return this.i.b4;
        }
        set visibleRangeMode(v) {
            this.i.b4 = ensureEnum(SeriesVisibleRangeMode_$type, v);
        }
        /**
         * Gets or sets the outline mode to use for the series.
        */
        get outlineMode() {
            return this.i.bt;
        }
        set outlineMode(v) {
            this.i.bt = ensureEnum(SeriesOutlineMode_$type, v);
        }
        /**
         * Gets or sets the duration of the current series's transition in morph.
        *
        * The `transitionInDuration` can be used with `IsTransitionInEnabled` to cofigure the animation when a new datasource is loaded.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         transitionInMode="accordionFromBottom"
        *         isTransitionInEnabled=true
        *         transitionInSpeedType="indexScaled"
        *         transitionDuration=500
        *         transitionInDuration=500>
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.transitionDuration = 500;
        * ```
        */
        get transitionInDuration() {
            return this.i.hp;
        }
        set transitionInDuration(v) {
            this.i.hp = +v;
        }
        /**
         * Gets or sets the duration of the current series's transition in morph.
        *
        * The `transitionInSpeedType` can be used with `IsTransitionInEnabled` to cofigure the animation when a new datasource is loaded.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *         #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-column-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         valueMemberPath="value"
        *         transitionInMode="accordionFromBottom"
        *         isTransitionInEnabled=true
        *         transitionInSpeedType="indexScaled"
        *         transitionInDuration=500>
        *     </igx-column-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.transitionInSpeedType = TransitionInSpeedType.IndexScaled;
        * ```
        */
        get transitionInSpeedType() {
            return this.i.ca;
        }
        set transitionInSpeedType(v) {
            this.i.ca = ensureEnum(TransitionInSpeedType_$type, v);
        }
        /**
         * Gets or sets the whether the chart reacts to mouse move events.
        */
        get mouseOverEnabled() {
            return this.i.em;
        }
        set mouseOverEnabled(v) {
            this.i.em = ensureBool(v);
        }
        /**
         * Gets or sets the coercion methods to use when loading data from data sources.
         * Should be specified before setting any member paths, if being used. Setting it later
         * will not cause data to be reimported into the chart.
        *
        * ```html
        *  <igx-data-chart
        *       [dataSource]="data"
        *      >
        *       <igx-category-x-axis
        *         label="label"
        *         #xAxis>
        *       </igx-category-x-axis>
        *       <igx-numeric-y-axis
        *         #yAxis>
        *       </igx-numeric-y-axis>
        *       <igx-line-series
        *       [xAxis]="xAxis"
        *       [yAxis]="yAxis"
        *       valueMemberPath="value">
        *      </igx-line-series>
        *        <igx-line-series
        *         [xAxis]="xAxis"
        *         [yAxis]="yAxis"
        *         [coercionMethods]= cMethods
        *         valueMemberPath="value!ValueCoercion">
        *        </igx-line-series>
        *     </igx-data-chart>
        * ```
        *
        * &lt;-- position: content member-->
        *
        * ```ts
        * cMethods: any = {
        *     ValueCoercion: function(value:number): number {return value+2;}
        *  }
        * ```
        */
        get coercionMethods() {
            return this.i.coercionMethods;
        }
        set coercionMethods(v) {
            this.i.coercionMethods = v;
        }
        /**
         * Gets or sets whether the series should expect that properties in its items source may be functions that need to be
         * evaluated to yield their value. This defaults to false, as there will be a subtle performance impact to using this feature.
         * This value must be set before assigning an item's source to take effect.
        *
        * `expectFunctions` is used to decide whether the series should expect that its data source members need to be called as functions to get their values.
        *
        * ```html
        * <igx-data-chart
        *     [dataSource]="data">
        *     <igx-category-x-axis
        *     label="label"
        *     #xAxis>
        *     </igx-category-x-axis>
        *     <igx-numeric-y-axis
        *     #yAxis>
        *     </igx-numeric-y-axis>
        *     <igx-line-series
        *     [xAxis]="xAxis"
        *     [yAxis]="yAxis"
        *     expectFunctions=true
        *     valueMemberPath="MyFunction">
        *     </igx-line-series>
        * </igx-data-chart>
        * ```
        *
        * ```ts
        * this.series.expectFunctions=true;
        * ```
        */
        get expectFunctions() {
            return this.i.expectFunctions;
        }
        set expectFunctions(v) {
            this.i.expectFunctions = ensureBool(v);
        }
        /**
         * Method of hit testing to use when pointing to items in this series.
        *
        * The `hitTestMode` can be set to either:
        *
        * -   `Auto`: automatically decide the appropriate hit test mode for the series.
        * -   `ColorEncoded`: use a color encoded off screen buffer for hit testing. Should always be O(1) time for determining a hit series. This increases frame render time and memory usage, however. Consider using this if hit testing time is degrading performance.
        * -   `Computational`: use a computational based approach to determine whether the series has been hit. This uses loose bounding boxes, in some cases, and can range in time complexity between O(1) and O(log n) to find a hit. This decreases frame render time compared to color encoded
        *
        * ```ts
        * this.series.hitTestMode = SeriesHitTestMode.Computational;
        * ```
        */
        get hitTestMode() {
            return this.i.bq;
        }
        set hitTestMode(v) {
            this.i.bq = ensureEnum(SeriesHitTestMode_$type, v);
        }
        /**
         * Resolved method of hit testing to use when pointing to items in the chart.
        *
        * ```ts
        * let hitTestMode: SeriesHitTestMode = this.series.actualHitTestMode;
        * ```
        */
        get actualHitTestMode() {
            return this.i.bo;
        }
        set actualHitTestMode(v) {
            this.i.bo = ensureEnum(SeriesHitTestMode_$type, v);
        }
        /**
         * Overridden by derived series classes to indicate when negative colors are supported or not.
        */
        get isNegativeColorSupported() {
            return this.i.d4;
        }
        /**
         * Overridden by derived series classes to indicate when markerless display is preferred or not.
        */
        get isMarkerlessDisplayPreferred() {
            return this.i.d3;
        }
        /**
         * The final value of this series.
        */
        get finalValue() {
            return this.i.f3;
        }
        set finalValue(v) {
            this.i.f3 = +v;
        }
        /**
         * The percent change from the beginning to the end of this series.
        */
        get percentChange() {
            return this.i.gu;
        }
        set percentChange(v) {
            this.i.gu = +v;
        }
        /**
         * Gets the text that is displayed for the Open label in the tooltip.
        */
        get actualOpenLabel() {
            return this.i.ij;
        }
        /**
         * Gets the text that is displayed for the Close label in the tooltip.
        */
        get actualCloseLabel() {
            return this.i.h7;
        }
        /**
         * Gets the text that is displayed for the High label in the tooltip.
        */
        get actualHighLabel() {
            return this.i.h8;
        }
        /**
         * Gets the text that is displayed for the Low label in the tooltip.
        */
        get actualLowLabel() {
            return this.i.ih;
        }
        /**
         * Gets the text that is displayed for the Volume label in the tooltip.
        */
        get actualVolumeLabel() {
            return this.i.iq;
        }
        /**
         * Gets the text that is displayed for the Value label in the tooltip.
        */
        get actualValueLabel() {
            return this.i.ip;
        }
        /**
         * Gets the text that is displayed for the Value label in the tooltip.
        */
        get actualRadiusLabel() {
            return this.i.il;
        }
        get opacity() {
            return this.i.opacity;
        }
        set opacity(v) {
            this.i.opacity = +v;
        }
        get visibility() {
            return this.i.visibility;
        }
        set visibility(v) {
            this.i.visibility = ensureEnum(Visibility_$type, v);
        }
        findByName(name) {
            if (this.findEphemera) {
                if (name && name.indexOf("@@e:") == 0) {
                    return this.findEphemera(name);
                }
            }
            if (this.legend && this.legend.name && this.legend.name == name) {
                return this.legend;
            }
            return null;
        }
        get hasUserValues() {
            return this._hasUserValues;
        }
        __m(propertyName) {
            if (!this._inStyling) {
                this._hasUserValues.add(propertyName);
            }
        }
        _styling(container, component, parent) {
            if (this._inStyling) {
                return;
            }
            this._inStyling = true;
            this._stylingContainer = container;
            this._stylingParent = component;
            let genericPrefix = "";
            let typeName = this.i.$type.name;
            if (typeName.indexOf("Xam") === 0) {
                typeName = typeName.substring(3);
            }
            genericPrefix = toSpinal("SeriesComponent");
            let additionalPrefixes = [];
            let prefix = toSpinal(typeName);
            additionalPrefixes.push(prefix + "-");
            let b = this.i.$type.baseType;
            while (b && b.name != "Object" &&
                b.name != "Base" &&
                b.name != "Control" &&
                b.Name != "DependencyObject" &&
                b.Name != "FrameworkElement") {
                typeName = b.name;
                if (typeName.indexOf("Xam") === 0) {
                    typeName = typeName.substring(3);
                }
                let basePrefix = toSpinal(typeName);
                additionalPrefixes.push(basePrefix + "-");
                b = b.baseType;
            }
            if (parent) {
                let parentTypeName = parent.i.$type.name;
                if (parentTypeName.indexOf("Xam") === 0) {
                    parentTypeName = parentTypeName.substring(3);
                }
                let parentPrefix = toSpinal(parentTypeName);
                additionalPrefixes.push(parentPrefix + "-" + genericPrefix + "-");
                additionalPrefixes.push(parentPrefix + "-" + prefix + "-");
            }
            initializePropertiesFromCss(container, this, genericPrefix + "-", this.hasUserValues, false, additionalPrefixes);
            if (this._otherStyling) {
                this._otherStyling(container, component, parent);
            }
            this._inStyling = false;
        }
        /**
     * Gets the brush for tooltip labels.
    
    */
        resolveTooltipBrush() {
            let iv = this.i.jt();
            return (iv);
        }
        getItemValue(item, memberPathName) {
            let iv = this.i.hy(item, memberPathName);
            return (iv);
        }
        /**
         * Gets the precise item index, if possible, based on the closeness to the previous or next whole integer. If the series cannot provide this information, GetExactItemIndex will return the same integer value as GetItemIndex.
        
        * @param world  * The world position for which to return the index.
        *
        * ```ts
        * let index: number = this.series.getExactItemIndex({x:.5,y:.5});
        * ```
        */
        getExactItemIndex(world) {
            let iv = this.i.f7(toPoint(world));
            return (iv);
        }
        /**
         * Gets the item index associated with the specified world position
        
        *
        * ```ts
        * let index: number = this.series.getItemIndex({x:.5,y:.5});
        * ```
        */
        getItemIndex(world) {
            let iv = this.i.hf(toPoint(world));
            return (iv);
        }
        /**
         * Gets the item that is the best match for the specified world coordinates.
        
        * @param world  * The world coordinates to use.
        *
        * ```ts
        * let item: number = this.series.getItem({x:.5,y:.5});
        * ```
        */
        getItem(world) {
            let iv = this.i.hv(toPoint(world));
            return (iv);
        }
        getPreviousOrExactIndex(world, skipUnknowns) {
            let iv = this.i.hl(toPoint(world), skipUnknowns);
            return (iv);
        }
        getNextOrExactIndex(world, skipUnknowns) {
            let iv = this.i.hj(toPoint(world), skipUnknowns);
            return (iv);
        }
        getSeriesValue(world, useInterpolation, skipUnknowns) {
            let iv = this.i.gl(toPoint(world), useInterpolation, skipUnknowns);
            return (iv);
        }
        getSeriesValuePosition(world, useInterpolation, skipUnknowns) {
            let iv = this.i.pq(toPoint(world), useInterpolation, skipUnknowns);
            return fromPoint(iv);
        }
        /**
         * If possible, will return the best available value bounding box within the series that has the best value match for the world position provided.
        
        * @param world  * The world coordinate for which to get a value bounding box for
        *
        * ```ts
        * let box: IgxRect = this.series.getSeriesValueBoundingBox({x:.8,y:.8});
        * ```
        */
        getSeriesValueBoundingBox(world) {
            let iv = this.i.pz(toPoint(world));
            return fromRect(iv);
        }
        /**
         * If possible, will return the best available value marker bounding box within the series that has the best value match for the world position provided.
        
        * @param world  * The world coordinates for which to get a value marker bounding box for
        *
        * ```ts
        * let box: IgxRect = this.series.getSeriesValueMarkerBoundingBox({x:.8,y:.8});
        * ```
        */
        getSeriesValueMarkerBoundingBox(world) {
            let iv = this.i.p1(toPoint(world));
            return fromRect(iv);
        }
        getSeriesHighValue(world, useInterpolation, skipUnknowns) {
            let iv = this.i.gh(toPoint(world), useInterpolation, skipUnknowns);
            return (iv);
        }
        getSeriesHighValuePosition(world, useInterpolation, skipUnknowns) {
            let iv = this.i.pm(toPoint(world), useInterpolation, skipUnknowns);
            return fromPoint(iv);
        }
        getSeriesLowValue(world, useInterpolation, skipUnknowns) {
            let iv = this.i.gj(toPoint(world), useInterpolation, skipUnknowns);
            return (iv);
        }
        getSeriesLowValuePosition(world, useInterpolation, skipUnknowns) {
            let iv = this.i.po(toPoint(world), useInterpolation, skipUnknowns);
            return fromPoint(iv);
        }
        getSeriesValuePositionFromSeriesPixel(mouse, useInterpolation, skipUnknowns) {
            let iv = this.i.pr(toPoint(mouse), useInterpolation, skipUnknowns);
            return fromPoint(iv);
        }
        getSeriesValueFromSeriesPixel(mouse, useInterpolation, skipUnknowns) {
            let iv = this.i.gm(toPoint(mouse), useInterpolation, skipUnknowns);
            return (iv);
        }
        /**
         * For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned.
        
        *
        * ```ts
        * let span: number = this.series.getItemSpan();
        * ```
        */
        getItemSpan() {
            let iv = this.i.gc();
            return (iv);
        }
        /**
         * Hides any internal tooltips presented by the series, if any.
        
        */
        hideToolTips() {
            this.i.lg();
        }
        /**
         * Hides any internal tooltips presented by the series, if any.
        
        */
        hideToolTipsImmediate() {
            this.i.lh();
        }
        /**
         * Converts a point from coordinates within the series plot area to a world position within axis space.
        
        * @param seriesPoint  * The pixel location within the plot area of the series.
        *
        * ```ts
        * this.series.toWorldPosition({x:500,y:500});
        * ```
        */
        toWorldPosition(seriesPoint) {
            let iv = this.i.pt(toPoint(seriesPoint));
            return fromPoint(iv);
        }
        /**
         * Converts a point from world coordinates to coordinates within the viewport of the series.
        
        * @param world  * The world position from which to convert.
        *
        * ```ts
        * let pt: IgxPoint = this.series.fromWorldPosition({x:.5,y:.5});
        * ```
        */
        fromWorldPosition(world) {
            let iv = this.i.pl(toPoint(world));
            return fromPoint(iv);
        }
        /**
         * Requests that the provided item should be brought into view if possible.
        
        * @param item  * The item to attempt to bring into view.
        *
        * ```ts
        * this.series.scrollIntoView(dataItem);
        * ```
        */
        scrollIntoView(item) {
            let iv = this.i.eo(item);
            return (iv);
        }
        /**
         * Renders the series.
        
        * @param animate  * True if the change should be animated.
        *
        * ```ts
        * this.series.renderSeries(true);
        * ```
        */
        renderSeries(animate) {
            this.i.ml(animate);
        }
        /**
         * Gets the effective viewport, adjusted to account for margins and other factors.
        
        */
        getEffectiveViewport() {
            let iv = this.i.getEffectiveViewport();
            return fromRect(iv);
        }
        /**
         * Removes all alternate views of this series.
        
        */
        removeAllAlternateViews() {
            this.i.mf();
        }
        /**
         * Removes an alternate view of this series.
        
        * @param viewIdentifier  * The string identifier for the view to remove.
        */
        removeAlternateView(viewIdentifier) {
            this.i.mh(viewIdentifier);
        }
        /**
         * Called to notify about changes to indexed-based properties, e.g. Brushes, Outlines, MarkerBrushes, MarkerOutlines and refresh series
        
        */
        notifyIndexedPropertiesChanged() {
            this.i.ln();
        }
        /**
         * Notifies the series that a visual property has changed, requiring a visual update.
        
        */
        notifyVisualPropertiesChanged() {
            this.i.lu();
        }
        /**
         * Replays the assigned transition in animation, if any.
        
        *
        * ```ts
        * this.series.replayTransitionIn();
        * ```
        */
        replayTransitionIn() {
            this.i.mo();
        }
        /**
         * Call to null out the axes of the series;
        
        */
        removeAxes() {
            this.i.mi();
        }
        /**
         * Simulates a pointer hover over the series surface.
        
        * @param point  * The pointer position relative to the series viewport over which to hover.
        *
        * When tooltips are enabled, `simulateHover` can be used to automatically display the tooltip over a particular series item.
        *
        * ```ts
        * this.series.simulateHover({x:250,y:250});
        * ```
        */
        simulateHover(point) {
            this.i.mt(toPoint(point));
        }
        /**
         * Called when this series' Style is updated.
        
        */
        styleUpdated() {
            this.i.mv();
        }
        setNegativeColors(negativeBrush, negativeOutline) {
            this.i.mq(stringToBrush(negativeBrush), stringToBrush(negativeOutline));
        }
        /**
         * Moves the cursor point to the provided world position. Some series may react to the current cursor position.
        
        * @param point  * The cursor point, in world coordinates.
        *
        * `moveCursorPoint` can be used on annotation layers to programitically show the annotation at the given point.
        *
        * ```ts
        * this.crosshair.moveCursorPoint({x:.5,y:.5});
        * ```
        */
        moveCursorPoint(point) {
            this.i.lk(toPoint(point));
        }
        /**
         * This event is raised every time a render has been requested from a series.
        */
        get renderRequested() {
            if (this._renderRequested == null) {
                this._renderRequested = new EventEmitter();
                this.i.renderRequested = delegateCombine(this.i.renderRequested, (o, e) => {
                    let outerArgs = new IgxRenderRequestedEventArgs();
                    outerArgs._provideImplementation(e);
                    if (this.beforeRenderRequested) {
                        this.beforeRenderRequested(this, outerArgs);
                    }
                    this._renderRequested.emit({
                        sender: this,
                        args: outerArgs
                    });
                });
            }
            return this._renderRequested;
        }
        _runInZone(act) {
            if (this._zoneRunner != null) {
                this._zoneRunner(act);
            }
            else {
                act();
            }
        }
    }
    IgxSeriesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: IgxSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    IgxSeriesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.14", type: IgxSeriesComponent, selector: "ng-component", inputs: { name: "name", legend: "legend", dataSource: "dataSource", tooltipTemplate: "tooltipTemplate", tooltipContainerTemplate: "tooltipContainerTemplate", legendItemVisibility: "legendItemVisibility", legendItemBadgeTemplate: "legendItemBadgeTemplate", actualLegendItemBadgeTemplate: "actualLegendItemBadgeTemplate", actualLegendItemBadgeOutline: "actualLegendItemBadgeOutline", actualLegendItemBadgeBrush: "actualLegendItemBadgeBrush", legendItemBadgeShape: "legendItemBadgeShape", legendItemBadgeMode: "legendItemBadgeMode", legendItemTemplate: "legendItemTemplate", discreteLegendItemTemplate: "discreteLegendItemTemplate", transitionEasingFunction: "transitionEasingFunction", transitionInEasingFunction: "transitionInEasingFunction", transitionDuration: "transitionDuration", actualResolution: "actualResolution", resolution: "resolution", visibleRangeMarginTop: "visibleRangeMarginTop", visibleRangeMarginBottom: "visibleRangeMarginBottom", visibleRangeMarginLeft: "visibleRangeMarginLeft", visibleRangeMarginRight: "visibleRangeMarginRight", title: "title", brush: "brush", actualBrush: "actualBrush", outline: "outline", actualOutline: "actualOutline", thickness: "thickness", actualThickness: "actualThickness", actualHighlightingMode: "actualHighlightingMode", actualHighlightingFadeOpacity: "actualHighlightingFadeOpacity", highlightingFadeOpacity: "highlightingFadeOpacity", isActualLegendFinancial: "isActualLegendFinancial", isComponentHighlightingModeIgnored: "isComponentHighlightingModeIgnored", isHighlightingEnabled: "isHighlightingEnabled", shouldHideAutoCallouts: "shouldHideAutoCallouts", isDropShadowEnabled: "isDropShadowEnabled", shadowBlur: "shadowBlur", shadowColor: "shadowColor", useSingleShadow: "useSingleShadow", shadowOffsetX: "shadowOffsetX", shadowOffsetY: "shadowOffsetY", areaFillOpacity: "areaFillOpacity", actualAreaFillOpacity: "actualAreaFillOpacity", markerFillOpacity: "markerFillOpacity", actualMarkerFillOpacity: "actualMarkerFillOpacity", isDefaultToolTipSelected: "isDefaultToolTipSelected", showDefaultTooltip: "showDefaultTooltip", visibleRangeMode: "visibleRangeMode", outlineMode: "outlineMode", transitionInDuration: "transitionInDuration", transitionInSpeedType: "transitionInSpeedType", mouseOverEnabled: "mouseOverEnabled", coercionMethods: "coercionMethods", expectFunctions: "expectFunctions", hitTestMode: "hitTestMode", actualHitTestMode: "actualHitTestMode", finalValue: "finalValue", percentChange: "percentChange", opacity: "opacity", visibility: "visibility" }, outputs: { renderRequested: "renderRequested" }, ngImport: i0, template: ``, isInline: true });
    return IgxSeriesComponent;
})();
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImport: i0, type: IgxSeriesComponent, decorators: [{
            type: Component,
            args: [{
                    template: ``,
                }]
        }], ctorParameters: function () { return []; }, propDecorators: { name: [{
                type: Input
            }], legend: [{
                type: Input
            }], dataSource: [{
                type: Input
            }], tooltipTemplate: [{
                type: Input
            }], tooltipContainerTemplate: [{
                type: Input
            }], legendItemVisibility: [{
                type: Input
            }], legendItemBadgeTemplate: [{
                type: Input
            }], actualLegendItemBadgeTemplate: [{
                type: Input
            }], actualLegendItemBadgeOutline: [{
                type: Input
            }], actualLegendItemBadgeBrush: [{
                type: Input
            }], legendItemBadgeShape: [{
                type: Input
            }], legendItemBadgeMode: [{
                type: Input
            }], legendItemTemplate: [{
                type: Input
            }], discreteLegendItemTemplate: [{
                type: Input
            }], transitionEasingFunction: [{
                type: Input
            }], transitionInEasingFunction: [{
                type: Input
            }], transitionDuration: [{
                type: Input
            }], actualResolution: [{
                type: Input
            }], resolution: [{
                type: Input
            }], visibleRangeMarginTop: [{
                type: Input
            }], visibleRangeMarginBottom: [{
                type: Input
            }], visibleRangeMarginLeft: [{
                type: Input
            }], visibleRangeMarginRight: [{
                type: Input
            }], title: [{
                type: Input
            }], brush: [{
                type: Input
            }], actualBrush: [{
                type: Input
            }], outline: [{
                type: Input
            }], actualOutline: [{
                type: Input
            }], thickness: [{
                type: Input
            }], actualThickness: [{
                type: Input
            }], actualHighlightingMode: [{
                type: Input
            }], actualHighlightingFadeOpacity: [{
                type: Input
            }], highlightingFadeOpacity: [{
                type: Input
            }], isActualLegendFinancial: [{
                type: Input
            }], isComponentHighlightingModeIgnored: [{
                type: Input
            }], isHighlightingEnabled: [{
                type: Input
            }], shouldHideAutoCallouts: [{
                type: Input
            }], isDropShadowEnabled: [{
                type: Input
            }], shadowBlur: [{
                type: Input
            }], shadowColor: [{
                type: Input
            }], useSingleShadow: [{
                type: Input
            }], shadowOffsetX: [{
                type: Input
            }], shadowOffsetY: [{
                type: Input
            }], areaFillOpacity: [{
                type: Input
            }], actualAreaFillOpacity: [{
                type: Input
            }], markerFillOpacity: [{
                type: Input
            }], actualMarkerFillOpacity: [{
                type: Input
            }], isDefaultToolTipSelected: [{
                type: Input
            }], showDefaultTooltip: [{
                type: Input
            }], visibleRangeMode: [{
                type: Input
            }], outlineMode: [{
                type: Input
            }], transitionInDuration: [{
                type: Input
            }], transitionInSpeedType: [{
                type: Input
            }], mouseOverEnabled: [{
                type: Input
            }], coercionMethods: [{
                type: Input
            }], expectFunctions: [{
                type: Input
            }], hitTestMode: [{
                type: Input
            }], actualHitTestMode: [{
                type: Input
            }], finalValue: [{
                type: Input
            }], percentChange: [{
                type: Input
            }], opacity: [{
                type: Input
            }], visibility: [{
                type: Input
            }], renderRequested: [{
                type: Output
            }] } });
