UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

94 lines (93 loc) 2.94 kB
import { Style } from "igniteui-react-core"; var IgrStyleShapeEventArgs = /** @class */ /*@__PURE__*/ (function () { function IgrStyleShapeEventArgs() { } Object.defineProperty(IgrStyleShapeEventArgs.prototype, "i", { get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgrStyleShapeEventArgs.prototype.onImplementationCreated = function () { }; IgrStyleShapeEventArgs.prototype._provideImplementation = function (i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); }; Object.defineProperty(IgrStyleShapeEventArgs.prototype, "item", { get: function () { return this.i.item; }, set: function (v) { this.i.item = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrStyleShapeEventArgs.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(IgrStyleShapeEventArgs.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(IgrStyleShapeEventArgs.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(IgrStyleShapeEventArgs.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 }); IgrStyleShapeEventArgs.prototype.ensureShapeStyle = function () { if (this.i.shapeStyle) { return; } this.i.shapeStyle = new Style(); }; return IgrStyleShapeEventArgs; }()); export { IgrStyleShapeEventArgs };