import { Component, Input } from '@angular/core';
import { IgxSeriesComponent } from "./igx-series-component";
import { ensureBool, fromPoint, toPoint } 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.oj;
        }
        set useIndex(v) {
            this.i.oj = ensureBool(v);
        }
        /**
         * Gets or sets whether this series interacts with the chart legend.
        */
        get useLegend() {
            return this.i.ok;
        }
        set useLegend(v) {
            this.i.ok = 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.pb);
        }
        set cursorPosition(v) {
            this.i.pb = 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.oe;
        }
        set isDefaultCrosshairDisabled(v) {
            this.i.oe = ensureBool(v);
        }
        /**
         * Gets whether or not the default crosshair behavior is disabled.
        */
        get isDefaultCrosshairBehaviorDisabled() {
            return this.i.c1;
        }
        /**
         * Gets if the series uses an index, which can be used to auto-assign it a color.
        */
        get isIndexed() {
            return this.i.db;
        }
        /**
         * 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.cx;
        }
        /**
         * Gets or sets whether this layer renders as an overlay or not.
        */
        get shouldRenderAsOverlay() {
            return this.i.oi;
        }
        set shouldRenderAsOverlay(v) {
            this.i.oi = ensureBool(v);
        }
    }
    IgxAnnotationLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: IgxAnnotationLayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
    IgxAnnotationLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: IgxAnnotationLayerComponent, selector: "ng-component", inputs: { useIndex: "useIndex", useLegend: "useLegend", cursorPosition: "cursorPosition", isDefaultCrosshairDisabled: "isDefaultCrosshairDisabled", shouldRenderAsOverlay: "shouldRenderAsOverlay" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
    return IgxAnnotationLayerComponent;
})();
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", 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
            }], shouldRenderAsOverlay: [{
                type: Input
            }] } });
//# sourceMappingURL=igx-annotation-layer-component.js.map
