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
|
@@ -485,7 +485,9 @@ var BaseStackedRenderableSeries = /** @class */ (function () {
|
|
|
485
485
|
BaseStackedRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
486
486
|
var _a;
|
|
487
487
|
if (excludeData === void 0) { excludeData = false; }
|
|
488
|
-
var options = {
|
|
488
|
+
var options = {
|
|
489
|
+
opacity: this.opacity
|
|
490
|
+
};
|
|
489
491
|
if (((_a = this.dataSeries) === null || _a === void 0 ? void 0 : _a.type) === IDataSeries_1.EDataSeriesType.Xy) {
|
|
490
492
|
// @ts-ignore
|
|
491
493
|
return { type: this.type, options: options, xyData: this.dataSeries.toJSON(excludeData) };
|
|
@@ -119,7 +119,7 @@ var BandSeriesDrawingProvider = /** @class */ (function (_super) {
|
|
|
119
119
|
}
|
|
120
120
|
args.count = yDrawValues.size();
|
|
121
121
|
// Paletting per point
|
|
122
|
-
_super.prototype.applyStrokeFillPaletting.call(this, undefined, undefined, undefined, undefined,
|
|
122
|
+
_super.prototype.applyStrokeFillPaletting.call(this, undefined, undefined, undefined, undefined, this.parentSeries.opacity, true);
|
|
123
123
|
var paletteTexture = (_a = this.palettingState.paletteTextureCache) === null || _a === void 0 ? void 0 : _a.value;
|
|
124
124
|
if (paletteTexture) {
|
|
125
125
|
args.SetPalette(paletteTexture);
|
|
@@ -2,10 +2,11 @@ import { IDeletable } from "../../../../Core/IDeletable";
|
|
|
2
2
|
import { SCRTBrush, TSciChart, UIntVector } from "../../../../types/TSciChart";
|
|
3
3
|
import { PaletteCache } from "../../../Drawing/PaletteCache";
|
|
4
4
|
import { WebGlRenderContext2D } from "../../../Drawing/WebGlRenderContext2D";
|
|
5
|
+
import { IPointMetadata } from "../../../Model/IPointMetadata";
|
|
5
6
|
import { RenderPassData } from "../../../Services/RenderPassData";
|
|
7
|
+
import { TDpiChangedEventArgs } from "../../TextureManager/DpiHelper";
|
|
6
8
|
import { IRenderableSeries } from "../IRenderableSeries";
|
|
7
9
|
import { ISeriesDrawingProvider } from "./ISeriesDrawingProvider";
|
|
8
|
-
import { TDpiChangedEventArgs } from "../../TextureManager/DpiHelper";
|
|
9
10
|
/** @ignore */
|
|
10
11
|
export interface ISCRTPen {
|
|
11
12
|
m_bGradient: boolean;
|
|
@@ -94,4 +95,9 @@ export declare abstract class BaseSeriesDrawingProvider<T extends IRenderableSer
|
|
|
94
95
|
*/
|
|
95
96
|
onDetachSeries(): void;
|
|
96
97
|
protected seriesHasDataChanges(): void;
|
|
98
|
+
protected overridePaletteProviderColors(rs: IRenderableSeries, xValue: number, yValue: number, index: number, opacity?: number, metadata?: IPointMetadata): {
|
|
99
|
+
stroke: number;
|
|
100
|
+
fill: number;
|
|
101
|
+
};
|
|
102
|
+
protected isGradientFillPaletting(rs: IRenderableSeries): boolean;
|
|
97
103
|
}
|
|
@@ -82,6 +82,7 @@ var BaseSeriesDrawingProvider = /** @class */ (function () {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
BaseSeriesDrawingProvider.prototype.applyStrokeFillPaletting = function (stroke, strokePen, fill, fillBrush, opacity, usePalette, resetPenBrushColors) {
|
|
85
|
+
var _a, _b;
|
|
85
86
|
if (usePalette === void 0) { usePalette = false; }
|
|
86
87
|
if (resetPenBrushColors === void 0) { resetPenBrushColors = true; }
|
|
87
88
|
var hasStrokePaletteProvider = this.parentSeries.hasStrokePaletteProvider();
|
|
@@ -93,6 +94,7 @@ var BaseSeriesDrawingProvider = /** @class */ (function () {
|
|
|
93
94
|
if (hasStrokePaletteProvider || hasFillPaletteProvider || hasPointMarkerPaletteProvider) {
|
|
94
95
|
var strokeColor = void 0;
|
|
95
96
|
var fillColor = void 0;
|
|
97
|
+
// Palette (this.palettingState.paletteTextureCache) is used only for band and mountain series
|
|
96
98
|
if (usePalette) {
|
|
97
99
|
strokeColor = fillColor = this.webAssemblyContext.SCRTPalette.GetNoOverrideColorCode();
|
|
98
100
|
}
|
|
@@ -110,6 +112,7 @@ var BaseSeriesDrawingProvider = /** @class */ (function () {
|
|
|
110
112
|
throw Error("updatePalette(): fillColor " + fillColor + " cannot be converted to a valid color");
|
|
111
113
|
}
|
|
112
114
|
var dataSeries = this.parentSeries.dataSeries;
|
|
115
|
+
// Recreate palettedColors if the size changed
|
|
113
116
|
if (!this.palettingState.palettedColors ||
|
|
114
117
|
this.palettingState.palettedColors.size() !== dataSeries.count()) {
|
|
115
118
|
Deleter_1.deleteSafe(this.palettingState.palettedColors);
|
|
@@ -117,96 +120,75 @@ var BaseSeriesDrawingProvider = /** @class */ (function () {
|
|
|
117
120
|
this.palettingState.palettedColors.reserve(dataSeries.count() * 2);
|
|
118
121
|
this.palettingState.paletteTextureCache.reset();
|
|
119
122
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
123
|
+
// Commented this code out, because I don't know what this code does
|
|
124
|
+
// if (resetPenBrushColors) {
|
|
125
|
+
// if (strokePen) {
|
|
126
|
+
// // For paletted series, we must pass 0xFFFFFFFF (white) to pen line
|
|
127
|
+
// this.palettingState.originalPenColor = strokePen.m_uiColor;
|
|
128
|
+
// strokePen.m_uiColor = 0xffffffff;
|
|
129
|
+
// this.palettingState.originalPenGradient = strokePen.m_bGradient;
|
|
130
|
+
// if (hasStrokePaletteProvider) {
|
|
131
|
+
// strokePen.m_bGradient = strokePaletteProvider.strokePaletteMode === EStrokePaletteMode.GRADIENT;
|
|
132
|
+
// } else if (hasPointMarkerPaletteProvider) {
|
|
133
|
+
// strokePen.m_bGradient =
|
|
134
|
+
// pointMarkerPaletteProvider.strokePaletteMode === EStrokePaletteMode.GRADIENT;
|
|
135
|
+
// }
|
|
136
|
+
// console.log("strokePen.m_bGradient", strokePen.m_bGradient);
|
|
137
|
+
// }
|
|
138
|
+
// if (fillBrush) {
|
|
139
|
+
// this.palettingState.originalBrushColor = fillBrush.GetColor();
|
|
140
|
+
// fillBrush.SetColor(0xffffffff);
|
|
141
|
+
// }
|
|
142
|
+
// }
|
|
143
|
+
// Override stroke and fill colors
|
|
139
144
|
var xValues = dataSeries.getNativeXValues();
|
|
140
145
|
var yValues = dataSeries.getNativeYValues();
|
|
141
146
|
var hashCode = 0;
|
|
142
147
|
for (var index = 0; index < dataSeries.count(); index++) {
|
|
143
148
|
var xValue = xValues.get(index);
|
|
144
149
|
var yValue = yValues.get(index);
|
|
145
|
-
var
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (curStrokeColor) {
|
|
149
|
-
overrideStrokeColor = curStrokeColor;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
var overrideFillColor = fillColor;
|
|
153
|
-
if (hasFillPaletteProvider) {
|
|
154
|
-
var curFillColor = fillPaletteProvider.overrideFillArgb(xValue, yValue, index, opacity, dataSeries.getMetadataAt(index));
|
|
155
|
-
if (curFillColor) {
|
|
156
|
-
overrideFillColor = curFillColor;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
if (hasPointMarkerPaletteProvider) {
|
|
160
|
-
var curFillStrokeColor = pointMarkerPaletteProvider.overridePointMarkerArgb(xValue, yValue, index, opacity, dataSeries.getMetadataAt(index));
|
|
161
|
-
if (curFillStrokeColor) {
|
|
162
|
-
if (curFillStrokeColor.stroke) {
|
|
163
|
-
overrideStrokeColor = curFillStrokeColor.stroke;
|
|
164
|
-
}
|
|
165
|
-
if (curFillStrokeColor.fill) {
|
|
166
|
-
overrideFillColor = curFillStrokeColor.fill;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
150
|
+
var overriddenColors = this.overridePaletteProviderColors(this.parentSeries, xValue, yValue, index, opacity, dataSeries.getMetadataAt(index));
|
|
151
|
+
var overrideStrokeColor = (_a = overriddenColors.stroke) !== null && _a !== void 0 ? _a : strokeColor;
|
|
152
|
+
var overrideFillColor = (_b = overriddenColors.fill) !== null && _b !== void 0 ? _b : fillColor;
|
|
170
153
|
this.palettingState.palettedColors.push_back(overrideStrokeColor);
|
|
171
154
|
this.palettingState.palettedColors.push_back(overrideFillColor);
|
|
172
155
|
hashCode = number_1.numericHashCode(hashCode, overrideStrokeColor);
|
|
173
156
|
hashCode = number_1.numericHashCode(hashCode, overrideFillColor);
|
|
174
157
|
}
|
|
158
|
+
// Palette is used only for band and mountain series
|
|
175
159
|
if (usePalette) {
|
|
176
160
|
if (this.palettingState.palettedColorsHashCode !== hashCode) {
|
|
177
161
|
this.palettingState.paletteTextureCache.reset();
|
|
178
162
|
}
|
|
179
163
|
this.palettingState.paletteTextureCache.create(this.palettingState.palettedColors);
|
|
164
|
+
this.palettingState.palettedColorsHashCode = hashCode;
|
|
180
165
|
}
|
|
181
|
-
this.palettingState.palettedColorsHashCode = hashCode;
|
|
182
166
|
}
|
|
183
167
|
else {
|
|
184
168
|
this.palettingState.palettedColors = Deleter_1.deleteSafe(this.palettingState.palettedColors);
|
|
185
169
|
this.palettingState.paletteTextureCache.reset();
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
170
|
+
// This was needed for resetPenBrushColors, therefore commented out as well
|
|
171
|
+
// if (strokePen) {
|
|
172
|
+
// if (this.palettingState.originalPenColor) {
|
|
173
|
+
// strokePen.m_uiColor = this.palettingState.originalPenColor;
|
|
174
|
+
// this.palettingState.originalPenColor = undefined;
|
|
175
|
+
// }
|
|
176
|
+
// if (this.palettingState.originalPenGradient) {
|
|
177
|
+
// strokePen.m_bGradient = this.palettingState.originalPenGradient;
|
|
178
|
+
// this.palettingState.originalPenGradient = undefined;
|
|
179
|
+
// }
|
|
180
|
+
// }
|
|
181
|
+
// if (fillBrush && this.palettingState.originalBrushColor) {
|
|
182
|
+
// fillBrush.SetColor(this.palettingState.originalBrushColor);
|
|
183
|
+
// this.palettingState.originalBrushColor = undefined;
|
|
184
|
+
// }
|
|
200
185
|
}
|
|
201
186
|
// Due to pass-by-pointer limitations of WASM binding, we pass an empty vector rather than null
|
|
202
187
|
if (!this.palettingState.palettedColors) {
|
|
203
188
|
this.palettingState.palettedColors = new this.webAssemblyContext.UIntVector();
|
|
204
189
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
(hasFillPaletteProvider && fillPaletteProvider.fillPaletteMode === IPaletteProvider_1.EFillPaletteMode.GRADIENT) ||
|
|
208
|
-
(hasPointMarkerPaletteProvider &&
|
|
209
|
-
pointMarkerPaletteProvider.strokePaletteMode === IPaletteProvider_1.EStrokePaletteMode.GRADIENT);
|
|
190
|
+
// Set gradient for the fill color
|
|
191
|
+
this.palettingState.gradientPaletting = this.isGradientFillPaletting(this.parentSeries);
|
|
210
192
|
};
|
|
211
193
|
/**
|
|
212
194
|
* Creates a native {@link SCRTBrush} Solid Color Brush from html color code string passed in
|
|
@@ -257,6 +239,26 @@ var BaseSeriesDrawingProvider = /** @class */ (function () {
|
|
|
257
239
|
BaseSeriesDrawingProvider.prototype.seriesHasDataChanges = function () {
|
|
258
240
|
// TODO override in derived class.
|
|
259
241
|
};
|
|
242
|
+
BaseSeriesDrawingProvider.prototype.overridePaletteProviderColors = function (rs, xValue, yValue, index, opacity, metadata) {
|
|
243
|
+
var stroke;
|
|
244
|
+
var fill;
|
|
245
|
+
if (rs.hasStrokePaletteProvider()) {
|
|
246
|
+
var strokePaletteProvider = rs.paletteProvider;
|
|
247
|
+
stroke = strokePaletteProvider.overrideStrokeArgb(xValue, yValue, index, opacity, metadata);
|
|
248
|
+
}
|
|
249
|
+
if (rs.hasFillPaletteProvider()) {
|
|
250
|
+
var fillPaletteProvider = rs.paletteProvider;
|
|
251
|
+
fill = fillPaletteProvider.overrideFillArgb(xValue, yValue, index, opacity, metadata);
|
|
252
|
+
}
|
|
253
|
+
return { stroke: stroke, fill: fill };
|
|
254
|
+
};
|
|
255
|
+
BaseSeriesDrawingProvider.prototype.isGradientFillPaletting = function (rs) {
|
|
256
|
+
if (rs.hasFillPaletteProvider()) {
|
|
257
|
+
var fillPaletteProvider = rs.paletteProvider;
|
|
258
|
+
return fillPaletteProvider.fillPaletteMode === IPaletteProvider_1.EFillPaletteMode.GRADIENT;
|
|
259
|
+
}
|
|
260
|
+
return false;
|
|
261
|
+
};
|
|
260
262
|
return BaseSeriesDrawingProvider;
|
|
261
263
|
}());
|
|
262
264
|
exports.BaseSeriesDrawingProvider = BaseSeriesDrawingProvider;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { TSciChart } from "../../../../types/TSciChart";
|
|
2
2
|
import { WebGlRenderContext2D } from "../../../Drawing/WebGlRenderContext2D";
|
|
3
|
+
import { IPointMetadata } from "../../../Model/IPointMetadata";
|
|
3
4
|
import { RenderPassData } from "../../../Services/RenderPassData";
|
|
4
5
|
import { FastBubbleRenderableSeries } from "../FastBubbleRenderableSeries";
|
|
6
|
+
import { IRenderableSeries } from "../IRenderableSeries";
|
|
5
7
|
import { BaseSeriesDrawingProvider } from "./BaseSeriesDrawingProvider";
|
|
6
8
|
/**
|
|
7
9
|
* Used internally - a drawing provider performs drawing for a {@link FastBubbleRenderableSeries} using
|
|
@@ -28,5 +30,10 @@ export declare class BubbleSeriesDrawingProvider extends BaseSeriesDrawingProvid
|
|
|
28
30
|
* @inheritDoc
|
|
29
31
|
*/
|
|
30
32
|
delete(): void;
|
|
33
|
+
protected overridePaletteProviderColors(rs: IRenderableSeries, xValue: number, yValue: number, index: number, opacity?: number, metadata?: IPointMetadata): {
|
|
34
|
+
stroke: number;
|
|
35
|
+
fill: number;
|
|
36
|
+
};
|
|
37
|
+
protected isGradientFillPaletting(rs: IRenderableSeries): boolean;
|
|
31
38
|
private drawPoints;
|
|
32
39
|
}
|
|
@@ -74,6 +74,18 @@ var BubbleSeriesDrawingProvider = /** @class */ (function (_super) {
|
|
|
74
74
|
this.nativeDrawingProvider = Deleter_1.deleteSafe(this.nativeDrawingProvider);
|
|
75
75
|
_super.prototype.delete.call(this);
|
|
76
76
|
};
|
|
77
|
+
BubbleSeriesDrawingProvider.prototype.overridePaletteProviderColors = function (rs, xValue, yValue, index, opacity, metadata) {
|
|
78
|
+
if (rs.hasPointMarkerPaletteProvider()) {
|
|
79
|
+
var pointMarkerPaletteProvider = rs.paletteProvider;
|
|
80
|
+
var colors = pointMarkerPaletteProvider.overridePointMarkerArgb(xValue, yValue, index, opacity, metadata);
|
|
81
|
+
if (colors)
|
|
82
|
+
return colors;
|
|
83
|
+
}
|
|
84
|
+
return { stroke: undefined, fill: undefined };
|
|
85
|
+
};
|
|
86
|
+
BubbleSeriesDrawingProvider.prototype.isGradientFillPaletting = function (rs) {
|
|
87
|
+
return false;
|
|
88
|
+
};
|
|
77
89
|
BubbleSeriesDrawingProvider.prototype.drawPoints = function (nativeContext, xValues, yValues, zValues, xCoordCalc, yCoordCalc, args, viewRect) {
|
|
78
90
|
nativeContext.PushMatrix();
|
|
79
91
|
nativeContext.PushState();
|
package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TSciChart } from "../../../../types/TSciChart";
|
|
2
2
|
import { WebGlRenderContext2D } from "../../../Drawing/WebGlRenderContext2D";
|
|
3
3
|
import { RenderPassData } from "../../../Services/RenderPassData";
|
|
4
|
+
import { TDpiChangedEventArgs } from "../../TextureManager/DpiHelper";
|
|
4
5
|
import { BaseMountainRenderableSeries } from "../BaseMountainRenderableSeries";
|
|
5
6
|
import { BaseSeriesDrawingProvider } from "./BaseSeriesDrawingProvider";
|
|
6
|
-
import { TDpiChangedEventArgs } from "../../TextureManager/DpiHelper";
|
|
7
7
|
/**
|
|
8
8
|
* Used internally - a drawing provider performs drawing for a {@link BaseMountainRenderableSeries} using
|
|
9
9
|
* our WebAssembly WebGL rendering engine
|
|
@@ -40,4 +40,5 @@ export declare class MountainSeriesDrawingProvider extends BaseSeriesDrawingProv
|
|
|
40
40
|
*/
|
|
41
41
|
onAttachSeries(): void;
|
|
42
42
|
private createBrush;
|
|
43
|
+
private createPen;
|
|
43
44
|
}
|
|
@@ -21,8 +21,6 @@ var Pen2DCache_1 = require("../../../Drawing/Pen2DCache");
|
|
|
21
21
|
var WebGlRenderContext2D_1 = require("../../../Drawing/WebGlRenderContext2D");
|
|
22
22
|
var constants_1 = require("../constants");
|
|
23
23
|
var BaseSeriesDrawingProvider_1 = require("./BaseSeriesDrawingProvider");
|
|
24
|
-
/** @ignore */
|
|
25
|
-
var TEXTURE_SIZE = 256;
|
|
26
24
|
/**
|
|
27
25
|
* Used internally - a drawing provider performs drawing for a {@link BaseMountainRenderableSeries} using
|
|
28
26
|
* our WebAssembly WebGL rendering engine
|
|
@@ -123,8 +121,7 @@ var MountainSeriesDrawingProvider = /** @class */ (function (_super) {
|
|
|
123
121
|
propertyName === constants_1.PROPERTY.STROKE_DASH_ARRAY ||
|
|
124
122
|
propertyName === constants_1.PROPERTY.STROKE_THICKNESS ||
|
|
125
123
|
propertyName === constants_1.PROPERTY.OPACITY) {
|
|
126
|
-
|
|
127
|
-
Pen2DCache_1.createPenInCache(this.strokePenCache, stroke, strokeThickness, opacity, strokeDashArray);
|
|
124
|
+
this.createPen();
|
|
128
125
|
}
|
|
129
126
|
if (propertyName === constants_1.PROPERTY.FILL ||
|
|
130
127
|
propertyName === constants_1.PROPERTY.OPACITY ||
|
|
@@ -138,14 +135,17 @@ var MountainSeriesDrawingProvider = /** @class */ (function (_super) {
|
|
|
138
135
|
MountainSeriesDrawingProvider.prototype.onAttachSeries = function () {
|
|
139
136
|
_super.prototype.onAttachSeries.call(this);
|
|
140
137
|
this.nativeDrawingProvider = new this.webAssemblyContext.SCRTMountainSeriesDrawingProvider();
|
|
141
|
-
|
|
142
|
-
Pen2DCache_1.createPenInCache(this.strokePenCache, stroke, strokeThickness, opacity, strokeDashArray);
|
|
138
|
+
this.createPen();
|
|
143
139
|
this.createBrush();
|
|
144
140
|
};
|
|
145
141
|
MountainSeriesDrawingProvider.prototype.createBrush = function () {
|
|
146
142
|
var _a = this.parentSeries, fill = _a.fill, opacity = _a.opacity, fillLinearGradient = _a.fillLinearGradient;
|
|
147
143
|
return BrushCache_1.createBrushInCache(this.fillBrushCache, fill, opacity, fillLinearGradient);
|
|
148
144
|
};
|
|
145
|
+
MountainSeriesDrawingProvider.prototype.createPen = function () {
|
|
146
|
+
var _a = this.parentSeries, stroke = _a.stroke, strokeThickness = _a.strokeThickness, opacity = _a.opacity, strokeDashArray = _a.strokeDashArray;
|
|
147
|
+
return Pen2DCache_1.createPenInCache(this.strokePenCache, stroke, strokeThickness, opacity, strokeDashArray);
|
|
148
|
+
};
|
|
149
149
|
return MountainSeriesDrawingProvider;
|
|
150
150
|
}(BaseSeriesDrawingProvider_1.BaseSeriesDrawingProvider));
|
|
151
151
|
exports.MountainSeriesDrawingProvider = MountainSeriesDrawingProvider;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DoubleVector, TSciChart } from "../../../../types/TSciChart";
|
|
2
2
|
import { WebGlRenderContext2D } from "../../../Drawing/WebGlRenderContext2D";
|
|
3
3
|
import { IDataSeries } from "../../../Model/IDataSeries";
|
|
4
|
+
import { IPointMetadata } from "../../../Model/IPointMetadata";
|
|
4
5
|
import { RenderPassData } from "../../../Services/RenderPassData";
|
|
5
6
|
import { IRenderableSeries } from "../IRenderableSeries";
|
|
6
7
|
import { ISpline } from "../ISpline";
|
|
@@ -36,6 +37,11 @@ export declare class PointMarkerDrawingProvider extends BaseSeriesDrawingProvide
|
|
|
36
37
|
* @inheritDoc
|
|
37
38
|
*/
|
|
38
39
|
delete(): void;
|
|
40
|
+
protected overridePaletteProviderColors(rs: IRenderableSeries, xValue: number, yValue: number, index: number, opacity?: number, metadata?: IPointMetadata): {
|
|
41
|
+
stroke: number;
|
|
42
|
+
fill: number;
|
|
43
|
+
};
|
|
44
|
+
protected isGradientFillPaletting(rs: IRenderableSeries): boolean;
|
|
39
45
|
private drawPoints;
|
|
40
46
|
private pointMarkerXYValuesFromSpline;
|
|
41
47
|
}
|
|
@@ -101,6 +101,18 @@ var PointMarkerDrawingProvider = /** @class */ (function (_super) {
|
|
|
101
101
|
this.yAnimationPointMarkerValues = Deleter_1.deleteSafe(this.yAnimationPointMarkerValues);
|
|
102
102
|
_super.prototype.delete.call(this);
|
|
103
103
|
};
|
|
104
|
+
PointMarkerDrawingProvider.prototype.overridePaletteProviderColors = function (rs, xValue, yValue, index, opacity, metadata) {
|
|
105
|
+
if (rs.hasPointMarkerPaletteProvider()) {
|
|
106
|
+
var pointMarkerPaletteProvider = rs.paletteProvider;
|
|
107
|
+
var colors = pointMarkerPaletteProvider.overridePointMarkerArgb(xValue, yValue, index, opacity, metadata);
|
|
108
|
+
if (colors)
|
|
109
|
+
return colors;
|
|
110
|
+
}
|
|
111
|
+
return { stroke: undefined, fill: undefined };
|
|
112
|
+
};
|
|
113
|
+
PointMarkerDrawingProvider.prototype.isGradientFillPaletting = function (rs) {
|
|
114
|
+
return false;
|
|
115
|
+
};
|
|
104
116
|
PointMarkerDrawingProvider.prototype.drawPoints = function (nativeContext, xValues, yValues, xCoordCalc, yCoordCalc, args, viewRect) {
|
|
105
117
|
nativeContext.PushMatrix();
|
|
106
118
|
nativeContext.PushState();
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
1
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
3
2
|
import { TSciChart } from "../../../types/TSciChart";
|
|
4
|
-
import { BaseAnimation } from "./Animations/BaseAnimation";
|
|
5
3
|
import { BaseBandRenderableSeries, IBaseBandRenderableSeriesOptions } from "./BaseBandRenderableSeries";
|
|
6
4
|
/**
|
|
7
5
|
* Optional parameters passed to the constructor of {@link FastBandRenderableSeries}
|
|
@@ -38,8 +36,4 @@ export declare class FastBandRenderableSeries extends BaseBandRenderableSeries {
|
|
|
38
36
|
* @param options optional parameters of type {@link IBandRenderableSeriesOptions} applied when constructing the series type
|
|
39
37
|
*/
|
|
40
38
|
constructor(webAssemblyContext: TSciChart, options?: IBandRenderableSeriesOptions);
|
|
41
|
-
/** @inheritDoc */
|
|
42
|
-
protected setAnimationVectors(animation: BaseAnimation): void;
|
|
43
|
-
/** @inheritDoc */
|
|
44
|
-
protected updateAnimationProperties(progress: number, animationFSM: AnimationFiniteStateMachine): void;
|
|
45
39
|
}
|
|
@@ -15,7 +15,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.FastBandRenderableSeries = void 0;
|
|
17
17
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
18
|
-
var IDataSeries_1 = require("../../Model/IDataSeries");
|
|
19
18
|
var BaseBandRenderableSeries_1 = require("./BaseBandRenderableSeries");
|
|
20
19
|
/**
|
|
21
20
|
* Defines a JavaScript Band-series or High-Low polygon fill chart type in the SciChart's High Performance Real-time
|
|
@@ -51,47 +50,6 @@ var FastBandRenderableSeries = /** @class */ (function (_super) {
|
|
|
51
50
|
_this.type = SeriesType_1.ESeriesType.BandSeries;
|
|
52
51
|
return _this;
|
|
53
52
|
}
|
|
54
|
-
/** @inheritDoc */
|
|
55
|
-
FastBandRenderableSeries.prototype.setAnimationVectors = function (animation) {
|
|
56
|
-
if (animation.isOnStartAnimation) {
|
|
57
|
-
this.setXFinalAnimationValues(this.getNativeXValues());
|
|
58
|
-
this.setYFinalAnimationValues(this.getNativeYValues());
|
|
59
|
-
this.setY1FinalAnimationValues(this.getNativeY1Values());
|
|
60
|
-
}
|
|
61
|
-
else if (animation.isDataSeriesAnimation) {
|
|
62
|
-
var xyyDataSeries = animation.dataSeries;
|
|
63
|
-
if (xyyDataSeries.type !== IDataSeries_1.EDataSeriesType.Xyy) {
|
|
64
|
-
throw Error("to animate band chart animation.dataSeries type should be Xyy, but the type is " + xyyDataSeries.type);
|
|
65
|
-
}
|
|
66
|
-
this.setXInitialAnimationValues(this.getNativeXValues());
|
|
67
|
-
this.setYInitialAnimationValues(this.getNativeYValues());
|
|
68
|
-
this.setY1InitialAnimationValues(this.getNativeY1Values());
|
|
69
|
-
this.setXFinalAnimationValues(xyyDataSeries.getNativeXValues());
|
|
70
|
-
this.setYFinalAnimationValues(xyyDataSeries.getNativeYValues());
|
|
71
|
-
this.setY1FinalAnimationValues(xyyDataSeries.getNativeY1Values());
|
|
72
|
-
this.validateAnimationValues();
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
/** @inheritDoc */
|
|
76
|
-
FastBandRenderableSeries.prototype.updateAnimationProperties = function (progress, animationFSM) {
|
|
77
|
-
var animation = animationFSM.animation;
|
|
78
|
-
animation.updateSeriesProperties(this, animationFSM.initialStyles, animationFSM.animationProgress);
|
|
79
|
-
if (animation.isOnStartAnimation) {
|
|
80
|
-
var dataSeries = this.dataSeries;
|
|
81
|
-
if (dataSeries) {
|
|
82
|
-
animation.calculateAnimationValues(this.webAssemblyContext, this.yFinalAnimationValues, dataSeries.getNativeYValues(), progress);
|
|
83
|
-
animation.calculateAnimationValues(this.webAssemblyContext, this.y1FinalAnimationValues, dataSeries.getNativeY1Values(), progress);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
else if (animation.isDataSeriesAnimation) {
|
|
87
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.xInitialAnimationValues, this.xFinalAnimationValues, this.getNativeXValues(), progress);
|
|
88
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.yInitialAnimationValues, this.yFinalAnimationValues, this.getNativeYValues(), progress);
|
|
89
|
-
animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.y1InitialAnimationValues, this.y1FinalAnimationValues, this.getNativeY1Values(), progress);
|
|
90
|
-
}
|
|
91
|
-
if (this.invalidateParentCallback) {
|
|
92
|
-
this.invalidateParentCallback();
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
53
|
return FastBandRenderableSeries;
|
|
96
54
|
}(BaseBandRenderableSeries_1.BaseBandRenderableSeries));
|
|
97
55
|
exports.FastBandRenderableSeries = FastBandRenderableSeries;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
1
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
3
2
|
import { DoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
4
3
|
import { IThemeProvider } from "../../Themes/IThemeProvider";
|
|
5
|
-
import { BaseAnimation } from "./Animations/BaseAnimation";
|
|
6
4
|
import { BaseRenderableSeries } from "./BaseRenderableSeries";
|
|
7
5
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
8
6
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
@@ -35,14 +33,6 @@ export interface IBubbleRenderableSeriesOptions extends IBaseRenderableSeriesOpt
|
|
|
35
33
|
export declare class FastBubbleRenderableSeries extends BaseRenderableSeries {
|
|
36
34
|
/** @inheritDoc */
|
|
37
35
|
readonly type = ESeriesType.BubbleSeries;
|
|
38
|
-
/**
|
|
39
|
-
* Z vector with initial animation values
|
|
40
|
-
*/
|
|
41
|
-
protected zInitialAnimationValues: DoubleVector;
|
|
42
|
-
/**
|
|
43
|
-
* Z vector with final animation values
|
|
44
|
-
*/
|
|
45
|
-
protected zFinalAnimationValues: DoubleVector;
|
|
46
36
|
/**
|
|
47
37
|
* Creates an instance of the {@link FastBubbleRenderableSeries}
|
|
48
38
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -66,11 +56,4 @@ export declare class FastBubbleRenderableSeries extends BaseRenderableSeries {
|
|
|
66
56
|
getNativeZValues(): DoubleVector;
|
|
67
57
|
/** @inheritDoc */
|
|
68
58
|
protected newHitTestProvider(): IHitTestProvider;
|
|
69
|
-
/** @inheritDoc */
|
|
70
|
-
protected setAnimationVectors(animation: BaseAnimation): void;
|
|
71
|
-
/** @inheritDoc */
|
|
72
|
-
protected updateAnimationProperties(progress: number, animationFSM: AnimationFiniteStateMachine): void;
|
|
73
|
-
protected setZInitialAnimationValues(values: DoubleVector): void;
|
|
74
|
-
protected setZFinalAnimationValues(values: DoubleVector): void;
|
|
75
|
-
protected validateAnimationValues(): void;
|
|
76
59
|
}
|