igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
298 lines (293 loc) • 11 kB
JavaScript
import { __extends } from "tslib";
import { TrendLineType_$type } from "igniteui-webcomponents-core";
import { IgcRadialBaseComponent } from "./igc-radial-base-component";
import { getAllPropertyNames, toSpinal, ensureBool, ensureEnum, enumToString, brushToString, stringToBrush, toDoubleCollection, fromDoubleCollection, doubleCollectionToString, toPoint, fromPoint } from "igniteui-webcomponents-core";
/**
* Represents the base class for all IgxDataChartComponent anchored radial category series.
*/
export var IgcAnchoredRadialSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcAnchoredRadialSeriesComponent, _super);
function IgcAnchoredRadialSeriesComponent() {
return _super.call(this) || this;
}
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcAnchoredRadialSeriesComponent.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();
}
};
IgcAnchoredRadialSeriesComponent.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(IgcAnchoredRadialSeriesComponent, "observedAttributes", {
get: function () {
if (IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent == null) {
var names = getAllPropertyNames(IgcAnchoredRadialSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent = names;
}
return IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "useCategoryNormalizedValues", {
/**
* Gets or sets whether to normalize the values against the category values if using a proportional category axis.
*/
get: function () {
return this.i.ac1;
},
set: function (v) {
this.i.ac1 = ensureBool(v);
this._a("useCategoryNormalizedValues", this.i.ac1);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "valueMemberPath", {
/**
* Gets or sets the item path that provides the values for the current series.
*/
get: function () {
return this.i.adh;
},
set: function (v) {
this.i.adh = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "highlightedValueMemberPath", {
/**
* Gets or sets the value mapping property for the current series object.
*/
get: function () {
return this.i.ac9;
},
set: function (v) {
this.i.ac9 = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "valueMemberAsLegendLabel", {
/**
* Gets or sets the label displayed before series value in the Data Legend.
*/
get: function () {
return this.i.add;
},
set: function (v) {
this.i.add = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "valueMemberAsLegendUnit", {
/**
* Gets or sets the unit displayed after series value in the Data Legend.
*/
get: function () {
return this.i.adf;
},
set: function (v) {
this.i.adf = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "trendLineType", {
/**
* Gets or sets the trend type for the current series object.
*/
get: function () {
return this.i.acq;
},
set: function (v) {
this.i.acq = ensureEnum(TrendLineType_$type, v);
this._a("trendLineType", enumToString(TrendLineType_$type, this.i.acq));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "trendLineBrush", {
/**
* Gets or sets the brush that specifies how to the current series
* object's Trend line is drawn.
*/
get: function () {
return brushToString(this.i.ad5);
},
set: function (v) {
this.i.ad5 = stringToBrush(v);
this._a("trendLineBrush", brushToString(this.i.ad5));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "actualTrendLineBrush", {
/**
* Gets the effective TrendLineBrush for this series.
*/
get: function () {
return brushToString(this.i.ad4);
},
set: function (v) {
this.i.ad4 = stringToBrush(v);
this._a("actualTrendLineBrush", brushToString(this.i.ad4));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "trendLineThickness", {
/**
* Gets or sets the thickness of the current series object's trend line.
*/
get: function () {
return this.i.ac6;
},
set: function (v) {
this.i.ac6 = +v;
this._a("trendLineThickness", this.i.ac6);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "trendLineDashArray", {
/**
* Gets or sets a collection of double values that indicate the pattern of dashes and gaps that
* is used to draw the trend line for the current series object.
*/
get: function () {
return fromDoubleCollection(this.i.ad6);
},
set: function (v) {
this.i.ad6 = toDoubleCollection(v);
this._a("trendLineDashArray", doubleCollectionToString(this.i.ad6));
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "trendLinePeriod", {
/**
* Gets or sets the trend line period for the current series.
* The typical, and initial, value for bollinger band periods is 20.
*/
get: function () {
return this.i.ac7;
},
set: function (v) {
this.i.ac7 = +v;
this._a("trendLinePeriod", this.i.ac7);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "trendLineZIndex", {
/**
* Sets or Gets the Z index of the trendline.
*/
get: function () {
return this.i.ac8;
},
set: function (v) {
this.i.ac8 = +v;
this._a("trendLineZIndex", this.i.ac8);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "hasValueAxis", {
get: function () {
return this.i.em;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcAnchoredRadialSeriesComponent.prototype, "isValueAxisInverted", {
get: function () {
return this.i.gb;
},
enumerable: false,
configurable: true
});
IgcAnchoredRadialSeriesComponent.prototype.getItemValue = function (item, memberPathName) {
var iv = this.i.kz(item, memberPathName);
return (iv);
};
/**
* Gets the value of a requested member path from the series.
* @param memberPathName * The property name of a valid member path for the series
*/
IgcAnchoredRadialSeriesComponent.prototype.getMemberPathValue = function (memberPathName) {
var iv = this.i.mo(memberPathName);
return (iv);
};
IgcAnchoredRadialSeriesComponent.prototype.getPreviousOrExactIndex = function (world, skipUnknowns) {
var iv = this.i.kj(toPoint(world), skipUnknowns);
return (iv);
};
IgcAnchoredRadialSeriesComponent.prototype.getNextOrExactIndex = function (world, skipUnknowns) {
var iv = this.i.kh(toPoint(world), skipUnknowns);
return (iv);
};
IgcAnchoredRadialSeriesComponent.prototype.getSeriesValue = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.jd(toPoint(world), useInterpolation, skipUnknowns);
return (iv);
};
IgcAnchoredRadialSeriesComponent.prototype.getSeriesValuePosition = function (world, useInterpolation, skipUnknowns) {
var iv = this.i.ww(toPoint(world), useInterpolation, skipUnknowns);
return fromPoint(iv);
};
/**
* Returns the offset value for this series if grouped on a category axis.
*/
IgcAnchoredRadialSeriesComponent.prototype.getOffsetValue = function () {
var iv = this.i.getOffsetValue();
return (iv);
};
/**
* Returns the width of the category grouping this series is in.
*/
IgcAnchoredRadialSeriesComponent.prototype.getCategoryWidth = function () {
var iv = this.i.getCategoryWidth();
return (iv);
};
/**
* Scrolls the specified item into the view.
* @param item * The item to scroll into view.
*/
IgcAnchoredRadialSeriesComponent.prototype.scrollIntoView = function (item) {
var iv = this.i.gj(item);
return (iv);
};
IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent = null;
return IgcAnchoredRadialSeriesComponent;
}(IgcRadialBaseComponent));