UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

68 lines (67 loc) 1.72 kB
import { Style } from "igniteui-angular-core"; export class IgxStyleShapeEventArgs { constructor() { } get i() { return this._implementation; } onImplementationCreated() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } get item() { return this.i.item; } set item(v) { this.i.item = v; } /** * Gets or sets the fill brush. */ get shapeFill() { return this.i.shapeStyle ? this.i.shapeStyle.fill : null; } set shapeFill(v) { this.ensureShapeStyle(); this.i.shapeStyle.fill = v; } /** * Gets or sets the stroke brush. */ get shapeStroke() { return this.i.shapeStyle ? this.i.shapeStyle.stroke : null; } set shapeStroke(v) { this.ensureShapeStyle(); this.i.shapeStyle.stroke = v; } /** * Gets or sets the stroke thickness. */ get shapeStrokeThickness() { return this.i.shapeStyle ? this.i.shapeStyle.strokeThickness : NaN; } set shapeStrokeThickness(v) { this.ensureShapeStyle(); this.i.shapeStyle.strokeThickness = +v; } /** * Gets or sets the opacity. */ get shapeOpacity() { return this.i.shapeStyle ? this.i.shapeStyle.opacity : NaN; } set shapeOpacity(v) { this.ensureShapeStyle(); this.i.shapeStyle.opacity = +v; } ensureShapeStyle() { if (this.i.shapeStyle) { return; } this.i.shapeStyle = new Style(); } }