import { fromPoint, toPoint, ensureBool } from "igniteui-react-core";
/**
 * Provides data for IgxDataChartComponent mouse button related events.
*/
export class IgrPlotAreaMouseEventArgs {
    /**
     * @hidden
     */
    get i() {
        return this._implementation;
    }
    onImplementationCreated() {
    }
    constructor() {
    }
    _provideImplementation(i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    get chartPosition() {
        return fromPoint(this.i.chartPosition);
    }
    set chartPosition(v) {
        this.i.chartPosition = toPoint(v);
    }
    get plotAreaPosition() {
        return fromPoint(this.i.plotAreaPosition);
    }
    set plotAreaPosition(v) {
        this.i.plotAreaPosition = toPoint(v);
    }
    get isDuringManipulation() {
        return this.i.isDuringManipulation;
    }
    set isDuringManipulation(v) {
        this.i.isDuringManipulation = ensureBool(v);
    }
    /**
     * Gets the Chart associated with the current event.
    */
    get viewer() {
        if (this.i.viewer == null) {
            return null;
        }
        return this.i.viewer.externalObject;
    }
    set viewer(v) {
        v == null ? this.i.viewer = null : this.i.viewer = v.i;
    }
}
//# sourceMappingURL=igr-plot-area-mouse-event-args.js.map
