igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
2,975 lines • 105 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { Visibility_$type } from "igniteui-webcomponents-core";
import { TransitionInSpeedType_$type } from './TransitionInSpeedType';
import { SeriesHitTestMode_$type } from './SeriesHitTestMode';
import { doubleCollectionToString, fromDoubleCollection, toDoubleCollection, brushToString, stringToBrush, toPoint, fromPoint, toRect, fromRect, stringToColor, colorToString, ensureEnum, ensureBool, toSpinal, fromSpinal, getAllPropertyNames, enumToString, initializePropertiesFromCss, NamePatcher, arrayFindByName } from "igniteui-webcomponents-core";
import { IgcRenderRequestedEventArgs } from './igc-render-requested-event-args';
import { delegateCombine, TypeRegistrar, delegateRemove } from "igniteui-webcomponents-core";
import { IgcHTMLElement } from "igniteui-webcomponents-core";
import { SeriesVisibleRangeMode_$type } from './SeriesVisibleRangeMode';
import { SeriesHighlightingMode_$type } from './SeriesHighlightingMode';
import { SeriesOutlineMode_$type } from './SeriesOutlineMode';
import { LegendItemBadgeMode_$type } from "igniteui-webcomponents-core";
import { LegendItemBadgeShape_$type } from "igniteui-webcomponents-core";
import { PenLineJoin_$type } from "igniteui-webcomponents-core";
import { PenLineCap_$type } from "igniteui-webcomponents-core";
import { IgcSeriesLayerCollection } from './igc-series-layer-collection';
import { SeriesLayerCollection as SeriesLayerCollection_internal } from './SeriesLayerCollection';
import { SeriesLayer } from './SeriesLayer';
import { SyncableObservableCollection$1 } from "igniteui-webcomponents-core";
import { TransitionOutSpeedType_$type } from './TransitionOutSpeedType';
import { SeriesHighlightedValuesDisplayMode_$type } from "igniteui-webcomponents-core";
import { IgcSeriesLayerPropertyOverlayCollection } from './igc-series-layer-property-overlay-collection';
import { SeriesLayerPropertyOverlayCollection as SeriesLayerPropertyOverlayCollection_internal } from './SeriesLayerPropertyOverlayCollection';
import { SeriesLayerPropertyOverlay } from './SeriesLayerPropertyOverlay';
import { SeriesSelectionMode_$type } from './SeriesSelectionMode';
import { IgcTransitionOutCompletedEventArgs } from './igc-transition-out-completed-event-args';
//import { DataLegendSeriesContext, DataLegendSeriesContext_$type } from 'igniteui-core/DataLegendSeriesContext';
//import { DataLegendSeriesInfo, DataLegendSeriesInfo_$type } from 'igniteui-core/DataLegendSeriesInfo';
/**
* Represents the base class for all IgxDataChartComponent series.
*/
var IgcSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcSeriesComponent, _super);
function IgcSeriesComponent() {
var _this = _super.call(this) || this;
//set opacity(value: number) {
// this.i.opacity = +value;
// this._a("opacity", this.i.opacity);
//}
//get opacity(): number {
// return this.i.opacity;
//}
//set visibility(v: Visibility) {
// this.i.visibility = ensureEnum<Visibility>(Visibility_$type, v);
// this._a("visibility", enumToString<Visibility>(Visibility_$type, this.i.visibility));
//}
//get visibility(): Visibility {
// return this.i.visibility;
//}
_this._chartLevelData = null;
_this._dataSource = null;
_this._chartLevelHighlightedData = null;
_this._highlightedDataSource = null;
_this._tooltipTemplate = null;
_this._tooltipContent = null;
_this._tooltipContainerTemplate = null;
_this._renderer = null;
_this._settingAttributes = false;
_this._attached = false;
_this._queuedSetAttributes = [];
_this._updatingFromAttribute = false;
_this._highlightedValuesExtraPropertyOverlays = null;
_this._layers = null;
_this._actualLayers = null;
_this.__p = null;
_this._hasUserValues = new Set();
_this._stylingContainer = null;
_this._stylingParent = null;
_this._inStyling = false;
_this._transitionOutCompleted = null;
_this._transitionOutCompleted_wrapped = null;
_this._renderRequested = null;
_this._renderRequested_wrapped = null;
NamePatcher.ensureStylablePatched(Object.getPrototypeOf(_this));
_this._implementation = _this.createImplementation();
_this._implementation.externalObject = _this;
_this.onImplementationCreated();
return _this;
}
Object.defineProperty(IgcSeriesComponent.prototype, "i", {
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype.onImplementationCreated = function () {
};
IgcSeriesComponent.prototype.createImplementation = function () {
return null;
};
Object.defineProperty(IgcSeriesComponent.prototype, "seriesInternal", {
get: function () {
return this.i;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "name", {
get: function () {
return this.i.name;
},
set: function (value) {
this.i.name = value;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "legend", {
/**
* Gets or sets the legend used for the current series.
*/
get: function () {
if (this.i.legend != null)
return this.i.legend.externalObject;
},
set: function (v) {
if (v != undefined && v != null)
this.i.legend = v.i;
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype.provideData = function (data) {
this._chartLevelData = data;
this.updateDataSource();
};
IgcSeriesComponent.prototype.onUpdateDataSource = function (dataSource) {
return dataSource;
};
IgcSeriesComponent.prototype.updateDataSource = function () {
if (this._dataSource == null) {
this.i.itemsSource = this.onUpdateDataSource(this._chartLevelData);
}
else {
this.i.itemsSource = this.onUpdateDataSource(this._dataSource);
}
};
Object.defineProperty(IgcSeriesComponent.prototype, "dataSource", {
get: function () {
if (this._dataSource != null) {
return this._dataSource;
}
return this.i.itemsSource;
},
set: function (value) {
this._dataSource = value;
this.updateDataSource();
//console.log("setting axis data source: " + value)
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype.provideHighlightedData = function (data) {
this._chartLevelHighlightedData = data;
this.updatehighlightedDataSource();
};
IgcSeriesComponent.prototype.onUpdatehighlightedDataSource = function (highlightedDataSource) {
return highlightedDataSource;
};
IgcSeriesComponent.prototype.updatehighlightedDataSource = function () {
if (this._highlightedDataSource == null) {
this.i.highlightedItemsSource = this.onUpdatehighlightedDataSource(this._chartLevelHighlightedData);
}
else {
this.i.highlightedItemsSource = this.onUpdatehighlightedDataSource(this._highlightedDataSource);
}
};
Object.defineProperty(IgcSeriesComponent.prototype, "highlightedDataSource", {
get: function () {
if (this._highlightedDataSource != null) {
return this._highlightedDataSource;
}
return this.i.highlightedItemsSource;
},
set: function (value) {
this._highlightedDataSource = value;
this.updatehighlightedDataSource();
//console.log("setting axis data source: " + value)
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype.bindAxes = function (axes) {
};
Object.defineProperty(IgcSeriesComponent.prototype, "tooltipTemplate", {
get: function () {
return this._tooltipTemplate;
},
set: function (value) {
this._tooltipTemplate = value;
if (value == null) {
if (this._tooltipContent !== null) {
this._tooltipContent.destroy();
this._tooltipContent = null;
}
}
if (this._tooltipContent != null) {
this._tooltipContent.template = this._tooltipTemplate;
}
else {
if (this.owner != null) {
this.owner._ensureTooltipCreated(this);
}
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "tooltipContainerTemplate", {
get: function () {
return this._tooltipContainerTemplate;
},
set: function (value) {
this._tooltipContainerTemplate = value;
if (this._tooltipContent != null) {
this._tooltipContent.containerTemplate = this._tooltipContainerTemplate;
}
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype._ensureTooltipCreated = function (createTooltip, createWrapper) {
if (this._tooltipTemplate == null) {
this.i.toolTip = null;
}
if (this._tooltipContent == null && this._tooltipTemplate != null) {
var tooltip = createTooltip();
if (tooltip == null) {
return;
}
this._tooltipContent = tooltip;
tooltip.template = this._tooltipTemplate;
this.i.toolTip = createWrapper(tooltip);
}
};
IgcSeriesComponent.prototype._ensureTooltipDestroyed = function () {
if (this._tooltipContent !== null) {
this._tooltipContent.destroy();
this._tooltipContent = null;
}
};
IgcSeriesComponent.prototype._provideRenderer = function (renderer) {
this._renderer = renderer;
};
IgcSeriesComponent._createFromInternal = function (internal) {
if (!internal) {
return null;
}
if (!internal.$type) {
return null;
}
var name = internal.$type.name;
var externalName = "Igc" + name + "Component";
if (!TypeRegistrar.isRegistered(externalName)) {
return null;
}
return TypeRegistrar.create(externalName);
};
IgcSeriesComponent.prototype._enqueueSetAttribute = function (attrName, attrValue) {
this._queuedSetAttributes.push({ attrName: attrName, attrValue: attrValue });
};
IgcSeriesComponent.prototype._flushQueuedAttributes = function () {
this._settingAttributes = true;
for (var i = 0; i < this._queuedSetAttributes.length; i++) {
this.setAttribute(this._queuedSetAttributes[i].attrName, this._queuedSetAttributes[i].attrValue);
}
this._settingAttributes = false;
this._queuedSetAttributes.length = 0;
};
IgcSeriesComponent.prototype._a = function (attrName, attrValue) {
if (this._updatingFromAttribute) {
return;
}
if (attrValue) {
attrValue = attrValue.toString();
}
this._settingAttributes = true;
attrName = toSpinal(attrName);
if (this._attached) {
this.setAttribute(attrName, attrValue);
}
else {
this._enqueueSetAttribute(attrName, attrValue);
}
this._settingAttributes = false;
};
IgcSeriesComponent.prototype.connectedCallback = function () {
if (_super.prototype["connectedCallback"]) {
_super.prototype["connectedCallback"].call(this);
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
};
IgcSeriesComponent.prototype.disconnectedCallback = function () {
if (_super.prototype["disconnectedCallback"]) {
_super.prototype["disconnectedCallback"].call(this);
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
};
Object.defineProperty(IgcSeriesComponent, "observedAttributes", {
get: function () {
if (IgcSeriesComponent._observedAttributesIgcSeriesComponent == null) {
var names = getAllPropertyNames(IgcSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcSeriesComponent._observedAttributesIgcSeriesComponent = names;
}
return IgcSeriesComponent._observedAttributesIgcSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype.attributeChangedCallback = function (name, oldValue, newValue) {
if (this._settingAttributes) {
return;
}
var setName = fromSpinal(name);
this._updatingFromAttribute = true;
this[setName] = newValue;
this._updatingFromAttribute = false;
};
Object.defineProperty(IgcSeriesComponent.prototype, "dataLegendKey", {
/**
* Gets unique key used to identify the series in data legend
*/
get: function () {
return this.i.dataLegendKey;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "dataLegendGroup", {
/**
* Gets or sets a name used for grouping multiple series in the Data Legend
* If not set, series will be grouped by series family, e.g. Category, Range, Financial, Scatter
*/
get: function () {
return this.i.l5;
},
set: function (v) {
this.i.l5 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "highlightedValuesDataLegendGroup", {
/**
* Gets or sets a name used for grouping highlighted series in the Data Legend
* If not set, series will default to parent series' DataLegendGroup, e.g. Category, Range, Financial, Scatter
*/
get: function () {
return this.i.ml;
},
set: function (v) {
this.i.ml = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isAnnotationLayer", {
/**
* Gets whether the series is an annotation layer.
*
* ```ts
* let isAnnotationLayer: boolean = this.series.isAnnotationLayer;
* ```
*/
get: function () {
return this.i.eu;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isAnnotationCrosshairLayer", {
/**
* Gets whether the series is an crosshair annotation layer.
*/
get: function () {
return this.i.er;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isAnnotationCalloutLayer", {
/**
* Gets whether the series is an callout annotation layer.
*/
get: function () {
return this.i.eq;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isAnnotationHoverLayer", {
/**
* 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: function () {
return this.i.et;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isAnnotationFinalValue", {
/**
* Gets whether the series is final value annotation layer.
*/
get: function () {
return this.i.es;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isAnnotationValueLayer", {
/**
* Gets whether the series is a value annotation layer.
*/
get: function () {
return this.i.ev;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isVertical", {
/**
* Gets whether the current series is oriented vertically.
*
* ```ts
* let isVertical: boolean = this.series.isVertical;
* ```
*/
get: function () {
return this.i.isVertical;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isFragment", {
/**
* Gets whether the current series is a stack fragment.
*
* ```ts
* let isFragment: boolean = this.series.isFragment;
* ```
*/
get: function () {
return this.i.isFragment;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isAreaOrLine", {
/**
* Gets whether the current series shows an area or line shape.
*
* ```ts
* let isAreaorLine: boolean = this.series.isAreaorLine;
* ```
*/
get: function () {
return this.i.ex;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isArea", {
/**
* Gets whether the current series shows an area shape.
*/
get: function () {
return this.i.ew;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "hasValueAxis", {
/**
* Gets whether the current series shows an area shape.
*/
get: function () {
return this.i.em;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isValueAxisInverted", {
/**
* Gets whether the current series shows an area shape.
*/
get: function () {
return this.i.f6;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isLineOnly", {
/**
* Gets whether the current series shows only line shapes.
*/
get: function () {
return this.i.fl;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isLineContour", {
/**
* Gets whether the current series shows a line contour shape.
*/
get: function () {
return this.i.fk;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isSpline", {
/**
* Gets whether the current series shows a spline shape.
*/
get: function () {
return this.i.f1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isColumn", {
/**
* Gets whether the current series shows a column shape.
*/
get: function () {
return this.i.e1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isBar", {
/**
* Gets whether the current series shows a horizontal column shape.
*/
get: function () {
return this.i.ez;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isWaterfall", {
/**
* Gets whether the current series shows a waterfall column shape.
*/
get: function () {
return this.i.f7;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isPolyline", {
/**
* Gets whether the current series shows a polyline shape.
*/
get: function () {
return this.i.fs;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isPolygon", {
/**
* Gets whether the current series shows a polygon shape.
*/
get: function () {
return this.i.fr;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isPixel", {
/**
* Gets whether the current series shows pixels.
*/
get: function () {
return this.i.fp;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isPie", {
/**
* Gets whether the current series shows a pie shape.
*/
get: function () {
return this.i.fo;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isTile", {
/**
* Gets whether the current series shows a tile imagery.
*/
get: function () {
return this.i.f4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isStep", {
/**
* Gets whether the current series shows step shapes.
*/
get: function () {
return this.i.f2;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isShapeControl", {
/**
* Gets whether the current series shows interactive shape controls.
*/
get: function () {
return this.i.fz;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isPolar", {
/**
* Gets whether the current series is a polar type series.
*
* ```ts
* let isPolar: boolean = this.series.isPolar;
* ```
*/
get: function () {
return this.i.fq;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isScatter", {
/**
* Gets whether the current series is a scatter type series.
*
* ```ts
* let isScatter: boolean = this.series.isScatter;
* ```
*/
get: function () {
return this.i.fx;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isRadial", {
/**
* Gets whether the current series is a radial type series.
*
* ```ts
* let isRadial: boolean = this.series.isRadial;
* ```
*/
get: function () {
return this.i.fu;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isStacked", {
/**
* Gets whether the current series is a stacked type series.
*
* ```ts
* let isStacked: boolean = this.series.isStacked;
* ```
*/
get: function () {
return this.i.isStacked;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isFinancial", {
/**
* Gets whether the current series is a financial type series.
*
* ```ts
* let isFinancial: boolean = this.series.isFinancial;
* ```
*/
get: function () {
return this.i.e8;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isRange", {
/**
* Gets whether the current series is a range type series.
*
* ```ts
* let isRange: boolean = this.series.isRange;
* ```
*/
get: function () {
return this.i.fv;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isCategory", {
/**
* Gets whether the current series is a category type series.
*
* ```ts
* let isCategory: boolean = this.series.isCategory;
* ```
*/
get: function () {
return this.i.e0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isGeographic", {
/**
* Gets whether the current series is a geographic series.
*
* ```ts
* let isGeographic: boolean = this.series.isGeographic;
* ```
*/
get: function () {
return this.i.fd;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isShape", {
/**
* Gets whether the current series is a shape type series.
*/
get: function () {
return this.i.fy;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isValueOverlay", {
/**
* Gets whether the series is a value overlay.
*/
get: function () {
return this.i.isValueOverlay;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isHighlightOverlay", {
/**
* Gets whether the series is a highlight overlay.
*/
get: function () {
return this.i.fg;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isSummarizationSupported", {
/**
* Gets whether the series supports summarization in Data Legend and Data Tooltip.
*/
get: function () {
return this.i.isSummarizationSupported;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isLayer", {
get: function () {
return this.i.isLayer;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "hasOnlyMarkers", {
/**
* Gets whether the series has only marker as visuals
*/
get: function () {
return this.i.ek;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isFinancialSeries", {
/**
* Gets whether the series has financial OHLC/candlestick visuals
*/
get: function () {
return this.i.fb;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isFinancialOverlay", {
/**
* Gets whether the series is financial overlay
*/
get: function () {
return this.i.fa;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isFinancialIndicator", {
/**
* Gets whether the series is financial indicator
*/
get: function () {
return this.i.e9;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isFinancialWaterfall", {
/**
* Gets whether the series is financial waterfall
*/
get: function () {
return this.i.fc;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isDefaultCrosshairBehaviorDisabled", {
/**
* 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: function () {
return this.i.e3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isDefaultTooltipBehaviorDisabled", {
/**
* Gets whether the default tooltip behavior should be disabled if this series is present.
*
* ```ts
* let isDefaultTooltipBehaviorDisabled: boolean = this.series.isDefaultTooltipBehaviorDisabled;
* ```
*/
get: function () {
return this.i.e4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "hasMarkers", {
/**
* Returns whether the current series supports visual markers.
*
* ```ts
* let hasMarkers: boolean = this.series.hasMarkers;
* ```
*/
get: function () {
return this.i.hasMarkers;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "hasVisibleMarkers", {
/**
* Returns whether the current series has a visible marker style.
*/
get: function () {
return this.i.en;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "highlightedValuesExtraPropertyOverlays", {
/**
* Gets the current extra layers for the series.
*/
get: function () {
if (this._highlightedValuesExtraPropertyOverlays === null) {
var coll = new IgcSeriesLayerPropertyOverlayCollection();
var innerColl = this.i.cf;
if (!innerColl) {
innerColl = new SeriesLayerPropertyOverlayCollection_internal();
}
this._highlightedValuesExtraPropertyOverlays = coll._fromInner(innerColl);
}
return this._highlightedValuesExtraPropertyOverlays;
},
set: function (v) {
if (this._highlightedValuesExtraPropertyOverlays !== null) {
this._highlightedValuesExtraPropertyOverlays._setSyncTarget(null);
this._highlightedValuesExtraPropertyOverlays = null;
}
var coll = new IgcSeriesLayerPropertyOverlayCollection();
this._highlightedValuesExtraPropertyOverlays = coll._fromOuter(v);
var syncColl = new SyncableObservableCollection$1(SeriesLayerPropertyOverlay.$type);
var innerColl = this.i.cf;
if (!innerColl) {
innerColl = new SeriesLayerPropertyOverlayCollection_internal();
}
syncColl._inner = innerColl;
syncColl.clear();
this._highlightedValuesExtraPropertyOverlays._setSyncTarget(syncColl);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isIndexed", {
/**
* 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: function () {
return this.i.fh;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isUsableInLegend", {
/**
* Gets if the series should appear in any legends.
*
* ```ts
* let isUsableInLegend: boolean = this.series.isUsableInLegend;
* ```
*/
get: function () {
return this.i.isUsableInLegend;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "legendItemVisibility", {
/**
* Gets or sets whether or not the current series will have a legend item displayed in a legend.
*
* The `LegendItemVisibilty` can be used to exclude only certain `Series` from the `Legend`.
*/
get: function () {
return this.i.legendItemVisibility;
},
set: function (v) {
this.i.legendItemVisibility = ensureEnum(Visibility_$type, v);
this._a("legendItemVisibility", enumToString(Visibility_$type, this.i.legendItemVisibility));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "legendItemBadgeTemplate", {
/**
* Gets or sets the LegendItemBadgeTemplate property.
* The legend item badge is created according to the LegendItemBadgeTemplate on-demand by
* the series object itself.
*/
get: function () {
return this.i.legendItemBadgeTemplate;
},
set: function (v) {
this.i.legendItemBadgeTemplate = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualLegendItemBadgeTemplate", {
/**
* Gets the actual legend item badge template used by the series.
*/
get: function () {
return this.i.s0;
},
set: function (v) {
this.i.s0 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualLegendItemBadgeOutline", {
/**
* Gets the effective legend badge outline for the current series.
*/
get: function () {
return brushToString(this.i.vh);
},
set: function (v) {
this.i.vh = stringToBrush(v);
this._a("actualLegendItemBadgeOutline", brushToString(this.i.vh));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualLegendItemBadgeBrush", {
/**
* Gets the effective legend badge fill for the current series.
*/
get: function () {
return brushToString(this.i.vg);
},
set: function (v) {
this.i.vg = stringToBrush(v);
this._a("actualLegendItemBadgeBrush", brushToString(this.i.vg));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "legendItemBadgeShape", {
/**
* 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: function () {
return this.i.legendItemBadgeShape;
},
set: function (v) {
this.i.legendItemBadgeShape = ensureEnum(LegendItemBadgeShape_$type, v);
this._a("legendItemBadgeShape", enumToString(LegendItemBadgeShape_$type, this.i.legendItemBadgeShape));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "legendItemBadgeMode", {
/**
* 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: function () {
return this.i.be;
},
set: function (v) {
this.i.be = ensureEnum(LegendItemBadgeMode_$type, v);
this._a("legendItemBadgeMode", enumToString(LegendItemBadgeMode_$type, this.i.be));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "legendItemTemplate", {
/**
* 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: function () {
return this.i.legendItemTemplate;
},
set: function (v) {
this.i.legendItemTemplate = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "discreteLegendItemTemplate", {
/**
* 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: function () {
return this.i.s1;
},
set: function (v) {
this.i.s1 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "index", {
/**
* Gets the Index property.
*/
get: function () {
return this.i.index;
},
set: function (v) {
this.i.index = +v;
this._a("index", this.i.index);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionEasingFunction", {
/**
* 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 `Series`. To play an initial animation see `TransitionInDuration`.
*
* ```ts
* this.series.transitionEasingFunction = EasingFunctions.cubicEase;
* ```
*/
get: function () {
return this.i.de;
},
set: function (v) {
this.i.de = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionInEasingFunction", {
/**
* 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: function () {
return this.i.df;
},
set: function (v) {
this.i.df = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionOutEasingFunction", {
/**
* Gets or sets the EasingFunction used to morph the current series during the initial transition.
*/
get: function () {
return this.i.dg;
},
set: function (v) {
this.i.dg = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionDuration", {
/**
* Gets or sets the duration of the current series' morph.
*
* The `TransitionDuration` can be used to play animation when data is added or removed from a `Series`. To play an initial animation see `TransitionInDuration`.
*
* ```ts
* this.series.transitionDuration = 500;
* ```
*/
get: function () {
return this.i.ke;
},
set: function (v) {
this.i.ke = +v;
this._a("transitionDuration", this.i.ke);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualResolution", {
get: function () {
return this.i.ie;
},
set: function (v) {
this.i.ie = +v;
this._a("actualResolution", this.i.ie);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "resolution", {
/**
* 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.
*
* ```ts
* this.series.resolution = 1.5;
* ```
*/
get: function () {
return this.i.jk;
},
set: function (v) {
this.i.jk = +v;
this._a("resolution", this.i.jk);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "visibleRangeMarginTop", {
/**
* Gets or sets the top margin to use when getting a visible axis range for the series.
*/
get: function () {
return this.i.jv;
},
set: function (v) {
this.i.jv = +v;
this._a("visibleRangeMarginTop", this.i.jv);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "visibleRangeMarginBottom", {
/**
* Gets or sets the bottom margin to use when getting a visible axis range for the series.
*/
get: function () {
return this.i.js;
},
set: function (v) {
this.i.js = +v;
this._a("visibleRangeMarginBottom", this.i.js);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "visibleRangeMarginLeft", {
/**
* Gets or sets the left margin to use when getting a visible axis range for the series.
*/
get: function () {
return this.i.jt;
},
set: function (v) {
this.i.jt = +v;
this._a("visibleRangeMarginLeft", this.i.jt);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "visibleRangeMarginRight", {
/**
* Gets or sets the right margin to use when getting a visible axis range for the series.
*/
get: function () {
return this.i.ju;
},
set: function (v) {
this.i.ju = +v;
this._a("visibleRangeMarginRight", this.i.ju);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "title", {
/**
* Gets or sets the Title property.
* The legend item control is created according to the Title on-demand by
* the series object itself.
*
* The `Series` `Title` may be used in tooltips and legends.
*
* ```ts
* this.series.title = "InStock Items";
* ```
*/
get: function () {
return this.i.title;
},
set: function (v) {
this.i.title = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "highlightedTitleSuffix", {
/**
* Gets or sets the HighlightedTitleSuffix property.
*/
get: function () {
return this.i.mj;
},
set: function (v) {
this.i.mj = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "highlightedLegendItemVisibility", {
/**
* Gets or sets whether the highlighted values layer should have a legend item.
*/
get: function () {
return this.i.w2;
},
set: function (v) {
this.i.w2 = ensureEnum(Visibility_$type, v);
this._a("highlightedLegendItemVisibility", enumToString(Visibility_$type, this.i.w2));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "brush", {
/**
* 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 `Series`.
*
* ```ts
* this.series.brush = "red";
* ```
*/
get: function () {
return brushToString(this.i.vk);
},
set: function (v) {
this.i.vk = stringToBrush(v);
this._a("brush", brushToString(this.i.vk));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualBrush", {
/**
* Gets the effective brush for the current series object.
*
* ```ts
* let actualBrush: string = series.actualBrush;
* ```
*/
get: function () {
return brushToString(this.i.ve);
},
set: function (v) {
this.i.ve = stringToBrush(v);
this._a("actualBrush", brushToString(this.i.ve));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "selectionBrush", {
/**
* Gets or sets the selection brush to use for the series.
*/
get: function () {
return brushToString(this.i.v4);
},
set: function (v) {
this.i.v4 = stringToBrush(v);
this._a("selectionBrush", brushToString(this.i.v4));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "focusBrush", {
/**
* Gets or sets the Focus brush to use for the series.
*/
get: function () {
return brushToString(this.i.vp);
},
set: function (v) {
this.i.vp = stringToBrush(v);
this._a("focusBrush", brushToString(this.i.vp));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualSelectionBrush", {
/**
* Gets the effective emphasis brush for the current series object.
*/
get: function () {
return brushToString(this.i.vj);
},
set: function (v) {
this.i.vj = stringToBrush(v);
this._a("actualSelectionBrush", brushToString(this.i.vj));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualFocusBrush", {
/**
* Gets the effective emphasis brush for the current series object.
*/
get: function () {
return brushToString(this.i.vf);
},
set: function (v) {
this.i.vf = stringToBrush(v);
this._a("actualFocusBrush", brushToString(this.i.vf));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "safeActualBrush", {
/**
* Gets the effective brush for the current series object with opacity removed so its contrasty for use as a font color.
*/
get: function () {
return brushToString(this.i.safeActualBrush);
},
set: function (v) {
this.i.safeActualBrush = stringToBrush(v);
this._a("safeActualBrush", brushToString(this.i.safeActualBrush));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "outline", {
/**
* 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 `Series`.
*
* ```ts
* this.series.brush = "red";
* ```
*/
get: function () {
return brushToString(this.i.v0);
},
set: function (v) {
this.i.v0 = stringToBrush(v);
this._a("outline", brushToString(this.i.v0));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualOutline", {
/**
* Gets the effective outline for the current series object.
*
* ```ts
* let actualOutline: string = series.ActualOutline;
* ```
*/
get: function () {
return brushToString(this.i.vi);
},
set: function (v) {
this.i.vi = stringToBrush(v);
this._a("actualOutline", brushToString(this.i.vi));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "lineJoin", {
/**
* Gets or sets the brush that specifies current series object's line join style.
*/
get: function () {
return this.i.wa;
},
set: function (v) {
this.i.wa = ensureEnum(PenLineJoin_$type, v);
this._a("lineJoin", enumToString(PenLineJoin_$type, this.i.wa));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "highlightedValuesDisplayMode", {
/**
* Gets or sets whether and how to display highlighted values for the series. Note, this is distinct from the highlighting feature that indicates what is closest or under the mouse.
*/
get: function () {
return this.i.bw;
},
set: function (v) {
this.i.bw = ensureEnum(SeriesHighlightedValuesDisplayMode_$type, v);
this._a("highlightedValuesDisplayMode", enumToString(SeriesHighlightedValuesDisplayMode_$type, this.i.bw));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shouldAnimateOnDataSourceSwap", {
/**
* Gets or sets whether and how to display highlighted values for the series. Note, this is distinct from the highlighting feature that indicates what is closest or under the mouse.
*/
get: function () {
return this.i.gh;
},
set: function (v) {
this.i.gh = ensureBool(v);
this._a("shouldAnimateOnDataSourceSwap", this.i.gh);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "thickness", {
/**
* Gets or sets the width of the current series object's line thickness.
*
* Depending on the `Series` type, this can be the main brush used, or just the outline. For example, when using a `LineSeries` it will affect the thickness of the lines drawn, whereas when using a `ColumnSeries` it will affect the outer border thickness of the columns.
*
* ```ts
* this.series.thickness=5;
* ```
*/
get: function () {
return this.i.jq;
},
set: function (v) {
this.i.jq = +v;
this._a("thickness", this.i.jq);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualThickness", {
/**
* Gets the effective Thickness for the current series object.
*/
get: function () {
return this.i.ig;
},
set: function (v) {
this.i.ig = +v;
this._a("actualThickness", this.i.ig);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "dashArray", {
/**
* Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that
* is used to outline the current series object.
*/
get: function () {
return fromDoubleCollection(this.i.v7);
},
set: function (v) {
this.i.v7 = toDoubleCollection(v);
this._a("dashArray", doubleCollectionToString(this.i.v7));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualHighlightingMode", {
/**
* Gets actual highlighting mode
*/
get: function () {
return this.i.by;
},
set: function (v) {
this.i.by = ensureEnum(SeriesHighlightingMode_$type, v);
this._a("actualHighlightingMode", enumToString(SeriesHighlightingMode_$type, this.i.by));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualSelectionMode", {
/**
* Gets actual Selection mode
*/
get: function () {
return this.i.cq;
},
set: function (v) {
this.i.cq = ensureEnum(SeriesSelectionMode_$type, v);
this._a("actualSelectionMode", enumToString(SeriesSelectionMode_$type, this.i.cq));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualFocusMode", {
/**
* Gets actual Selection mode
*/
get: function () {
return this.i.cp;
},
set: function (v) {
this.i.cp = ensureEnum(SeriesSelectionMode_$type, v);
this._a("actualFocusMode", enumToString(SeriesSelectionMode_$type, this.i.cp));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualHighlightedValuesFadeOpacity", {
/**
* Gets actual HighlightedValues fade opacity
*/
get: function () {
return this.i.ib;
},
set: function (v) {
this.i.ib = +v;
this._a("actualHighlightedValuesFadeOpacity", this.i.ib);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "highlightedValuesFadeOpacity", {
/**
* Gets or sets the target opacity to fade to for fade style HighlightedValues.
*/
get: function () {
return this.i.jf;
},
set: function (v) {
this.i.jf = +v;
this._a("highlightedValuesFadeOpacity", this.i.jf);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualHighlightingFadeOpacity", {
/**
* Gets actual highlighting fade opacity
*/
get: function () {
return this.i.ic;
},
set: function (v) {
this.i.ic = +v;
this._a("actualHighlightingFadeOpacity", this.i.ic);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "highlightingFadeOpacity", {
/**
* Gets or sets the target opacity to fade to for fade style highlighting.
*/
get: function () {
return this.i.jg;
},
set: function (v) {
this.i.jg = +v;
this._a("highlightingFadeOpacity", this.i.jg);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isActualLegendFinancial", {
/**
* Gets or sets whether the ActualLegend is FinancialLegend or normal Legend.
*/
get: function () {
return this.i.ep;
},
set: function (v) {
this.i.ep = ensureBool(v);
this._a("isActualLegendFinancial", this.i.ep);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isComponentHighlightingModeIgnored", {
/**
* Gets or sets whether the component level highlight mode is ignored.
*/
get: function () {
return this.i.e2;
},
set: function (v) {
this.i.e2 = ensureBool(v);
this._a("isComponentHighlightingModeIgnored", this.i.e2);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isHighlightingEnabled", {
/**
* Gets or sets whether highlighting should be enabled for this series, if this type of series supports highlighting.
*
* ```ts
* this.series.isHighlightingEnabled = true;
* ```
*/
get: function () {
return this.i.fe;
},
set: function (v) {
this.i.fe = ensureBool(v);
this._a("isHighlightingEnabled", this.i.fe);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "useItemWiseColors", {
/**
* Gets or sets whether the series should use individual palette colors for each item.
*/
get: function () {
return this.i.ha;
},
set: function (v) {
this.i.ha = ensureBool(v);
this._a("useItemWiseColors", this.i.ha);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isColoredItemwise", {
get: function () {
return this.i.isColoredItemwise;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shouldShiftOpacityForSafeActualBrush", {
/**
* Gets or sets whether the opacity should be automatically shifted for the safe actual brush.
*/
get: function () {
return this.i.gm;
},
set: function (v) {
this.i.gm = ensureBool(v);
this._a("shouldShiftOpacityForSafeActualBrush", this.i.gm);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shouldRemoveHighlightedDataOnLayerHidden", {
/**
* Gets or sets whether the opacity should be automatically shifted for the safe actual brush.
*/
get: function () {
return this.i.gk;
},
set: function (v) {
this.i.gk = ensureBool(v);
this._a("shouldRemoveHighlightedDataOnLayerHidden", this.i.gk);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shouldHideAutoCallouts", {
/**
* Gets or sets whether this series should suppress it's auto callouts
*/
get: function () {
return this.i.gj;
},
set: function (v) {
this.i.gj = ensureBool(v);
this._a("shouldHideAutoCallouts", this.i.gj);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isDropShadowEnabled", {
/**
* 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.
*
* ```ts
* this.series.isDropShadowEnabled = true;
* ```
*/
get: function () {
return this.i.e6;
},
set: function (v) {
this.i.e6 = ensureBool(v);
this._a("isDropShadowEnabled", this.i.e6);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shadowBlur", {
/**
* 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.
*
* ```ts
* this.series.shadowBlur = 7;
* ```
*/
get: function () {
return this.i.jn;
},
set: function (v) {
this.i.jn = +v;
this._a("shadowBlur", this.i.jn);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shadowColor", {
/**
* Gets or sets the drop shadow color.
*
* `ShadowColor` can be set in conjection with `IsDropShadowEnabled` to further define the drop shadow effect.
*
* ```ts
* this.series.shadowColor = "blue";
* ```
*/
get: function () {
return colorToString(this.i.v6);
},
set: function (v) {
this.i.v6 = stringToColor(v);
this._a("shadowColor", colorToString(this.i.v6));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "useSingleShadow", {
/**
* 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.
*
* ```ts
* this.series.useSingleShadow = true;
* ```
*/
get: function () {
return this.i.hd;
},
set: function (v) {
this.i.hd = ensureBool(v);
this._a("useSingleShadow", this.i.hd);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shadowOffsetX", {
/**
* Gets or sets the drop shadow x-offset.
*
* `ShadowOffsetX` can be set in conjection with `IsDropShadowEnabled` to further define the drop shadow effect.
*
* ```ts
* this.series.shadowOffsetX = 10;
* ```
*/
get: function () {
return this.i.jo;
},
set: function (v) {
this.i.jo = +v;
this._a("shadowOffsetX", this.i.jo);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "shadowOffsetY", {
/**
* Gets or sets the drop shadow y-offset.
*
* `ShadowOffsetY` can be set in conjection with `IsDropShadowEnabled` to further define the drop shadow effect.
*
* ```ts
* this.series.shadowOffsetY = 10;
* ```
*/
get: function () {
return this.i.jp;
},
set: function (v) {
this.i.jp = +v;
this._a("shadowOffsetY", this.i.jp);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "areaFillOpacity", {
/**
* Gets or sets the opacity applied to the area fill visual.
* This property only applies to series that have area visual.
*/
get: function () {
return this.i.il;
},
set: function (v) {
this.i.il = +v;
this._a("areaFillOpacity", this.i.il);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualAreaFillOpacity", {
/**
* Gets the actual opacity applied to the area fill visual.
*
* ```ts
* let actualFillOpacity: number = series.actualAreaFillOpacity;
* ```
*/
get: function () {
return this.i.ia;
},
set: function (v) {
this.i.ia = +v;
this._a("actualAreaFillOpacity", this.i.ia);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "markerFillOpacity", {
/**
* Gets or sets the opacity applied to the fill of the markers.
* This property only applies to series that have area visual.
*/
get: function () {
return this.i.jh;
},
set: function (v) {
this.i.jh = +v;
this._a("markerFillOpacity", this.i.jh);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualMarkerFillOpacity", {
/**
* Gets the actual opacity applied to the fill of the markers.
*/
get: function () {
return this.i.id;
},
set: function (v) {
this.i.id = +v;
this._a("actualMarkerFillOpacity", this.i.id);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isDefaultToolTipSelected", {
/**
* 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: function () {
return this.i.e5;
},
set: function (v) {
this.i.e5 = ensureBool(v);
this._a("isDefaultToolTipSelected", this.i.e5);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "showDefaultTooltip", {
/**
* 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`.
*
* ```ts
* this.series.showDefaultTooltip ="true";
* ```
*/
get: function () {
return this.i.gq;
},
set: function (v) {
this.i.gq = ensureBool(v);
this._a("showDefaultTooltip", this.i.gq);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "attachTooltipToRoot", {
/**
* Gets or sets whether the tooltip will be attached to the root,
* when set to false it will be a child of the chart.
*/
get: function () {
return this.i.d5;
},
set: function (v) {
this.i.d5 = ensureBool(v);
this._a("attachTooltipToRoot", this.i.d5);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "visibleRangeMode", {
/**
* Gets or sets the visible range mode to use.
*/
get: function () {
return this.i.c0;
},
set: function (v) {
this.i.c0 = ensureEnum(SeriesVisibleRangeMode_$type, v);
this._a("visibleRangeMode", enumToString(SeriesVisibleRangeMode_$type, this.i.c0));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "outlineMode", {
/**
* Gets or sets the outline mode to use for the series.
*/
get: function () {
return this.i.cj;
},
set: function (v) {
this.i.cj = ensureEnum(SeriesOutlineMode_$type, v);
this._a("outlineMode", enumToString(SeriesOutlineMode_$type, this.i.cj));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionInDuration", {
/**
* Gets or sets the duration of the current series' transition in morph.
*
* The `TransitionInDuration` can be used with `IsTransitionInEnabled` to cofigure the animation when a new datasource is loaded.
*
* ```ts
* this.series.transitionDuration = 500;
* ```
*/
get: function () {
return this.i.kf;
},
set: function (v) {
this.i.kf = +v;
this._a("transitionInDuration", this.i.kf);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionOutDuration", {
/**
* Gets or sets the duration of the current series' transition out morph.
*/
get: function () {
return this.i.kg;
},
set: function (v) {
this.i.kg = +v;
this._a("transitionOutDuration", this.i.kg);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionInSpeedType", {
/**
* Gets or sets the duration of the current series' transition in morph.
*
* The `TransitionInSpeedType` can be used with `IsTransitionInEnabled` to cofigure the animation when a new datasource is loaded.
*
* ```ts
* this.series.transitionInSpeedType = TransitionInSpeedType.IndexScaled;
* ```
*/
get: function () {
return this.i.c6;
},
set: function (v) {
this.i.c6 = ensureEnum(TransitionInSpeedType_$type, v);
this._a("transitionInSpeedType", enumToString(TransitionInSpeedType_$type, this.i.c6));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "transitionOutSpeedType", {
/**
* Gets or sets the duration of the current series' transition out morph.
*/
get: function () {
return this.i.c9;
},
set: function (v) {
this.i.c9 = ensureEnum(TransitionOutSpeedType_$type, v);
this._a("transitionOutSpeedType", enumToString(TransitionOutSpeedType_$type, this.i.c9));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "lineCap", {
/**
* Gets or sets the style of the starting point of any lines or polylines representing this series.
* Not every series type has a line at which it would be appropriate to display a start cap, so this property does not affect every series type. LineSeries, for example, is affected by StartCap, but ColumnSeries is not.
*/
get: function () {
return this.i.v9;
},
set: function (v) {
this.i.v9 = ensureEnum(PenLineCap_$type, v);
this._a("lineCap", enumToString(PenLineCap_$type, this.i.v9));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "autoCalloutLabelFormat", {
/**
* Gets or sets the AutoCalloutLabel format string to use for the AutoCalloutLabel.
*/
get: function () {
return this.i.lw;
},
set: function (v) {
this.i.lw = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "autoCalloutLabelFormatSpecifiers", {
/**
* Gets or sets the format specifiers to use with the AutoCalloutLabelFormat string.
*/
get: function () {
return this.i.ag;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.ag = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "autoCalloutValueLabelFormat", {
/**
* Gets or sets the AutoCalloutLabel format string to use for the AutoCalloutLabel.
*/
get: function () {
return this.i.lz;
},
set: function (v) {
this.i.lz = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "autoCalloutValueLabelFormatSpecifiers", {
/**
* Gets or sets the format specifiers to use with the AutoCalloutValueLabelFormat string.
*/
get: function () {
return this.i.ah;
},
set: function (v) {
if (v && !Array.isArray(v) && typeof (v) == "string") {
var re = /\s*(?:,|\s|$)\s*/gm;
v = v.split(re);
}
this.i.ah = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "mouseOverEnabled", {
/**
* Gets or sets the whether the chart reacts to mouse move events.
*/
get: function () {
return this.i.f9;
},
set: function (v) {
this.i.f9 = ensureBool(v);
this._a("mouseOverEnabled", this.i.f9);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "coercionMethods", {
/**
* 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.
*
* <-- position: content member-->
*
* ```ts
* cMethods: any = {
* ValueCoercion: function(value:number): number {return value+2;}
* }
* ```
*/
get: function () {
return this.i.coercionMethods;
},
set: function (v) {
this.i.coercionMethods = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "expectFunctions", {
/**
* 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.
*
* ```ts
* this.series.expectFunctions=true;
* ```
*/
get: function () {
return this.i.expectFunctions;
},
set: function (v) {
this.i.expectFunctions = ensureBool(v);
this._a("expectFunctions", this.i.expectFunctions);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "hitTestMode", {
/**
* 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: function () {
return this.i.b4;
},
set: function (v) {
this.i.b4 = ensureEnum(SeriesHitTestMode_$type, v);
this._a("hitTestMode", enumToString(SeriesHitTestMode_$type, this.i.b4));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualHitTestMode", {
/**
* Resolved method of hit testing to use when pointing to items in the chart.
*
* ```ts
* let hitTestMode: SeriesHitTestMode = this.series.actualHitTestMode;
* ```
*/
get: function () {
return this.i.b2;
},
set: function (v) {
this.i.b2 = ensureEnum(SeriesHitTestMode_$type, v);
this._a("actualHitTestMode", enumToString(SeriesHitTestMode_$type, this.i.b2));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isNegativeColorSupported", {
/**
* Overridden by derived series classes to indicate when negative colors are supported or not.
*/
get: function () {
return this.i.fn;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "isMarkerlessDisplayPreferred", {
/**
* Overridden by derived series classes to indicate when markerless display is preferred or not.
*/
get: function () {
return this.i.fm;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "finalValue", {
/**
* The final value of this series.
*/
get: function () {
return this.i.io;
},
set: function (v) {
this.i.io = +v;
this._a("finalValue", this.i.io);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "percentChange", {
/**
* The percent change from the beginning to the end of this series.
*/
get: function () {
return this.i.jj;
},
set: function (v) {
this.i.jj = +v;
this._a("percentChange", this.i.jj);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualOpenLabel", {
/**
* Gets the text that is displayed for the Open label in the tooltip.
*/
get: function () {
return this.i.ll;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualCloseLabel", {
/**
* Gets the text that is displayed for the Close label in the tooltip.
*/
get: function () {
return this.i.k7;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualHighLabel", {
/**
* Gets the text that is displayed for the High label in the tooltip.
*/
get: function () {
return this.i.la;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualLowLabel", {
/**
* Gets the text that is displayed for the Low label in the tooltip.
*/
get: function () {
return this.i.lj;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualVolumeLabel", {
/**
* Gets the text that is displayed for the Volume label in the tooltip.
*/
get: function () {
return this.i.lt;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualValueLabel", {
/**
* Gets the text that is displayed for the Value label in the tooltip.
*/
get: function () {
return this.i.ls;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualRadiusLabel", {
/**
* Gets the text that is displayed for the Value label in the tooltip.
*/
get: function () {
return this.i.ln;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "layers", {
/**
* Gets the current extra layers for the series.
*/
get: function () {
if (this._layers === null) {
var coll = new IgcSeriesLayerCollection();
var innerColl = this.i.cc;
if (!innerColl) {
innerColl = new SeriesLayerCollection_internal();
}
this._layers = coll._fromInner(innerColl);
}
return this._layers;
},
set: function (v) {
if (this._layers !== null) {
this._layers._setSyncTarget(null);
this._layers = null;
}
var coll = new IgcSeriesLayerCollection();
this._layers = coll._fromOuter(v);
var syncColl = new SyncableObservableCollection$1(SeriesLayer.$type);
var innerColl = this.i.cc;
if (!innerColl) {
innerColl = new SeriesLayerCollection_internal();
}
syncColl._inner = innerColl;
syncColl.clear();
this._layers._setSyncTarget(syncColl);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "actualLayers", {
/**
* Gets the actual extra layers for the series.
*/
get: function () {
if (this._actualLayers === null) {
var coll = new IgcSeriesLayerCollection();
var innerColl = this.i.actualLayers;
if (!innerColl) {
innerColl = new SeriesLayerCollection_internal();
}
this._actualLayers = coll._fromInner(innerColl);
}
return this._actualLayers;
},
set: function (v) {
if (this._actualLayers !== null) {
this._actualLayers._setSyncTarget(null);
this._actualLayers = null;
}
var coll = new IgcSeriesLayerCollection();
this._actualLayers = coll._fromOuter(v);
var syncColl = new SyncableObservableCollection$1(SeriesLayer.$type);
var innerColl = this.i.actualLayers;
if (!innerColl) {
innerColl = new SeriesLayerCollection_internal();
}
syncColl._inner = innerColl;
syncColl.clear();
this._actualLayers._setSyncTarget(syncColl);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "opacity", {
get: function () {
return this.i.opacity;
},
set: function (v) {
this.i.opacity = +v;
this._a("opacity", this.i.opacity);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "visibility", {
get: function () {
return this.i.visibility;
},
set: function (v) {
this.i.visibility = ensureEnum(Visibility_$type, v);
this._a("visibility", enumToString(Visibility_$type, this.i.visibility));
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
if (this.highlightedValuesExtraPropertyOverlays != null && this.highlightedValuesExtraPropertyOverlays.findByName && this.highlightedValuesExtraPropertyOverlays.findByName(name)) {
return this.highlightedValuesExtraPropertyOverlays.findByName(name);
}
if (this.legend && this.legend.name && this.legend.name == name) {
return this.legend;
}
if (this.autoCalloutLabelFormatSpecifiers != null && arrayFindByName(this.autoCalloutLabelFormatSpecifiers, name)) {
return arrayFindByName(this.autoCalloutLabelFormatSpecifiers, name);
}
if (this.autoCalloutValueLabelFormatSpecifiers != null && arrayFindByName(this.autoCalloutValueLabelFormatSpecifiers, name)) {
return arrayFindByName(this.autoCalloutValueLabelFormatSpecifiers, name);
}
if (this.layers != null && this.layers.findByName && this.layers.findByName(name)) {
return this.layers.findByName(name);
}
if (this.actualLayers != null && this.actualLayers.findByName && this.actualLayers.findByName(name)) {
return this.actualLayers.findByName(name);
}
return null;
};
Object.defineProperty(IgcSeriesComponent.prototype, "hasUserValues", {
get: function () {
return this._hasUserValues;
},
enumerable: false,
configurable: true
});
IgcSeriesComponent.prototype.__m = function (propertyName) {
if (!this._inStyling) {
this._hasUserValues.add(propertyName);
}
};
IgcSeriesComponent.prototype._styling = function (container, component, parent) {
if (this._inStyling) {
return;
}
this._inStyling = true;
this._stylingContainer = container;
this._stylingParent = component;
var genericPrefix = "";
var typeName = this.i.$type.name;
if (typeName.indexOf("Xam") === 0) {
typeName = typeName.substring(3);
}
genericPrefix = toSpinal("SeriesComponent");
var additionalPrefixes = [];
var prefix = toSpinal(typeName);
additionalPrefixes.push(prefix + "-");
var 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);
}
var basePrefix = toSpinal(typeName);
additionalPrefixes.push(basePrefix + "-");
b = b.baseType;
}
if (parent) {
var parentTypeName = parent.i.$type.name;
if (parentTypeName.indexOf("Xam") === 0) {
parentTypeName = parentTypeName.substring(3);
}
var 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.
*/
IgcSeriesComponent.prototype.resolveTooltipBrush = function () {
var iv = this.i.ng();
return (iv);
};
IgcSeriesComponent.prototype.getItemValue = function (item, memberPathName) {
var iv = this.i.kr(item, memberPathName);
return (iv);
};
/**
* Gets the value of a requested member path from the series.
* @param memberPathName * The property name of a valid member path for the series
*/
IgcSeriesComponent.prototype.getMemberPathValue = function (memberPathName) {
var iv = this.i.mf(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});
* ```
*/
IgcSeriesComponent.prototype.getExactItemIndex = function (world) {
var iv = this.i.is(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});
* ```
*/
IgcSeriesComponent.prototype.getItemIndex = function (world) {
var iv = this.i.j4(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});
* ```
*/
IgcSeriesComponent.prototype.getItem = function (world) {
var iv = this.i.ko(toPoint(world));
return (iv);
};
IgcSeriesComponent.prototype.getPreviousOrExactIndex = function (world, skipUnknowns) {
var iv = this.i.kb(toPoint(world), skipUnknowns);
return (iv);
};
IgcSeriesComponent.prototype.getNextOrExactIndex = function (world, skipUnknowns) {
var iv = this.i.j9(toPoint(world), skipUnknowns);
return (iv);
};
IgcSeriesComponent.prototype.getSeriesValue = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.i6(toPoint(world), useInterpolation, skipUnknowns);
return (iv);
};
IgcSeriesComponent.prototype.getSeriesValuePosition = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.wh(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
*/
IgcSeriesComponent.prototype.getSeriesValueBoundingBox = function (world) {
var iv = this.i.ws(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
*/
IgcSeriesComponent.prototype.getSeriesValueMarkerBoundingBox = function (world) {
var iv = this.i.wu(toPoint(world));
return fromRect(iv);
};
IgcSeriesComponent.prototype.getSeriesHighValue = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.i2(toPoint(world), useInterpolation, skipUnknowns);
return (iv);
};
IgcSeriesComponent.prototype.getSeriesHighValuePosition = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.wd(toPoint(world), useInterpolation, skipUnknowns);
return fromPoint(iv);
};
IgcSeriesComponent.prototype.getSeriesLowValue = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.i4(toPoint(world), useInterpolation, skipUnknowns);
return (iv);
};
IgcSeriesComponent.prototype.getSeriesLowValuePosition = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.wf(toPoint(world), useInterpolation, skipUnknowns);
return fromPoint(iv);
};
IgcSeriesComponent.prototype.getSeriesValuePositionFromSeriesPixel = function (mouse, useInterpolation, skipUnknowns) {
var iv = this.i.wi(toPoint(mouse), useInterpolation, skipUnknowns);
return fromPoint(iv);
};
IgcSeriesComponent.prototype.getSeriesValueFromSeriesPixel = function (mouse, useInterpolation, skipUnknowns) {
var iv = this.i.i7(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();
* ```
*/
IgcSeriesComponent.prototype.getItemSpan = function () {
var iv = this.i.ix();
return (iv);
};
/**
* Gets the data values of each axis associated with the specified value type. For example, if you specify
* mode as Maximum then it will return the maximum numerical value for each axis. For non-numerical axes it
* will return NaN.
* @param mode * The type of value desired from the series axes.
*/
IgcSeriesComponent.prototype.getSeriesValueType = function (mode) {
var iv = this.i.aq((mode == null ? null : mode));
return (iv);
};
/**
* Gets position of series value for specified layer value mode
*/
IgcSeriesComponent.prototype.getSeriesValueTypePosition = function (mode) {
var iv = this.i.wk((mode == null ? null : mode));
return fromPoint(iv);
};
IgcSeriesComponent.prototype.getSeriesValueTypePositionFromValue = function (values) {
var iv = this.i.wl(values);
return fromPoint(iv);
};
/**
* Hides any internal tooltips presented by the series, if any.
*/
IgcSeriesComponent.prototype.hideToolTips = function () {
this.i.p9();
};
/**
* Hides any internal tooltips presented by the series, if any.
*/
IgcSeriesComponent.prototype.hideToolTipsImmediate = function () {
this.i.qa();
};
/**
* 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});
* ```
*/
IgcSeriesComponent.prototype.toWorldPosition = function (seriesPoint) {
var iv = this.i.wm(toPoint(seriesPoint));
return fromPoint(iv);
};
/**
* Converts a rect from coordinates within the series plot area to a world position within axis space.
* @param rect * The pixel rect within the plot area of the series.
*/
IgcSeriesComponent.prototype.toWorldRect = function (rect) {
var iv = this.i.ww(toRect(rect));
return fromRect(iv);
};
/**
* Converts a point from world coordinates to coordinates within the viewport of the series.
* @param world * The world position from which to convert.
*/
IgcSeriesComponent.prototype.fromWorldPosition = function (world) {
var iv = this.i.wc(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);
* ```
*/
IgcSeriesComponent.prototype.scrollIntoView = function (item) {
var iv = this.i.ge(item);
return (iv);
};
/**
* Renders the series.
* @param animate * True if the change should be animated.
*
* ```ts
* this.series.renderSeries(true);
* ```
*/
IgcSeriesComponent.prototype.renderSeries = function (animate) {
this.i.ru(animate);
};
IgcSeriesComponent.prototype.getMainContentViewport = function () {
var iv = this.i.getMainContentViewport();
return fromRect(iv);
};
/**
* Gets the effective viewport, adjusted to account for margins and other factors.
*/
IgcSeriesComponent.prototype.getEffectiveViewport = function () {
var iv = this.i.getEffectiveViewport();
return fromRect(iv);
};
/**
* Removes all alternate views of this series.
*/
IgcSeriesComponent.prototype.removeAllAlternateViews = function () {
this.i.rn();
};
/**
* Removes an alternate view of this series.
* @param viewIdentifier * The string identifier for the view to remove.
*/
IgcSeriesComponent.prototype.removeAlternateView = function (viewIdentifier) {
this.i.rp(viewIdentifier);
};
/**
* Called to notify about changes to indexed-based properties, e.g. Brushes, Outlines, MarkerBrushes, MarkerOutlines and refresh series
*/
IgcSeriesComponent.prototype.notifyIndexedPropertiesChanged = function () {
this.i.qi();
};
/**
* Notifies the series that a visual property has changed, requiring a visual update.
*/
IgcSeriesComponent.prototype.notifyVisualPropertiesChanged = function () {
this.i.qp();
};
/**
* Replays the assigned transition in animation, if any.
*
* ```ts
* this.series.replayTransitionIn();
* ```
*/
IgcSeriesComponent.prototype.replayTransitionIn = function () {
this.i.rz();
};
/**
* Plays the assigned transition out animation, if any.
*/
IgcSeriesComponent.prototype.playTransitionOut = function () {
this.i.q9();
};
/**
* Plays the assigned transition out animation, if any.
*/
IgcSeriesComponent.prototype.playTransitionIn = function () {
this.i.q8();
};
/**
* Plays the assigned transition out animation, if any.
*/
IgcSeriesComponent.prototype.playTransitionOutAndRemove = function () {
this.i.ra();
};
/**
* Call to null out the axes of the series;
*/
IgcSeriesComponent.prototype.removeAxes = function () {
this.i.rq();
};
/**
* 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});
* ```
*/
IgcSeriesComponent.prototype.simulateHover = function (point) {
this.i.sa(toPoint(point));
};
/**
* Called when this series' Style is updated.
*/
IgcSeriesComponent.prototype.styleUpdated = function () {
this.i.sg();
};
IgcSeriesComponent.prototype.setNegativeColors = function (negativeBrush, negativeOutline) {
this.i.r7(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});
* ```
*/
IgcSeriesComponent.prototype.moveCursorPoint = function (point) {
this.i.qe(toPoint(point));
};
Object.defineProperty(IgcSeriesComponent.prototype, "transitionOutCompleted", {
/**
* Fired when a transition out has completed.
*/
get: function () {
return this._transitionOutCompleted;
},
set: function (ev) {
var _this = this;
if (this._transitionOutCompleted_wrapped !== null) {
this.i.transitionOutCompleted = delegateRemove(this.i.transitionOutCompleted, this._transitionOutCompleted_wrapped);
this._transitionOutCompleted_wrapped = null;
this._transitionOutCompleted = null;
}
this._transitionOutCompleted = ev;
this._transitionOutCompleted_wrapped = function (o, e) {
var outerArgs = new IgcTransitionOutCompletedEventArgs();
outerArgs._provideImplementation(e);
if (_this.beforeTransitionOutCompleted) {
_this.beforeTransitionOutCompleted(_this, outerArgs);
}
if (_this._transitionOutCompleted) {
_this._transitionOutCompleted(_this, outerArgs);
}
};
this.i.transitionOutCompleted = delegateCombine(this.i.transitionOutCompleted, this._transitionOutCompleted_wrapped);
;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSeriesComponent.prototype, "renderRequested", {
/**
* This event is raised every time a render has been requested from a series.
*/
get: function () {
return this._renderRequested;
},
set: function (ev) {
var _this = this;
if (this._renderRequested_wrapped !== null) {
this.i.renderRequested = delegateRemove(this.i.renderRequested, this._renderRequested_wrapped);
this._renderRequested_wrapped = null;
this._renderRequested = null;
}
this._renderRequested = ev;
this._renderRequested_wrapped = function (o, e) {
var outerArgs = new IgcRenderRequestedEventArgs();
outerArgs._provideImplementation(e);
if (_this.beforeRenderRequested) {
_this.beforeRenderRequested(_this, outerArgs);
}
if (_this._renderRequested) {
_this._renderRequested(_this, outerArgs);
}
};
this.i.renderRequested = delegateCombine(this.i.renderRequested, this._renderRequested_wrapped);
;
},
enumerable: false,
configurable: true
});
IgcSeriesComponent._observedAttributesIgcSeriesComponent = null;
return IgcSeriesComponent;
}(IgcHTMLElement));
export { IgcSeriesComponent };