igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
188 lines (187 loc) • 7.27 kB
JavaScript
import { __extends } from "tslib";
import { IgcDataAnnotationShapeLayerComponent } from "./igc-data-annotation-shape-layer-component";
import { getAllPropertyNames, toSpinal, brushToString, stringToBrush } from "igniteui-webcomponents-core";
/**
* Represents a base of annotation layers that render from start/end range
*/
export var IgcDataAnnotationRangeLayerComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcDataAnnotationRangeLayerComponent, _super);
function IgcDataAnnotationRangeLayerComponent() {
return _super.call(this) || this;
}
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcDataAnnotationRangeLayerComponent.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();
}
};
IgcDataAnnotationRangeLayerComponent.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(IgcDataAnnotationRangeLayerComponent, "observedAttributes", {
get: function () {
if (IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent == null) {
var names = getAllPropertyNames(IgcDataAnnotationRangeLayerComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent = names;
}
return IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "startLabelTextColor", {
/**
* Gets or sets the text color used for displaying the start annotation label.
*/
get: function () {
return brushToString(this.i.ahm);
},
set: function (v) {
this.i.ahm = stringToBrush(v);
this._a("startLabelTextColor", brushToString(this.i.ahm));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "startLabelBackground", {
/**
* Gets or sets the background used for displaying the start annotation label.
*/
get: function () {
return brushToString(this.i.ahk);
},
set: function (v) {
this.i.ahk = stringToBrush(v);
this._a("startLabelBackground", brushToString(this.i.ahk));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "startLabelBorderColor", {
/**
* Gets or sets the border color used for displaying Start annotation label.
*/
get: function () {
return brushToString(this.i.ahl);
},
set: function (v) {
this.i.ahl = stringToBrush(v);
this._a("startLabelBorderColor", brushToString(this.i.ahl));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "endLabelTextColor", {
/**
* Gets or sets the text color used for displaying the end annotation label.
*/
get: function () {
return brushToString(this.i.ahj);
},
set: function (v) {
this.i.ahj = stringToBrush(v);
this._a("endLabelTextColor", brushToString(this.i.ahj));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "endLabelBackground", {
/**
* Gets or sets the background used for displaying the end annotation label.
*/
get: function () {
return brushToString(this.i.ahh);
},
set: function (v) {
this.i.ahh = stringToBrush(v);
this._a("endLabelBackground", brushToString(this.i.ahh));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "endLabelBorderColor", {
/**
* Gets or sets the border used for displaying the end annotation label.
*/
get: function () {
return brushToString(this.i.ahi);
},
set: function (v) {
this.i.ahi = stringToBrush(v);
this._a("endLabelBorderColor", brushToString(this.i.ahi));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "centerLabelTextColor", {
/**
* Gets or sets the text color used for displaying the center annotation label.
*/
get: function () {
return brushToString(this.i.ahg);
},
set: function (v) {
this.i.ahg = stringToBrush(v);
this._a("centerLabelTextColor", brushToString(this.i.ahg));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "centerLabelBackground", {
/**
* Gets or sets the background used for displaying the center annotation label.
*/
get: function () {
return brushToString(this.i.ahe);
},
set: function (v) {
this.i.ahe = stringToBrush(v);
this._a("centerLabelBackground", brushToString(this.i.ahe));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcDataAnnotationRangeLayerComponent.prototype, "centerLabelBorderColor", {
/**
* Gets or sets the border color used for displaying the center annotation label.
*/
get: function () {
return brushToString(this.i.ahf);
},
set: function (v) {
this.i.ahf = stringToBrush(v);
this._a("centerLabelBorderColor", brushToString(this.i.ahf));
},
enumerable: false,
configurable: true
});
IgcDataAnnotationRangeLayerComponent._observedAttributesIgcDataAnnotationRangeLayerComponent = null;
return IgcDataAnnotationRangeLayerComponent;
}(IgcDataAnnotationShapeLayerComponent));