UNPKG

igniteui-webcomponents-charts

Version:

Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.

282 lines (281 loc) 10.4 kB
import { __extends } from "tslib"; 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 */ var IgcDataAnnotationPointLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcDataAnnotationPointLayerComponent, _super); function IgcDataAnnotationPointLayerComponent() { return _super.call(this) || this; } Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcDataAnnotationPointLayerComponent.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(); } }; IgcDataAnnotationPointLayerComponent.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(IgcDataAnnotationPointLayerComponent, "observedAttributes", { get: function () { if (IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent == null) { var names = getAllPropertyNames(IgcDataAnnotationPointLayerComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent = names; } return IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "startValueXMemberPath", { /** * Gets or sets name of data column with x-positions for the start of annotations. */ get: function () { return this.i.ahv; }, set: function (v) { this.i.ahv = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "startValueYMemberPath", { /** * Gets or sets name of data column with y-positions for the start of annotations. */ get: function () { return this.i.ahy; }, set: function (v) { this.i.ahy = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "startLabelXMemberPath", { /** * Gets or sets mapping custom label at the start of annotations on x-axis. */ get: function () { return this.i.aho; }, set: function (v) { this.i.aho = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "startLabelYMemberPath", { /** * Gets or sets mapping custom label at the start of annotations on y-axis. */ get: function () { return this.i.ahs; }, set: function (v) { this.i.ahs = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "startLabelXDisplayMode", { /** * Gets or sets display mode of label in the start annotation on x-axis. */ get: function () { return this.i.age; }, set: function (v) { this.i.age = ensureEnum(DataAnnotationDisplayMode_$type, v); this._a("startLabelXDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.age)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "startLabelYDisplayMode", { /** * Gets or sets display mode of label in the start annotation on y-axis. */ get: function () { return this.i.agf; }, set: function (v) { this.i.agf = ensureEnum(DataAnnotationDisplayMode_$type, v); this._a("startLabelYDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agf)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "endValueXMemberPath", { /** * Gets or sets name of data column with x-positions for end of annotation. */ get: function () { return this.i.ahh; }, set: function (v) { this.i.ahh = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "endValueYMemberPath", { /** * Gets or sets name of data column with y-positions for end of annotation. */ get: function () { return this.i.ahk; }, set: function (v) { this.i.ahk = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "endLabelXMemberPath", { /** * Gets or sets mapping custom label at the end of annotations on x-axis. */ get: function () { return this.i.aha; }, set: function (v) { this.i.aha = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "endLabelYMemberPath", { /** * Gets or sets mapping custom label at the end of annotations on y-axis. */ get: function () { return this.i.ahe; }, set: function (v) { this.i.ahe = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "endLabelXDisplayMode", { /** * Gets or sets display mode of label at the end annotation on x-axis. */ get: function () { return this.i.agc; }, set: function (v) { this.i.agc = ensureEnum(DataAnnotationDisplayMode_$type, v); this._a("endLabelXDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agc)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "endLabelYDisplayMode", { /** * Gets or sets display mode of label at the end annotation on y-axis. */ get: function () { return this.i.agd; }, set: function (v) { this.i.agd = ensureEnum(DataAnnotationDisplayMode_$type, v); this._a("endLabelYDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agd)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "centerLabelXMemberPath", { /** * Gets or sets mapping custom label between start and end of data annotations on x-axis. */ get: function () { return this.i.ag2; }, set: function (v) { this.i.ag2 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "centerLabelYMemberPath", { /** * Gets or sets mapping custom label between start and end of data annotations on y-axis. */ get: function () { return this.i.ag6; }, set: function (v) { this.i.ag6 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "centerLabelXDisplayMode", { /** * Gets or sets display mode of label in the center annotation on x-axis. */ get: function () { return this.i.aga; }, set: function (v) { this.i.aga = ensureEnum(DataAnnotationDisplayMode_$type, v); this._a("centerLabelXDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.aga)); }, enumerable: false, configurable: true }); Object.defineProperty(IgcDataAnnotationPointLayerComponent.prototype, "centerLabelYDisplayMode", { /** * Gets or sets display mode of content in the center annotation on y-axis. */ get: function () { return this.i.agb; }, set: function (v) { this.i.agb = ensureEnum(DataAnnotationDisplayMode_$type, v); this._a("centerLabelYDisplayMode", enumToString(DataAnnotationDisplayMode_$type, this.i.agb)); }, enumerable: false, configurable: true }); IgcDataAnnotationPointLayerComponent._observedAttributesIgcDataAnnotationPointLayerComponent = null; return IgcDataAnnotationPointLayerComponent; }(IgcDataAnnotationRangeLayerComponent)); export { IgcDataAnnotationPointLayerComponent };