UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

40 lines (39 loc) 1.01 kB
import { fromPoint, toPoint } from "igniteui-webcomponents-core"; /** * Represents event arguments for chart's SeriesAdded and SeriesRemoved events */ export class IgcDomainChartPlotAreaPointerEventArgs { /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } /** * Gets the pointer position relative to the plot area. */ get plotAreaPosition() { return fromPoint(this.i.plotAreaPosition); } set plotAreaPosition(v) { this.i.plotAreaPosition = toPoint(v); } /** * Gets the mouse position relative to the chart. */ get chartPosition() { return fromPoint(this.i.chartPosition); } }