scichart 2.1.2294 → 2.1.2301
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/BaseHeatmapDataSeries.js +13 -4
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +13 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +23 -3
- package/Charting/Visuals/RenderableSeries/constants.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/constants.js +1 -0
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +1 -1
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
|
@@ -252,13 +252,13 @@ export declare abstract class BaseHeatmapDataSeries implements IHeatmapSeries {
|
|
|
252
252
|
* @param colorMap the {@link IColorMapParams} provides properties used to map heatmap Z-values into colors
|
|
253
253
|
* for rendering in SciChart's {@link https://www.scichart.com/javascript-chart-features | Realtime JavaScript Charts}
|
|
254
254
|
*/
|
|
255
|
-
getNormalizedVector(colorMap: IColorMapParams): FloatVector;
|
|
255
|
+
getNormalizedVector(colorMap: IColorMapParams, fillValuesOutOfRange?: boolean): FloatVector;
|
|
256
256
|
/**
|
|
257
257
|
* Recreates the normalized vector (internally used for drawing heatmap) according to zMin and zMax values
|
|
258
258
|
* @param zMin
|
|
259
259
|
* @param zMax
|
|
260
260
|
*/
|
|
261
|
-
recreateNormalizedVector(zMin: number, zMax: number): void;
|
|
261
|
+
recreateNormalizedVector(zMin: number, zMax: number, fillValuesOutOfRange?: boolean): void;
|
|
262
262
|
/**
|
|
263
263
|
* Gets the metadata by Y and X indexes
|
|
264
264
|
* @param yIndex The Y index
|
|
@@ -401,7 +401,7 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
401
401
|
* @param colorMap the {@link IColorMapParams} provides properties used to map heatmap Z-values into colors
|
|
402
402
|
* for rendering in SciChart's {@link https://www.scichart.com/javascript-chart-features | Realtime JavaScript Charts}
|
|
403
403
|
*/
|
|
404
|
-
BaseHeatmapDataSeries.prototype.getNormalizedVector = function (colorMap) {
|
|
404
|
+
BaseHeatmapDataSeries.prototype.getNormalizedVector = function (colorMap, fillValuesOutOfRange) {
|
|
405
405
|
Guard_1.Guard.notNull(colorMap, "colorMap");
|
|
406
406
|
Guard_1.Guard.argumentIsRealNumber(colorMap.minimum, "colorMap.minimum");
|
|
407
407
|
Guard_1.Guard.argumentIsRealNumber(colorMap.maximum, "colorMap.maximum");
|
|
@@ -410,7 +410,7 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
410
410
|
size !== this.normalizedVector.size() ||
|
|
411
411
|
colorMap.minimum !== this.lastZMin ||
|
|
412
412
|
colorMap.maximum !== this.lastZMax) {
|
|
413
|
-
this.recreateNormalizedVector(colorMap.minimum, colorMap.maximum);
|
|
413
|
+
this.recreateNormalizedVector(colorMap.minimum, colorMap.maximum, fillValuesOutOfRange);
|
|
414
414
|
this.lastZMin = colorMap.minimum;
|
|
415
415
|
this.lastZMax = colorMap.maximum;
|
|
416
416
|
this.hasDataChangesProperty = false;
|
|
@@ -422,7 +422,7 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
422
422
|
* @param zMin
|
|
423
423
|
* @param zMax
|
|
424
424
|
*/
|
|
425
|
-
BaseHeatmapDataSeries.prototype.recreateNormalizedVector = function (zMin, zMax) {
|
|
425
|
+
BaseHeatmapDataSeries.prototype.recreateNormalizedVector = function (zMin, zMax, fillValuesOutOfRange) {
|
|
426
426
|
var size = this.arrayWidth * this.arrayHeight;
|
|
427
427
|
this.normalizedVector.clear();
|
|
428
428
|
this.normalizedVector.resize(size, 0);
|
|
@@ -437,7 +437,16 @@ var BaseHeatmapDataSeries = /** @class */ (function () {
|
|
|
437
437
|
for (var y = 0; y < this.arrayHeight; y++) {
|
|
438
438
|
for (var x = 0; x < this.arrayWidth; x++) {
|
|
439
439
|
// normalized value from 0..1 = (zValue - zMin) / ((zMax - zMin))
|
|
440
|
-
var zValue =
|
|
440
|
+
var zValue = this.zValuesProperty[y][x] - newZMin;
|
|
441
|
+
if (isNaN(this.zValuesProperty[y][x])) {
|
|
442
|
+
zValue = 0;
|
|
443
|
+
}
|
|
444
|
+
else if (zValue < newZMin) {
|
|
445
|
+
zValue = fillValuesOutOfRange ? zMin - newZMin : 0;
|
|
446
|
+
}
|
|
447
|
+
else if (zValue > zMax - newZMin) {
|
|
448
|
+
zValue = fillValuesOutOfRange ? zMax - newZMin : 0;
|
|
449
|
+
}
|
|
441
450
|
var normalizedZValue = zValue * normalizationFactor;
|
|
442
451
|
this.normalizedVector.set(index++, normalizedZValue);
|
|
443
452
|
}
|
|
@@ -94,7 +94,7 @@ var UniformHeatmapDrawingProvider = /** @class */ (function (_super) {
|
|
|
94
94
|
var heatTexture = (_a = this.heatTextureCache) === null || _a === void 0 ? void 0 : _a.value;
|
|
95
95
|
if (heatTexture) {
|
|
96
96
|
var dataSeries = this.parentSeries.dataSeries;
|
|
97
|
-
var zValuesVector = dataSeries.getNormalizedVector(this.parentSeries.colorMap);
|
|
97
|
+
var zValuesVector = dataSeries.getNormalizedVector(this.parentSeries.colorMap, this.parentSeries.fillValuesOutOfRange);
|
|
98
98
|
this.packedFloatParams = this.webAssemblyContext.SCRTFillTextureFloat32(heatTexture, dataSeries.arrayWidth, dataSeries.arrayHeight, zValuesVector);
|
|
99
99
|
this.packedFloatParams.x = 0;
|
|
100
100
|
this.packedFloatParams.y = 1;
|
|
@@ -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);
|
|
@@ -16,6 +16,7 @@ export declare enum PROPERTY {
|
|
|
16
16
|
FILL = "fill",
|
|
17
17
|
FILL_Y1 = "FILL_Y1",
|
|
18
18
|
FILL_LINEAR_GRADIENT = "FILL_LINEAR_GRADIENT",
|
|
19
|
+
FILL_VALUES_OUT_OF_RANGE = "FILL_VALUES_OUT_OF_RANGE",
|
|
19
20
|
GRADIENT_STOPS = "GRADIENT_STOPS",
|
|
20
21
|
HOVERED = "HOVERED",
|
|
21
22
|
INTERPOLATION_POINTS = "INTERPOLATION_POINTS",
|
|
@@ -20,6 +20,7 @@ var PROPERTY;
|
|
|
20
20
|
PROPERTY["FILL"] = "fill";
|
|
21
21
|
PROPERTY["FILL_Y1"] = "FILL_Y1";
|
|
22
22
|
PROPERTY["FILL_LINEAR_GRADIENT"] = "FILL_LINEAR_GRADIENT";
|
|
23
|
+
PROPERTY["FILL_VALUES_OUT_OF_RANGE"] = "FILL_VALUES_OUT_OF_RANGE";
|
|
23
24
|
PROPERTY["GRADIENT_STOPS"] = "GRADIENT_STOPS";
|
|
24
25
|
PROPERTY["HOVERED"] = "HOVERED";
|
|
25
26
|
PROPERTY["INTERPOLATION_POINTS"] = "INTERPOLATION_POINTS";
|
package/Core/BuildStamp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TSciChart } from "../types/TSciChart";
|
|
2
2
|
import { TSciChart3D } from "../types/TSciChart3D";
|
|
3
|
-
export declare const libraryVersion = "2.1.
|
|
3
|
+
export declare const libraryVersion = "2.1.2301";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkBuildStamp = exports.libraryVersion = void 0;
|
|
4
|
-
var buildStamp = "2022-03-
|
|
4
|
+
var buildStamp = "2022-03-30T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "2.1.
|
|
7
|
+
exports.libraryVersion = "2.1.2301";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|