igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
127 lines (126 loc) • 4.14 kB
JavaScript
import { IgcSeriesComponent } from "./igc-series-component";
import { fromPoint, toPoint, ensureBool } from "igniteui-webcomponents-core";
/**
* Represents event arguments for chart's SeriesAdded and SeriesRemoved events
*
* The `DomainChartSeriesPointerEventArgs` class provide events for chart's SeriesAdded and SeriesRemoved.
*
* `SeriesPointerDown` get fired when the pointer is press down over a Series.
*
* ```ts
* this.chart.seriesPointerDown = this.chart_seriesPointerDown();
* ```
*/
var IgcDomainChartSeriesPointerEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgcDomainChartSeriesPointerEventArgs() {
}
Object.defineProperty(IgcDomainChartSeriesPointerEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcDomainChartSeriesPointerEventArgs.prototype.onImplementationCreated = function () {
};
IgcDomainChartSeriesPointerEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgcDomainChartSeriesPointerEventArgs.prototype, "series", {
/**
* Gets the series hit by the pointer.
*
* Use the `Series` property to get the series.
*
* ```ts
* var series= args.series;
* ```
*/
get: function () {
var r = this.i.series;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = IgcSeriesComponent._createFromInternal(r);
if (e) {
e._implementation = r;
}
r.externalObject = e;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.series = null : this.i.series = v.i;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDomainChartSeriesPointerEventArgs.prototype, "item", {
/**
* Gets the item hit by the pointer.
*
* Use the `Item` property to get the items.
*
* <https://www.infragistics.com/help/wpf/infragisticswpf.controls.charts.xamdatachart~infragistics.controls.charts.domainchartseriespointereventargs~item>
*
* ```ts
* var Chartitem = args.item;
* ```
*/
get: function () {
return this.i.item;
},
set: function (v) {
this.i.item = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDomainChartSeriesPointerEventArgs.prototype, "plotAreaPosition", {
/**
* Gets the pointer position relative to the plot area.
*/
get: function () {
return fromPoint(this.i.plotAreaPosition);
},
set: function (v) {
this.i.plotAreaPosition = toPoint(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDomainChartSeriesPointerEventArgs.prototype, "chartPosition", {
/**
* Gets the mouse position relative to the chart.
*/
get: function () {
return fromPoint(this.i.chartPosition);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDomainChartSeriesPointerEventArgs.prototype, "cancelSelection", {
/**
* Gets or sets whether to cancel series selection.
*/
get: function () {
return this.i.cancelSelection;
},
set: function (v) {
this.i.cancelSelection = ensureBool(v);
},
enumerable: false,
configurable: true
});
return IgcDomainChartSeriesPointerEventArgs;
}());
export { IgcDomainChartSeriesPointerEventArgs };