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