UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

92 lines (91 loc) 2.26 kB
import { UserAnnotationInformation as UserAnnotationInformation_internal } from "./UserAnnotationInformation"; import { brushToString, stringToBrush } from "igniteui-react-core"; export class IgrUserAnnotationInformation { createImplementation() { return new UserAnnotationInformation_internal(); } get nativeElement() { return this._implementation.nativeElement; } /** * @hidden */ get i() { return this._implementation; } onImplementationCreated() { } constructor() { this.mounted = false; this._implementation = this.createImplementation(); this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); if (this._initializeAdapters) { this._initializeAdapters(); } } 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; } }