igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
107 lines (105 loc) • 4.12 kB
JavaScript
import { IgcHorizontalStackedSeriesBaseComponent } from "./igc-horizontal-stacked-series-base-component";
import { StackedColumnSeries } from "./StackedColumnSeries";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent stacked column series.
*/
export let IgcStackedColumnSeriesComponent = /*@__PURE__*/ (() => {
class IgcStackedColumnSeriesComponent extends IgcHorizontalStackedSeriesBaseComponent {
createImplementation() {
return new StackedColumnSeries();
}
/**
* @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 (IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent == null) {
let names = getAllPropertyNames(IgcStackedColumnSeriesComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent = names;
}
return IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent;
}
static register() {
if (!IgcStackedColumnSeriesComponent._isElementRegistered) {
IgcStackedColumnSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStackedColumnSeriesComponent.htmlTagName, IgcStackedColumnSeriesComponent);
}
}
/**
* Gets whether the current series shows a column shape.
*/
get isColumn() {
return this.i.e1;
}
/**
* Overridden by derived series classes to indicate when marker-less display is preferred or not.
*/
get isMarkerlessDisplayPreferred() {
return this.i.fm;
}
/**
* Gets or sets the x-radius of the ellipse that is used to round the corners of the column.
*/
get radiusX() {
return this.i.ab7;
}
set radiusX(v) {
this.i.ab7 = +v;
this._a("radiusX", this.i.ab7);
}
/**
* Gets or sets the y-radius of the ellipse that is used to round the corners of the column.
*/
get radiusY() {
return this.i.ab8;
}
set radiusY(v) {
this.i.ab8 = +v;
this._a("radiusY", this.i.ab8);
}
/**
* For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned.
*/
getItemSpan() {
let iv = this.i.ix();
return (iv);
}
}
IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent = null;
IgcStackedColumnSeriesComponent.htmlTagName = "igc-stacked-column-series";
IgcStackedColumnSeriesComponent._isElementRegistered = false;
return IgcStackedColumnSeriesComponent;
})();