/*! * devextreme-angular-test * Version: 17.2.8 * Build date: Mon Feb 05 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ import { Component, NgModule, Host, SkipSelf, Input } from '@angular/core'; import { NestedOptionHost } from '../../core/nested-option'; import { NestedOption } from '../../core/nested-option'; @Component({ selector: 'dxo-point', template: '', styles: [''], providers: [NestedOptionHost] }) export class DxoPointComponent extends NestedOption { @Input() get border(): any { return this._getOption('border'); } set border(value: any) { this._setOption('border', value); } @Input() get color(): string { return this._getOption('color'); } set color(value: string) { this._setOption('color', value); } @Input() get hoverMode(): string { return this._getOption('hoverMode'); } set hoverMode(value: string) { this._setOption('hoverMode', value); } @Input() get hoverStyle(): any { return this._getOption('hoverStyle'); } set hoverStyle(value: any) { this._setOption('hoverStyle', value); } @Input() get image(): string| { height?: number| { rangeMaxPoint?: number, rangeMinPoint?: number }, url?: string| { rangeMaxPoint?: string, rangeMinPoint?: string }, width?: number| { rangeMaxPoint?: number, rangeMinPoint?: number } }| { height?: number, url?: string, width?: number } { return this._getOption('image'); } set image(value: string| { height?: number| { rangeMaxPoint?: number, rangeMinPoint?: number }, url?: string| { rangeMaxPoint?: string, rangeMinPoint?: string }, width?: number| { rangeMaxPoint?: number, rangeMinPoint?: number } }| { height?: number, url?: string, width?: number }) { this._setOption('image', value); } @Input() get selectionMode(): string { return this._getOption('selectionMode'); } set selectionMode(value: string) { this._setOption('selectionMode', value); } @Input() get selectionStyle(): any { return this._getOption('selectionStyle'); } set selectionStyle(value: any) { this._setOption('selectionStyle', value); } @Input() get size(): number { return this._getOption('size'); } set size(value: number) { this._setOption('size', value); } @Input() get symbol(): string { return this._getOption('symbol'); } set symbol(value: string) { this._setOption('symbol', value); } @Input() get visible(): boolean { return this._getOption('visible'); } set visible(value: boolean) { this._setOption('visible', value); } protected get _optionPath() { return 'point'; } constructor(@SkipSelf() @Host() parentOptionHost: NestedOptionHost, @Host() optionHost: NestedOptionHost) { super(); parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); } } @NgModule({ declarations: [ DxoPointComponent ], exports: [ DxoPointComponent ], }) export class DxoPointModule { }