igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
94 lines (93 loc) • 4.08 kB
JavaScript
import { __extends } from "tslib";
import { IgcDataAnnotationPointLayerComponent } from "./igc-data-annotation-point-layer-component";
import { DataAnnotationBandLayer } from "./DataAnnotationBandLayer";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents an annotation layer that renders bands (line with breadth) at locations of x/y values mapped to these properties:
* StartValueXMemberPath
* StartValueYMemberPath
* EndValueXMemberPath
* EndValueYMemberPath
* AnnotationBreadthMemberPath
*/
var IgcDataAnnotationBandLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcDataAnnotationBandLayerComponent, _super);
function IgcDataAnnotationBandLayerComponent() {
return _super.call(this) || this;
}
IgcDataAnnotationBandLayerComponent.prototype.createImplementation = function () {
return new DataAnnotationBandLayer();
};
Object.defineProperty(IgcDataAnnotationBandLayerComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcDataAnnotationBandLayerComponent.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();
}
};
IgcDataAnnotationBandLayerComponent.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(IgcDataAnnotationBandLayerComponent, "observedAttributes", {
get: function () {
if (IgcDataAnnotationBandLayerComponent._observedAttributesIgcDataAnnotationBandLayerComponent == null) {
var names = getAllPropertyNames(IgcDataAnnotationBandLayerComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcDataAnnotationBandLayerComponent._observedAttributesIgcDataAnnotationBandLayerComponent = names;
}
return IgcDataAnnotationBandLayerComponent._observedAttributesIgcDataAnnotationBandLayerComponent;
},
enumerable: false,
configurable: true
});
IgcDataAnnotationBandLayerComponent.register = function () {
if (!IgcDataAnnotationBandLayerComponent._isElementRegistered) {
IgcDataAnnotationBandLayerComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcDataAnnotationBandLayerComponent.htmlTagName, IgcDataAnnotationBandLayerComponent);
}
};
Object.defineProperty(IgcDataAnnotationBandLayerComponent.prototype, "annotationBreadthMemberPath", {
/**
* Gets or sets name of data column with breath/size of shape annotations.
*/
get: function () {
return this.i.aii;
},
set: function (v) {
this.i.aii = v;
},
enumerable: false,
configurable: true
});
IgcDataAnnotationBandLayerComponent._observedAttributesIgcDataAnnotationBandLayerComponent = null;
IgcDataAnnotationBandLayerComponent.htmlTagName = "igc-data-annotation-band-layer";
IgcDataAnnotationBandLayerComponent._isElementRegistered = false;
return IgcDataAnnotationBandLayerComponent;
}(IgcDataAnnotationPointLayerComponent));
export { IgcDataAnnotationBandLayerComponent };