igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
209 lines (208 loc) • 7.55 kB
JavaScript
import { DataAnnotationDisplayMode_$type } from "./DataAnnotationDisplayMode";
import { IgcDataAnnotationRangeLayerComponent } from "./igc-data-annotation-range-layer-component";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
/**
* Represents a base of annotation layers that render shapes at locations of x/y values mapped to these properties:
* StartValueXMemberPath
* StartValueYMemberPath
* EndValueXMemberPath
* EndValueYMemberPath
*/
export let IgcDataAnnotationPointLayerComponent = /*@__PURE__*/ (() => {
class IgcDataAnnotationPointLayerComponent extends IgcDataAnnotationRangeLayerComponent {
/**
* @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 (IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent == null) {
let names = getAllPropertyNames(IgcDataAnnotationPointLayerComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent = names;
}
return IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent;
}
/**
* Gets or sets name of data column with x-positions for the start of annotations.
*/
get startValueXMemberPath() {
return this.i.ahv;
}
set startValueXMemberPath(v) {
this.i.ahv = v;
}
/**
* Gets or sets name of data column with y-positions for the start of annotations.
*/
get startValueYMemberPath() {
return this.i.ahy;
}
set startValueYMemberPath(v) {
this.i.ahy = v;
}
/**
* Gets or sets mapping custom label at the start of annotations on x-axis.
*/
get startLabelXMemberPath() {
return this.i.aho;
}
set startLabelXMemberPath(v) {
this.i.aho = v;
}
/**
* Gets or sets mapping custom label at the start of annotations on y-axis.
*/
get startLabelYMemberPath() {
return this.i.ahs;
}
set startLabelYMemberPath(v) {
this.i.ahs = v;
}
/**
* Gets or sets display mode of label in the start annotation on x-axis.
*/
get startLabelXDisplayMode() {
return this.i.age;
}
set startLabelXDisplayMode(v) {
this.i.age = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("startLabelXDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.age));
}
/**
* Gets or sets display mode of label in the start annotation on y-axis.
*/
get startLabelYDisplayMode() {
return this.i.agf;
}
set startLabelYDisplayMode(v) {
this.i.agf = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("startLabelYDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agf));
}
/**
* Gets or sets name of data column with x-positions for end of annotation.
*/
get endValueXMemberPath() {
return this.i.ahh;
}
set endValueXMemberPath(v) {
this.i.ahh = v;
}
/**
* Gets or sets name of data column with y-positions for end of annotation.
*/
get endValueYMemberPath() {
return this.i.ahk;
}
set endValueYMemberPath(v) {
this.i.ahk = v;
}
/**
* Gets or sets mapping custom label at the end of annotations on x-axis.
*/
get endLabelXMemberPath() {
return this.i.aha;
}
set endLabelXMemberPath(v) {
this.i.aha = v;
}
/**
* Gets or sets mapping custom label at the end of annotations on y-axis.
*/
get endLabelYMemberPath() {
return this.i.ahe;
}
set endLabelYMemberPath(v) {
this.i.ahe = v;
}
/**
* Gets or sets display mode of label at the end annotation on x-axis.
*/
get endLabelXDisplayMode() {
return this.i.agc;
}
set endLabelXDisplayMode(v) {
this.i.agc = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("endLabelXDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agc));
}
/**
* Gets or sets display mode of label at the end annotation on y-axis.
*/
get endLabelYDisplayMode() {
return this.i.agd;
}
set endLabelYDisplayMode(v) {
this.i.agd = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("endLabelYDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agd));
}
/**
* Gets or sets mapping custom label between start and end of data annotations on x-axis.
*/
get centerLabelXMemberPath() {
return this.i.ag2;
}
set centerLabelXMemberPath(v) {
this.i.ag2 = v;
}
/**
* Gets or sets mapping custom label between start and end of data annotations on y-axis.
*/
get centerLabelYMemberPath() {
return this.i.ag6;
}
set centerLabelYMemberPath(v) {
this.i.ag6 = v;
}
/**
* Gets or sets display mode of label in the center annotation on x-axis.
*/
get centerLabelXDisplayMode() {
return this.i.aga;
}
set centerLabelXDisplayMode(v) {
this.i.aga = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("centerLabelXDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.aga));
}
/**
* Gets or sets display mode of content in the center annotation on y-axis.
*/
get centerLabelYDisplayMode() {
return this.i.agb;
}
set centerLabelYDisplayMode(v) {
this.i.agb = ensureEnum(DataAnnotationDisplayMode_$type, v);
this._a("centerLabelYDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agb));
}
}
IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent = null;
return IgcDataAnnotationPointLayerComponent;
})();