igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
231 lines (230 loc) • 8.56 kB
JavaScript
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";
let IgcMarkerSeriesComponent = /*@__PURE__*/ (() => {
class IgcMarkerSeriesComponent extends IgcSeriesComponent {
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
connectedCallback() {
if (super["connectedCallback"]) {
super["connectedCallback"]();
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
}
disconnectedCallback() {
if (super["disconnectedCallback"]) {
super["disconnectedCallback"]();
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
}
static get observedAttributes() {
if (IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent == null) {
let names = getAllPropertyNames(IgcMarkerSeriesComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent = names;
}
return IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent;
}
/**
* 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 hasMarkers() {
return this.i.hasMarkers;
}
get hasVisibleMarkers() {
return this.i.en;
}
/**
* 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 markerType() {
return this.i.xv;
}
set markerType(v) {
this.i.xv = ensureEnum(MarkerType_$type, v);
this._a("markerType", enumToString(MarkerType_$type, this.i.xv));
}
/**
* Represents the resolved marker type for the series.
*/
get actualMarkerType() {
return this.i.xt;
}
set actualMarkerType(v) {
this.i.xt = ensureEnum(MarkerType_$type, v);
this._a("actualMarkerType", enumToString(MarkerType_$type, this.i.xt));
}
/**
* Gets or sets whether the marker for the current series object should be treated as circular.
*/
get isCustomMarkerCircular() {
return this.i.xy;
}
set isCustomMarkerCircular(v) {
this.i.xy = ensureBool(v);
this._a("isCustomMarkerCircular", this.i.xy);
}
/**
* Gets whether the markers for the current series are in circular shape
*/
get effectiveIsMarkerCircular() {
return this.i.xx;
}
/**
* Gets or sets whether the marker outline is based on the marker brush of the series rather than the marker outlines collection.
*/
get markerOutlineMode() {
return this.i.xp;
}
set markerOutlineMode(v) {
this.i.xp = ensureEnum(MarkerOutlineMode_$type, v);
this._a("markerOutlineMode", enumToString(MarkerOutlineMode_$type, this.i.xp));
}
/**
* Gets or sets whether the marker fill is based on the marker outline of the series rather than the marker brushes collection.
*/
get markerFillMode() {
return this.i.xl;
}
set markerFillMode(v) {
this.i.xl = ensureEnum(MarkerFillMode_$type, v);
this._a("markerFillMode", enumToString(MarkerFillMode_$type, this.i.xl));
}
/**
* 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 markerTemplate() {
return this.i.yn;
}
set markerTemplate(v) {
this.i.yn = v;
}
/**
* Gets or sets thickness of the marker outline
*/
get markerThickness() {
return this.i.x4;
}
set markerThickness(v) {
this.i.x4 = +v;
this._a("markerThickness", this.i.x4);
}
/**
* 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 actualMarkerTemplate() {
return this.i.yl;
}
set actualMarkerTemplate(v) {
this.i.yl = v;
}
/**
* 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 markerBrush() {
return brushToString(this.i.y4);
}
set markerBrush(v) {
this.i.y4 = stringToBrush(v);
this._a("markerBrush", brushToString(this.i.y4));
}
/**
* 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 actualMarkerBrush() {
return brushToString(this.i.y2);
}
set actualMarkerBrush(v) {
this.i.y2 = stringToBrush(v);
this._a("actualMarkerBrush", brushToString(this.i.y2));
}
/**
* 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 markerOutline() {
return brushToString(this.i.y5);
}
set markerOutline(v) {
this.i.y5 = stringToBrush(v);
this._a("markerOutline", brushToString(this.i.y5));
}
/**
* 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 actualMarkerOutline() {
return brushToString(this.i.y3);
}
set actualMarkerOutline(v) {
this.i.y3 = stringToBrush(v);
this._a("actualMarkerOutline", brushToString(this.i.y3));
}
}
IgcMarkerSeriesComponent._observedAttributesIgcMarkerSeriesComponent = null;
return IgcMarkerSeriesComponent;
})();
export { IgcMarkerSeriesComponent };