igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
96 lines (95 loc) • 3.69 kB
JavaScript
import { __extends } from "tslib";
import { IgcFragmentBaseComponent } from "./igc-fragment-base-component";
import { AreaFragment } from "./AreaFragment";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents one part of a StackedAreaSeries.
*/
var IgcAreaFragmentComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcAreaFragmentComponent, _super);
function IgcAreaFragmentComponent() {
return _super.call(this) || this;
}
IgcAreaFragmentComponent.prototype.createImplementation = function () {
return new AreaFragment();
};
Object.defineProperty(IgcAreaFragmentComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcAreaFragmentComponent.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();
}
};
IgcAreaFragmentComponent.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(IgcAreaFragmentComponent, "observedAttributes", {
get: function () {
if (IgcAreaFragmentComponent._observedAttributesIgcAreaFragmentComponent == null) {
var names = getAllPropertyNames(IgcAreaFragmentComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcAreaFragmentComponent._observedAttributesIgcAreaFragmentComponent = names;
}
return IgcAreaFragmentComponent._observedAttributesIgcAreaFragmentComponent;
},
enumerable: false,
configurable: true
});
IgcAreaFragmentComponent.register = function () {
if (!IgcAreaFragmentComponent._isElementRegistered) {
IgcAreaFragmentComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcAreaFragmentComponent.htmlTagName, IgcAreaFragmentComponent);
}
};
Object.defineProperty(IgcAreaFragmentComponent.prototype, "isAreaOrLine", {
/**
* Gets whether the current series shows an area or line shape.
*/
get: function () {
return this.i.ex;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAreaFragmentComponent.prototype, "isArea", {
/**
* Gets whether the current series shows an area shape.
*/
get: function () {
return this.i.ew;
},
enumerable: false,
configurable: true
});
IgcAreaFragmentComponent._observedAttributesIgcAreaFragmentComponent = null;
IgcAreaFragmentComponent.htmlTagName = "igc-area-fragment";
IgcAreaFragmentComponent._isElementRegistered = false;
return IgcAreaFragmentComponent;
}(IgcFragmentBaseComponent));
export { IgcAreaFragmentComponent };