UNPKG

igniteui-webcomponents-charts

Version:

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

306 lines (305 loc) 11.2 kB
import { __extends } from "tslib"; import { MarkerType_$type } from "./MarkerType"; import { MarkerOutlineMode_$type } from "./MarkerOutlineMode"; import { MarkerFillMode_$type } from "./MarkerFillMode"; import { IgcSeriesComponent } from "./igc-series-component"; import { getAllPropertyNames, toSpinal, ensureBool, ensureEnum, enumToString, brushToString, stringToBrush } from "igniteui-webcomponents-core"; /** * Represents the base class for series containing markers. * * MarkerSeries represents the base class for series containing markers. * * Example: */ var IgcMarkerSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcMarkerSeriesComponent, _super); function IgcMarkerSeriesComponent() { return _super.call(this) || this; } Object.defineProperty(IgcMarkerSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcMarkerSeriesComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } }; IgcMarkerSeriesComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcMarkerSeriesComponent, "observedAttributes", { get: function () { if (IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent == null) { var names = getAllPropertyNames(IgcMarkerSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent = names; } return IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "hasMarkers", { /** * Returns whether the current series supports visual markers. * * `HasMarkers` property is overriden, it returns whether the current series supports visual markers. You can use it like this: * * ```ts * let gotMarkers: boolean = this.series.hasMarkers; * ``` */ get: function () { return this.i.hasMarkers; }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "hasVisibleMarkers", { get: function () { return this.i.en; }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "markerType", { /** * Gets or sets the marker type for the current series object. * This property is ignored when the MarkerTemplate property is set * * `MarkerType` property gets or sets the marker type for the current series object. For example, you can set it like this: * * ```ts * this.series.markerType = "circle"; * ``` */ get: function () { return this.i.xf; }, set: function (v) { this.i.xf = ensureEnum(MarkerType_$type, v); this._a("markerType", enumToString(MarkerType_$type, this.i.xf)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "actualMarkerType", { /** * Represents the resolved marker type for the series. */ get: function () { return this.i.xd; }, set: function (v) { this.i.xd = ensureEnum(MarkerType_$type, v); this._a("actualMarkerType", enumToString(MarkerType_$type, this.i.xd)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "isCustomMarkerCircular", { /** * Gets or sets whether the marker for the current series object should be treated as circular. */ get: function () { return this.i.xi; }, set: function (v) { this.i.xi = ensureBool(v); this._a("isCustomMarkerCircular", this.i.xi); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "effectiveIsMarkerCircular", { /** * Gets whether the markers for the current series are in circular shape */ get: function () { return this.i.xh; }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "markerOutlineMode", { /** * Gets or sets whether the marker outline is based on the marker brush of the series rather than the marker outlines collection. */ get: function () { return this.i.w9; }, set: function (v) { this.i.w9 = ensureEnum(MarkerOutlineMode_$type, v); this._a("markerOutlineMode", enumToString(MarkerOutlineMode_$type, this.i.w9)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "markerFillMode", { /** * Gets or sets whether the marker fill is based on the marker outline of the series rather than the marker brushes collection. */ get: function () { return this.i.w5; }, set: function (v) { this.i.w5 = ensureEnum(MarkerFillMode_$type, v); this._a("markerFillMode", enumToString(MarkerFillMode_$type, this.i.w5)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "markerTemplate", { /** * Gets or sets the MarkerTemplate for the current series object. * * `MarkerTemplate` property gets or sets the MarkerTemplate for the current series object. For example, you can use it like this: */ get: function () { return this.i.x7; }, set: function (v) { this.i.x7 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "markerThickness", { /** * Gets or sets thickness of the marker outline */ get: function () { return this.i.xo; }, set: function (v) { this.i.xo = +v; this._a("markerThickness", this.i.xo); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "actualMarkerTemplate", { /** * Gets the effective marker template for the current series object. * * `ActualMarkerTemplate` property gets the effective marker template for the current series object. You can use it like this: */ get: function () { return this.i.x5; }, set: function (v) { this.i.x5 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "markerBrush", { /** * Gets or sets the brush that specifies how the current series object's marker interiors are painted. * * `MarkerBrush` property gets or sets the brush that specifies how the current series object's marker interiors are painted. You can use it like this: * * ```ts * this.series.markerBrush = "red"; * ``` */ get: function () { return brushToString(this.i.yo); }, set: function (v) { this.i.yo = stringToBrush(v); this._a("markerBrush", brushToString(this.i.yo)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "actualMarkerBrush", { /** * Gets the effective marker brush for the current series object. * * `ActualMarkerBrush` property gets the effective marker brush for the current series object. For example, you can use it like this: * * ```ts * let effectiveMarkerBrush: string = this.series.actualMarkerBrush; * * ``` */ get: function () { return brushToString(this.i.ym); }, set: function (v) { this.i.ym = stringToBrush(v); this._a("actualMarkerBrush", brushToString(this.i.ym)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "markerOutline", { /** * Gets or sets the brush that specifies how the current series object's marker outlines are painted. * * `MarkerOutline` property gets or sets the brush that specifies how the current series object's marker outlines are painted. You can use it like this: * * ```ts * this.series.markerOutline = "red"; * ``` */ get: function () { return brushToString(this.i.yp); }, set: function (v) { this.i.yp = stringToBrush(v); this._a("markerOutline", brushToString(this.i.yp)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcMarkerSeriesComponent.prototype, "actualMarkerOutline", { /** * Gets the effective marker outline for the current series object. * * `ActualMarkerOutline` property gets the effective marker outline for the current series object. You can use it like this: * * ```ts * let effectiveMarkerOutline: string = this.series.actualMarkerOutline; * * ``` */ get: function () { return brushToString(this.i.yn); }, set: function (v) { this.i.yn = stringToBrush(v); this._a("actualMarkerOutline", brushToString(this.i.yn)); }, enumerable: false, configurable: true }); IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent = null; return IgcMarkerSeriesComponent; }(IgcSeriesComponent)); export { IgcMarkerSeriesComponent };