igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
342 lines (341 loc) • 10.9 kB
JavaScript
import { IgrSeries } from "./igr-series";
import { CalloutStyleUpdatingEventArgs as CalloutStyleUpdatingEventArgs_internal } from "./CalloutStyleUpdatingEventArgs";
import { brushToString, stringToBrush, ensureBool } from "igniteui-react-core";
/**
* Event arguments for the CalloutStyleUpdating event
*/
var IgrCalloutStyleUpdatingEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgrCalloutStyleUpdatingEventArgs() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrCalloutStyleUpdatingEventArgs.prototype.createImplementation = function () {
return new CalloutStyleUpdatingEventArgs_internal();
};
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrCalloutStyleUpdatingEventArgs.prototype.onImplementationCreated = function () {
};
IgrCalloutStyleUpdatingEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "xValue", {
/**
* Gets X-position of data item associated with the callout.
*/
get: function () {
return this.i.xValue;
},
set: function (v) {
this.i.xValue = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "yValue", {
/**
* Gets Y-position of data item associated with the callout.
*/
get: function () {
return this.i.yValue;
},
set: function (v) {
this.i.yValue = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "item", {
/**
* Gets data item associated with the callout.
*/
get: function () {
return this.i.item;
},
set: function (v) {
this.i.item = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "series", {
/**
* Gets data series associated with the callout.
*/
get: function () {
var r = this.i.series;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = IgrSeries._createFromInternal(r);
if (e) {
e._implementation = r;
}
r.externalObject = e;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.series = null : this.i.series = v.i;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "background", {
/**
* Gets or sets the background of the callout.
*/
get: function () {
return brushToString(this.i.background);
},
set: function (v) {
this.i.background = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "textColor", {
/**
* Gets or sets the text color of the callout.
*/
get: function () {
return brushToString(this.i.textColor);
},
set: function (v) {
this.i.textColor = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "outline", {
/**
* Gets or sets the outline of the callout.
*/
get: function () {
return brushToString(this.i.outline);
},
set: function (v) {
this.i.outline = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "leaderBrush", {
/**
* Gets or sets the leader brush of the callout.
*/
get: function () {
return brushToString(this.i.leaderBrush);
},
set: function (v) {
this.i.leaderBrush = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "strokeThickness", {
/**
* Gets or sets the stroke thickness of the callout.
*/
get: function () {
return this.i.strokeThickness;
},
set: function (v) {
this.i.strokeThickness = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeBackground", {
/**
* Gets or sets badge fill in the callout.
*/
get: function () {
return brushToString(this.i.badgeBackground);
},
set: function (v) {
this.i.badgeBackground = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeOutline", {
/**
* Gets or sets badge outline in the callout.
*/
get: function () {
return brushToString(this.i.badgeOutline);
},
set: function (v) {
this.i.badgeOutline = stringToBrush(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeThickness", {
/**
* Gets or sets badge thickness in the callout.
*/
get: function () {
return this.i.badgeThickness;
},
set: function (v) {
this.i.badgeThickness = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeWidth", {
/**
* Gets or sets badge width in the callout.
*/
get: function () {
return this.i.badgeWidth;
},
set: function (v) {
this.i.badgeWidth = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeHeight", {
/**
* Gets or sets badge height in the callout.
*/
get: function () {
return this.i.badgeHeight;
},
set: function (v) {
this.i.badgeHeight = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeVisible", {
/**
* Gets or sets whether the badge is visible in the callout.
*/
get: function () {
return this.i.badgeVisible;
},
set: function (v) {
this.i.badgeVisible = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeGap", {
/**
* Gets or sets the gap between badge and text in the callout.
*/
get: function () {
return this.i.badgeGap;
},
set: function (v) {
this.i.badgeGap = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeImage", {
/**
* Gets or sets the path to an image displayed in the callout.
*/
get: function () {
return this.i.badgeImage;
},
set: function (v) {
this.i.badgeImage = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "badgeCorner", {
get: function () {
return this.i.badgeCorner;
},
set: function (v) {
this.i.badgeCorner = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "backgroundCorner", {
get: function () {
return this.i.backgroundCorner;
},
set: function (v) {
this.i.backgroundCorner = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingLeft", {
get: function () {
return this.i.bacgkroundPaddingLeft;
},
set: function (v) {
this.i.bacgkroundPaddingLeft = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingTop", {
get: function () {
return this.i.bacgkroundPaddingTop;
},
set: function (v) {
this.i.bacgkroundPaddingTop = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingRight", {
get: function () {
return this.i.bacgkroundPaddingRight;
},
set: function (v) {
this.i.bacgkroundPaddingRight = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrCalloutStyleUpdatingEventArgs.prototype, "bacgkroundPaddingBottom", {
get: function () {
return this.i.bacgkroundPaddingBottom;
},
set: function (v) {
this.i.bacgkroundPaddingBottom = +v;
},
enumerable: false,
configurable: true
});
return IgrCalloutStyleUpdatingEventArgs;
}());
export { IgrCalloutStyleUpdatingEventArgs };