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.
*/
export let IgxAnnotationLayerComponent = /*@__PURE__*/ (() => {
    class IgxAnnotationLayerComponent extends IgxSeriesComponent {
        constructor() {
            super();
        }
        /**
                                     * @hidden
                                     */
        get i() {
            return this._implementation;
        }
        /**
         * Gets or sets whether this series should take up an index for auto brush coloring.
        */
        get useIndex() {
            return this.i.qy;
        }
        set useIndex(v) {
            this.i.qy = ensureBool(v);
        }
        /**
         * Gets or sets whether this series interacts with the chart legend.
        */
        get useLegend() {
            return this.i.qz;
        }
        set useLegend(v) {
            this.i.qz = ensureBool(v);
        }
        /**
         * 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 cursorPosition() {
            return fromPoint(this.i.s9);
        }
        set cursorPosition(v) {
            this.i.s9 = toPoint(v);
        }
        /**
         * Gets or sets whether the series viewer's default crosshair should be disabled by the presence of this layer.
        */
        get isDefaultCrosshairDisabled() {
            return this.i.qt;
        }
        set isDefaultCrosshairDisabled(v) {
            this.i.qt = ensureBool(v);
        }
        /**
         * Gets whether or not the default crosshair behavior is disabled.
        */
        get isDefaultCrosshairBehaviorDisabled() {
            return this.i.dm;
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get appearanceMode() {
            return this.i.qf;
        }
        set appearanceMode(v) {
            this.i.qf = ensureEnum(AnnotationAppearanceMode_$type, v);
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get actualAppearanceMode() {
            return this.i.qc;
        }
        set actualAppearanceMode(v) {
            this.i.qc = ensureEnum(AnnotationAppearanceMode_$type, v);
        }
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get shiftAmount() {
            return this.i.rc;
        }
        set shiftAmount(v) {
            this.i.rc = +v;
        }
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get actualShiftAmount() {
            return this.i.q1;
        }
        set actualShiftAmount(v) {
            this.i.q1 = +v;
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get horizontalAppearanceMode() {
            return this.i.qm;
        }
        set horizontalAppearanceMode(v) {
            this.i.qm = ensureEnum(AnnotationAppearanceMode_$type, v);
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get actualHorizontalAppearanceMode() {
            return this.i.qd;
        }
        set actualHorizontalAppearanceMode(v) {
            this.i.qd = ensureEnum(AnnotationAppearanceMode_$type, v);
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get verticalAppearanceMode() {
            return this.i.qn;
        }
        set verticalAppearanceMode(v) {
            this.i.qn = ensureEnum(AnnotationAppearanceMode_$type, v);
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get actualVerticalAppearanceMode() {
            return this.i.qe;
        }
        set actualVerticalAppearanceMode(v) {
            this.i.qe = ensureEnum(AnnotationAppearanceMode_$type, v);
        }
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get horizontalShiftAmount() {
            return this.i.rb;
        }
        set horizontalShiftAmount(v) {
            this.i.rb = +v;
        }
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get actualHorizontalShiftAmount() {
            return this.i.q0;
        }
        set actualHorizontalShiftAmount(v) {
            this.i.q0 = +v;
        }
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get verticalShiftAmount() {
            return this.i.rd;
        }
        set verticalShiftAmount(v) {
            this.i.rd = +v;
        }
        /**
         * Gets or sets the percentage amount to shift the appearance mode by. Value must range between -1.0 to 1.0.
        */
        get actualVerticalShiftAmount() {
            return this.i.q2;
        }
        set actualVerticalShiftAmount(v) {
            this.i.q2 = +v;
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get horizontalDashArray() {
            return fromDoubleCollection(this.i.s6);
        }
        set horizontalDashArray(v) {
            this.i.s6 = toDoubleCollection(v);
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get actualHorizontalDashArray() {
            return fromDoubleCollection(this.i.s0);
        }
        set actualHorizontalDashArray(v) {
            this.i.s0 = toDoubleCollection(v);
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get verticalDashArray() {
            return fromDoubleCollection(this.i.s7);
        }
        set verticalDashArray(v) {
            this.i.s7 = toDoubleCollection(v);
        }
        /**
         * Gets or sets the mode used for shifting the annotation layer color based on the target series.
        */
        get actualVerticalDashArray() {
            return fromDoubleCollection(this.i.s1);
        }
        set actualVerticalDashArray(v) {
            this.i.s1 = toDoubleCollection(v);
        }
        /**
         * Gets if the series uses an index, which can be used to auto-assign it a color.
        */
        get isIndexed() {
            return this.i.d1;
        }
        /**
         * Gets if the series should appear in any legends.
        */
        get isUsableInLegend() {
            return this.i.isUsableInLegend;
        }
        /**
         * Gets whether this series is an annotation layer.
        */
        get isAnnotationLayer() {
            return this.i.dd;
        }
        /**
         * Gets or sets whether this layer renders as an overlay or not.
        */
        get shouldRenderAsOverlay() {
            return this.i.qx;
        }
        set shouldRenderAsOverlay(v) {
            this.i.qx = ensureBool(v);
        }
    }
    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;
})();
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
            }] } });
