import { FunnelSliceClickedEventArgs as FunnelSliceClickedEventArgs_internal } from "./FunnelSliceClickedEventArgs";
import { fromRect, toRect } from "igniteui-angular-core";
/**
 * Information about the clicked slice.
*/
var IgxFunnelSliceClickedEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgxFunnelSliceClickedEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgxFunnelSliceClickedEventArgs.prototype.createImplementation = function () {
        return new FunnelSliceClickedEventArgs_internal();
    };
    Object.defineProperty(IgxFunnelSliceClickedEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    IgxFunnelSliceClickedEventArgs.prototype.onImplementationCreated = function () {
    };
    IgxFunnelSliceClickedEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgxFunnelSliceClickedEventArgs.prototype, "index", {
        /**
         * The index of the clicked slice.
        */
        get: function () {
            return this.i.index;
        },
        set: function (v) {
            this.i.index = +v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxFunnelSliceClickedEventArgs.prototype, "bounds", {
        /**
         * The bounds of the slice.
        */
        get: function () {
            return fromRect(this.i.bounds);
        },
        set: function (v) {
            this.i.bounds = toRect(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxFunnelSliceClickedEventArgs.prototype, "item", {
        /**
         * The data item for the clicked slice.
        */
        get: function () {
            return this.i.item;
        },
        set: function (v) {
            this.i.item = v;
        },
        enumerable: false,
        configurable: true
    });
    return IgxFunnelSliceClickedEventArgs;
}());
export { IgxFunnelSliceClickedEventArgs };
