UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

39 lines (38 loc) 1.85 kB
import { NumberRange } from "../../../Core/NumberRange"; import { TSciChart } from "../../../types/TSciChart"; import { WebGlRenderContext2D } from "../../Drawing/WebGlRenderContext2D"; import { RenderPassData } from "../../Services/RenderPassData"; import { SciChartSurface } from "../SciChartSurface"; import { BaseStackedCollection, IBaseStackedCollectionOptions } from "./BaseStackedCollection"; import { BaseStackedRenderableSeries } from "./BaseStackedRenderableSeries"; export declare abstract class StackedXyCollection<T extends BaseStackedRenderableSeries> extends BaseStackedCollection<T> { /** * Creates an instance of the {@link StackedMountainCollection} * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing * native methods and access to our WebGL2 WebAssembly Drawing Engine * @param options Optional parameters of type {@link IBaseStackedCollectionOptions} to configure the series */ constructor(webAssemblyContext: TSciChart, options?: IBaseStackedCollectionOptions); /** @inheritDoc */ updateAccumulatedVectors(): void; /** @inheritDoc */ draw(renderContext: WebGlRenderContext2D, renderPassData: RenderPassData): void; /** @inheritDoc */ getXRange(): NumberRange; /** @inheritDoc */ onAttach(scs: SciChartSurface): void; /** @inheritDoc */ onDetach(): void; /** @inheritDoc */ notifyPropertyChanged(propertyName: string): void; /** @inheritDoc */ hasDataSeriesValues(): boolean; private detachChildSeries; private attachChildSeries; private checkXValuesCorrect; /** * @param numberOfElements - number of element expected is used for performance to reserve memory */ private clearAccumulatedVectors; private getLastVisibleSeries; }