igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
145 lines (144 loc) • 5.61 kB
JavaScript
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
*/
export let IgcDataAnnotationStripLayerComponent = /*@__PURE__*/ (() => {
class IgcDataAnnotationStripLayerComponent extends IgcDataAnnotationRangeLayerComponent {
createImplementation() {
return new DataAnnotationStripLayer();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor() {
super();
}
connectedCallback() {
if (super["connectedCallback"]) {
super["connectedCallback"]();
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
}
disconnectedCallback() {
if (super["disconnectedCallback"]) {
super["disconnectedCallback"]();
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
}
static get observedAttributes() {
if (IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent == null) {
let names = getAllPropertyNames(IgcDataAnnotationStripLayerComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent = names;
}
return IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent;
}
static register() {
if (!IgcDataAnnotationStripLayerComponent._isElementRegistered) {
IgcDataAnnotationStripLayerComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcDataAnnotationStripLayerComponent.htmlTagName, IgcDataAnnotationStripLayerComponent);
}
}
/**
* Gets or sets name of data column with positions for the start of annotations.
*/
get startValueMemberPath() {
return this.i.ag3;
}
set startValueMemberPath(v) {
this.i.ag3 = v;
}
/**
* Gets or sets mapping custom label at the start of annotations.
*/
get startLabelMemberPath() {
return this.i.ag0;
}
set startLabelMemberPath(v) {
this.i.ag0 = v;
}
/**
* Gets or sets display mode of label in the start annotation.
*/
get startLabelDisplayMode() {
return this.i.agc;
}
set startLabelDisplayMode(v) {
this.i.agc = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("startLabelDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agc));
}
/**
* Gets or sets name of data column with positions for end of annotation.
*/
get endValueMemberPath() {
return this.i.agw;
}
set endValueMemberPath(v) {
this.i.agw = v;
}
/**
* Gets or sets mapping custom label at the end of annotations.
*/
get endLabelMemberPath() {
return this.i.agt;
}
set endLabelMemberPath(v) {
this.i.agt = v;
}
/**
* Gets or sets display mode of label at the end annotation.
*/
get endLabelDisplayMode() {
return this.i.agb;
}
set endLabelDisplayMode(v) {
this.i.agb = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("endLabelDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agb));
}
/**
* Gets or sets mapping custom label between start and end of data annotations.
*/
get centerLabelMemberPath() {
return this.i.agp;
}
set centerLabelMemberPath(v) {
this.i.agp = v;
}
/**
* Gets or sets display mode of label in the center annotation.
*/
get centerLabelDisplayMode() {
return this.i.aga;
}
set centerLabelDisplayMode(v) {
this.i.aga = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("centerLabelDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.aga));
}
}
IgcDataAnnotationStripLayerComponent._observedAttributesIgcDataAnnotationStripLayerComponent = null;
IgcDataAnnotationStripLayerComponent.htmlTagName = "igc-data-annotation-strip-layer";
IgcDataAnnotationStripLayerComponent._isElementRegistered = false;
return IgcDataAnnotationStripLayerComponent;
})();