import { __extends } from "tslib";
import { Component, Input } from '@angular/core';
import { AnnotationAppearanceMode_$type } from "./AnnotationAppearanceMode";
import { IgxSeriesComponent } from "./igx-series-component";
import { ensureBool, fromPoint, toPoint, ensureEnum, toDoubleCollection, fromDoubleCollection } from "igniteui-angular-core";
import * as i0 from "@angular/core";
/**
 * Represents the base class for annotation layer types. Annotations will usually disable some of the default hover/touch behaviors of the chart when they are introduced to the series collection.
 * In return they provide some valuable information as the cursor is moved by hovering over the chart, or performing a press-hold-drag interaction in touch mode.
*/
var IgxAnnotationLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(IgxAnnotationLayerComponent, _super);
    function IgxAnnotationLayerComponent() {
        return _super.call(this) || this;
    }
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "useIndex", {
        /**
         * Gets or sets whether this series should take up an index for auto brush coloring.
        */
        get: function () {
            return this.i.xk;
        },
        set: function (v) {
            this.i.xk = ensureBool(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "useLegend", {
        /**
         * Gets or sets whether this series interacts with the chart legend.
        */
        get: function () {
            return this.i.xl;
        },
        set: function (v) {
            this.i.xl = ensureBool(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "cursorPosition", {
        /**
         * Gets or sets the world position to use instead of the pointer position for this annotation layer. If you set this value, rather than responding to the pointer, this layer will be fixed on the provided world position.
         * A world position has x and y values that range from 0 to 1 that represent the global position of the cursor relative to the entire ranges of the axes. The default of (NaN, NaN) means that the layer should react to pointer movement.
        */
        get: function () {
            return fromPoint(this.i.zv);
        },
        set: function (v) {
            this.i.zv = toPoint(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "isDefaultCrosshairDisabled", {
        /**
         * Gets or sets whether the series viewer's default crosshair should be disabled by the presence of this layer.
        */
        get: function () {
            return this.i.xf;
        },
        set: function (v) {
            this.i.xf = ensureBool(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "isDefaultCrosshairBehaviorDisabled", {
        /**
         * Gets whether or not the default crosshair behavior is disabled.
        */
        get: function () {
            return this.i.e1;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "appearanceMode", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return this.i.w1;
        },
        set: function (v) {
            this.i.w1 = ensureEnum(AnnotationAppearanceMode_$type, v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualAppearanceMode", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return this.i.wy;
        },
        set: function (v) {
            this.i.wy = ensureEnum(AnnotationAppearanceMode_$type, v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "shiftAmount", {
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get: function () {
            return this.i.xy;
        },
        set: function (v) {
            this.i.xy = +v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualShiftAmount", {
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get: function () {
            return this.i.xn;
        },
        set: function (v) {
            this.i.xn = +v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "horizontalAppearanceMode", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return this.i.w8;
        },
        set: function (v) {
            this.i.w8 = ensureEnum(AnnotationAppearanceMode_$type, v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualHorizontalAppearanceMode", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return this.i.wz;
        },
        set: function (v) {
            this.i.wz = ensureEnum(AnnotationAppearanceMode_$type, v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "verticalAppearanceMode", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return this.i.w9;
        },
        set: function (v) {
            this.i.w9 = ensureEnum(AnnotationAppearanceMode_$type, v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualVerticalAppearanceMode", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return this.i.w0;
        },
        set: function (v) {
            this.i.w0 = ensureEnum(AnnotationAppearanceMode_$type, v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "horizontalShiftAmount", {
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get: function () {
            return this.i.xx;
        },
        set: function (v) {
            this.i.xx = +v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualHorizontalShiftAmount", {
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get: function () {
            return this.i.xm;
        },
        set: function (v) {
            this.i.xm = +v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "verticalShiftAmount", {
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get: function () {
            return this.i.xz;
        },
        set: function (v) {
            this.i.xz = +v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualVerticalShiftAmount", {
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get: function () {
            return this.i.xo;
        },
        set: function (v) {
            this.i.xo = +v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "horizontalDashArray", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return fromDoubleCollection(this.i.zs);
        },
        set: function (v) {
            this.i.zs = toDoubleCollection(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualHorizontalDashArray", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return fromDoubleCollection(this.i.zm);
        },
        set: function (v) {
            this.i.zm = toDoubleCollection(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "verticalDashArray", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return fromDoubleCollection(this.i.zt);
        },
        set: function (v) {
            this.i.zt = toDoubleCollection(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "actualVerticalDashArray", {
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get: function () {
            return fromDoubleCollection(this.i.zn);
        },
        set: function (v) {
            this.i.zn = toDoubleCollection(v);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "isIndexed", {
        /**
         * Gets if the series uses an index, which can be used to auto-assign it a color.
        */
        get: function () {
            return this.i.fg;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "isUsableInLegend", {
        /**
         * Gets if the series should appear in any legends.
        */
        get: function () {
            return this.i.isUsableInLegend;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "isAnnotationLayer", {
        /**
         * Gets whether this series is an annotation layer.
        */
        get: function () {
            return this.i.es;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxAnnotationLayerComponent.prototype, "shouldRenderAsOverlay", {
        /**
         * Gets or sets whether this layer renders as an overlay or not.
        */
        get: function () {
            return this.i.xj;
        },
        set: function (v) {
            this.i.xj = ensureBool(v);
        },
        enumerable: false,
        configurable: true
    });
    IgxAnnotationLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxAnnotationLayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    IgxAnnotationLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: IgxAnnotationLayerComponent, selector: "ng-component", inputs: { useIndex: "useIndex", useLegend: "useLegend", cursorPosition: "cursorPosition", isDefaultCrosshairDisabled: "isDefaultCrosshairDisabled", appearanceMode: "appearanceMode", actualAppearanceMode: "actualAppearanceMode", shiftAmount: "shiftAmount", actualShiftAmount: "actualShiftAmount", horizontalAppearanceMode: "horizontalAppearanceMode", actualHorizontalAppearanceMode: "actualHorizontalAppearanceMode", verticalAppearanceMode: "verticalAppearanceMode", actualVerticalAppearanceMode: "actualVerticalAppearanceMode", horizontalShiftAmount: "horizontalShiftAmount", actualHorizontalShiftAmount: "actualHorizontalShiftAmount", verticalShiftAmount: "verticalShiftAmount", actualVerticalShiftAmount: "actualVerticalShiftAmount", horizontalDashArray: "horizontalDashArray", actualHorizontalDashArray: "actualHorizontalDashArray", verticalDashArray: "verticalDashArray", actualVerticalDashArray: "actualVerticalDashArray", shouldRenderAsOverlay: "shouldRenderAsOverlay" }, usesInheritance: true, ngImport: i0, template: "", isInline: true });
    return IgxAnnotationLayerComponent;
}(IgxSeriesComponent));
export { IgxAnnotationLayerComponent };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: IgxAnnotationLayerComponent, decorators: [{
            type: Component,
            args: [{
                    template: "",
                }]
        }], ctorParameters: function () { return []; }, propDecorators: { useIndex: [{
                type: Input
            }], useLegend: [{
                type: Input
            }], cursorPosition: [{
                type: Input
            }], isDefaultCrosshairDisabled: [{
                type: Input
            }], appearanceMode: [{
                type: Input
            }], actualAppearanceMode: [{
                type: Input
            }], shiftAmount: [{
                type: Input
            }], actualShiftAmount: [{
                type: Input
            }], horizontalAppearanceMode: [{
                type: Input
            }], actualHorizontalAppearanceMode: [{
                type: Input
            }], verticalAppearanceMode: [{
                type: Input
            }], actualVerticalAppearanceMode: [{
                type: Input
            }], horizontalShiftAmount: [{
                type: Input
            }], actualHorizontalShiftAmount: [{
                type: Input
            }], verticalShiftAmount: [{
                type: Input
            }], actualVerticalShiftAmount: [{
                type: Input
            }], horizontalDashArray: [{
                type: Input
            }], actualHorizontalDashArray: [{
                type: Input
            }], verticalDashArray: [{
                type: Input
            }], actualVerticalDashArray: [{
                type: Input
            }], shouldRenderAsOverlay: [{
                type: Input
            }] } });
