UNPKG

igniteui-webcomponents-charts

Version:

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

232 lines (227 loc) 8.17 kB
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"; let IgcAnchoredRadialSeriesComponent = /*@__PURE__*/ (() => { class IgcAnchoredRadialSeriesComponent extends IgcRadialBaseComponent { /** * @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 (IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent == null) { let names = getAllPropertyNames(IgcAnchoredRadialSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent = names; } return IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent; } /** * Gets or sets whether to normalize the values against the category values if using a proportional category axis. */ get useCategoryNormalizedValues() { return this.i.ac1; } set useCategoryNormalizedValues(v) { this.i.ac1 = ensureBool(v); this._a("useCategoryNormalizedValues", this.i.ac1); } /** * Gets or sets the item path that provides the values for the current series. */ get valueMemberPath() { return this.i.adh; } set valueMemberPath(v) { this.i.adh = v; } /** * Gets or sets the value mapping property for the current series object. */ get highlightedValueMemberPath() { return this.i.ac9; } set highlightedValueMemberPath(v) { this.i.ac9 = v; } /** * Gets or sets the label displayed before series value in the Data Legend. */ get valueMemberAsLegendLabel() { return this.i.add; } set valueMemberAsLegendLabel(v) { this.i.add = v; } /** * Gets or sets the unit displayed after series value in the Data Legend. */ get valueMemberAsLegendUnit() { return this.i.adf; } set valueMemberAsLegendUnit(v) { this.i.adf = v; } /** * Gets or sets the trend type for the current series object. */ get trendLineType() { return this.i.acq; } set trendLineType(v) { this.i.acq = ensureEnum(TrendLineType_$type, v); this._a("trendLineType", enumToString(TrendLineType_$type, this.i.acq)); } /** * Gets or sets the brush that specifies how to the current series * object's Trend line is drawn. */ get trendLineBrush() { return brushToString(this.i.ad5); } set trendLineBrush(v) { this.i.ad5 = stringToBrush(v); this._a("trendLineBrush", brushToString(this.i.ad5)); } /** * Gets the effective TrendLineBrush for this series. */ get actualTrendLineBrush() { return brushToString(this.i.ad4); } set actualTrendLineBrush(v) { this.i.ad4 = stringToBrush(v); this._a("actualTrendLineBrush", brushToString(this.i.ad4)); } /** * Gets or sets the thickness of the current series object's trend line. */ get trendLineThickness() { return this.i.ac6; } set trendLineThickness(v) { this.i.ac6 = +v; this._a("trendLineThickness", this.i.ac6); } /** * 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 trendLineDashArray() { return fromDoubleCollection(this.i.ad6); } set trendLineDashArray(v) { this.i.ad6 = toDoubleCollection(v); this._a("trendLineDashArray", doubleCollectionToString(this.i.ad6)); } /** * Gets or sets the trend line period for the current series. * The typical, and initial, value for bollinger band periods is 20. */ get trendLinePeriod() { return this.i.ac7; } set trendLinePeriod(v) { this.i.ac7 = +v; this._a("trendLinePeriod", this.i.ac7); } /** * Sets or Gets the Z index of the trendline. */ get trendLineZIndex() { return this.i.ac8; } set trendLineZIndex(v) { this.i.ac8 = +v; this._a("trendLineZIndex", this.i.ac8); } get hasValueAxis() { return this.i.em; } get isValueAxisInverted() { return this.i.gb; } getItemValue(item, memberPathName) { let 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 */ getMemberPathValue(memberPathName) { let iv = this.i.mo(memberPathName); return (iv); } getPreviousOrExactIndex(world, skipUnknowns) { let iv = this.i.kj(toPoint(world), skipUnknowns); return (iv); } getNextOrExactIndex(world, skipUnknowns) { let iv = this.i.kh(toPoint(world), skipUnknowns); return (iv); } getSeriesValue(world, useInterpolation, skipUnknowns) { let iv = this.i.jd(toPoint(world), useInterpolation, skipUnknowns); return (iv); } getSeriesValuePosition(world, useInterpolation, skipUnknowns) { let iv = this.i.ww(toPoint(world), useInterpolation, skipUnknowns); return fromPoint(iv); } /** * Returns the offset value for this series if grouped on a category axis. */ getOffsetValue() { let iv = this.i.getOffsetValue(); return (iv); } /** * Returns the width of the category grouping this series is in. */ getCategoryWidth() { let iv = this.i.getCategoryWidth(); return (iv); } /** * Scrolls the specified item into the view. * @param item * The item to scroll into view. */ scrollIntoView(item) { let iv = this.i.gj(item); return (iv); } } IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent = null; return IgcAnchoredRadialSeriesComponent; })(); export { IgcAnchoredRadialSeriesComponent };