igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
186 lines (185 loc) • 7.35 kB
JavaScript
import { __extends } from "tslib";
import { DataAnnotationDisplayMode_$type } from "./DataAnnotationDisplayMode";
import { IgcDataAnnotationRangeLayerComponent } from "./igc-data-annotation-range-layer-component";
import { DataAnnotationStripLayer } from "./DataAnnotationStripLayer";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents an annotation layer that renders vertical or horizontal strips between values mapped to these properties:
* StartValueMemberPath
* EndValueMemberPath
*/
var IgcDataAnnotationStripLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcDataAnnotationStripLayerComponent, _super);
function IgcDataAnnotationStripLayerComponent() {
return _super.call(this) || this;
}
IgcDataAnnotationStripLayerComponent.prototype.createImplementation = function () {
return new DataAnnotationStripLayer();
};
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcDataAnnotationStripLayerComponent.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();
}
};
IgcDataAnnotationStripLayerComponent.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(IgcDataAnnotationStripLayerComponent, "observedAttributes", {
get: function () {
if (IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent == null) {
var names = getAllPropertyNames(IgcDataAnnotationStripLayerComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent = names;
}
return IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent;
},
enumerable: false,
configurable: true
});
IgcDataAnnotationStripLayerComponent.register = function () {
if (!IgcDataAnnotationStripLayerComponent._isElementRegistered) {
IgcDataAnnotationStripLayerComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcDataAnnotationStripLayerComponent.htmlTagName, IgcDataAnnotationStripLayerComponent);
}
};
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "startValueMemberPath", {
/**
* Gets or sets name of data column with positions for the start of annotations.
*/
get: function () {
return this.i.ag3;
},
set: function (v) {
this.i.ag3 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "startLabelMemberPath", {
/**
* Gets or sets mapping custom label at the start of annotations.
*/
get: function () {
return this.i.ag0;
},
set: function (v) {
this.i.ag0 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "startLabelDisplayMode", {
/**
* Gets or sets display mode of label in the start annotation.
*/
get: function () {
return this.i.agc;
},
set: function (v) {
this.i.agc = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("startLabelDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agc));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "endValueMemberPath", {
/**
* Gets or sets name of data column with positions for end of annotation.
*/
get: function () {
return this.i.agw;
},
set: function (v) {
this.i.agw = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "endLabelMemberPath", {
/**
* Gets or sets mapping custom label at the end of annotations.
*/
get: function () {
return this.i.agt;
},
set: function (v) {
this.i.agt = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "endLabelDisplayMode", {
/**
* Gets or sets display mode of label at the end annotation.
*/
get: function () {
return this.i.agb;
},
set: function (v) {
this.i.agb = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("endLabelDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agb));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "centerLabelMemberPath", {
/**
* Gets or sets mapping custom label between start and end of data annotations.
*/
get: function () {
return this.i.agp;
},
set: function (v) {
this.i.agp = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationStripLayerComponent.prototype, "centerLabelDisplayMode", {
/**
* Gets or sets display mode of label in the center annotation.
*/
get: function () {
return this.i.aga;
},
set: function (v) {
this.i.aga = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("centerLabelDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.aga));
},
enumerable: false,
configurable: true
});
IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent = null;
IgcDataAnnotationStripLayerComponent.htmlTagName = "igc-data-annotation-strip-layer";
IgcDataAnnotationStripLayerComponent._isElementRegistered = false;
return IgcDataAnnotationStripLayerComponent;
}(IgcDataAnnotationRangeLayerComponent));
export { IgcDataAnnotationStripLayerComponent };