scichart 2.1.2290 → 2.2.2351
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/buildModifiers.d.ts +2 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +5 -0
- package/Charting/ChartModifiers/CursorModifier.js +15 -10
- package/Charting/ChartModifiers/LegendModifier.d.ts +31 -0
- package/Charting/ChartModifiers/LegendModifier.js +22 -0
- package/Charting/ChartModifiers/RolloverModifier.d.ts +10 -0
- package/Charting/ChartModifiers/RolloverModifier.js +76 -19
- package/Charting/LayoutManager/LayoutManager.js +6 -1
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +3 -2
- package/Charting/Model/BaseHeatmapDataSeries.js +17 -5
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +1 -1
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +1 -1
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +3 -3
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -1
- package/Charting/Visuals/Annotations/AnnotationBase.js +23 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +6 -0
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +46 -5
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +3 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +14 -3
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.d.ts +4 -0
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +13 -3
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +13 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +63 -14
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.d.ts +2 -0
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/constants.d.ts +2 -1
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +10 -0
- package/Charting/Visuals/Axis/AxisBase2D.js +72 -1
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +29 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +77 -0
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +21 -4
- package/Charting/Visuals/Helpers/drawLabel.d.ts +3 -3
- package/Charting/Visuals/Helpers/drawLabel.js +38 -18
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +6 -0
- package/Charting/Visuals/Legend/SciChartLegend.d.ts +4 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +7 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +16 -7
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +56 -9
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +17 -166
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +35 -328
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +5 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.js +11 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +22 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +38 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +26 -45
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +77 -18
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +139 -42
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +13 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +23 -3
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +21 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/constants.js +3 -0
- package/Charting/Visuals/SciChartPieSurface/IPieSurfaceOptions.d.ts +24 -2
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +4 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +13 -2
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +66 -20
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +3 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +2 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +66 -2
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +304 -52
- package/Charting/Visuals/SciChartPieSurface/constants.d.ts +6 -1
- package/Charting/Visuals/SciChartPieSurface/constants.js +5 -0
- package/Charting/Visuals/SciChartSurface.d.ts +19 -3
- package/Charting/Visuals/SciChartSurface.js +49 -4
- package/Charting/Visuals/createMaster.js +2 -2
- package/Charting/Visuals/createSingle.js +2 -2
- package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
- package/Charting/Visuals/sciChartInitCommon.js +13 -9
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +6 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- 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/Color.d.ts +1 -0
- package/types/Color.js +1 -0
- package/types/LabelPlacement.d.ts +8 -0
- package/types/LabelPlacement.js +11 -1
- package/types/LabelProviderType.d.ts +5 -1
- package/types/LabelProviderType.js +4 -0
- package/types/TSciChartSurfaceCanvases.d.ts +1 -0
|
@@ -32,8 +32,6 @@ import { StackedMountainRenderableSeries } from "./StackedMountainRenderableSeri
|
|
|
32
32
|
*/
|
|
33
33
|
export declare class StackedMountainCollection extends BaseStackedCollection<StackedMountainRenderableSeries> {
|
|
34
34
|
readonly type = ESeriesType.StackedMountainCollection;
|
|
35
|
-
private nativeDrawingProvider;
|
|
36
|
-
private transparentPenCache;
|
|
37
35
|
/**
|
|
38
36
|
* Creates an instance of the {@link StackedMountainCollection}
|
|
39
37
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -52,6 +50,8 @@ export declare class StackedMountainCollection extends BaseStackedCollection<Sta
|
|
|
52
50
|
/** @inheritDoc */
|
|
53
51
|
onAttach(scs: SciChartSurface): void;
|
|
54
52
|
/** @inheritDoc */
|
|
53
|
+
onDetach(): void;
|
|
54
|
+
/** @inheritDoc */
|
|
55
55
|
notifyPropertyChanged(propertyName: string): void;
|
|
56
56
|
/** @inheritDoc */
|
|
57
57
|
hasDataSeriesValues(): boolean;
|
|
@@ -16,10 +16,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.StackedMountainCollection = void 0;
|
|
19
|
-
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
19
|
var NumberRange_1 = require("../../../Core/NumberRange");
|
|
21
20
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
22
|
-
var
|
|
21
|
+
var XyyPointSeriesWrapped_1 = require("../../Model/PointSeries/XyyPointSeriesWrapped");
|
|
22
|
+
var RenderPassData_1 = require("../../Services/RenderPassData");
|
|
23
23
|
var BaseStackedCollection_1 = require("./BaseStackedCollection");
|
|
24
24
|
var constants_1 = require("./constants");
|
|
25
25
|
/**
|
|
@@ -64,13 +64,10 @@ var StackedMountainCollection = /** @class */ (function (_super) {
|
|
|
64
64
|
(_a = arg.getOldItems()) === null || _a === void 0 ? void 0 : _a.forEach(_this.detachChildSeries);
|
|
65
65
|
(_b = arg.getNewItems()) === null || _b === void 0 ? void 0 : _b.forEach(_this.attachChildSeries);
|
|
66
66
|
});
|
|
67
|
-
_this.transparentPenCache = new Pen2DCache_1.Pen2DCache(webAssemblyContext);
|
|
68
67
|
return _this;
|
|
69
68
|
}
|
|
70
69
|
/** @inheritDoc */
|
|
71
70
|
StackedMountainCollection.prototype.delete = function () {
|
|
72
|
-
this.nativeDrawingProvider = (0, Deleter_1.deleteSafe)(this.nativeDrawingProvider);
|
|
73
|
-
this.transparentPenCache = (0, Deleter_1.deleteSafe)(this.transparentPenCache);
|
|
74
71
|
_super.prototype.delete.call(this);
|
|
75
72
|
};
|
|
76
73
|
/** @inheritDoc */
|
|
@@ -114,23 +111,20 @@ var StackedMountainCollection = /** @class */ (function (_super) {
|
|
|
114
111
|
return;
|
|
115
112
|
}
|
|
116
113
|
this.updateAccumulatedVectors();
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
drawBand(_this.webAssemblyContext, renderContext, renderPassData, _this.nativeDrawingProvider, xValues_1, prevAccumVec, currAccumVec, el.getFillBrush(), previousEl.getStrokePen(), el.getStrokePen(), viewRect_1, el.isDigitalLine);
|
|
132
|
-
}
|
|
133
|
-
});
|
|
114
|
+
var xAxis_1 = this.parentSurface.getXAxisById(this.xAxisId);
|
|
115
|
+
var visibleSeries = this.getVisibleSeries();
|
|
116
|
+
// draw Stacked Series in reverse order to prevent overlapping with Point Markers
|
|
117
|
+
visibleSeries.reduceRight(function (nextSeries, series, index, collection) {
|
|
118
|
+
var currAccumVec = series.accumulatedValues;
|
|
119
|
+
var accumulatedValues = index === 0 ? _this.accumulatedValues0 : collection[index - 1].accumulatedValues;
|
|
120
|
+
// wrap XyDataSeries as XyyDataSeries
|
|
121
|
+
var xyyPointSeries = new XyyPointSeriesWrapped_1.XyyPointSeriesWrapped(series.dataSeries, accumulatedValues, currAccumVec);
|
|
122
|
+
var renderData = new RenderPassData_1.RenderPassData(undefined, renderPassData.xCoordinateCalculator, renderPassData.yCoordinateCalculator, xAxis_1.isVerticalChart, xyyPointSeries);
|
|
123
|
+
series.strokeY1 = index === 0 ? "transparent" : collection[index - 1].stroke;
|
|
124
|
+
series.strokeY1DashArray = index === 0 ? [] : collection[index - 1].strokeDashArray;
|
|
125
|
+
series.draw(renderContext, renderData);
|
|
126
|
+
return series;
|
|
127
|
+
}, undefined);
|
|
134
128
|
}
|
|
135
129
|
};
|
|
136
130
|
/** @inheritDoc */
|
|
@@ -143,8 +137,16 @@ var StackedMountainCollection = /** @class */ (function (_super) {
|
|
|
143
137
|
/** @inheritDoc */
|
|
144
138
|
StackedMountainCollection.prototype.onAttach = function (scs) {
|
|
145
139
|
_super.prototype.onAttach.call(this, scs);
|
|
146
|
-
this.
|
|
147
|
-
|
|
140
|
+
this.getVisibleSeries().forEach(function (series) {
|
|
141
|
+
series.onAttach(scs);
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
/** @inheritDoc */
|
|
145
|
+
StackedMountainCollection.prototype.onDetach = function () {
|
|
146
|
+
this.getVisibleSeries().forEach(function (series) {
|
|
147
|
+
series.onDetach();
|
|
148
|
+
});
|
|
149
|
+
_super.prototype.onDetach.call(this);
|
|
148
150
|
};
|
|
149
151
|
/** @inheritDoc */
|
|
150
152
|
StackedMountainCollection.prototype.notifyPropertyChanged = function (propertyName) {
|
|
@@ -195,24 +197,3 @@ var StackedMountainCollection = /** @class */ (function (_super) {
|
|
|
195
197
|
return StackedMountainCollection;
|
|
196
198
|
}(BaseStackedCollection_1.BaseStackedCollection));
|
|
197
199
|
exports.StackedMountainCollection = StackedMountainCollection;
|
|
198
|
-
/** @ignore */
|
|
199
|
-
var drawBand = function (wasmContext, renderContext, renderPassData, nativeDrawingProvider, xValues, yValues, y1Values, fillBrush, strokePen, strokePenY1, viewRect, isDigitalLine) {
|
|
200
|
-
var args = new wasmContext.SCRTBandDrawingParams();
|
|
201
|
-
args.forceShaderMethod = true;
|
|
202
|
-
args.verticalChart = renderPassData.isVerticalChart;
|
|
203
|
-
args.count = xValues.size();
|
|
204
|
-
args.isDigitalLine = isDigitalLine;
|
|
205
|
-
if (fillBrush) {
|
|
206
|
-
args.SetFillBrush(fillBrush);
|
|
207
|
-
args.SetFillBrush1(fillBrush);
|
|
208
|
-
}
|
|
209
|
-
if (strokePen) {
|
|
210
|
-
args.SetLinesPen(strokePen);
|
|
211
|
-
}
|
|
212
|
-
if (strokePenY1) {
|
|
213
|
-
args.SetLinesPen1(strokePenY1);
|
|
214
|
-
}
|
|
215
|
-
var nativeContext = renderContext.getNativeContext();
|
|
216
|
-
nativeDrawingProvider.DrawPointsVec(nativeContext, xValues, yValues, y1Values, renderPassData.xCoordinateCalculator.nativeCalculator, renderPassData.yCoordinateCalculator.nativeCalculator, args);
|
|
217
|
-
args.delete();
|
|
218
|
-
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { TPaletteProviderDefinition } from "../../../Builder/buildSeries";
|
|
1
2
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
2
3
|
import { TSciChart } from "../../../types/TSciChart";
|
|
4
|
+
import { WebGlRenderContext2D } from "../../Drawing/WebGlRenderContext2D";
|
|
5
|
+
import { IPaletteProvider } from "../../Model/IPaletteProvider";
|
|
6
|
+
import { IPointSeries } from "../../Model/PointSeries/IPointSeries";
|
|
7
|
+
import { ResamplingParams } from "../../Numerics/Resamplers/ResamplingParams";
|
|
8
|
+
import { RenderPassData } from "../../Services/RenderPassData";
|
|
3
9
|
import { SciChartSurface } from "../SciChartSurface";
|
|
4
10
|
import { TDpiChangedEventArgs } from "../TextureManager/DpiHelper";
|
|
5
11
|
import { BaseStackedCollection } from "./BaseStackedCollection";
|
|
@@ -21,6 +27,18 @@ export interface IStackedMountainRenderableSeriesOptions extends IBasedStackedRe
|
|
|
21
27
|
* The column strokeThickness
|
|
22
28
|
*/
|
|
23
29
|
strokeThickness?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The StrokeDashArray defines the stroke or dash pattern for the Y0 line.
|
|
32
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
33
|
+
*/
|
|
34
|
+
strokeDashArray?: number[];
|
|
35
|
+
/**
|
|
36
|
+
* An optional {@link IPaletteProvider} which is used to provide per data-point coloring or paletting.
|
|
37
|
+
* @remarks See {@link IStrokePaletteProvider} for per data-point coloring of lines or strokes, {@link IFillPaletteProvider} for
|
|
38
|
+
* per data-point coloring of fills or series bodies, and {@link IPointMarkerPaletteProvider} for per data-point coloring of
|
|
39
|
+
* point-markers
|
|
40
|
+
*/
|
|
41
|
+
paletteProvider?: IPaletteProvider | TPaletteProviderDefinition;
|
|
24
42
|
}
|
|
25
43
|
/**
|
|
26
44
|
* @summary The {@link StackedMountainRenderableSeries} allows creating JavaScript Stacked Mountain charts
|
|
@@ -49,8 +67,9 @@ export interface IStackedMountainRenderableSeriesOptions extends IBasedStackedRe
|
|
|
49
67
|
export declare class StackedMountainRenderableSeries extends BaseStackedRenderableSeries {
|
|
50
68
|
readonly type = ESeriesType.StackedMountainSeries;
|
|
51
69
|
private fillProperty;
|
|
52
|
-
private
|
|
53
|
-
private
|
|
70
|
+
private strokeY1Property;
|
|
71
|
+
private strokeDashArrayProperty;
|
|
72
|
+
private strokeY1DashArrayProperty;
|
|
54
73
|
/**
|
|
55
74
|
* Creates an instance of the {@link StackedMountainRenderableSeries}
|
|
56
75
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -58,10 +77,6 @@ export declare class StackedMountainRenderableSeries extends BaseStackedRenderab
|
|
|
58
77
|
* @param options Optional parameters of type {@link IStackedMountainRenderableSeriesOptions} to configure the series
|
|
59
78
|
*/
|
|
60
79
|
constructor(webAssemblyContext: TSciChart, options?: IStackedMountainRenderableSeriesOptions);
|
|
61
|
-
/**
|
|
62
|
-
* @inheritDoc
|
|
63
|
-
*/
|
|
64
|
-
delete(): void;
|
|
65
80
|
/**
|
|
66
81
|
* Called internally when the {@link StackedMountainRenderableSeries} is attached to a parent {@link StackedMountainCollection}
|
|
67
82
|
* @param parentCollection the parent {@link BaseStackedCollection}
|
|
@@ -69,22 +84,16 @@ export declare class StackedMountainRenderableSeries extends BaseStackedRenderab
|
|
|
69
84
|
* @param notifyPropertyChangedFn function to notify property has changed
|
|
70
85
|
*/
|
|
71
86
|
onAttachToParentCollection(parentCollection: BaseStackedCollection<BaseStackedRenderableSeries>, getParentSurfaceFn: () => SciChartSurface, notifyPropertyChangedFn: (propertyName: string) => void): void;
|
|
72
|
-
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
*/
|
|
79
|
-
getStrokePen(): import("../../../types/TSciChart").SCRTPen;
|
|
87
|
+
/** @inheritDoc */
|
|
88
|
+
onAttach(scs: SciChartSurface): void;
|
|
89
|
+
/** @inheritDoc */
|
|
90
|
+
onDetach(): void;
|
|
91
|
+
/** @inheritDoc */
|
|
92
|
+
draw(renderContext: WebGlRenderContext2D, renderPassData: RenderPassData): void;
|
|
80
93
|
/**
|
|
81
94
|
* @inheritDoc
|
|
82
95
|
*/
|
|
83
96
|
onDpiChanged(args: TDpiChangedEventArgs): void;
|
|
84
|
-
/**
|
|
85
|
-
* @inheritDoc
|
|
86
|
-
*/
|
|
87
|
-
notifyPropertyChanged(propertyName: string): void;
|
|
88
97
|
/**
|
|
89
98
|
* Gets or sets the fill brush of the mountain as an HTML color code
|
|
90
99
|
*/
|
|
@@ -93,7 +102,57 @@ export declare class StackedMountainRenderableSeries extends BaseStackedRenderab
|
|
|
93
102
|
* Gets or sets the fill brush of the mountain as an HTML color code
|
|
94
103
|
*/
|
|
95
104
|
set fill(fill: string);
|
|
105
|
+
/**
|
|
106
|
+
* Gets or sets the stroke color the Y1 values in the data-series.
|
|
107
|
+
* See associated {@link XyyDataSeries} for further information
|
|
108
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
109
|
+
*/
|
|
110
|
+
get strokeY1(): string;
|
|
111
|
+
/**
|
|
112
|
+
* Gets or sets the stroke color the Y1 values in the data-series.
|
|
113
|
+
* See associated {@link XyyDataSeries} for further information
|
|
114
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
115
|
+
*/
|
|
116
|
+
set strokeY1(strokeY1: string);
|
|
117
|
+
/**
|
|
118
|
+
* Gets or sets the fill color for when Y1 is less than Y as an HTML Color code
|
|
119
|
+
*/
|
|
120
|
+
get fillY1(): string;
|
|
121
|
+
/**
|
|
122
|
+
* Gets or sets the fill color for when Y1 is less than Y as an HTML Color code
|
|
123
|
+
*/
|
|
124
|
+
set fillY1(fillY1: string);
|
|
125
|
+
/**
|
|
126
|
+
* The StrokeDashArray defines the stroke or dash pattern for the Y0 line.
|
|
127
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
128
|
+
*/
|
|
129
|
+
get strokeDashArray(): number[];
|
|
130
|
+
/**
|
|
131
|
+
* The StrokeDashArray defines the stroke or dash pattern for the Y0 line.
|
|
132
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
133
|
+
*/
|
|
134
|
+
set strokeDashArray(strokeDashArray: number[]);
|
|
135
|
+
/**
|
|
136
|
+
* The strokeY1DashArray defines the stroke or dash pattern for the Y1 line.
|
|
137
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
138
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
139
|
+
*/
|
|
140
|
+
get strokeY1DashArray(): number[];
|
|
141
|
+
/**
|
|
142
|
+
* The strokeY1DashArray defines the stroke or dash pattern for the Y1 line.
|
|
143
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
144
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
145
|
+
*/
|
|
146
|
+
set strokeY1DashArray(strokeY1DashArray: number[]);
|
|
96
147
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
97
148
|
/** @inheritDoc */
|
|
149
|
+
toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
|
|
150
|
+
/** @inheritDoc */
|
|
151
|
+
hasStrokePaletteProvider(): boolean;
|
|
152
|
+
/** @inheritDoc */
|
|
153
|
+
hasFillPaletteProvider(): boolean;
|
|
154
|
+
/** @inheritDoc */
|
|
155
|
+
hasPointMarkerPaletteProvider(): boolean;
|
|
156
|
+
/** @inheritDoc */
|
|
98
157
|
protected newHitTestProvider(): IHitTestProvider;
|
|
99
158
|
}
|
|
@@ -16,13 +16,13 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.StackedMountainRenderableSeries = void 0;
|
|
19
|
-
var Deleter_1 = require("../../../Core/Deleter");
|
|
20
19
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
21
|
-
var
|
|
22
|
-
var Pen2DCache_1 = require("../../Drawing/Pen2DCache");
|
|
20
|
+
var XyPointSeriesWrapped_1 = require("../../Model/PointSeries/XyPointSeriesWrapped");
|
|
23
21
|
var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
|
|
24
22
|
var BaseStackedRenderableSeries_1 = require("./BaseStackedRenderableSeries");
|
|
25
23
|
var constants_1 = require("./constants");
|
|
24
|
+
var BandSeriesDrawingProvider_1 = require("./DrawingProviders/BandSeriesDrawingProvider");
|
|
25
|
+
var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
|
|
26
26
|
var StackedMountainSeriesHitTestProvider_1 = require("./HitTest/StackedMountainSeriesHitTestProvider");
|
|
27
27
|
/**
|
|
28
28
|
* @summary The {@link StackedMountainRenderableSeries} allows creating JavaScript Stacked Mountain charts
|
|
@@ -61,22 +61,20 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
61
61
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
62
62
|
_this.type = SeriesType_1.ESeriesType.StackedMountainSeries;
|
|
63
63
|
_this.fillProperty = "#7e8486";
|
|
64
|
-
_this.
|
|
65
|
-
_this.
|
|
64
|
+
_this.strokeY1Property = "transparent";
|
|
65
|
+
_this.strokeDashArrayProperty = [];
|
|
66
|
+
_this.strokeY1DashArrayProperty = [];
|
|
66
67
|
_this.fill = (_a = options === null || options === void 0 ? void 0 : options.fill) !== null && _a !== void 0 ? _a : _this.fillProperty;
|
|
67
68
|
_this.stroke = (_b = options === null || options === void 0 ? void 0 : options.stroke) !== null && _b !== void 0 ? _b : SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.mountainLineColor;
|
|
68
|
-
_this.
|
|
69
|
+
_this.strokeDashArrayProperty = (_c = options === null || options === void 0 ? void 0 : options.strokeDashArray) !== null && _c !== void 0 ? _c : _this.strokeDashArrayProperty;
|
|
70
|
+
_this.drawingProviders.push(new BandSeriesDrawingProvider_1.BandSeriesDrawingProvider(webAssemblyContext,
|
|
71
|
+
// TODO find more elegant way to pass this. In scope of https://abtsoftware.myjetbrains.com/youtrack/issue/SCJS-1109
|
|
72
|
+
_this,
|
|
73
|
+
// StackedMountainRenderableSeries have reverse order of yValues and y1Values compared to FastBandRenderableSeries
|
|
74
|
+
function (ps) { return ps.y1Values; }, function (ps) { return ps.yValues; }), new PointMarkerDrawingProvider_1.PointMarkerDrawingProvider(webAssemblyContext, _this, function (ps) { return ps.y1Values; }));
|
|
69
75
|
return _this;
|
|
70
76
|
}
|
|
71
77
|
// PUBLIC
|
|
72
|
-
/**
|
|
73
|
-
* @inheritDoc
|
|
74
|
-
*/
|
|
75
|
-
StackedMountainRenderableSeries.prototype.delete = function () {
|
|
76
|
-
this.strokePenCache = (0, Deleter_1.deleteSafe)(this.strokePenCache);
|
|
77
|
-
this.fillBrushCache = (0, Deleter_1.deleteSafe)(this.fillBrushCache);
|
|
78
|
-
_super.prototype.delete.call(this);
|
|
79
|
-
};
|
|
80
78
|
/**
|
|
81
79
|
* Called internally when the {@link StackedMountainRenderableSeries} is attached to a parent {@link StackedMountainCollection}
|
|
82
80
|
* @param parentCollection the parent {@link BaseStackedCollection}
|
|
@@ -90,21 +88,34 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
90
88
|
this.parentCollection = parentCollection;
|
|
91
89
|
this.getParentSurfaceFn = getParentSurfaceFn;
|
|
92
90
|
this.notifyParentPropertyChangedFn = notifyPropertyChangedFn;
|
|
93
|
-
var _a = this, stroke = _a.stroke, strokeThickness = _a.strokeThickness, fill = _a.fill, opacity = _a.opacity;
|
|
94
|
-
(0, Pen2DCache_1.createPenInCache)(this.strokePenCache, stroke, strokeThickness, opacity);
|
|
95
|
-
(0, BrushCache_1.createBrushInCache)(this.fillBrushCache, fill, opacity);
|
|
96
91
|
};
|
|
97
|
-
/**
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
92
|
+
/** @inheritDoc */
|
|
93
|
+
StackedMountainRenderableSeries.prototype.onAttach = function (scs) {
|
|
94
|
+
if (this.invalidateParentCallback) {
|
|
95
|
+
throw new Error("Invalid operation in sciChartSurface.attachSeries, this series has already been attached to a SciChartSurface. Please detach it from a SciChartSurface before attaching to another");
|
|
96
|
+
}
|
|
97
|
+
this.invalidateParentCallback = scs.invalidateElement;
|
|
98
|
+
this.drawingProviders.forEach(function (dp) { return dp.onAttachSeries(); });
|
|
99
|
+
this.rolloverModifierProps.setInvalidateParentCallback(scs.invalidateElement);
|
|
102
100
|
};
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
/** @inheritDoc */
|
|
102
|
+
StackedMountainRenderableSeries.prototype.onDetach = function () {
|
|
103
|
+
this.invalidateParentCallback = undefined;
|
|
104
|
+
this.drawingProviders.forEach(function (dp) { return dp.onDetachSeries(); });
|
|
105
|
+
this.rolloverModifierProps.setInvalidateParentCallback(undefined);
|
|
106
|
+
};
|
|
107
|
+
/** @inheritDoc */
|
|
108
|
+
StackedMountainRenderableSeries.prototype.draw = function (renderContext, renderPassData) {
|
|
109
|
+
var _a;
|
|
110
|
+
this.currentRenderPassData = renderPassData;
|
|
111
|
+
(_a = this.hitTestProvider) === null || _a === void 0 ? void 0 : _a.update(renderPassData);
|
|
112
|
+
try {
|
|
113
|
+
renderContext.pushShaderEffect(this.effect);
|
|
114
|
+
this.drawingProviders.forEach(function (dp) { return dp.draw(renderContext, renderPassData); });
|
|
115
|
+
}
|
|
116
|
+
finally {
|
|
117
|
+
renderContext.popShaderEffect();
|
|
118
|
+
}
|
|
108
119
|
};
|
|
109
120
|
/**
|
|
110
121
|
* @inheritDoc
|
|
@@ -113,20 +124,6 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
113
124
|
_super.prototype.onDpiChanged.call(this, args);
|
|
114
125
|
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE);
|
|
115
126
|
};
|
|
116
|
-
/**
|
|
117
|
-
* @inheritDoc
|
|
118
|
-
*/
|
|
119
|
-
StackedMountainRenderableSeries.prototype.notifyPropertyChanged = function (propertyName) {
|
|
120
|
-
_super.prototype.notifyPropertyChanged.call(this, propertyName);
|
|
121
|
-
if (propertyName === constants_1.PROPERTY.STROKE ||
|
|
122
|
-
propertyName === constants_1.PROPERTY.STROKE_THICKNESS ||
|
|
123
|
-
propertyName === constants_1.PROPERTY.OPACITY) {
|
|
124
|
-
(0, Pen2DCache_1.createPenInCache)(this.strokePenCache, this.stroke, this.strokeThickness, this.opacity);
|
|
125
|
-
}
|
|
126
|
-
if (propertyName === constants_1.PROPERTY.FILL || propertyName === constants_1.PROPERTY.OPACITY) {
|
|
127
|
-
(0, BrushCache_1.createBrushInCache)(this.fillBrushCache, this.fill, this.opacity);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
127
|
Object.defineProperty(StackedMountainRenderableSeries.prototype, "fill", {
|
|
131
128
|
// PROPERTIES
|
|
132
129
|
/**
|
|
@@ -145,6 +142,85 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
145
142
|
enumerable: false,
|
|
146
143
|
configurable: true
|
|
147
144
|
});
|
|
145
|
+
Object.defineProperty(StackedMountainRenderableSeries.prototype, "strokeY1", {
|
|
146
|
+
/**
|
|
147
|
+
* Gets or sets the stroke color the Y1 values in the data-series.
|
|
148
|
+
* See associated {@link XyyDataSeries} for further information
|
|
149
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
150
|
+
*/
|
|
151
|
+
get: function () {
|
|
152
|
+
return this.strokeY1Property;
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* Gets or sets the stroke color the Y1 values in the data-series.
|
|
156
|
+
* See associated {@link XyyDataSeries} for further information
|
|
157
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
158
|
+
*/
|
|
159
|
+
set: function (strokeY1) {
|
|
160
|
+
this.strokeY1Property = strokeY1;
|
|
161
|
+
// no need to call notifyPropertyChange here since this will cause an unwanted redraw loop, so just updating a pen
|
|
162
|
+
this.drawingProviders.forEach(function (dp) { return dp.onSeriesPropertyChange(constants_1.PROPERTY.STROKE_Y1); });
|
|
163
|
+
},
|
|
164
|
+
enumerable: false,
|
|
165
|
+
configurable: true
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(StackedMountainRenderableSeries.prototype, "fillY1", {
|
|
168
|
+
/**
|
|
169
|
+
* Gets or sets the fill color for when Y1 is less than Y as an HTML Color code
|
|
170
|
+
*/
|
|
171
|
+
get: function () {
|
|
172
|
+
return this.fillProperty;
|
|
173
|
+
},
|
|
174
|
+
/**
|
|
175
|
+
* Gets or sets the fill color for when Y1 is less than Y as an HTML Color code
|
|
176
|
+
*/
|
|
177
|
+
set: function (fillY1) {
|
|
178
|
+
throw new Error("Setting fillY1 property is not supported on StackedMountainRenderableSeries");
|
|
179
|
+
},
|
|
180
|
+
enumerable: false,
|
|
181
|
+
configurable: true
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(StackedMountainRenderableSeries.prototype, "strokeDashArray", {
|
|
184
|
+
/**
|
|
185
|
+
* The StrokeDashArray defines the stroke or dash pattern for the Y0 line.
|
|
186
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
187
|
+
*/
|
|
188
|
+
get: function () {
|
|
189
|
+
return this.strokeDashArrayProperty;
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
* The StrokeDashArray defines the stroke or dash pattern for the Y0 line.
|
|
193
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
194
|
+
*/
|
|
195
|
+
set: function (strokeDashArray) {
|
|
196
|
+
this.strokeDashArrayProperty = strokeDashArray;
|
|
197
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.STROKE_DASH_ARRAY);
|
|
198
|
+
},
|
|
199
|
+
enumerable: false,
|
|
200
|
+
configurable: true
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(StackedMountainRenderableSeries.prototype, "strokeY1DashArray", {
|
|
203
|
+
/**
|
|
204
|
+
* The strokeY1DashArray defines the stroke or dash pattern for the Y1 line.
|
|
205
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
206
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
207
|
+
*/
|
|
208
|
+
get: function () {
|
|
209
|
+
return this.strokeY1DashArrayProperty;
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
* The strokeY1DashArray defines the stroke or dash pattern for the Y1 line.
|
|
213
|
+
* Accepts an array of values, e.g. [2,2] will have a line of length 2 and a gap of length 2.
|
|
214
|
+
* @remarks This property is set internally to the value of a previous StackedMountainSeries.
|
|
215
|
+
*/
|
|
216
|
+
set: function (strokeY1DashArray) {
|
|
217
|
+
this.strokeY1DashArrayProperty = strokeY1DashArray;
|
|
218
|
+
// no need to call notifyPropertyChange here since this will cause an unwanted redraw loop, so just updating a pen
|
|
219
|
+
this.drawingProviders.forEach(function (dp) { return dp.onSeriesPropertyChange(constants_1.PROPERTY.STROKE_Y1_DASH_ARRAY); });
|
|
220
|
+
},
|
|
221
|
+
enumerable: false,
|
|
222
|
+
configurable: true
|
|
223
|
+
});
|
|
148
224
|
// PROPERTIES END
|
|
149
225
|
StackedMountainRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
150
226
|
if (excludeData === void 0) { excludeData = false; }
|
|
@@ -152,11 +228,32 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
152
228
|
var options = {
|
|
153
229
|
fill: this.fill,
|
|
154
230
|
stroke: this.stroke,
|
|
155
|
-
strokeThickness: this.strokeThickness
|
|
231
|
+
strokeThickness: this.strokeThickness,
|
|
232
|
+
strokeDashArray: this.strokeDashArray,
|
|
233
|
+
paletteProvider: this.paletteProvider
|
|
156
234
|
};
|
|
157
235
|
Object.assign(json.options, options);
|
|
158
236
|
return json;
|
|
159
237
|
};
|
|
238
|
+
/** @inheritDoc */
|
|
239
|
+
StackedMountainRenderableSeries.prototype.toPointSeries = function (resamplingParams) {
|
|
240
|
+
return new XyPointSeriesWrapped_1.XyPointSeriesWrapped(this.dataSeries);
|
|
241
|
+
};
|
|
242
|
+
/** @inheritDoc */
|
|
243
|
+
StackedMountainRenderableSeries.prototype.hasStrokePaletteProvider = function () {
|
|
244
|
+
var strokePalette = this.paletteProvider;
|
|
245
|
+
return (strokePalette === null || strokePalette === void 0 ? void 0 : strokePalette.overrideStrokeArgb) !== undefined;
|
|
246
|
+
};
|
|
247
|
+
/** @inheritDoc */
|
|
248
|
+
StackedMountainRenderableSeries.prototype.hasFillPaletteProvider = function () {
|
|
249
|
+
var fillPalette = this.paletteProvider;
|
|
250
|
+
return (fillPalette === null || fillPalette === void 0 ? void 0 : fillPalette.overrideFillArgb) !== undefined;
|
|
251
|
+
};
|
|
252
|
+
/** @inheritDoc */
|
|
253
|
+
StackedMountainRenderableSeries.prototype.hasPointMarkerPaletteProvider = function () {
|
|
254
|
+
var pointMarkerPalette = this.paletteProvider;
|
|
255
|
+
return (pointMarkerPalette === null || pointMarkerPalette === void 0 ? void 0 : pointMarkerPalette.overridePointMarkerArgb) !== undefined;
|
|
256
|
+
};
|
|
160
257
|
// PROTECTED
|
|
161
258
|
/** @inheritDoc */
|
|
162
259
|
StackedMountainRenderableSeries.prototype.newHitTestProvider = function () {
|
|
@@ -26,6 +26,10 @@ export interface IHeatmapRenderableSeriesOptions extends IBaseRenderableSeriesOp
|
|
|
26
26
|
* The flag whether to make the heatmap linearly interpolated or smoothed between cells
|
|
27
27
|
*/
|
|
28
28
|
useLinearTextureFiltering?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The flag whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
31
|
+
*/
|
|
32
|
+
fillValuesOutOfRange?: boolean;
|
|
29
33
|
}
|
|
30
34
|
/** @ignore */
|
|
31
35
|
export declare const COLOR_MAP_PREFIX = "colorMap.";
|
|
@@ -72,6 +76,7 @@ export declare class UniformHeatmapRenderableSeries extends BaseRenderableSeries
|
|
|
72
76
|
readonly type: ESeriesType;
|
|
73
77
|
private colorMapProperty;
|
|
74
78
|
private useLinearTextureFilteringProperty;
|
|
79
|
+
private fillValuesOutOfRangeProperty;
|
|
75
80
|
private zLabelProviderProperty;
|
|
76
81
|
/**
|
|
77
82
|
* Creates an instance of the {@link UniformHeatmapRenderableSeries}
|
|
@@ -100,6 +105,14 @@ export declare class UniformHeatmapRenderableSeries extends BaseRenderableSeries
|
|
|
100
105
|
checkIsOutOfDataRange(xValue: number, yValue: number): boolean;
|
|
101
106
|
get zLabelProvider(): LabelProvider;
|
|
102
107
|
set zLabelProvider(labelProvider: LabelProvider);
|
|
108
|
+
/**
|
|
109
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
110
|
+
*/
|
|
111
|
+
get fillValuesOutOfRange(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
114
|
+
*/
|
|
115
|
+
set fillValuesOutOfRange(value: boolean);
|
|
103
116
|
/** @inheritDoc */
|
|
104
117
|
toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
|
|
105
118
|
/** @inheritDoc */
|
|
@@ -75,10 +75,11 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
75
75
|
* @param options optional parameters of type {@link IHeatmapRenderableSeriesOptions} applied when constructing the series type
|
|
76
76
|
*/
|
|
77
77
|
function UniformHeatmapRenderableSeries(webAssemblyContext, options) {
|
|
78
|
-
var _a, _b, _c, _d, _e;
|
|
78
|
+
var _a, _b, _c, _d, _e, _f;
|
|
79
79
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
80
80
|
_this.type = SeriesType_1.ESeriesType.UniformHeatmapSeries;
|
|
81
81
|
_this.useLinearTextureFilteringProperty = false;
|
|
82
|
+
_this.fillValuesOutOfRangeProperty = true;
|
|
82
83
|
_this.colorMapPropertyChanged = _this.colorMapPropertyChanged.bind(_this);
|
|
83
84
|
if (options === null || options === void 0 ? void 0 : options.colorMap) {
|
|
84
85
|
if (!("toJSON" in options.colorMap)) {
|
|
@@ -91,9 +92,10 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
91
92
|
_this.xAxisId = (_b = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _b !== void 0 ? _b : AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
92
93
|
_this.useLinearTextureFilteringProperty =
|
|
93
94
|
(_c = options === null || options === void 0 ? void 0 : options.useLinearTextureFiltering) !== null && _c !== void 0 ? _c : _this.useLinearTextureFilteringProperty;
|
|
95
|
+
_this.fillValuesOutOfRangeProperty = (_d = options === null || options === void 0 ? void 0 : options.fillValuesOutOfRange) !== null && _d !== void 0 ? _d : _this.fillValuesOutOfRangeProperty;
|
|
94
96
|
// Must be called here for the series type to be available
|
|
95
|
-
if ((
|
|
96
|
-
(
|
|
97
|
+
if ((_e = _this.paletteProvider) === null || _e === void 0 ? void 0 : _e.onAttached) {
|
|
98
|
+
(_f = _this.paletteProvider) === null || _f === void 0 ? void 0 : _f.onAttached(_this);
|
|
97
99
|
}
|
|
98
100
|
_this.drawingProviders = [];
|
|
99
101
|
if (!app_1.IS_TEST_ENV) {
|
|
@@ -159,6 +161,23 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
159
161
|
enumerable: false,
|
|
160
162
|
configurable: true
|
|
161
163
|
});
|
|
164
|
+
Object.defineProperty(UniformHeatmapRenderableSeries.prototype, "fillValuesOutOfRange", {
|
|
165
|
+
/**
|
|
166
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
167
|
+
*/
|
|
168
|
+
get: function () {
|
|
169
|
+
return this.fillValuesOutOfRangeProperty;
|
|
170
|
+
},
|
|
171
|
+
/**
|
|
172
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
173
|
+
*/
|
|
174
|
+
set: function (value) {
|
|
175
|
+
this.fillValuesOutOfRangeProperty = value;
|
|
176
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.FILL_VALUES_OUT_OF_RANGE);
|
|
177
|
+
},
|
|
178
|
+
enumerable: false,
|
|
179
|
+
configurable: true
|
|
180
|
+
});
|
|
162
181
|
/** @inheritDoc */
|
|
163
182
|
UniformHeatmapRenderableSeries.prototype.toPointSeries = function (resamplingParams) {
|
|
164
183
|
// not used for Heatmap
|
|
@@ -171,6 +190,7 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
171
190
|
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
172
191
|
var options = {
|
|
173
192
|
colorMap: (_a = this.colorMap) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
193
|
+
fillValuesOutOfRange: this.fillValuesOutOfRange,
|
|
174
194
|
useLinearTextureFiltering: this.useLinearTextureFiltering
|
|
175
195
|
};
|
|
176
196
|
Object.assign(json.options, options);
|
|
@@ -40,6 +40,7 @@ export interface IXyScatterRenderableSeriesOptions extends IBaseRenderableSeries
|
|
|
40
40
|
*/
|
|
41
41
|
export declare class XyScatterRenderableSeries extends BaseRenderableSeries {
|
|
42
42
|
readonly type = ESeriesType.ScatterSeries;
|
|
43
|
+
private scatterOpacityProperty;
|
|
43
44
|
/**
|
|
44
45
|
* Creates an instance of the {@link XyScatterRenderableSeries}
|
|
45
46
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -51,4 +52,8 @@ export declare class XyScatterRenderableSeries extends BaseRenderableSeries {
|
|
|
51
52
|
toPointSeries(rp?: ResamplingParams): IPointSeries;
|
|
52
53
|
/** @inheritDoc */
|
|
53
54
|
protected newHitTestProvider(): IHitTestProvider;
|
|
55
|
+
/** @inheritDoc */
|
|
56
|
+
get opacity(): number;
|
|
57
|
+
/** @inheritDoc */
|
|
58
|
+
set opacity(value: number);
|
|
54
59
|
}
|