igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
111 lines (110 loc) • 4.02 kB
JavaScript
import { IgcBrushScaleComponent } from "./igc-brush-scale-component";
import { ValueBrushScale } from "./ValueBrushScale";
import { getAllPropertyNames, toSpinal, ensureBool } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
let IgcValueBrushScaleComponent = /*@__PURE__*/ (() => {
class IgcValueBrushScaleComponent extends IgcBrushScaleComponent {
createImplementation() {
return new ValueBrushScale();
}
/**
* @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 (IgcValueBrushScaleComponent._observedAttributesIgcValueBrushScaleComponent == null) {
let names = getAllPropertyNames(IgcValueBrushScaleComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcValueBrushScaleComponent._observedAttributesIgcValueBrushScaleComponent = names;
}
return IgcValueBrushScaleComponent._observedAttributesIgcValueBrushScaleComponent;
}
static register() {
if (!IgcValueBrushScaleComponent._isElementRegistered) {
IgcValueBrushScaleComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcValueBrushScaleComponent.htmlTagName, IgcValueBrushScaleComponent);
}
}
/**
* Gets or sets the minimum value for this scale.
*/
get minimumValue() {
return this.i.minimumValue;
}
set minimumValue(v) {
this.i.minimumValue = +v;
this._a("minimumValue", this.i.minimumValue);
}
/**
* Gets or sets the maximum value for this scale.
*/
get maximumValue() {
return this.i.maximumValue;
}
set maximumValue(v) {
this.i.maximumValue = +v;
this._a("maximumValue", this.i.maximumValue);
}
/**
* Gets or sets whether the scale is logarithmic.
*/
get isLogarithmic() {
return this.i.isLogarithmic;
}
set isLogarithmic(v) {
this.i.isLogarithmic = ensureBool(v);
this._a("isLogarithmic", this.i.isLogarithmic);
}
/**
* Gets or sets the logarithm base for this scale.
*/
get logarithmBase() {
return this.i.logarithmBase;
}
set logarithmBase(v) {
this.i.logarithmBase = +v;
this._a("logarithmBase", this.i.logarithmBase);
}
/**
* Checks if the value brush scale is ready for usage in the chart
*/
get isReady() {
return this.i.isReady;
}
}
IgcValueBrushScaleComponent._observedAttributesIgcValueBrushScaleComponent = null;
IgcValueBrushScaleComponent.htmlTagName = "igc-value-brush-scale";
IgcValueBrushScaleComponent._isElementRegistered = false;
return IgcValueBrushScaleComponent;
})();
export { IgcValueBrushScaleComponent };