import { fromPoint, toPoint, ensureBool } from "igniteui-angular-core";
/**
 * Provides data for IgxDataChartComponent mouse button related events.
*/
var IgxPlotAreaMouseButtonEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgxPlotAreaMouseButtonEventArgs() {
    }
    Object.defineProperty(IgxPlotAreaMouseButtonEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    IgxPlotAreaMouseButtonEventArgs.prototype.onImplementationCreated = function () {
    };
    IgxPlotAreaMouseButtonEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgxPlotAreaMouseButtonEventArgs.prototype, "chartPosition", {
        get: function () {
            return fromPoint(this.i.chartPosition);
        },
        set: function (v) {
            this.i.chartPosition = toPoint(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxPlotAreaMouseButtonEventArgs.prototype, "plotAreaPosition", {
        get: function () {
            return fromPoint(this.i.plotAreaPosition);
        },
        set: function (v) {
            this.i.plotAreaPosition = toPoint(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxPlotAreaMouseButtonEventArgs.prototype, "manipulationOccurred", {
        get: function () {
            return this.i.manipulationOccurred;
        },
        set: function (v) {
            this.i.manipulationOccurred = ensureBool(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxPlotAreaMouseButtonEventArgs.prototype, "viewer", {
        /**
         * Gets the Chart associated with the current event.
        */
        get: function () {
            if (this.i.viewer == null) {
                return null;
            }
            return this.i.viewer.externalObject;
        },
        set: function (v) {
            v == null ? this.i.viewer = null : this.i.viewer = v.i;
        },
        enumerable: false,
        configurable: true
    });
    return IgxPlotAreaMouseButtonEventArgs;
}());
export { IgxPlotAreaMouseButtonEventArgs };
