UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

233 lines (232 loc) 6.05 kB
import { IgxSeriesComponent } from "./igx-series-component"; import { CalloutStyleUpdatingEventArgs as CalloutStyleUpdatingEventArgs_internal } from "./CalloutStyleUpdatingEventArgs"; import { brushToString, stringToBrush, ensureBool } from "igniteui-angular-core"; /** * Event arguments for the CalloutStyleUpdating event */ export class IgxCalloutStyleUpdatingEventArgs { constructor() { this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } createImplementation() { return new CalloutStyleUpdatingEventArgs_internal(); } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } /** * Gets X-position of data item associated with the callout. */ get xValue() { return this.i.xValue; } set xValue(v) { this.i.xValue = v; } /** * Gets Y-position of data item associated with the callout. */ get yValue() { return this.i.yValue; } set yValue(v) { this.i.yValue = v; } /** * Gets data item associated with the callout. */ get item() { return this.i.item; } set item(v) { this.i.item = v; } /** * Gets data series associated with the callout. */ get series() { const r = this.i.series; if (r == null) { return null; } if (!r.externalObject) { let e = IgxSeriesComponent._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; } set series(v) { v == null ? this.i.series = null : this.i.series = v.i; } /** * Gets or sets the background of the callout. */ get background() { return brushToString(this.i.background); } set background(v) { this.i.background = stringToBrush(v); } /** * Gets or sets the text color of the callout. */ get textColor() { return brushToString(this.i.textColor); } set textColor(v) { this.i.textColor = stringToBrush(v); } /** * Gets or sets the outline of the callout. */ get outline() { return brushToString(this.i.outline); } set outline(v) { this.i.outline = stringToBrush(v); } /** * Gets or sets the leader brush of the callout. */ get leaderBrush() { return brushToString(this.i.leaderBrush); } set leaderBrush(v) { this.i.leaderBrush = stringToBrush(v); } /** * Gets or sets the stroke thickness of the callout. */ get strokeThickness() { return this.i.strokeThickness; } set strokeThickness(v) { this.i.strokeThickness = +v; } /** * Gets or sets badge fill in the callout. */ get badgeBackground() { return brushToString(this.i.badgeBackground); } set badgeBackground(v) { this.i.badgeBackground = stringToBrush(v); } /** * Gets or sets badge outline in the callout. */ get badgeOutline() { return brushToString(this.i.badgeOutline); } set badgeOutline(v) { this.i.badgeOutline = stringToBrush(v); } /** * Gets or sets badge thickness in the callout. */ get badgeThickness() { return this.i.badgeThickness; } set badgeThickness(v) { this.i.badgeThickness = +v; } /** * Gets or sets badge width in the callout. */ get badgeWidth() { return this.i.badgeWidth; } set badgeWidth(v) { this.i.badgeWidth = +v; } /** * Gets or sets badge height in the callout. */ get badgeHeight() { return this.i.badgeHeight; } set badgeHeight(v) { this.i.badgeHeight = +v; } /** * Gets or sets whether the badge is visible in the callout. */ get badgeVisible() { return this.i.badgeVisible; } set badgeVisible(v) { this.i.badgeVisible = ensureBool(v); } /** * Gets or sets the gap between badge and text in the callout. */ get badgeGap() { return this.i.badgeGap; } set badgeGap(v) { this.i.badgeGap = +v; } /** * Gets or sets the path to an image displayed in the callout. */ get badgeImage() { return this.i.badgeImage; } set badgeImage(v) { this.i.badgeImage = v; } get badgeCorner() { return this.i.badgeCorner; } set badgeCorner(v) { this.i.badgeCorner = +v; } get backgroundCorner() { return this.i.backgroundCorner; } set backgroundCorner(v) { this.i.backgroundCorner = +v; } get bacgkroundPaddingLeft() { return this.i.bacgkroundPaddingLeft; } set bacgkroundPaddingLeft(v) { this.i.bacgkroundPaddingLeft = +v; } get bacgkroundPaddingTop() { return this.i.bacgkroundPaddingTop; } set bacgkroundPaddingTop(v) { this.i.bacgkroundPaddingTop = +v; } get bacgkroundPaddingRight() { return this.i.bacgkroundPaddingRight; } set bacgkroundPaddingRight(v) { this.i.bacgkroundPaddingRight = +v; } get bacgkroundPaddingBottom() { return this.i.bacgkroundPaddingBottom; } set bacgkroundPaddingBottom(v) { this.i.bacgkroundPaddingBottom = +v; } }