igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
94 lines (93 loc) • 2.95 kB
JavaScript
import { Style } from "igniteui-webcomponents-core";
var IgcStyleShapeEventArgs = /** @class */ /*@__PURE__*/ (function () {
function IgcStyleShapeEventArgs() {
}
Object.defineProperty(IgcStyleShapeEventArgs.prototype, "i", {
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcStyleShapeEventArgs.prototype.onImplementationCreated = function () {
};
IgcStyleShapeEventArgs.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
};
Object.defineProperty(IgcStyleShapeEventArgs.prototype, "item", {
get: function () {
return this.i.item;
},
set: function (v) {
this.i.item = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStyleShapeEventArgs.prototype, "shapeFill", {
/**
* Gets or sets the fill brush.
*/
get: function () {
return this.i.shapeStyle ? this.i.shapeStyle.fill : null;
},
set: function (v) {
this.ensureShapeStyle();
this.i.shapeStyle.fill = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStyleShapeEventArgs.prototype, "shapeStroke", {
/**
* Gets or sets the stroke brush.
*/
get: function () {
return this.i.shapeStyle ? this.i.shapeStyle.stroke : null;
},
set: function (v) {
this.ensureShapeStyle();
this.i.shapeStyle.stroke = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStyleShapeEventArgs.prototype, "shapeStrokeThickness", {
/**
* Gets or sets the stroke thickness.
*/
get: function () {
return this.i.shapeStyle ? this.i.shapeStyle.strokeThickness : NaN;
},
set: function (v) {
this.ensureShapeStyle();
this.i.shapeStyle.strokeThickness = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStyleShapeEventArgs.prototype, "shapeOpacity", {
/**
* Gets or sets the opacity.
*/
get: function () {
return this.i.shapeStyle ? this.i.shapeStyle.opacity : NaN;
},
set: function (v) {
this.ensureShapeStyle();
this.i.shapeStyle.opacity = +v;
},
enumerable: false,
configurable: true
});
IgcStyleShapeEventArgs.prototype.ensureShapeStyle = function () {
if (this.i.shapeStyle) {
return;
}
this.i.shapeStyle = new Style();
};
return IgcStyleShapeEventArgs;
}());
export { IgcStyleShapeEventArgs };