igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
64 lines (63 loc) • 1.87 kB
JavaScript
import { IgrUserPointAnnotation } from "./igr-user-point-annotation";
import { UserPointAnnotationStylingEventArgs as UserPointAnnotationStylingEventArgs_internal } from "./UserPointAnnotationStylingEventArgs";
/**
* Represents the event arguments for the UserAxisAnnotation styling events.
*/
export class IgrUserPointAnnotationStylingEventArgs {
createImplementation() {
return new UserPointAnnotationStylingEventArgs_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();
}
}
/**
* The annotation to style.
*/
get annotation() {
const r = this.i.annotation;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = new IgrUserPointAnnotation();
if (r.$type) {
e._implementation = r;
}
else {
if (e.i.setNativeElement) {
e.i.setNativeElement(r);
}
}
r.externalObject = e;
}
return r.externalObject;
}
set annotation(v) {
v == null ? this.i.annotation = null : this.i.annotation = v.i;
}
}