UNPKG

igniteui-angular-charts

Version:

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

85 lines (84 loc) 2.14 kB
import { UserAnnotationInformation as UserAnnotationInformation_internal } from "./UserAnnotationInformation"; import { brushToString, stringToBrush } from "igniteui-angular-core"; export class IgxUserAnnotationInformation { constructor() { this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } createImplementation() { return new UserAnnotationInformation_internal(); } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } get annotationId() { return this.i.d; } set annotationId(v) { this.i.d = v; } get label() { return this.i.f; } set label(v) { this.i.f = v; } get badgeColor() { return brushToString(this.i.h); } set badgeColor(v) { this.i.h = stringToBrush(v); } get mainColor() { return brushToString(this.i.i); } set mainColor(v) { this.i.i = stringToBrush(v); } get annotationData() { return this.i.c; } set annotationData(v) { this.i.c = v; } get badgeImageUri() { return this.i.e; } set badgeImageUri(v) { this.i.e = v; } get dialogSuggestedXLocation() { return this.i.a; } set dialogSuggestedXLocation(v) { this.i.a = +v; } get dialogSuggestedYLocation() { return this.i.b; } set dialogSuggestedYLocation(v) { this.i.b = +v; } findByName(name) { if (this.findEphemera) { if (name && name.indexOf("@@e:") == 0) { return this.findEphemera(name); } } return null; } }