igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
134 lines (133 loc) • 4.27 kB
JavaScript
import { UserAnnotationInformation as UserAnnotationInformation_internal } from "./UserAnnotationInformation";
import { brushToString, stringToBrush } from "igniteui-react-core";
var IgrUserAnnotationInformation = /** @class */ /*@__PURE__*/ (function () {
function IgrUserAnnotationInformation() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrUserAnnotationInformation.prototype.createImplementation = function () {
return new UserAnnotationInformation_internal();
};
Object.defineProperty(IgrUserAnnotationInformation.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrUserAnnotationInformation.prototype.onImplementationCreated = function () {
};
IgrUserAnnotationInformation.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrUserAnnotationInformation.prototype, "annotationId", {
get: function () {
return this.i.d;
},
set: function (v) {
this.i.d = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "label", {
get: function () {
return this.i.f;
},
set: function (v) {
this.i.f = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "badgeColor", {
get: function () {
return brushToString(this.i.h);
},
set: function (v) {
this.i.h = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "mainColor", {
get: function () {
return brushToString(this.i.i);
},
set: function (v) {
this.i.i = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "annotationData", {
get: function () {
return this.i.c;
},
set: function (v) {
this.i.c = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "badgeImageUri", {
get: function () {
return this.i.e;
},
set: function (v) {
this.i.e = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "dialogSuggestedXLocation", {
get: function () {
return this.i.a;
},
set: function (v) {
this.i.a = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrUserAnnotationInformation.prototype, "dialogSuggestedYLocation", {
get: function () {
return this.i.b;
},
set: function (v) {
this.i.b = +v;
},
enumerable: false,
configurable: true
});
IgrUserAnnotationInformation.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
return null;
};
return IgrUserAnnotationInformation;
}());
export { IgrUserAnnotationInformation };