UNPKG

igniteui-webcomponents-charts

Version:

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

234 lines (229 loc) 8.23 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"; /** * Represents the base class for all IgxDataChartComponent anchored radial category series. */ export 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.ack; } set useCategoryNormalizedValues(v) { this.i.ack = ensureBool(v); this._a("useCategoryNormalizedValues", this.i.ack); } /** * Gets or sets the item path that provides the values for the current series. */ get valueMemberPath() { return this.i.ac0; } set valueMemberPath(v) { this.i.ac0 = v; } /** * Gets or sets the value mapping property for the current series object. */ get highlightedValueMemberPath() { return this.i.acs; } set highlightedValueMemberPath(v) { this.i.acs = v; } /** * Gets or sets the label displayed before series value in the Data Legend. */ get valueMemberAsLegendLabel() { return this.i.acw; } set valueMemberAsLegendLabel(v) { this.i.acw = v; } /** * Gets or sets the unit displayed after series value in the Data Legend. */ get valueMemberAsLegendUnit() { return this.i.acy; } set valueMemberAsLegendUnit(v) { this.i.acy = v; } /** * Gets or sets the trend type for the current series object. */ get trendLineType() { return this.i.ab9; } set trendLineType(v) { this.i.ab9 = ensureEnum(TrendLineType_$type, v); this._a("trendLineType", enumToString(TrendLineType_$type, this.i.ab9)); } /** * Gets or sets the brush that specifies how to the current series * object's Trend line is drawn. */ get trendLineBrush() { return brushToString(this.i.ado); } set trendLineBrush(v) { this.i.ado = stringToBrush(v); this._a("trendLineBrush", brushToString(this.i.ado)); } /** * Gets the effective TrendLineBrush for this series. */ get actualTrendLineBrush() { return brushToString(this.i.adn); } set actualTrendLineBrush(v) { this.i.adn = stringToBrush(v); this._a("actualTrendLineBrush", brushToString(this.i.adn)); } /** * Gets or sets the thickness of the current series object's trend line. */ get trendLineThickness() { return this.i.acp; } set trendLineThickness(v) { this.i.acp = +v; this._a("trendLineThickness", this.i.acp); } /** * 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.adp); } set trendLineDashArray(v) { this.i.adp = toDoubleCollection(v); this._a("trendLineDashArray", doubleCollectionToString(this.i.adp)); } /** * 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.acq; } set trendLinePeriod(v) { this.i.acq = +v; this._a("trendLinePeriod", this.i.acq); } /** * Sets or Gets the Z index of the trendline. */ get trendLineZIndex() { return this.i.acr; } set trendLineZIndex(v) { this.i.acr = +v; this._a("trendLineZIndex", this.i.acr); } get hasValueAxis() { return this.i.em; } get isValueAxisInverted() { return this.i.f6; } getItemValue(item, memberPathName) { let iv = this.i.kr(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.mf(memberPathName); return (iv); } getPreviousOrExactIndex(world, skipUnknowns) { let iv = this.i.kb(toPoint(world), skipUnknowns); return (iv); } getNextOrExactIndex(world, skipUnknowns) { let iv = this.i.j9(toPoint(world), skipUnknowns); return (iv); } getSeriesValue(world, useInterpolation, skipUnknowns) { let iv = this.i.i6(toPoint(world), useInterpolation, skipUnknowns); return (iv); } getSeriesValuePosition(world, useInterpolation, skipUnknowns) { let iv = this.i.wh(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.ge(item); return (iv); } } IgcAnchoredRadialSeriesComponent._observedAttributesIgcAnchoredRadialSeriesComponent = null; return IgcAnchoredRadialSeriesComponent; })();