igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
57 lines (56 loc) • 1.71 kB
JavaScript
import { IgxUserAxisAnnotation } from "./igx-user-axis-annotation";
import { UserAxisAnnotationStylingEventArgs as UserAxisAnnotationStylingEventArgs_internal } from "./UserAxisAnnotationStylingEventArgs";
/**
* Represents the event arguments for the UserAxisAnnotation styling events.
*/
export class IgxUserAxisAnnotationStylingEventArgs {
constructor() {
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
createImplementation() {
return new UserAxisAnnotationStylingEventArgs_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
onImplementationCreated() {
}
_provideImplementation(i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
}
/**
* The annotation to style.
*/
get annotation() {
const r = this.i.annotation;
if (r == null) {
return null;
}
if (!r.externalObject) {
let e = new IgxUserAxisAnnotation();
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;
}
}