scichart 2.0.2228 → 2.1.2273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +0 -1
- package/Charting/ChartModifiers/LegendModifier.d.ts +2 -2
- package/Charting/ChartModifiers/RolloverModifier.d.ts +5 -3
- package/Charting/ChartModifiers/RolloverModifier.js +38 -80
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +1 -0
- package/Charting/Drawing/WebGlRenderContext2D.js +4 -1
- package/Charting/Model/BaseDataSeries.d.ts +42 -15
- package/Charting/Model/BaseDataSeries.js +77 -28
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +31 -23
- package/Charting/Model/BaseHeatmapDataSeries.js +45 -18
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.d.ts +23 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +122 -0
- package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.d.ts +57 -0
- package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.js +2 -0
- package/Charting/Model/Filters/OhlcFilterBase.d.ts +2 -2
- package/Charting/Model/Filters/XyFilterBase.d.ts +3 -3
- package/Charting/Model/Filters/XyMovingAverageFilter.js +1 -1
- package/Charting/Model/Filters/XyyFilterBase.d.ts +4 -4
- package/Charting/Model/Filters/XyzFilterBase.d.ts +4 -4
- package/Charting/Model/IDataSeries.d.ts +37 -5
- package/Charting/Model/OhlcDataSeries.d.ts +12 -11
- package/Charting/Model/OhlcDataSeries.js +37 -34
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +21 -0
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +56 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +14 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +23 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +31 -0
- package/Charting/Model/PointSeries/IPointSeries.js +2 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.d.ts +13 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +59 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.d.ts +11 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.js +32 -0
- package/Charting/Model/PointSeries/XyPointSeriesResampled.d.ts +7 -0
- package/Charting/Model/PointSeries/XyPointSeriesResampled.js +27 -0
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +6 -0
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +27 -0
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.d.ts +10 -0
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +48 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +8 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +29 -0
- package/Charting/Model/PointSeries/XyzPointSeriesWrapped.d.ts +8 -0
- package/Charting/Model/PointSeries/XyzPointSeriesWrapped.js +29 -0
- package/Charting/Model/XyDataSeries.d.ts +3 -2
- package/Charting/Model/XyDataSeries.js +22 -22
- package/Charting/Model/XyyDataSeries.d.ts +5 -5
- package/Charting/Model/XyyDataSeries.js +24 -21
- package/Charting/Model/XyzDataSeries.d.ts +5 -5
- package/Charting/Model/XyzDataSeries.js +24 -21
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.js +6 -2
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.js +6 -2
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +54 -0
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +234 -0
- package/Charting/Numerics/Resamplers/ResamplingMode.d.ts +37 -0
- package/Charting/Numerics/Resamplers/ResamplingMode.js +41 -0
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +39 -0
- package/Charting/Numerics/Resamplers/ResamplingParams.js +52 -0
- package/Charting/Services/RenderPassData.d.ts +6 -1
- package/Charting/Services/RenderPassData.js +5 -1
- package/Charting/Services/RenderPassInfo.d.ts +18 -0
- package/Charting/Services/RenderPassInfo.js +14 -0
- package/Charting/Services/SciChartRenderer.d.ts +14 -1
- package/Charting/Services/SciChartRenderer.js +125 -31
- package/Charting/Visuals/Axis/AxisCore.d.ts +11 -0
- package/Charting/Visuals/Axis/AxisCore.js +39 -18
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +6 -6
- package/Charting/Visuals/Axis/CategoryAxisBase.d.ts +52 -0
- package/Charting/Visuals/Axis/CategoryAxisBase.js +94 -20
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +5 -0
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +7 -4
- package/Charting/Visuals/Axis/NumericAxis.js +2 -2
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/Legend/SciChartLegend.d.ts +6 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +30 -13
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +20 -6
- package/Charting/Visuals/Legend/SciChartLegendBase.js +22 -4
- package/Charting/Visuals/Legend/SciChartPieLegend.d.ts +2 -0
- package/Charting/Visuals/Legend/SciChartPieLegend.js +17 -6
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +6 -6
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +2 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +9 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +45 -1
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +12 -5
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +113 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +42 -6
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +129 -21
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +36 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +51 -3
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +38 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +54 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +8 -14
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +4 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +5 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +31 -19
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +17 -21
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -12
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +9 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +4 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +16 -21
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +2 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +0 -7
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +11 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +17 -0
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +6 -6
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +1 -1
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +38 -2
- package/Charting/Visuals/RenderableSeries/ISpline.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +5 -5
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +3 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +3 -3
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +2 -7
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +1 -7
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -3
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +6 -3
- package/Charting/Visuals/RenderableSeries/constants.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/constants.js +3 -0
- package/Charting/Visuals/SciChartDefaults.d.ts +9 -1
- package/Charting/Visuals/SciChartDefaults.js +9 -1
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +4 -2
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +46 -32
- package/Charting/Visuals/licenseManager2D.js +21 -20
- package/Charting/Visuals/licenseManager2dState.d.ts +4 -0
- package/Charting/Visuals/licenseManager2dState.js +12 -0
- package/Charting/Visuals/loader.js +2 -0
- package/Charting/Visuals/sciChartInitCommon.js +4 -0
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +7 -7
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +3 -3
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/OneTimePerformanceWarning.d.ts +6 -0
- package/Core/OneTimePerformanceWarning.js +19 -0
- package/Core/storage/localStorageApi.d.ts +9 -0
- package/Core/storage/localStorageApi.js +32 -0
- package/README.md +223 -1
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +12 -12
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +13 -13
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +5 -0
- package/constants/performanceWarnings.js +8 -0
- package/package.json +1 -1
- package/types/SearchMode.d.ts +21 -0
- package/types/SearchMode.js +25 -0
- package/types/TSciChart.d.ts +144 -40
- package/types/TSciChart3D.d.ts +66 -28
- package/utils/array.d.ts +7 -0
- package/utils/array.js +19 -1
- package/utils/calcAverage.d.ts +2 -2
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +19 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.js +91 -0
- package/utils/hash.d.ts +7 -0
- package/utils/hash.js +35 -0
- package/utils/tooltip.d.ts +42 -0
- package/utils/tooltip.js +119 -0
- package/utils/ccall/fillDoubleVectorFromJsArray.d.ts +0 -3
- package/utils/ccall/fillDoubleVectorFromJsArray.js +0 -33
- package/utils/performance.d.ts +0 -5
- package/utils/performance.js +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumberRange } from "../../Core/NumberRange";
|
|
2
2
|
import { NumberArray } from "../../types/NumberArray";
|
|
3
|
-
import {
|
|
3
|
+
import { SCRTDoubleVector, TSciChart } from "../../types/TSciChart";
|
|
4
4
|
import { SeriesAnimation } from "../Visuals/RenderableSeries/Animations/SeriesAnimation";
|
|
5
5
|
import { BaseDataSeries, IBaseDataSeriesOptions } from "./BaseDataSeries";
|
|
6
6
|
import { EDataSeriesType, EDataSeriesValueType } from "./IDataSeries";
|
|
@@ -50,27 +50,27 @@ export declare class OhlcDataSeries extends BaseDataSeries {
|
|
|
50
50
|
/**
|
|
51
51
|
* Open vector with initial animation values
|
|
52
52
|
*/
|
|
53
|
-
openInitialAnimationValues:
|
|
53
|
+
openInitialAnimationValues: SCRTDoubleVector;
|
|
54
54
|
/**
|
|
55
55
|
* Open vector with final animation values
|
|
56
56
|
*/
|
|
57
|
-
openFinalAnimationValues:
|
|
57
|
+
openFinalAnimationValues: SCRTDoubleVector;
|
|
58
58
|
/**
|
|
59
59
|
* High vector with initial animation values
|
|
60
60
|
*/
|
|
61
|
-
highInitialAnimationValues:
|
|
61
|
+
highInitialAnimationValues: SCRTDoubleVector;
|
|
62
62
|
/**
|
|
63
63
|
* High vector with final animation values
|
|
64
64
|
*/
|
|
65
|
-
highFinalAnimationValues:
|
|
65
|
+
highFinalAnimationValues: SCRTDoubleVector;
|
|
66
66
|
/**
|
|
67
67
|
* Low vector with initial animation values
|
|
68
68
|
*/
|
|
69
|
-
lowInitialAnimationValues:
|
|
69
|
+
lowInitialAnimationValues: SCRTDoubleVector;
|
|
70
70
|
/**
|
|
71
71
|
* Low vector with final animation values
|
|
72
72
|
*/
|
|
73
|
-
lowFinalAnimationValues:
|
|
73
|
+
lowFinalAnimationValues: SCRTDoubleVector;
|
|
74
74
|
private openValues;
|
|
75
75
|
private highValues;
|
|
76
76
|
private lowValues;
|
|
@@ -84,19 +84,19 @@ export declare class OhlcDataSeries extends BaseDataSeries {
|
|
|
84
84
|
/**
|
|
85
85
|
* Gets a native / WebAssembly vector of Open-values in the DataSeries
|
|
86
86
|
*/
|
|
87
|
-
getNativeOpenValues():
|
|
87
|
+
getNativeOpenValues(): SCRTDoubleVector;
|
|
88
88
|
/**
|
|
89
89
|
* Gets a native / WebAssembly vector of High-values in the DataSeries
|
|
90
90
|
*/
|
|
91
|
-
getNativeHighValues():
|
|
91
|
+
getNativeHighValues(): SCRTDoubleVector;
|
|
92
92
|
/**
|
|
93
93
|
* Gets a native / WebAssembly vector of Low-values in the DataSeries
|
|
94
94
|
*/
|
|
95
|
-
getNativeLowValues():
|
|
95
|
+
getNativeLowValues(): SCRTDoubleVector;
|
|
96
96
|
/**
|
|
97
97
|
* Gets a native / WebAssembly vector of Close-values in the DataSeries
|
|
98
98
|
*/
|
|
99
|
-
getNativeCloseValues():
|
|
99
|
+
getNativeCloseValues(): SCRTDoubleVector;
|
|
100
100
|
/**
|
|
101
101
|
* Appends a single X (Date), Open, High, Low, Close point to the DataSeries
|
|
102
102
|
* @remarks
|
|
@@ -147,6 +147,7 @@ export declare class OhlcDataSeries extends BaseDataSeries {
|
|
|
147
147
|
* @param high The new High value
|
|
148
148
|
* @param low The new Low value
|
|
149
149
|
* @param close The new Close value
|
|
150
|
+
* @param metadata The point metadata
|
|
150
151
|
*/
|
|
151
152
|
updateXohlc(index: number, x: number, open: number, high: number, low: number, close: number, metadata?: IPointMetadata): void;
|
|
152
153
|
/**
|
|
@@ -20,7 +20,7 @@ var Deleter_1 = require("../../Core/Deleter");
|
|
|
20
20
|
var Guard_1 = require("../../Core/Guard");
|
|
21
21
|
var NumberRange_1 = require("../../Core/NumberRange");
|
|
22
22
|
var NumberArray_1 = require("../../types/NumberArray");
|
|
23
|
-
var
|
|
23
|
+
var appendDoubleVectorFromJsArray_1 = require("../../utils/ccall/appendDoubleVectorFromJsArray");
|
|
24
24
|
var animationHelpers_1 = require("../Visuals/RenderableSeries/Animations/animationHelpers");
|
|
25
25
|
var BaseDataSeries_1 = require("./BaseDataSeries");
|
|
26
26
|
var IDataSeries_1 = require("./IDataSeries");
|
|
@@ -50,15 +50,15 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
50
50
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
51
51
|
/** @inheritDoc */
|
|
52
52
|
_this.type = IDataSeries_1.EDataSeriesType.Ohlc;
|
|
53
|
-
_this.openValues = new webAssemblyContext.
|
|
54
|
-
_this.highValues = new webAssemblyContext.
|
|
55
|
-
_this.lowValues = new webAssemblyContext.
|
|
56
|
-
_this.openInitialAnimationValues = new webAssemblyContext.
|
|
57
|
-
_this.highInitialAnimationValues = new webAssemblyContext.
|
|
58
|
-
_this.lowInitialAnimationValues = new webAssemblyContext.
|
|
59
|
-
_this.openFinalAnimationValues = new webAssemblyContext.
|
|
60
|
-
_this.highFinalAnimationValues = new webAssemblyContext.
|
|
61
|
-
_this.lowFinalAnimationValues = new webAssemblyContext.
|
|
53
|
+
_this.openValues = new webAssemblyContext.SCRTDoubleVector();
|
|
54
|
+
_this.highValues = new webAssemblyContext.SCRTDoubleVector();
|
|
55
|
+
_this.lowValues = new webAssemblyContext.SCRTDoubleVector();
|
|
56
|
+
_this.openInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
57
|
+
_this.highInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
58
|
+
_this.lowInitialAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
59
|
+
_this.openFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
60
|
+
_this.highFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
61
|
+
_this.lowFinalAnimationValues = new webAssemblyContext.SCRTDoubleVector();
|
|
62
62
|
if (options === null || options === void 0 ? void 0 : options.xValues) {
|
|
63
63
|
_this.appendRange(options.xValues, options.openValues, options.highValues, options.lowValues, options.closeValues, options.metadata);
|
|
64
64
|
}
|
|
@@ -104,9 +104,11 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
104
104
|
*/
|
|
105
105
|
OhlcDataSeries.prototype.append = function (x, open, high, low, close, metadata) {
|
|
106
106
|
if (!this.getIsDeleted()) {
|
|
107
|
+
var nativeX = this.getNativeXValues();
|
|
108
|
+
this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, [x], [close]);
|
|
107
109
|
// Push metadata should be done before push x values
|
|
108
110
|
this.appendMetadata(metadata);
|
|
109
|
-
|
|
111
|
+
nativeX.push_back(x);
|
|
110
112
|
this.getNativeOpenValues().push_back(open);
|
|
111
113
|
this.getNativeHighValues().push_back(high);
|
|
112
114
|
this.getNativeLowValues().push_back(low);
|
|
@@ -146,19 +148,20 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
146
148
|
Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
|
|
147
149
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
|
|
148
150
|
}
|
|
149
|
-
// Push metadata should be done before push x values
|
|
150
|
-
this.appendMetadataRange(metadata, xValues.length);
|
|
151
151
|
var nativeX = this.getNativeXValues();
|
|
152
152
|
var nativeOpen = this.getNativeOpenValues();
|
|
153
153
|
var nativeHigh = this.getNativeHighValues();
|
|
154
154
|
var nativeLow = this.getNativeLowValues();
|
|
155
155
|
var nativeClose = this.getNativeCloseValues();
|
|
156
|
+
this.dataDistributionCalculator.onAppend(this.isSorted, this.containsNaN, nativeX, xValues, closeValues);
|
|
157
|
+
// Push metadata should be done before push x values
|
|
158
|
+
this.appendMetadataRange(metadata, xValues.length);
|
|
156
159
|
// New implementation passing array from JS
|
|
157
|
-
(0,
|
|
158
|
-
(0,
|
|
159
|
-
(0,
|
|
160
|
-
(0,
|
|
161
|
-
(0,
|
|
160
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeX, xValues);
|
|
161
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeOpen, openValues);
|
|
162
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeHigh, highValues);
|
|
163
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeLow, lowValues);
|
|
164
|
+
(0, appendDoubleVectorFromJsArray_1.appendDoubleVectorFromJsArray)(this.webAssemblyContext, nativeClose, closeValues);
|
|
162
165
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Append, null, xValues.length);
|
|
163
166
|
}
|
|
164
167
|
};
|
|
@@ -175,6 +178,7 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
175
178
|
OhlcDataSeries.prototype.update = function (index, open, high, low, close, metadata) {
|
|
176
179
|
if (!this.getIsDeleted()) {
|
|
177
180
|
this.validateIndex(index);
|
|
181
|
+
this.dataDistributionCalculator.onUpdate(this.isSorted, this.containsNaN, undefined, undefined, [close], index);
|
|
178
182
|
this.getNativeOpenValues().set(index, open);
|
|
179
183
|
this.getNativeHighValues().set(index, high);
|
|
180
184
|
this.getNativeLowValues().set(index, low);
|
|
@@ -192,10 +196,14 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
192
196
|
* @param high The new High value
|
|
193
197
|
* @param low The new Low value
|
|
194
198
|
* @param close The new Close value
|
|
199
|
+
* @param metadata The point metadata
|
|
195
200
|
*/
|
|
196
201
|
OhlcDataSeries.prototype.updateXohlc = function (index, x, open, high, low, close, metadata) {
|
|
197
202
|
if (!this.getIsDeleted()) {
|
|
198
|
-
this.
|
|
203
|
+
this.validateIndex(index);
|
|
204
|
+
var nativeX = this.getNativeXValues();
|
|
205
|
+
this.dataDistributionCalculator.onUpdate(this.isSorted, this.containsNaN, nativeX, [x], [close], index);
|
|
206
|
+
nativeX.set(index, x);
|
|
199
207
|
this.getNativeOpenValues().set(index, open);
|
|
200
208
|
this.getNativeHighValues().set(index, high);
|
|
201
209
|
this.getNativeLowValues().set(index, low);
|
|
@@ -218,7 +226,9 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
218
226
|
OhlcDataSeries.prototype.insert = function (startIndex, x, open, high, low, close, metadata) {
|
|
219
227
|
if (!this.getIsDeleted()) {
|
|
220
228
|
this.validateIndex(startIndex, "Start index is out of range");
|
|
221
|
-
this.getNativeXValues()
|
|
229
|
+
var nativeX = this.getNativeXValues();
|
|
230
|
+
this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [close], startIndex);
|
|
231
|
+
nativeX.insertAt(startIndex, x);
|
|
222
232
|
this.getNativeOpenValues().insertAt(startIndex, open);
|
|
223
233
|
this.getNativeHighValues().insertAt(startIndex, high);
|
|
224
234
|
this.getNativeLowValues().insertAt(startIndex, low);
|
|
@@ -257,20 +267,13 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
257
267
|
Guard_1.Guard.isTrue(Array.isArray(metadata), "metadata must be an array of IPointMetadata");
|
|
258
268
|
Guard_1.Guard.arraysSameLength(xValues, "xValues", metadata, "metadata");
|
|
259
269
|
}
|
|
260
|
-
var rangeLength = xValues.length;
|
|
261
270
|
var nativeX = this.getNativeXValues();
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
nativeX.insertAt(tempStartIndex, xValues[i]);
|
|
269
|
-
nativeOpen.insertAt(tempStartIndex, openValues[i]);
|
|
270
|
-
nativeHigh.insertAt(tempStartIndex, highValues[i]);
|
|
271
|
-
nativeLow.insertAt(tempStartIndex, lowValues[i]);
|
|
272
|
-
nativeY.insertAt(tempStartIndex, closeValues[i]);
|
|
273
|
-
}
|
|
271
|
+
this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, xValues, closeValues, startIndex);
|
|
272
|
+
(0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, xValues, nativeX, startIndex);
|
|
273
|
+
(0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, openValues, this.getNativeOpenValues(), startIndex);
|
|
274
|
+
(0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, highValues, this.getNativeHighValues(), startIndex);
|
|
275
|
+
(0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, lowValues, this.getNativeLowValues(), startIndex);
|
|
276
|
+
(0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, closeValues, this.getNativeCloseValues(), startIndex);
|
|
274
277
|
this.insertMetadataRange(startIndex, metadata);
|
|
275
278
|
this.notifyDataChanged(IDataSeries_1.EDataChangeType.Insert, startIndex, xValues.length);
|
|
276
279
|
}
|
|
@@ -320,7 +323,7 @@ var OhlcDataSeries = /** @class */ (function (_super) {
|
|
|
320
323
|
*/
|
|
321
324
|
OhlcDataSeries.prototype.clear = function () {
|
|
322
325
|
if (!this.getIsDeleted()) {
|
|
323
|
-
|
|
326
|
+
_super.prototype.clear.call(this);
|
|
324
327
|
this.getNativeXValues().clear();
|
|
325
328
|
this.getNativeOpenValues().clear();
|
|
326
329
|
this.getNativeHighValues().clear();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IDeletable } from "../../../Core/IDeletable";
|
|
2
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
|
+
import { IntVector, SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
4
|
+
import { IPointSeries, IPointSeriesResampled } from "./IPointSeries";
|
|
5
|
+
export declare abstract class BasePointSeriesResampled implements IPointSeries, IPointSeriesResampled, IDeletable {
|
|
6
|
+
readonly intIndexes: IntVector;
|
|
7
|
+
readonly indexes: SCRTDoubleVector;
|
|
8
|
+
readonly xValues: SCRTDoubleVector;
|
|
9
|
+
readonly yValues: SCRTDoubleVector;
|
|
10
|
+
xRange: NumberRange;
|
|
11
|
+
protected wasmContext: TSciChart;
|
|
12
|
+
constructor(wasmContext: TSciChart, xRange: NumberRange);
|
|
13
|
+
get count(): number;
|
|
14
|
+
delete(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Updates SCRTDoubleVector from IntVector
|
|
17
|
+
*/
|
|
18
|
+
updateIndexes(): void;
|
|
19
|
+
clearIntIndexes(): void;
|
|
20
|
+
debugOutputForUnitTests(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BasePointSeriesResampled = void 0;
|
|
4
|
+
var BasePointSeriesResampled = /** @class */ (function () {
|
|
5
|
+
function BasePointSeriesResampled(wasmContext, xRange) {
|
|
6
|
+
this.wasmContext = wasmContext;
|
|
7
|
+
this.intIndexes = new wasmContext.IntVector();
|
|
8
|
+
this.indexes = new wasmContext.SCRTDoubleVector();
|
|
9
|
+
this.xValues = new wasmContext.SCRTDoubleVector();
|
|
10
|
+
this.yValues = new wasmContext.SCRTDoubleVector();
|
|
11
|
+
this.xRange = xRange;
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(BasePointSeriesResampled.prototype, "count", {
|
|
14
|
+
get: function () {
|
|
15
|
+
return this.xValues.size();
|
|
16
|
+
},
|
|
17
|
+
enumerable: false,
|
|
18
|
+
configurable: true
|
|
19
|
+
});
|
|
20
|
+
BasePointSeriesResampled.prototype.delete = function () {
|
|
21
|
+
this.intIndexes.delete();
|
|
22
|
+
this.indexes.delete();
|
|
23
|
+
this.xValues.delete();
|
|
24
|
+
this.yValues.delete();
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Updates SCRTDoubleVector from IntVector
|
|
28
|
+
*/
|
|
29
|
+
BasePointSeriesResampled.prototype.updateIndexes = function () {
|
|
30
|
+
var resultCount = this.count;
|
|
31
|
+
// console.log("resultCount", resultCount);
|
|
32
|
+
// console.log("this.indexes", this.indexes);
|
|
33
|
+
this.indexes.resizeFast(resultCount);
|
|
34
|
+
// TODO: Find an effective way to copy indexes
|
|
35
|
+
for (var i = 0; i < resultCount; i++) {
|
|
36
|
+
this.indexes.set(i, this.intIndexes.get(i));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
BasePointSeriesResampled.prototype.clearIntIndexes = function () {
|
|
40
|
+
this.intIndexes.clear();
|
|
41
|
+
};
|
|
42
|
+
BasePointSeriesResampled.prototype.debugOutputForUnitTests = function () {
|
|
43
|
+
console.log("points count ".concat(this.count));
|
|
44
|
+
console.log("xResampled at min", this.xValues.get(0));
|
|
45
|
+
console.log("openResampled at min", this.yValues.get(0));
|
|
46
|
+
var middle = Math.round(this.count / 2);
|
|
47
|
+
console.log("middle", middle);
|
|
48
|
+
console.log("xResampled at middle", this.xValues.get(middle));
|
|
49
|
+
console.log("yValues at middle", this.yValues.get(middle));
|
|
50
|
+
var end = this.count - 1;
|
|
51
|
+
console.log("xResampled at end", this.xValues.get(end));
|
|
52
|
+
console.log("yValues at end", this.yValues.get(end));
|
|
53
|
+
};
|
|
54
|
+
return BasePointSeriesResampled;
|
|
55
|
+
}());
|
|
56
|
+
exports.BasePointSeriesResampled = BasePointSeriesResampled;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
|
+
import { SCRTDoubleVector } from "../../../types/TSciChart";
|
|
3
|
+
import { IDataSeries } from "../IDataSeries";
|
|
4
|
+
import { IPointSeries } from "./IPointSeries";
|
|
5
|
+
export declare class BasePointSeriesWrapped implements IPointSeries {
|
|
6
|
+
readonly count: number;
|
|
7
|
+
readonly xRange: NumberRange;
|
|
8
|
+
readonly xValues: SCRTDoubleVector;
|
|
9
|
+
readonly yValues: SCRTDoubleVector;
|
|
10
|
+
protected dataSeries: IDataSeries;
|
|
11
|
+
protected indexesProperty: SCRTDoubleVector;
|
|
12
|
+
constructor(dataSeries: IDataSeries);
|
|
13
|
+
get indexes(): SCRTDoubleVector;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BasePointSeriesWrapped = void 0;
|
|
4
|
+
var BasePointSeriesWrapped = /** @class */ (function () {
|
|
5
|
+
function BasePointSeriesWrapped(dataSeries) {
|
|
6
|
+
this.dataSeries = dataSeries;
|
|
7
|
+
this.count = dataSeries.count();
|
|
8
|
+
this.xValues = this.dataSeries.getNativeXValues();
|
|
9
|
+
this.yValues = this.dataSeries.getNativeYValues();
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(BasePointSeriesWrapped.prototype, "indexes", {
|
|
12
|
+
get: function () {
|
|
13
|
+
if (!this.indexesProperty) {
|
|
14
|
+
this.indexesProperty = this.dataSeries.getNativeIndexes();
|
|
15
|
+
}
|
|
16
|
+
return this.indexesProperty;
|
|
17
|
+
},
|
|
18
|
+
enumerable: false,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
return BasePointSeriesWrapped;
|
|
22
|
+
}());
|
|
23
|
+
exports.BasePointSeriesWrapped = BasePointSeriesWrapped;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
|
+
import { IntVector, SCRTDoubleVector } from "../../../types/TSciChart";
|
|
3
|
+
/**
|
|
4
|
+
* The PointSeries is a set of data for drawing. This might be a reduced set depending on optimisations enabled
|
|
5
|
+
*/
|
|
6
|
+
export interface IPointSeries {
|
|
7
|
+
readonly indexes: SCRTDoubleVector;
|
|
8
|
+
readonly xValues: SCRTDoubleVector;
|
|
9
|
+
readonly yValues: SCRTDoubleVector;
|
|
10
|
+
readonly count: number;
|
|
11
|
+
xRange: NumberRange;
|
|
12
|
+
}
|
|
13
|
+
export interface IPointSeriesResampled {
|
|
14
|
+
readonly intIndexes: IntVector;
|
|
15
|
+
updateIndexes(): void;
|
|
16
|
+
clearIntIndexes(): void;
|
|
17
|
+
}
|
|
18
|
+
export interface IXyPointSeries extends IPointSeries {
|
|
19
|
+
}
|
|
20
|
+
export interface IXyyPointSeries extends IPointSeries {
|
|
21
|
+
readonly y1Values: SCRTDoubleVector;
|
|
22
|
+
}
|
|
23
|
+
export interface IXyzPointSeries extends IPointSeries {
|
|
24
|
+
readonly zValues: SCRTDoubleVector;
|
|
25
|
+
}
|
|
26
|
+
export interface IOhlcPointSeries extends IPointSeries {
|
|
27
|
+
readonly openValues: SCRTDoubleVector;
|
|
28
|
+
readonly highValues: SCRTDoubleVector;
|
|
29
|
+
readonly lowValues: SCRTDoubleVector;
|
|
30
|
+
readonly closeValues: SCRTDoubleVector;
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
|
+
import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
3
|
+
import { BasePointSeriesResampled } from "./BasePointSeriesResampled";
|
|
4
|
+
import { IOhlcPointSeries } from "./IPointSeries";
|
|
5
|
+
export declare class OhlcPointSeriesResampled extends BasePointSeriesResampled implements IOhlcPointSeries {
|
|
6
|
+
readonly openValues: SCRTDoubleVector;
|
|
7
|
+
readonly highValues: SCRTDoubleVector;
|
|
8
|
+
readonly lowValues: SCRTDoubleVector;
|
|
9
|
+
readonly closeValues: SCRTDoubleVector;
|
|
10
|
+
constructor(wasmContext: TSciChart, xRange: NumberRange);
|
|
11
|
+
delete(): void;
|
|
12
|
+
debugOutputForUnitTests(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.OhlcPointSeriesResampled = void 0;
|
|
19
|
+
var BasePointSeriesResampled_1 = require("./BasePointSeriesResampled");
|
|
20
|
+
var OhlcPointSeriesResampled = /** @class */ (function (_super) {
|
|
21
|
+
__extends(OhlcPointSeriesResampled, _super);
|
|
22
|
+
function OhlcPointSeriesResampled(wasmContext, xRange) {
|
|
23
|
+
var _this = _super.call(this, wasmContext, xRange) || this;
|
|
24
|
+
_this.openValues = new wasmContext.SCRTDoubleVector();
|
|
25
|
+
_this.highValues = new wasmContext.SCRTDoubleVector();
|
|
26
|
+
_this.lowValues = new wasmContext.SCRTDoubleVector();
|
|
27
|
+
_this.closeValues = _this.yValues;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
OhlcPointSeriesResampled.prototype.delete = function () {
|
|
31
|
+
_super.prototype.delete.call(this);
|
|
32
|
+
this.openValues.delete();
|
|
33
|
+
this.highValues.delete();
|
|
34
|
+
this.lowValues.delete();
|
|
35
|
+
};
|
|
36
|
+
OhlcPointSeriesResampled.prototype.debugOutputForUnitTests = function () {
|
|
37
|
+
console.log("points count ".concat(this.count));
|
|
38
|
+
console.log("xResampled at min", this.xValues.get(0));
|
|
39
|
+
console.log("openResampled at min", this.openValues.get(0));
|
|
40
|
+
console.log("highResampled at min", this.highValues.get(0));
|
|
41
|
+
console.log("lowResampled at min", this.lowValues.get(0));
|
|
42
|
+
console.log("closeResampled at min", this.closeValues.get(0));
|
|
43
|
+
var middle = Math.round(this.count / 2);
|
|
44
|
+
console.log("middle", middle);
|
|
45
|
+
console.log("xResampled at middle", this.xValues.get(middle));
|
|
46
|
+
console.log("openResampled at middle", this.openValues.get(middle));
|
|
47
|
+
console.log("highResampled at middle", this.highValues.get(middle));
|
|
48
|
+
console.log("lowResampled at middle", this.lowValues.get(middle));
|
|
49
|
+
console.log("closeResampled at middle", this.closeValues.get(middle));
|
|
50
|
+
var end = this.count - 1;
|
|
51
|
+
console.log("xResampled at end", this.xValues.get(end));
|
|
52
|
+
console.log("openResampled at end", this.openValues.get(end));
|
|
53
|
+
console.log("highResampled at end", this.highValues.get(end));
|
|
54
|
+
console.log("lowResampled at end", this.lowValues.get(end));
|
|
55
|
+
console.log("closeResampled at end", this.closeValues.get(end));
|
|
56
|
+
};
|
|
57
|
+
return OhlcPointSeriesResampled;
|
|
58
|
+
}(BasePointSeriesResampled_1.BasePointSeriesResampled));
|
|
59
|
+
exports.OhlcPointSeriesResampled = OhlcPointSeriesResampled;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SCRTDoubleVector } from "../../../types/TSciChart";
|
|
2
|
+
import { OhlcDataSeries } from "../OhlcDataSeries";
|
|
3
|
+
import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
|
|
4
|
+
import { IOhlcPointSeries } from "./IPointSeries";
|
|
5
|
+
export declare class OhlcPointSeriesWrapped extends BasePointSeriesWrapped implements IOhlcPointSeries {
|
|
6
|
+
readonly openValues: SCRTDoubleVector;
|
|
7
|
+
readonly highValues: SCRTDoubleVector;
|
|
8
|
+
readonly lowValues: SCRTDoubleVector;
|
|
9
|
+
readonly closeValues: SCRTDoubleVector;
|
|
10
|
+
constructor(dataSeries: OhlcDataSeries);
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.OhlcPointSeriesWrapped = void 0;
|
|
19
|
+
var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
|
|
20
|
+
var OhlcPointSeriesWrapped = /** @class */ (function (_super) {
|
|
21
|
+
__extends(OhlcPointSeriesWrapped, _super);
|
|
22
|
+
function OhlcPointSeriesWrapped(dataSeries) {
|
|
23
|
+
var _this = _super.call(this, dataSeries) || this;
|
|
24
|
+
_this.openValues = dataSeries.getNativeOpenValues();
|
|
25
|
+
_this.highValues = dataSeries.getNativeHighValues();
|
|
26
|
+
_this.lowValues = dataSeries.getNativeLowValues();
|
|
27
|
+
_this.closeValues = _this.yValues;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return OhlcPointSeriesWrapped;
|
|
31
|
+
}(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
|
|
32
|
+
exports.OhlcPointSeriesWrapped = OhlcPointSeriesWrapped;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
|
+
import { TSciChart } from "../../../types/TSciChart";
|
|
3
|
+
import { BasePointSeriesResampled } from "./BasePointSeriesResampled";
|
|
4
|
+
import { IXyPointSeries } from "./IPointSeries";
|
|
5
|
+
export declare class XyPointSeriesResampled extends BasePointSeriesResampled implements IXyPointSeries {
|
|
6
|
+
constructor(wasmContext: TSciChart, xRange: NumberRange);
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.XyPointSeriesResampled = void 0;
|
|
19
|
+
var BasePointSeriesResampled_1 = require("./BasePointSeriesResampled");
|
|
20
|
+
var XyPointSeriesResampled = /** @class */ (function (_super) {
|
|
21
|
+
__extends(XyPointSeriesResampled, _super);
|
|
22
|
+
function XyPointSeriesResampled(wasmContext, xRange) {
|
|
23
|
+
return _super.call(this, wasmContext, xRange) || this;
|
|
24
|
+
}
|
|
25
|
+
return XyPointSeriesResampled;
|
|
26
|
+
}(BasePointSeriesResampled_1.BasePointSeriesResampled));
|
|
27
|
+
exports.XyPointSeriesResampled = XyPointSeriesResampled;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IDataSeries } from "../IDataSeries";
|
|
2
|
+
import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
|
|
3
|
+
import { IXyPointSeries } from "./IPointSeries";
|
|
4
|
+
export declare class XyPointSeriesWrapped extends BasePointSeriesWrapped implements IXyPointSeries {
|
|
5
|
+
constructor(dataSeries: IDataSeries);
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.XyPointSeriesWrapped = void 0;
|
|
19
|
+
var BasePointSeriesWrapped_1 = require("./BasePointSeriesWrapped");
|
|
20
|
+
var XyPointSeriesWrapped = /** @class */ (function (_super) {
|
|
21
|
+
__extends(XyPointSeriesWrapped, _super);
|
|
22
|
+
function XyPointSeriesWrapped(dataSeries) {
|
|
23
|
+
return _super.call(this, dataSeries) || this;
|
|
24
|
+
}
|
|
25
|
+
return XyPointSeriesWrapped;
|
|
26
|
+
}(BasePointSeriesWrapped_1.BasePointSeriesWrapped));
|
|
27
|
+
exports.XyPointSeriesWrapped = XyPointSeriesWrapped;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
|
+
import { SCRTDoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
3
|
+
import { BasePointSeriesResampled } from "./BasePointSeriesResampled";
|
|
4
|
+
import { IXyyPointSeries } from "./IPointSeries";
|
|
5
|
+
export declare class XyyPointSeriesResampled extends BasePointSeriesResampled implements IXyyPointSeries {
|
|
6
|
+
readonly y1Values: SCRTDoubleVector;
|
|
7
|
+
constructor(wasmContext: TSciChart, xRange: NumberRange);
|
|
8
|
+
delete(): void;
|
|
9
|
+
debugOutputForUnitTests(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.XyyPointSeriesResampled = void 0;
|
|
19
|
+
var BasePointSeriesResampled_1 = require("./BasePointSeriesResampled");
|
|
20
|
+
var XyyPointSeriesResampled = /** @class */ (function (_super) {
|
|
21
|
+
__extends(XyyPointSeriesResampled, _super);
|
|
22
|
+
function XyyPointSeriesResampled(wasmContext, xRange) {
|
|
23
|
+
var _this = _super.call(this, wasmContext, xRange) || this;
|
|
24
|
+
_this.y1Values = new wasmContext.SCRTDoubleVector();
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
XyyPointSeriesResampled.prototype.delete = function () {
|
|
28
|
+
_super.prototype.delete.call(this);
|
|
29
|
+
this.y1Values.delete();
|
|
30
|
+
};
|
|
31
|
+
XyyPointSeriesResampled.prototype.debugOutputForUnitTests = function () {
|
|
32
|
+
console.log("points count ".concat(this.count));
|
|
33
|
+
console.log("xResampled at min", this.xValues.get(0));
|
|
34
|
+
console.log("yValues at min", this.yValues.get(0));
|
|
35
|
+
console.log("y1Values at min", this.y1Values.get(0));
|
|
36
|
+
var middle = Math.round(this.count / 2);
|
|
37
|
+
console.log("middle", middle);
|
|
38
|
+
console.log("xResampled at middle", this.xValues.get(middle));
|
|
39
|
+
console.log("yValues at middle", this.yValues.get(middle));
|
|
40
|
+
console.log("y1Values at middle", this.y1Values.get(middle));
|
|
41
|
+
var end = this.count - 1;
|
|
42
|
+
console.log("xResampled at end", this.xValues.get(end));
|
|
43
|
+
console.log("yValues at end", this.yValues.get(end));
|
|
44
|
+
console.log("y1Values at end", this.y1Values.get(end));
|
|
45
|
+
};
|
|
46
|
+
return XyyPointSeriesResampled;
|
|
47
|
+
}(BasePointSeriesResampled_1.BasePointSeriesResampled));
|
|
48
|
+
exports.XyyPointSeriesResampled = XyyPointSeriesResampled;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SCRTDoubleVector } from "../../../types/TSciChart";
|
|
2
|
+
import { XyyDataSeries } from "../XyyDataSeries";
|
|
3
|
+
import { BasePointSeriesWrapped } from "./BasePointSeriesWrapped";
|
|
4
|
+
import { IXyyPointSeries } from "./IPointSeries";
|
|
5
|
+
export declare class XyyPointSeriesWrapped extends BasePointSeriesWrapped implements IXyyPointSeries {
|
|
6
|
+
readonly y1Values: SCRTDoubleVector;
|
|
7
|
+
constructor(dataSeries: XyyDataSeries);
|
|
8
|
+
}
|