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