scichart 2.0.0-alpha.1930 → 2.0.0-alpha.1991
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/Builder/buildAxis.d.ts +3 -3
- package/Builder/buildDataSeries.d.ts +44 -4
- package/Builder/buildDataSeries.js +66 -0
- package/Builder/buildSeries.d.ts +7 -5
- package/Builder/buildSeries.js +3 -4
- package/Builder/buildSurface.d.ts +14 -6
- package/Builder/buildSurface.js +13 -8
- package/Builder/chartBuilder.d.ts +14 -8
- package/Builder/chartBuilder.js +6 -6
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +37 -81
- package/Charting/ChartModifiers/ChartModifierBase.js +28 -73
- package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +5 -1
- package/Charting/ChartModifiers/ChartModifierBase2D.js +6 -17
- package/Charting/ChartModifiers/CursorModifier.d.ts +4 -2
- package/Charting/ChartModifiers/CursorModifier.js +1 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +3 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +62 -27
- package/Charting/ChartModifiers/LegendModifier.d.ts +5 -1
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.js +44 -58
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +15 -7
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +14 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
- package/Charting/Drawing/BrushCache.js +6 -8
- package/Charting/Drawing/Pen2DCache.d.ts +4 -6
- package/Charting/Drawing/Pen2DCache.js +14 -11
- package/Charting/Drawing/WebGlPen.d.ts +2 -1
- package/Charting/Drawing/WebGlPen.js +3 -2
- package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/Model/BaseDataSeries.d.ts +64 -52
- package/Charting/Model/BaseDataSeries.js +158 -84
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +22 -10
- package/Charting/Model/DataPointSelectionPaletteProvider.js +35 -5
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +106 -0
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +112 -1
- package/Charting/Model/Filters/XyLinearTrendFilter.js +21 -0
- package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +110 -1
- package/Charting/Model/Filters/XyMovingAverageFilter.js +21 -0
- package/Charting/Model/Filters/XyRatioFilter.d.ts +111 -2
- package/Charting/Model/Filters/XyRatioFilter.js +34 -3
- package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +112 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +116 -0
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +116 -0
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +21 -0
- package/Charting/Model/IDataSeries.d.ts +18 -3
- package/Charting/Model/IDataSeries.js +12 -1
- package/Charting/Model/IPaletteProvider.d.ts +8 -8
- package/Charting/Model/OhlcDataSeries.d.ts +39 -10
- package/Charting/Model/OhlcDataSeries.js +106 -19
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/XyyDataSeries.d.ts +21 -12
- package/Charting/Model/XyyDataSeries.js +70 -16
- package/Charting/Model/XyzDataSeries.d.ts +20 -5
- package/Charting/Model/XyzDataSeries.js +63 -7
- package/Charting/Numerics/TickProviders/LogarithmicTickProvider.d.ts +24 -0
- package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +26 -4
- package/Charting/Services/SciChartRenderer.js +4 -2
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +7 -21
- package/Charting/Visuals/Annotations/AnnotationBase.js +28 -42
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +2 -4
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/BoxAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +2 -2
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +4 -0
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/LineAnnotation.js +2 -4
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +1 -1
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +3 -2
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/TextAnnotation.js +1 -1
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/annotationHelpers.d.ts +21 -0
- package/Charting/Visuals/Annotations/annotationHelpers.js +19 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +21 -0
- package/Charting/Visuals/Axis/AxisBase2D.js +81 -14
- package/Charting/Visuals/Axis/AxisCore.d.ts +5 -5
- package/Charting/Visuals/Axis/AxisCore.js +50 -55
- package/Charting/Visuals/Axis/AxisRenderer.js +1 -1
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +1 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +3 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +13 -0
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +1 -1
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +53 -0
- package/Charting/Visuals/Axis/LogarithmicAxis.js +107 -3
- package/Charting/Visuals/Axis/constants.d.ts +2 -1
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +1 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +11 -0
- package/Charting/Visuals/Legend/SciChartLegendBase.js +45 -16
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/Animations/BaseAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +9 -2
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +65 -4
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +0 -11
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +0 -29
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +0 -37
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +0 -120
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +4 -24
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +65 -91
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +26 -2
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +55 -3
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +7 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +66 -64
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +12 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +12 -0
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.d.ts +0 -6
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +0 -42
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -17
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -71
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +2 -1
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/IHitTestProvider.d.ts +13 -0
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +17 -5
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +10 -32
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +11 -21
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +10 -21
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.d.ts +18 -5
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +16 -35
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +4 -5
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -5
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +2 -35
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +3 -1
- package/Charting/Visuals/SciChartOverview.d.ts +1 -1
- package/Charting/Visuals/SciChartOverview.js +1 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +3 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +9 -8
- package/Charting/Visuals/SciChartSurface.d.ts +20 -3
- package/Charting/Visuals/SciChartSurface.js +36 -8
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -3
- package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
- package/Charting/Visuals/TextureManager/DpiHelper.d.ts +1 -1
- package/Charting/Visuals/TextureManager/DpiHelper.js +5 -3
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +7 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +14 -7
- package/Charting/Visuals/licenseManager2D.js +35 -28
- package/Charting/Visuals/loader.d.ts +3 -0
- package/Charting/Visuals/loader.js +3 -0
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +21 -45
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +15 -36
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +35 -73
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +25 -66
- package/Charting3D/Visuals/SciChart3DRenderer.js +1 -1
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +13 -1
- package/Charting3D/Visuals/SciChart3DSurface.js +13 -1
- package/Core/ObservableArray.d.ts +8 -1
- package/Core/ObservableArray.js +7 -0
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +1 -1
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
- package/types/AnchorPoint.d.ts +0 -3
- package/types/AnchorPoint.js +0 -3
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataFilterType.d.ts +9 -0
- package/types/DataFilterType.js +13 -0
- package/types/HelperTypes.d.ts +5 -0
- package/types/HelperTypes.js +2 -0
- package/types/SeriesType.d.ts +17 -17
- package/types/SeriesType.js +17 -17
- package/utils/font.d.ts +8 -0
- package/utils/font.js +15 -0
- package/utils/imageUtil.d.ts +6 -0
- package/utils/imageUtil.js +11 -1
|
@@ -14,9 +14,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
})();
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.FastBubbleRenderableSeries = void 0;
|
|
17
|
-
var Deleter_1 = require("../../../Core/Deleter");
|
|
18
17
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
19
|
-
var IDataSeries_1 = require("../../Model/IDataSeries");
|
|
20
18
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
21
19
|
var BubbleSeriesDrawingProvider_1 = require("./DrawingProviders/BubbleSeriesDrawingProvider");
|
|
22
20
|
var BubbleSeriesHitTestProvider_1 = require("./HitTest/BubbleSeriesHitTestProvider");
|
|
@@ -53,8 +51,6 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
53
51
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
54
52
|
/** @inheritDoc */
|
|
55
53
|
_this.type = SeriesType_1.ESeriesType.BubbleSeries;
|
|
56
|
-
_this.zInitialAnimationValues = new webAssemblyContext.DoubleVector();
|
|
57
|
-
_this.zFinalAnimationValues = new webAssemblyContext.DoubleVector();
|
|
58
54
|
_this.drawingProviders = [];
|
|
59
55
|
_this.drawingProviders.push(new BubbleSeriesDrawingProvider_1.BubbleSeriesDrawingProvider(webAssemblyContext, _this));
|
|
60
56
|
if (options === null || options === void 0 ? void 0 : options.animation) {
|
|
@@ -80,8 +76,6 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
80
76
|
};
|
|
81
77
|
/** @inheritDoc */
|
|
82
78
|
FastBubbleRenderableSeries.prototype.delete = function () {
|
|
83
|
-
this.zInitialAnimationValues = Deleter_1.deleteSafe(this.zInitialAnimationValues);
|
|
84
|
-
this.zFinalAnimationValues = Deleter_1.deleteSafe(this.zFinalAnimationValues);
|
|
85
79
|
_super.prototype.delete.call(this);
|
|
86
80
|
};
|
|
87
81
|
/**
|
|
@@ -94,71 +88,6 @@ var FastBubbleRenderableSeries = /** @class */ (function (_super) {
|
|
|
94
88
|
FastBubbleRenderableSeries.prototype.newHitTestProvider = function () {
|
|
95
89
|
return new BubbleSeriesHitTestProvider_1.BubbleSeriesHitTestProvider(this, this.webAssemblyContext);
|
|
96
90
|
};
|
|
97
|
-
/** @inheritDoc */
|
|
98
|
-
FastBubbleRenderableSeries.prototype.setAnimationVectors = function (animation) {
|
|
99
|
-
if (animation.isOnStartAnimation) {
|
|
100
|
-
this.setXFinalAnimationValues(this.getNativeXValues());
|
|
101
|
-
this.setYFinalAnimationValues(this.getNativeYValues());
|
|
102
|
-
this.setZFinalAnimationValues(this.getNativeZValues());
|
|
103
|
-
}
|
|
104
|
-
else if (animation.isDataSeriesAnimation) {
|
|
105
|
-
var dataSeries = animation.dataSeries;
|
|
106
|
-
if (dataSeries.type !== IDataSeries_1.EDataSeriesType.Xyz) {
|
|
107
|
-
throw Error("to animate bubble chart animation.dataSeries type should be Xyz, but the type is " + dataSeries.type);
|
|
108
|
-
}
|
|
109
|
-
this.setXInitialAnimationValues(this.getNativeXValues());
|
|
110
|
-
this.setYInitialAnimationValues(this.getNativeYValues());
|
|
111
|
-
this.setZInitialAnimationValues(this.getNativeZValues());
|
|
112
|
-
this.setXFinalAnimationValues(dataSeries.getNativeXValues());
|
|
113
|
-
this.setYFinalAnimationValues(dataSeries.getNativeYValues());
|
|
114
|
-
this.setZFinalAnimationValues(dataSeries.getNativeZValues());
|
|
115
|
-
this.validateAnimationValues();
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
/** @inheritDoc */
|
|
119
|
-
FastBubbleRenderableSeries.prototype.updateAnimationProperties = function (progress, animationFSM) {
|
|
120
|
-
var animation = animationFSM.animation;
|
|
121
|
-
animation.updateSeriesProperties(this, animationFSM.initialStyles, animationFSM.animationProgress);
|
|
122
|
-
if (animation.isOnStartAnimation) {
|
|
123
|
-
var dataSeries = this.dataSeries;
|
|
124
|
-
if (dataSeries) {
|
|
125
|
-
animation.calculateAnimationValues(this.webAssemblyContext, this.yFinalAnimationValues, dataSeries.getNativeYValues(), progress);
|
|
126
|
-
animation.calculateAnimationValues(this.webAssemblyContext, this.zFinalAnimationValues, dataSeries.getNativeZValues(), progress, true);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
else if (animation.isDataSeriesAnimation) {
|
|
130
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.xInitialAnimationValues, this.xFinalAnimationValues, this.getNativeXValues(), progress);
|
|
131
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.yInitialAnimationValues, this.yFinalAnimationValues, this.getNativeYValues(), progress);
|
|
132
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.zInitialAnimationValues, this.zFinalAnimationValues, this.getNativeZValues(), progress);
|
|
133
|
-
}
|
|
134
|
-
if (this.invalidateParentCallback) {
|
|
135
|
-
this.invalidateParentCallback();
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
FastBubbleRenderableSeries.prototype.setZInitialAnimationValues = function (values) {
|
|
139
|
-
var size = values.size();
|
|
140
|
-
this.zInitialAnimationValues.resize(size, 0);
|
|
141
|
-
for (var i = 0; i < size; i++) {
|
|
142
|
-
this.zInitialAnimationValues.set(i, values.get(i));
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
FastBubbleRenderableSeries.prototype.setZFinalAnimationValues = function (values) {
|
|
146
|
-
var size = values.size();
|
|
147
|
-
this.zFinalAnimationValues.resize(size, 0);
|
|
148
|
-
for (var i = 0; i < size; i++) {
|
|
149
|
-
this.zFinalAnimationValues.set(i, values.get(i));
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
FastBubbleRenderableSeries.prototype.validateAnimationValues = function () {
|
|
153
|
-
var size = this.xInitialAnimationValues.size();
|
|
154
|
-
if (size !== this.yInitialAnimationValues.size() ||
|
|
155
|
-
size !== this.zInitialAnimationValues.size() ||
|
|
156
|
-
size !== this.xFinalAnimationValues.size() ||
|
|
157
|
-
size !== this.yFinalAnimationValues.size() ||
|
|
158
|
-
size !== this.zFinalAnimationValues.size()) {
|
|
159
|
-
throw Error("initialAnimationValues and finalAnimationValues must have the same length");
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
91
|
return FastBubbleRenderableSeries;
|
|
163
92
|
}(BaseRenderableSeries_1.BaseRenderableSeries));
|
|
164
93
|
exports.FastBubbleRenderableSeries = FastBubbleRenderableSeries;
|
|
@@ -15,10 +15,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.FastCandlestickRenderableSeries = void 0;
|
|
17
17
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
18
|
+
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
18
19
|
var BaseOhlcRenderableSeries_1 = require("./BaseOhlcRenderableSeries");
|
|
19
20
|
var constants_1 = require("./constants");
|
|
20
21
|
var OhlcSeriesDrawingProvider_1 = require("./DrawingProviders/OhlcSeriesDrawingProvider");
|
|
21
|
-
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
22
22
|
/**
|
|
23
23
|
* Defines a JavaScript Candlestick stock-chart series in the SciChart's High Performance Real-time
|
|
24
24
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -15,8 +15,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.FastOhlcRenderableSeries = void 0;
|
|
17
17
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
18
|
-
var OhlcSeriesDrawingProvider_1 = require("./DrawingProviders/OhlcSeriesDrawingProvider");
|
|
19
18
|
var BaseOhlcRenderableSeries_1 = require("./BaseOhlcRenderableSeries");
|
|
19
|
+
var OhlcSeriesDrawingProvider_1 = require("./DrawingProviders/OhlcSeriesDrawingProvider");
|
|
20
20
|
/**
|
|
21
21
|
* Defines a JavaScript OHLC stock-chart series in the SciChart's High Performance Real-time
|
|
22
22
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -31,6 +31,10 @@ export declare abstract class BaseHitTestProvider<TRenderableSeries extends IRen
|
|
|
31
31
|
* @inheritDoc
|
|
32
32
|
*/
|
|
33
33
|
hitTestDataPoint(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
hitTestForDataPointSelectionModifier(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
34
38
|
/**
|
|
35
39
|
* @inheritDoc
|
|
36
40
|
*/
|
|
@@ -47,6 +47,13 @@ var BaseHitTestProvider = /** @class */ (function () {
|
|
|
47
47
|
hitTestInfo.isHit = hitTestHelpers_1.hitTestHelpers.testIsHitForPoint(xCoordinateCalculator, yCoordinateCalculator, xNativeValues, yNativeValues, nearestPointIndex, xHitCoord, yHitCoord, hitTestRadius);
|
|
48
48
|
return hitTestInfo;
|
|
49
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* @inheritDoc
|
|
52
|
+
*/
|
|
53
|
+
BaseHitTestProvider.prototype.hitTestForDataPointSelectionModifier = function (x, y, hitTestRadius) {
|
|
54
|
+
if (hitTestRadius === void 0) { hitTestRadius = BaseHitTestProvider.DEFAULT_HIT_TEST_RADIUS; }
|
|
55
|
+
return this.hitTestDataPoint(x, y, hitTestRadius);
|
|
56
|
+
};
|
|
50
57
|
/**
|
|
51
58
|
* @inheritDoc
|
|
52
59
|
*/
|
|
@@ -15,6 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.BubbleSeriesHitTestProvider = void 0;
|
|
17
17
|
var pointUtil_1 = require("../../../../utils/pointUtil");
|
|
18
|
+
var DpiHelper_1 = require("../../TextureManager/DpiHelper");
|
|
18
19
|
var BaseHitTestProvider_1 = require("./BaseHitTestProvider");
|
|
19
20
|
var hitTestHelpers_1 = require("./hitTestHelpers");
|
|
20
21
|
var HitTestInfo_1 = require("./HitTestInfo");
|
|
@@ -45,7 +46,7 @@ var BubbleSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
45
46
|
var hitTestInfo = hitTestHelpers_1.hitTestHelpers.createHitTestInfo(this.parentSeries, xCoordinateCalculator, yCoordinateCalculator, isVerticalChart, dataSeries, xNativeValues, yNativeValues, xHitCoord, yHitCoord, nearestPointIndex, 0);
|
|
46
47
|
hitTestInfo.zValue = zNativeValues.get(nearestPointIndex);
|
|
47
48
|
var distance = pointUtil_1.calcDistance(xHitCoord, yHitCoord, hitTestInfo.xCoord, hitTestInfo.yCoord);
|
|
48
|
-
hitTestInfo.isHit = distance < hitTestInfo.zValue / 2;
|
|
49
|
+
hitTestInfo.isHit = distance < (hitTestInfo.zValue * DpiHelper_1.DpiHelper.PIXEL_RATIO) / 2;
|
|
49
50
|
var isCategoryAxis = xCoordinateCalculator.isCategoryCoordinateCalculator;
|
|
50
51
|
var xFirstValue = isCategoryAxis ? 0 : xNativeValues.get(0);
|
|
51
52
|
var xFirstCoord = xCoordinateCalculator.getCoordinate(xFirstValue);
|
|
@@ -9,6 +9,10 @@ export declare class ColumnSeriesHitTestProvider extends BaseHitTestProvider<Fas
|
|
|
9
9
|
* @inheritDoc
|
|
10
10
|
*/
|
|
11
11
|
hitTest(x: number, y: number): HitTestInfo;
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
hitTestForDataPointSelectionModifier(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
12
16
|
/**
|
|
13
17
|
* @inheritDoc
|
|
14
18
|
*/
|
|
@@ -45,6 +45,13 @@ var ColumnSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
45
45
|
hitTestInfo.isHit = hitTestHelpers_1.hitTestHelpers.testIsHitForColumn(xCoordinateCalculator, yCoordinateCalculator, this.parentSeries, xNativeValues, yNativeValues, nearestPointIndex, xHitCoord, yHitCoord);
|
|
46
46
|
return hitTestInfo;
|
|
47
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
ColumnSeriesHitTestProvider.prototype.hitTestForDataPointSelectionModifier = function (x, y, hitTestRadius) {
|
|
52
|
+
if (hitTestRadius === void 0) { hitTestRadius = BaseHitTestProvider_1.BaseHitTestProvider.DEFAULT_HIT_TEST_RADIUS; }
|
|
53
|
+
return this.hitTest(x, y);
|
|
54
|
+
};
|
|
48
55
|
/**
|
|
49
56
|
* @inheritDoc
|
|
50
57
|
*/
|
|
@@ -44,4 +44,17 @@ export interface IHitTestProvider {
|
|
|
44
44
|
* @param hitTestRadius The radius in pixels to determine whether a mouse is over a data-point
|
|
45
45
|
*/
|
|
46
46
|
hitTestXSlice(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
47
|
+
/**
|
|
48
|
+
* @description Performs a hit-test for the {@link DataPointSelectionModifier}. This calls {@link IHitTestProvider.hitTestDataPoint} by default.
|
|
49
|
+
* The hitTestProvider for the renderableSeries can override this if different behaviour is desired, eg for columSeries we call hitTest instead.
|
|
50
|
+
* returns a HitTestInfo type with the results,
|
|
51
|
+
* Only for sorted values
|
|
52
|
+
* @remarks For Retina displays and Browser zoom, ensure that X,Y points are scaled by {@link DpiHelper.PIXEL_SCALE}
|
|
53
|
+
* @param x The mouse point X coordinate on the parent SciChartSurface.
|
|
54
|
+
* NOTE: For Retina displays and Browser zoom, ensure that X,Y points are scaled by {@link DpiHelper.PIXEL_SCALE}
|
|
55
|
+
* @param y The mouse point Y coordinate on the parent SciChartSurface.
|
|
56
|
+
* NOTE: For Retina displays and Browser zoom, ensure that X,Y points are scaled by {@link DpiHelper.PIXEL_SCALE}
|
|
57
|
+
* @param hitTestRadius The radius in pixels to determine whether a mouse is over a data-point
|
|
58
|
+
*/
|
|
59
|
+
hitTestForDataPointSelectionModifier(x: number, y: number, hitTestRadius: number): HitTestInfo;
|
|
47
60
|
}
|
|
@@ -9,6 +9,10 @@ export declare class OhlcSeriesHitTestProvider extends BaseHitTestProvider<BaseO
|
|
|
9
9
|
* @inheritDoc
|
|
10
10
|
*/
|
|
11
11
|
hitTest(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
hitTestForDataPointSelectionModifier(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
12
16
|
/**
|
|
13
17
|
* @inheritDoc
|
|
14
18
|
*/
|
|
@@ -52,6 +52,13 @@ var OhlcSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
52
52
|
hitTestInfo.closeValue = res.closeValue;
|
|
53
53
|
return hitTestInfo;
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @inheritDoc
|
|
57
|
+
*/
|
|
58
|
+
OhlcSeriesHitTestProvider.prototype.hitTestForDataPointSelectionModifier = function (x, y, hitTestRadius) {
|
|
59
|
+
if (hitTestRadius === void 0) { hitTestRadius = BaseHitTestProvider_1.BaseHitTestProvider.DEFAULT_HIT_TEST_RADIUS; }
|
|
60
|
+
return this.hitTest(x, y, hitTestRadius);
|
|
61
|
+
};
|
|
55
62
|
/**
|
|
56
63
|
* @inheritDoc
|
|
57
64
|
*/
|
|
@@ -13,6 +13,10 @@ export declare class StackedColumnSeriesHitTestProvider extends BaseHitTestProvi
|
|
|
13
13
|
* @inheritDoc
|
|
14
14
|
*/
|
|
15
15
|
hitTestDataPoint(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
hitTestForDataPointSelectionModifier(x: number, y: number, hitTestRadius?: number): HitTestInfo;
|
|
16
20
|
/**
|
|
17
21
|
* @inheritDoc
|
|
18
22
|
*/
|
|
@@ -72,6 +72,13 @@ var StackedColumnSeriesHitTestProvider = /** @class */ (function (_super) {
|
|
|
72
72
|
if (hitTestRadius === void 0) { hitTestRadius = BaseHitTestProvider_1.BaseHitTestProvider.DEFAULT_HIT_TEST_RADIUS; }
|
|
73
73
|
throw Error("hitTestDataPoint method is not supported for StackedColumnSeriesHitTestProvider");
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* @inheritDoc
|
|
77
|
+
*/
|
|
78
|
+
StackedColumnSeriesHitTestProvider.prototype.hitTestForDataPointSelectionModifier = function (x, y, hitTestRadius) {
|
|
79
|
+
if (hitTestRadius === void 0) { hitTestRadius = BaseHitTestProvider_1.BaseHitTestProvider.DEFAULT_HIT_TEST_RADIUS; }
|
|
80
|
+
return this.hitTest(x, y);
|
|
81
|
+
};
|
|
75
82
|
/**
|
|
76
83
|
* @inheritDoc
|
|
77
84
|
*/
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
+
import { TAnimationDefinition, TEffectDefinition, TPaletteProviderDefinition, TPointMarkerDefinition } from "../../../Builder/buildSeries";
|
|
1
2
|
import { ELineDrawMode } from "../../Drawing/WebGlRenderContext2D";
|
|
2
3
|
import { IDataSeries } from "../../Model/IDataSeries";
|
|
3
4
|
import { IPaletteProvider } from "../../Model/IPaletteProvider";
|
|
4
5
|
import { IPointMarker } from "../PointMarkers/IPointMarker";
|
|
5
6
|
import { BaseAnimation } from "./Animations/BaseAnimation";
|
|
6
|
-
import { ShaderEffect } from "./ShaderEffect";
|
|
7
7
|
import { IRenderableSeries } from "./IRenderableSeries";
|
|
8
|
-
import {
|
|
8
|
+
import { ShaderEffect } from "./ShaderEffect";
|
|
9
|
+
/**
|
|
10
|
+
* The type of the {@link IBaseRenderableSeriesOptions.onSelectedChanged } callback
|
|
11
|
+
*/
|
|
12
|
+
export declare type TSeriesSelectionChangedCallback = (sourceSeries: IRenderableSeries, isSelected: boolean) => void;
|
|
13
|
+
/**
|
|
14
|
+
* The type of the {@link IBaseRenderableSeriesOptions.onHoveredChanged } callback
|
|
15
|
+
*/
|
|
16
|
+
export declare type TSeriesHoverChangedCallback = (sourceSeries: IRenderableSeries, isHovered: boolean) => void;
|
|
9
17
|
/**
|
|
10
18
|
* Options to pass to the {@link BaseRenderableSeries} constructor
|
|
11
19
|
*/
|
|
12
20
|
export interface IBaseRenderableSeriesOptions {
|
|
21
|
+
/**
|
|
22
|
+
* A unique Id for the {@link IRenderableSeries}
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
13
25
|
/**
|
|
14
26
|
* The {@link IDataSeries | DataSeries} which provides a datasource for this {@link IRenderableSeries} to draw
|
|
15
27
|
*/
|
|
@@ -119,7 +131,7 @@ export interface IBaseRenderableSeriesOptions {
|
|
|
119
131
|
* per data-point coloring of fills or series bodies, and {@link IPointMarkerPaletteProvider} for per data-point coloring of
|
|
120
132
|
* point-markers
|
|
121
133
|
*/
|
|
122
|
-
paletteProvider?: IPaletteProvider |
|
|
134
|
+
paletteProvider?: IPaletteProvider | TPaletteProviderDefinition;
|
|
123
135
|
/**
|
|
124
136
|
* How to treat NAN (Not a number) values in the input {@link dataSeries}. See {@link ELineDrawMode} for a list of values.
|
|
125
137
|
*/
|
|
@@ -139,9 +151,9 @@ export interface IBaseRenderableSeriesOptions {
|
|
|
139
151
|
/**
|
|
140
152
|
* Optional callback function when selected changed. Also see {@link IRenderableSeries.selected} event handler
|
|
141
153
|
*/
|
|
142
|
-
onSelectedChanged?:
|
|
154
|
+
onSelectedChanged?: TSeriesSelectionChangedCallback | string;
|
|
143
155
|
/**
|
|
144
156
|
* Optional callback function when hovered changed. Also see {@link IRenderableSeries.hovered} event handler
|
|
145
157
|
*/
|
|
146
|
-
onHoveredChanged?:
|
|
158
|
+
onHoveredChanged?: TSeriesHoverChangedCallback | string;
|
|
147
159
|
}
|
|
@@ -14,6 +14,7 @@ import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
|
14
14
|
import { AxisCore } from "../Axis/AxisCore";
|
|
15
15
|
import { IPointMarker } from "../PointMarkers/IPointMarker";
|
|
16
16
|
import { SciChartSurface } from "../SciChartSurface";
|
|
17
|
+
import { INotifyOnDpiChanged } from "../TextureManager/DpiHelper";
|
|
17
18
|
import { BaseAnimation } from "./Animations/BaseAnimation";
|
|
18
19
|
import { TPalettingState } from "./DrawingProviders/BaseSeriesDrawingProvider";
|
|
19
20
|
import { ISeriesDrawingProvider } from "./DrawingProviders/ISeriesDrawingProvider";
|
|
@@ -22,7 +23,6 @@ import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
|
22
23
|
import { RolloverModifierRenderableSeriesProps } from "./RolloverModifier/RolloverModifierRenderableSeriesProps";
|
|
23
24
|
import { SeriesHoveredArgs } from "./SeriesHoveredArgs";
|
|
24
25
|
import { SeriesSelectedArgs } from "./SeriesSelectedArgs";
|
|
25
|
-
import { INotifyOnDpiChanged } from "../TextureManager/DpiHelper";
|
|
26
26
|
/**
|
|
27
27
|
* @summary Defines the interface to a Render Series (or Chart Type) in SciChart's High Performance Real-time
|
|
28
28
|
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
|
|
@@ -35,7 +35,7 @@ import { INotifyOnDpiChanged } from "../TextureManager/DpiHelper";
|
|
|
35
35
|
*/
|
|
36
36
|
export interface IRenderableSeries extends IDeletable, IThemeable, INotifyOnDpiChanged {
|
|
37
37
|
/**
|
|
38
|
-
* A unique
|
|
38
|
+
* A unique Id for the {@link IRenderableSeries}
|
|
39
39
|
*/
|
|
40
40
|
readonly id: string;
|
|
41
41
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
3
4
|
import { DoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
4
5
|
import { BaseAnimation } from "./Animations/BaseAnimation";
|
|
@@ -66,6 +67,8 @@ export declare class SplineBandRenderableSeries extends BaseBandRenderableSeries
|
|
|
66
67
|
*/
|
|
67
68
|
updateSplineValues(): void;
|
|
68
69
|
/** @inheritDoc */
|
|
70
|
+
getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
|
|
71
|
+
/** @inheritDoc */
|
|
69
72
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
70
73
|
/** @inheritDoc */
|
|
71
74
|
protected setAnimationVectors(animation: BaseAnimation): void;
|
|
@@ -16,7 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.SplineBandRenderableSeries = void 0;
|
|
17
17
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
18
18
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
19
|
-
var
|
|
19
|
+
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
20
20
|
var BaseBandRenderableSeries_1 = require("./BaseBandRenderableSeries");
|
|
21
21
|
var constants_1 = require("./constants");
|
|
22
22
|
/**
|
|
@@ -103,6 +103,11 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
103
103
|
this.recalculateSpline = false;
|
|
104
104
|
};
|
|
105
105
|
/** @inheritDoc */
|
|
106
|
+
SplineBandRenderableSeries.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
|
|
107
|
+
if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
|
|
108
|
+
return this.dataSeries.getWindowedYRange(xVisibleRange, true, isXCategoryAxis);
|
|
109
|
+
};
|
|
110
|
+
/** @inheritDoc */
|
|
106
111
|
SplineBandRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
107
112
|
if (excludeData === void 0) { excludeData = false; }
|
|
108
113
|
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
@@ -115,42 +120,15 @@ var SplineBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
115
120
|
/** @inheritDoc */
|
|
116
121
|
SplineBandRenderableSeries.prototype.setAnimationVectors = function (animation) {
|
|
117
122
|
this.updateSplineValues();
|
|
118
|
-
|
|
119
|
-
this.setXFinalAnimationValues(this.xSplineValues);
|
|
120
|
-
this.setYFinalAnimationValues(this.ySplineValues);
|
|
121
|
-
this.setY1FinalAnimationValues(this.y1SplineValues);
|
|
122
|
-
}
|
|
123
|
-
else if (animation.isDataSeriesAnimation) {
|
|
124
|
-
var xyyDataSeries = animation.dataSeries;
|
|
125
|
-
if (xyyDataSeries.type !== IDataSeries_1.EDataSeriesType.Xyy) {
|
|
126
|
-
throw Error("to animate band chart animation.dataSeries type should be Xyy, but the type is " + xyyDataSeries.type);
|
|
127
|
-
}
|
|
128
|
-
this.setXInitialAnimationValues(this.xSplineValues);
|
|
129
|
-
this.setYInitialAnimationValues(this.ySplineValues);
|
|
130
|
-
this.setY1InitialAnimationValues(this.y1SplineValues);
|
|
131
|
-
// set final animation values for the spline
|
|
132
|
-
var dataSeries = animation.dataSeries;
|
|
133
|
-
var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
134
|
-
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, dataSeries.getNativeYValues(), this.xFinalAnimationValues, this.yFinalAnimationValues, xValues.size(), this.interpolationPoints, dataSeries.containsNaN);
|
|
135
|
-
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, dataSeries.getNativeY1Values(), this.xFinalAnimationValues, this.y1FinalAnimationValues, xValues.size(), this.interpolationPoints, dataSeries.containsNaN);
|
|
136
|
-
this.validateAnimationValues();
|
|
137
|
-
}
|
|
123
|
+
animationHelpers_1.animationHelpers.setSplineBandAnimationVectors(this.webAssemblyContext, animation, this.dataSeries, animation.dataSeries, this.xSplineValues, this.ySplineValues, this.y1SplineValues, this.xAxis.isCategoryAxis, this.interpolationPoints);
|
|
138
124
|
};
|
|
139
125
|
/** @inheritDoc */
|
|
140
126
|
SplineBandRenderableSeries.prototype.updateAnimationProperties = function (progress, animationFSM) {
|
|
141
127
|
var animation = animationFSM.animation;
|
|
142
128
|
animation.updateSeriesProperties(this, animationFSM.initialStyles, animationFSM.animationProgress);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
animation.calculateAnimationValues(this.webAssemblyContext, this.yFinalAnimationValues, this.ySplineValues, progress);
|
|
147
|
-
animation.calculateAnimationValues(this.webAssemblyContext, this.y1FinalAnimationValues, this.y1SplineValues, progress);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
else if (animation.isDataSeriesAnimation) {
|
|
151
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.xInitialAnimationValues, this.xFinalAnimationValues, this.xSplineValues, progress);
|
|
152
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.yInitialAnimationValues, this.yFinalAnimationValues, this.ySplineValues, progress);
|
|
153
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.y1InitialAnimationValues, this.y1FinalAnimationValues, this.y1SplineValues, progress);
|
|
129
|
+
var dataSeries = this.dataSeries;
|
|
130
|
+
if (dataSeries) {
|
|
131
|
+
animationHelpers_1.animationHelpers.updateSplineBandAnimationProperties(this.webAssemblyContext, animation, progress, dataSeries, this.xSplineValues, this.ySplineValues, this.y1SplineValues);
|
|
154
132
|
}
|
|
155
133
|
if (this.invalidateParentCallback) {
|
|
156
134
|
this.invalidateParentCallback();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
|
+
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
3
4
|
import { DoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
4
5
|
import { BaseAnimation } from "./Animations/BaseAnimation";
|
|
@@ -61,6 +62,9 @@ export declare class SplineLineRenderableSeries extends BaseLineRenderableSeries
|
|
|
61
62
|
* Updates spline values
|
|
62
63
|
*/
|
|
63
64
|
updateSplineValues(): void;
|
|
65
|
+
/** @inheritDoc */
|
|
66
|
+
getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
|
|
67
|
+
/** @inheritDoc */
|
|
64
68
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
65
69
|
/**
|
|
66
70
|
* @param color The color for palette
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.SplineLineRenderableSeries = void 0;
|
|
17
17
|
var Deleter_1 = require("../../../Core/Deleter");
|
|
18
18
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
19
|
+
var animationHelpers_1 = require("./Animations/animationHelpers");
|
|
19
20
|
var BaseLineRenderableSeries_1 = require("./BaseLineRenderableSeries");
|
|
20
21
|
var constants_1 = require("./constants");
|
|
21
22
|
/**
|
|
@@ -95,6 +96,12 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
95
96
|
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, yValues, this.xSplineValues, this.ySplineValues, initialSize, this.interpolationPoints, dataSeries.containsNaN);
|
|
96
97
|
this.recalculateSpline = false;
|
|
97
98
|
};
|
|
99
|
+
/** @inheritDoc */
|
|
100
|
+
SplineLineRenderableSeries.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
|
|
101
|
+
if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
|
|
102
|
+
return this.dataSeries.getWindowedYRange(xVisibleRange, true, isXCategoryAxis);
|
|
103
|
+
};
|
|
104
|
+
/** @inheritDoc */
|
|
98
105
|
SplineLineRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
99
106
|
if (excludeData === void 0) { excludeData = false; }
|
|
100
107
|
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
@@ -116,32 +123,15 @@ var SplineLineRenderableSeries = /** @class */ (function (_super) {
|
|
|
116
123
|
/** @inheritDoc */
|
|
117
124
|
SplineLineRenderableSeries.prototype.setAnimationVectors = function (animation) {
|
|
118
125
|
this.updateSplineValues();
|
|
119
|
-
|
|
120
|
-
this.setXFinalAnimationValues(this.xSplineValues);
|
|
121
|
-
this.setYFinalAnimationValues(this.ySplineValues);
|
|
122
|
-
}
|
|
123
|
-
else if (animation.isDataSeriesAnimation) {
|
|
124
|
-
this.setXInitialAnimationValues(this.xSplineValues);
|
|
125
|
-
this.setYInitialAnimationValues(this.ySplineValues);
|
|
126
|
-
// set final animation values for the spline
|
|
127
|
-
var dataSeries = animation.dataSeries;
|
|
128
|
-
var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
|
|
129
|
-
this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, dataSeries.getNativeYValues(), this.xFinalAnimationValues, this.yFinalAnimationValues, xValues.size(), this.interpolationPoints, dataSeries.containsNaN);
|
|
130
|
-
}
|
|
126
|
+
animationHelpers_1.animationHelpers.setSplineAnimationVectors(this.webAssemblyContext, animation, this.dataSeries, animation.dataSeries, this.xSplineValues, this.ySplineValues, this.xAxis.isCategoryAxis, this.interpolationPoints);
|
|
131
127
|
};
|
|
132
128
|
/** @inheritDoc */
|
|
133
129
|
SplineLineRenderableSeries.prototype.updateAnimationProperties = function (progress, animationFSM) {
|
|
134
130
|
var animation = animationFSM.animation;
|
|
135
131
|
animation.updateSeriesProperties(this, animationFSM.initialStyles, animationFSM.animationProgress);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
animation.calculateAnimationValues(this.webAssemblyContext, this.yFinalAnimationValues, this.ySplineValues, progress);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
else if (animation.isDataSeriesAnimation) {
|
|
143
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.xInitialAnimationValues, this.xFinalAnimationValues, this.xSplineValues, progress);
|
|
144
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.yInitialAnimationValues, this.yFinalAnimationValues, this.ySplineValues, progress);
|
|
132
|
+
var dataSeries = this.dataSeries;
|
|
133
|
+
if (dataSeries) {
|
|
134
|
+
animationHelpers_1.animationHelpers.updateSplineAnimationProperties(this.webAssemblyContext, animation, progress, dataSeries, this.xSplineValues, this.ySplineValues);
|
|
145
135
|
}
|
|
146
136
|
if (this.invalidateParentCallback) {
|
|
147
137
|
this.invalidateParentCallback();
|