igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
132 lines (130 loc) • 5.29 kB
JavaScript
import { __extends } from "tslib";
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.
*/
var IgcStackedColumnSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcStackedColumnSeriesComponent, _super);
function IgcStackedColumnSeriesComponent() {
return _super.call(this) || this;
}
IgcStackedColumnSeriesComponent.prototype.createImplementation = function () {
return new StackedColumnSeries();
};
Object.defineProperty(IgcStackedColumnSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcStackedColumnSeriesComponent.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();
}
};
IgcStackedColumnSeriesComponent.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(IgcStackedColumnSeriesComponent, "observedAttributes", {
get: function () {
if (IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent == null) {
var names = getAllPropertyNames(IgcStackedColumnSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent = names;
}
return IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcStackedColumnSeriesComponent.register = function () {
if (!IgcStackedColumnSeriesComponent._isElementRegistered) {
IgcStackedColumnSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStackedColumnSeriesComponent.htmlTagName, IgcStackedColumnSeriesComponent);
}
};
Object.defineProperty(IgcStackedColumnSeriesComponent.prototype, "isColumn", {
/**
* Gets whether the current series shows a column shape.
*/
get: function () {
return this.i.e1;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStackedColumnSeriesComponent.prototype, "isMarkerlessDisplayPreferred", {
/**
* Overridden by derived series classes to indicate when marker-less display is preferred or not.
*/
get: function () {
return this.i.fm;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStackedColumnSeriesComponent.prototype, "radiusX", {
/**
* Gets or sets the x-radius of the ellipse that is used to round the corners of the column.
*/
get: function () {
return this.i.ab7;
},
set: function (v) {
this.i.ab7 = +v;
this._a("radiusX", this.i.ab7);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStackedColumnSeriesComponent.prototype, "radiusY", {
/**
* Gets or sets the y-radius of the ellipse that is used to round the corners of the column.
*/
get: function () {
return this.i.ab8;
},
set: function (v) {
this.i.ab8 = +v;
this._a("radiusY", this.i.ab8);
},
enumerable: false,
configurable: true
});
/**
* 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.
*/
IgcStackedColumnSeriesComponent.prototype.getItemSpan = function () {
var iv = this.i.ix();
return (iv);
};
IgcStackedColumnSeriesComponent._observedAttributesIgcStackedColumnSeriesComponent = null;
IgcStackedColumnSeriesComponent.htmlTagName = "igc-stacked-column-series";
IgcStackedColumnSeriesComponent._isElementRegistered = false;
return IgcStackedColumnSeriesComponent;
}(IgcHorizontalStackedSeriesBaseComponent));
export { IgcStackedColumnSeriesComponent };