scichart 3.2.464 → 3.2.476
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/buildDataSeries.d.ts +7 -3
- package/Builder/buildDataSeries.js +87 -112
- package/Builder/buildSeries.js +52 -1
- package/Builder/chartBuilder.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.js +4 -3
- package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +2 -0
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +21 -0
- package/Charting/LayoutManager/SciChartVerticalGroup.d.ts +1 -0
- package/Charting/LayoutManager/SciChartVerticalGroup.js +18 -0
- package/Charting/LayoutManager/SynchronizedLayoutManager.d.ts +1 -1
- package/Charting/Model/BaseDataSeries.d.ts +3 -1
- package/Charting/Model/BaseDataSeries.js +15 -8
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +3 -1
- package/Charting/Model/BaseHeatmapDataSeries.js +17 -10
- package/Charting/Model/Filters/HlcScaleOffsetFilter.d.ts +13 -1
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +13 -1
- package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +14 -2
- package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +13 -2
- package/Charting/Model/Filters/XyRatioFilter.d.ts +13 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +14 -2
- package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +14 -1
- package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +14 -1
- package/Charting/Model/HlcDataSeries.d.ts +1 -1
- package/Charting/Model/HlcDataSeries.js +17 -16
- package/Charting/Model/IDataSeries.d.ts +2 -1
- package/Charting/Model/NonUniformHeatmapDataSeries.d.ts +1 -5
- package/Charting/Model/NonUniformHeatmapDataSeries.js +8 -18
- package/Charting/Model/OhlcDataSeries.d.ts +1 -1
- package/Charting/Model/OhlcDataSeries.js +20 -19
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +1 -5
- package/Charting/Model/UniformHeatmapDataSeries.js +9 -10
- package/Charting/Model/XyDataSeries.d.ts +1 -1
- package/Charting/Model/XyDataSeries.js +11 -10
- package/Charting/Model/XyTextDataSeries.d.ts +1 -1
- package/Charting/Model/XyTextDataSeries.js +19 -9
- package/Charting/Model/XyyDataSeries.d.ts +1 -1
- package/Charting/Model/XyyDataSeries.js +14 -13
- package/Charting/Model/XyzDataSeries.d.ts +1 -1
- package/Charting/Model/XyzDataSeries.js +14 -13
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +6 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +27 -17
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.js +21 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +21 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.js +15 -6
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.js +21 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/TextDataLabelProvider.js +21 -3
- package/Charting/Visuals/SciChartSurface.js +4 -0
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +1 -0
- package/index.dev.js +436 -278
- package/index.min.js +1 -1
- package/package.json +1 -1
- package/utils/parseColor.js +1 -5
|
@@ -745,7 +745,7 @@ var BaseRenderableSeries = /** @class */ (function (_super) {
|
|
|
745
745
|
};
|
|
746
746
|
/** @inheritDoc */
|
|
747
747
|
BaseRenderableSeries.prototype.toJSON = function (excludeData) {
|
|
748
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
748
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
749
749
|
if (excludeData === void 0) { excludeData = false; }
|
|
750
750
|
var paletteProvider;
|
|
751
751
|
if (this.paletteProvider) {
|
|
@@ -778,29 +778,39 @@ var BaseRenderableSeries = /** @class */ (function (_super) {
|
|
|
778
778
|
dataLabelProvider: (_c = this.dataLabelProvider) === null || _c === void 0 ? void 0 : _c.toJSON()
|
|
779
779
|
// onSelectedChanged: this.onSelectedChanged
|
|
780
780
|
};
|
|
781
|
-
|
|
782
|
-
|
|
781
|
+
var dataSeriesDefinition = (_d = this.dataSeries) === null || _d === void 0 ? void 0 : _d.toJSON(excludeData);
|
|
782
|
+
var dataSeriesOptions = dataSeriesDefinition === null || dataSeriesDefinition === void 0 ? void 0 : dataSeriesDefinition.options;
|
|
783
|
+
if (((_e = this.dataSeries) === null || _e === void 0 ? void 0 : _e.type) === IDataSeries_1.EDataSeriesType.Xy) {
|
|
784
|
+
return { type: this.type, options: options, xyData: dataSeriesOptions };
|
|
783
785
|
}
|
|
784
|
-
else if (((
|
|
785
|
-
return { type: this.type, options: options, xyyData:
|
|
786
|
+
else if (((_f = this.dataSeries) === null || _f === void 0 ? void 0 : _f.type) === IDataSeries_1.EDataSeriesType.Xyy) {
|
|
787
|
+
return { type: this.type, options: options, xyyData: dataSeriesOptions };
|
|
786
788
|
}
|
|
787
|
-
else if (((
|
|
788
|
-
return { type: this.type, options: options, xyzData:
|
|
789
|
+
else if (((_g = this.dataSeries) === null || _g === void 0 ? void 0 : _g.type) === IDataSeries_1.EDataSeriesType.Xyz) {
|
|
790
|
+
return { type: this.type, options: options, xyzData: dataSeriesOptions };
|
|
789
791
|
}
|
|
790
|
-
else if (((
|
|
791
|
-
return { type: this.type, options: options, ohlcData:
|
|
792
|
+
else if (((_h = this.dataSeries) === null || _h === void 0 ? void 0 : _h.type) === IDataSeries_1.EDataSeriesType.Ohlc) {
|
|
793
|
+
return { type: this.type, options: options, ohlcData: dataSeriesOptions };
|
|
792
794
|
}
|
|
793
|
-
else if (((
|
|
794
|
-
return { type: this.type, options: options, hlcData:
|
|
795
|
+
else if (((_j = this.dataSeries) === null || _j === void 0 ? void 0 : _j.type) === IDataSeries_1.EDataSeriesType.Hlc) {
|
|
796
|
+
return { type: this.type, options: options, hlcData: dataSeriesOptions };
|
|
795
797
|
}
|
|
796
|
-
else if (((
|
|
797
|
-
return { type: this.type, options: options, xyTextData:
|
|
798
|
+
else if (((_k = this.dataSeries) === null || _k === void 0 ? void 0 : _k.type) === IDataSeries_1.EDataSeriesType.XyText) {
|
|
799
|
+
return { type: this.type, options: options, xyTextData: dataSeriesOptions };
|
|
798
800
|
}
|
|
799
|
-
else if (((
|
|
800
|
-
return {
|
|
801
|
+
else if (((_l = this.dataSeries) === null || _l === void 0 ? void 0 : _l.type) === IDataSeries_1.EDataSeriesType.HeatmapUniform) {
|
|
802
|
+
return {
|
|
803
|
+
type: this.type,
|
|
804
|
+
options: options,
|
|
805
|
+
heatmapData: dataSeriesOptions
|
|
806
|
+
};
|
|
801
807
|
}
|
|
802
|
-
else if (((
|
|
803
|
-
return {
|
|
808
|
+
else if (((_m = this.dataSeries) === null || _m === void 0 ? void 0 : _m.type) === IDataSeries_1.EDataSeriesType.HeatmapNonUniform) {
|
|
809
|
+
return {
|
|
810
|
+
type: this.type,
|
|
811
|
+
options: options,
|
|
812
|
+
heatmapData: dataSeriesOptions
|
|
813
|
+
};
|
|
804
814
|
}
|
|
805
815
|
else {
|
|
806
816
|
return { type: this.type, options: options };
|
|
@@ -291,7 +291,7 @@ var BaseStackedRenderableSeries = /** @class */ (function (_super) {
|
|
|
291
291
|
};
|
|
292
292
|
if (((_a = this.dataSeries) === null || _a === void 0 ? void 0 : _a.type) === IDataSeries_1.EDataSeriesType.Xy) {
|
|
293
293
|
// @ts-ignore
|
|
294
|
-
return { type: this.type, options: options, xyData: this.dataSeries.toJSON(excludeData) };
|
|
294
|
+
return { type: this.type, options: options, xyData: this.dataSeries.toJSON(excludeData).options };
|
|
295
295
|
}
|
|
296
296
|
else {
|
|
297
297
|
// @ts-ignore
|
|
@@ -23,6 +23,8 @@ export interface IContoursDataLabelProviderOptions extends IBaseDataLabelProvide
|
|
|
23
23
|
metaDataSelector?: (metadata: IPointMetadata) => string;
|
|
24
24
|
/** sets the number of rows of data labels. Default 10 */
|
|
25
25
|
labelRowCount?: number;
|
|
26
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
27
|
+
isEnabled?: boolean;
|
|
26
28
|
}
|
|
27
29
|
export declare class ContoursDataLabelProvider extends BaseDataLabelProvider {
|
|
28
30
|
readonly type: EDataLabelProviderType;
|
|
@@ -34,6 +36,7 @@ export declare class ContoursDataLabelProvider extends BaseDataLabelProvider {
|
|
|
34
36
|
protected dataSeries: BaseHeatmapDataSeries;
|
|
35
37
|
protected zValues: number[][];
|
|
36
38
|
protected colorValue: number;
|
|
39
|
+
protected isEnabledProperty: boolean;
|
|
37
40
|
private numericFormatProperty;
|
|
38
41
|
private precisionProperty;
|
|
39
42
|
private labelRowCountProperty;
|
|
@@ -55,6 +58,10 @@ export declare class ContoursDataLabelProvider extends BaseDataLabelProvider {
|
|
|
55
58
|
*/
|
|
56
59
|
get labelRowCount(): number;
|
|
57
60
|
set labelRowCount(value: number);
|
|
61
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
62
|
+
get isEnabled(): boolean;
|
|
63
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
64
|
+
set isEnabled(value: boolean);
|
|
58
65
|
getText(xIndex: number, yIndex: number): string;
|
|
59
66
|
getPosition(xIndex: number, yIndex: number, xVal: number, yVal: number, textSize: Size, renderPassData: RenderPassData): Point;
|
|
60
67
|
shouldGenerate(textSize: Size, cellWidth: number, cellHeight: number): boolean;
|
|
@@ -30,9 +30,10 @@ var ContoursDataLabelProvider = /** @class */ (function (_super) {
|
|
|
30
30
|
__extends(ContoursDataLabelProvider, _super);
|
|
31
31
|
function ContoursDataLabelProvider(options) {
|
|
32
32
|
var _this = this;
|
|
33
|
-
var _a, _b, _c;
|
|
33
|
+
var _a, _b, _c, _d;
|
|
34
34
|
_this = _super.call(this, options) || this;
|
|
35
35
|
_this.type = DataLabelProviderType_1.EDataLabelProviderType.Contours;
|
|
36
|
+
_this.isEnabledProperty = true;
|
|
36
37
|
_this.numericFormatProperty = NumericFormat_1.ENumericFormat.Decimal;
|
|
37
38
|
_this.precisionProperty = 1;
|
|
38
39
|
_this.labelRowCountProperty = 10;
|
|
@@ -40,6 +41,7 @@ var ContoursDataLabelProvider = /** @class */ (function (_super) {
|
|
|
40
41
|
_this.precision = (_b = options === null || options === void 0 ? void 0 : options.precision) !== null && _b !== void 0 ? _b : _this.precisionProperty;
|
|
41
42
|
_this.labelRowCountProperty = (_c = options === null || options === void 0 ? void 0 : options.labelRowCount) !== null && _c !== void 0 ? _c : _this.labelRowCountProperty;
|
|
42
43
|
_this.metaDataSelector = options === null || options === void 0 ? void 0 : options.metaDataSelector;
|
|
44
|
+
_this.isEnabledProperty = (_d = options === null || options === void 0 ? void 0 : options.isEnabled) !== null && _d !== void 0 ? _d : _this.isEnabledProperty;
|
|
43
45
|
return _this;
|
|
44
46
|
}
|
|
45
47
|
Object.defineProperty(ContoursDataLabelProvider.prototype, "numericFormat", {
|
|
@@ -89,6 +91,21 @@ var ContoursDataLabelProvider = /** @class */ (function (_super) {
|
|
|
89
91
|
enumerable: false,
|
|
90
92
|
configurable: true
|
|
91
93
|
});
|
|
94
|
+
Object.defineProperty(ContoursDataLabelProvider.prototype, "isEnabled", {
|
|
95
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
96
|
+
get: function () {
|
|
97
|
+
return this.isEnabledProperty;
|
|
98
|
+
},
|
|
99
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
100
|
+
set: function (value) {
|
|
101
|
+
if (this.isEnabledProperty !== value) {
|
|
102
|
+
this.isEnabledProperty = value;
|
|
103
|
+
this.invalidateParent();
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
enumerable: false,
|
|
107
|
+
configurable: true
|
|
108
|
+
});
|
|
92
109
|
ContoursDataLabelProvider.prototype.getText = function (xIndex, yIndex) {
|
|
93
110
|
var _a, _b;
|
|
94
111
|
if (this.metaDataSelector) {
|
|
@@ -134,7 +151,7 @@ var ContoursDataLabelProvider = /** @class */ (function (_super) {
|
|
|
134
151
|
var _a, _b, _c, _d;
|
|
135
152
|
// clear any previous labels
|
|
136
153
|
this.dataLabels = [];
|
|
137
|
-
if (!this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
154
|
+
if (!this.isEnabled || !this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
138
155
|
return;
|
|
139
156
|
}
|
|
140
157
|
this.dataSeries = this.parentSeries.dataSeries;
|
|
@@ -211,7 +228,8 @@ var ContoursDataLabelProvider = /** @class */ (function (_super) {
|
|
|
211
228
|
var options = {
|
|
212
229
|
numericFormat: this.numericFormat,
|
|
213
230
|
precision: this.precision,
|
|
214
|
-
labelRowCount: this.labelRowCount
|
|
231
|
+
labelRowCount: this.labelRowCount,
|
|
232
|
+
isEnabled: this.isEnabled
|
|
215
233
|
};
|
|
216
234
|
Object.assign(json.options, options);
|
|
217
235
|
return json;
|
|
@@ -59,6 +59,8 @@ export interface IDataLabelProviderOptions extends IBaseDataLabelProviderOptions
|
|
|
59
59
|
horizontalTextPosition?: EHorizontalTextPosition;
|
|
60
60
|
/** Sets the vertical text position for the label. Default Top */
|
|
61
61
|
verticalTextPosition?: EVerticalTextPosition;
|
|
62
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
63
|
+
isEnabled?: boolean;
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
66
|
* This is the standard DataLabelProvider which provides a number of options for configuring data labels.
|
|
@@ -109,6 +111,7 @@ export declare class DataLabelProvider extends BaseDataLabelProvider {
|
|
|
109
111
|
protected skipNumberProperty: number;
|
|
110
112
|
protected horizontalTextPositionProperty: EHorizontalTextPosition;
|
|
111
113
|
protected verticalTextPositionProperty: EVerticalTextPosition;
|
|
114
|
+
protected isEnabledProperty: boolean;
|
|
112
115
|
/**
|
|
113
116
|
* Creates an instance of the {@link DataLabelProvider}
|
|
114
117
|
*/
|
|
@@ -183,6 +186,10 @@ export declare class DataLabelProvider extends BaseDataLabelProvider {
|
|
|
183
186
|
*/
|
|
184
187
|
get verticalTextPosition(): EVerticalTextPosition;
|
|
185
188
|
set verticalTextPosition(value: EVerticalTextPosition);
|
|
189
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
190
|
+
get isEnabled(): boolean;
|
|
191
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
192
|
+
set isEnabled(value: boolean);
|
|
186
193
|
getText(state: DataLabelState): string;
|
|
187
194
|
/**
|
|
188
195
|
* Called at the start of generateDataLabels. If false, no labels will be generated.
|
|
@@ -47,7 +47,7 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
47
47
|
*/
|
|
48
48
|
function DataLabelProvider(options) {
|
|
49
49
|
var _this = this;
|
|
50
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
50
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
51
51
|
_this = _super.call(this, options) || this;
|
|
52
52
|
_this.type = DataLabelProviderType_1.EDataLabelProviderType.Default;
|
|
53
53
|
/**
|
|
@@ -66,6 +66,7 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
66
66
|
_this.skipNumberProperty = 0;
|
|
67
67
|
_this.horizontalTextPositionProperty = TextPosition_1.EHorizontalTextPosition.Right;
|
|
68
68
|
_this.verticalTextPositionProperty = TextPosition_1.EVerticalTextPosition.Above;
|
|
69
|
+
_this.isEnabledProperty = true;
|
|
69
70
|
_this.pointGapThresholdProperty = (_a = options === null || options === void 0 ? void 0 : options.pointGapThreshold) !== null && _a !== void 0 ? _a : _this.pointGapThresholdProperty;
|
|
70
71
|
_this.pointCountThresholdProperty = (_b = options === null || options === void 0 ? void 0 : options.pointCountThreshold) !== null && _b !== void 0 ? _b : _this.pointCountThresholdProperty;
|
|
71
72
|
_this.numericFormatProperty = (_c = options === null || options === void 0 ? void 0 : options.numericFormat) !== null && _c !== void 0 ? _c : _this.numericFormatProperty;
|
|
@@ -77,6 +78,7 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
77
78
|
_this.updateTextInAnimation = (_h = options === null || options === void 0 ? void 0 : options.updateTextInAnimation) !== null && _h !== void 0 ? _h : _this.updateTextInAnimation;
|
|
78
79
|
_this.horizontalTextPositionProperty = (_j = options === null || options === void 0 ? void 0 : options.horizontalTextPosition) !== null && _j !== void 0 ? _j : _this.horizontalTextPosition;
|
|
79
80
|
_this.verticalTextPositionProperty = (_k = options === null || options === void 0 ? void 0 : options.verticalTextPosition) !== null && _k !== void 0 ? _k : _this.verticalTextPosition;
|
|
81
|
+
_this.isEnabledProperty = (_l = options === null || options === void 0 ? void 0 : options.isEnabled) !== null && _l !== void 0 ? _l : _this.isEnabledProperty;
|
|
80
82
|
return _this;
|
|
81
83
|
}
|
|
82
84
|
/**
|
|
@@ -226,6 +228,21 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
226
228
|
enumerable: false,
|
|
227
229
|
configurable: true
|
|
228
230
|
});
|
|
231
|
+
Object.defineProperty(DataLabelProvider.prototype, "isEnabled", {
|
|
232
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
233
|
+
get: function () {
|
|
234
|
+
return this.isEnabledProperty;
|
|
235
|
+
},
|
|
236
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
237
|
+
set: function (value) {
|
|
238
|
+
if (this.isEnabledProperty !== value) {
|
|
239
|
+
this.isEnabledProperty = value;
|
|
240
|
+
this.invalidateParent();
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
enumerable: false,
|
|
244
|
+
configurable: true
|
|
245
|
+
});
|
|
229
246
|
DataLabelProvider.prototype.getText = function (state) {
|
|
230
247
|
var _a, _b;
|
|
231
248
|
if (this.metaDataSelector) {
|
|
@@ -312,7 +329,7 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
312
329
|
var _a, _b;
|
|
313
330
|
// clear any previous labels
|
|
314
331
|
this.dataLabels = [];
|
|
315
|
-
if (!this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
332
|
+
if (!this.isEnabled || !this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
316
333
|
return;
|
|
317
334
|
}
|
|
318
335
|
var yValues = this.ySelector(renderPassData.pointSeries);
|
|
@@ -380,7 +397,8 @@ var DataLabelProvider = /** @class */ (function (_super) {
|
|
|
380
397
|
skipMode: this.skipMode,
|
|
381
398
|
updateTextInAnimation: this.updateTextInAnimation,
|
|
382
399
|
horizontalTextPosition: this.horizontalTextPosition,
|
|
383
|
-
verticalTextPosition: this.verticalTextPosition
|
|
400
|
+
verticalTextPosition: this.verticalTextPosition,
|
|
401
|
+
isEnabled: this.isEnabled
|
|
384
402
|
};
|
|
385
403
|
Object.assign(json.options, options);
|
|
386
404
|
return json;
|
|
@@ -31,16 +31,25 @@ var DataLabelState = /** @class */ (function () {
|
|
|
31
31
|
this.indexStart = indicesRange.min;
|
|
32
32
|
this.indexEnd = indicesRange.max;
|
|
33
33
|
this.pointCount = indicesRange.diff + 1;
|
|
34
|
-
if (this.pointCount > 1)
|
|
35
|
-
this.pointGap =
|
|
34
|
+
if (this.pointCount > 1) {
|
|
35
|
+
this.pointGap = renderPassData.isVerticalChart
|
|
36
|
+
? Math.abs(this.yCoord(this.indexStart) - this.yCoord(this.indexEnd)) / this.pointCount
|
|
37
|
+
: Math.abs(this.xCoord(this.indexStart) - this.xCoord(this.indexEnd)) / this.pointCount;
|
|
38
|
+
}
|
|
36
39
|
else
|
|
37
40
|
this.pointGap = Infinity; // Single point
|
|
38
41
|
}
|
|
39
42
|
else {
|
|
40
|
-
this.indexStart =
|
|
41
|
-
this.pointCount =
|
|
42
|
-
this.indexEnd =
|
|
43
|
-
|
|
43
|
+
this.indexStart = renderPassData.indexRange.min;
|
|
44
|
+
this.pointCount = renderPassData.indexRange.diff + 1;
|
|
45
|
+
this.indexEnd = renderPassData.indexRange.max;
|
|
46
|
+
if (this.pointCount > 1) {
|
|
47
|
+
this.pointGap = renderPassData.isVerticalChart
|
|
48
|
+
? Math.abs(this.yCoord(this.indexStart) - this.yCoord(this.indexEnd)) / this.pointCount
|
|
49
|
+
: Math.abs(this.xCoord(this.indexStart) - this.xCoord(this.indexEnd)) / this.pointCount;
|
|
50
|
+
}
|
|
51
|
+
else
|
|
52
|
+
this.pointGap = Infinity; // Single point
|
|
44
53
|
}
|
|
45
54
|
this.index = this.indexStart;
|
|
46
55
|
this.font = renderContext.getFont(this.style);
|
|
@@ -21,6 +21,8 @@ export interface IHeatmapDataLabelProviderOptions extends IBaseDataLabelProvider
|
|
|
21
21
|
* The selector will be called even if the metaData for an index is undefined.
|
|
22
22
|
*/
|
|
23
23
|
metaDataSelector?: (metadata: IPointMetadata) => string;
|
|
24
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
25
|
+
isEnabled?: boolean;
|
|
24
26
|
}
|
|
25
27
|
export declare class HeatMapDataLabelProvider extends BaseDataLabelProvider {
|
|
26
28
|
readonly type: EDataLabelProviderType;
|
|
@@ -32,6 +34,7 @@ export declare class HeatMapDataLabelProvider extends BaseDataLabelProvider {
|
|
|
32
34
|
protected dataSeries: BaseHeatmapDataSeries;
|
|
33
35
|
protected zValues: number[][];
|
|
34
36
|
protected colorValue: number;
|
|
37
|
+
protected isEnabledProperty: boolean;
|
|
35
38
|
private numericFormatProperty;
|
|
36
39
|
private precisionProperty;
|
|
37
40
|
constructor(options?: IHeatmapDataLabelProviderOptions);
|
|
@@ -47,6 +50,10 @@ export declare class HeatMapDataLabelProvider extends BaseDataLabelProvider {
|
|
|
47
50
|
*/
|
|
48
51
|
get precision(): number;
|
|
49
52
|
set precision(value: number);
|
|
53
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
54
|
+
get isEnabled(): boolean;
|
|
55
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
56
|
+
set isEnabled(value: boolean);
|
|
50
57
|
getText(xIndex: number, yIndex: number): string;
|
|
51
58
|
getPosition(xIndex: number, yIndex: number, xVal: number, yVal: number, textSize: Size, cellWidth: number, cellHeight: number, renderPassData: RenderPassData): Point;
|
|
52
59
|
shouldGenerate(textSize: Size, cellWidth: number, cellHeight: number): boolean;
|
|
@@ -30,14 +30,16 @@ var HeatMapDataLabelProvider = /** @class */ (function (_super) {
|
|
|
30
30
|
__extends(HeatMapDataLabelProvider, _super);
|
|
31
31
|
function HeatMapDataLabelProvider(options) {
|
|
32
32
|
var _this = this;
|
|
33
|
-
var _a, _b;
|
|
33
|
+
var _a, _b, _c;
|
|
34
34
|
_this = _super.call(this, options) || this;
|
|
35
35
|
_this.type = DataLabelProviderType_1.EDataLabelProviderType.Heatmap;
|
|
36
|
+
_this.isEnabledProperty = true;
|
|
36
37
|
_this.numericFormatProperty = NumericFormat_1.ENumericFormat.Decimal;
|
|
37
38
|
_this.precisionProperty = 1;
|
|
38
39
|
_this.numericFormatProperty = (_a = options === null || options === void 0 ? void 0 : options.numericFormat) !== null && _a !== void 0 ? _a : _this.numericFormatProperty;
|
|
39
40
|
_this.precision = (_b = options === null || options === void 0 ? void 0 : options.precision) !== null && _b !== void 0 ? _b : _this.precisionProperty;
|
|
40
41
|
_this.metaDataSelector = options === null || options === void 0 ? void 0 : options.metaDataSelector;
|
|
42
|
+
_this.isEnabledProperty = (_c = options === null || options === void 0 ? void 0 : options.isEnabled) !== null && _c !== void 0 ? _c : _this.isEnabledProperty;
|
|
41
43
|
return _this;
|
|
42
44
|
}
|
|
43
45
|
Object.defineProperty(HeatMapDataLabelProvider.prototype, "numericFormat", {
|
|
@@ -72,6 +74,21 @@ var HeatMapDataLabelProvider = /** @class */ (function (_super) {
|
|
|
72
74
|
enumerable: false,
|
|
73
75
|
configurable: true
|
|
74
76
|
});
|
|
77
|
+
Object.defineProperty(HeatMapDataLabelProvider.prototype, "isEnabled", {
|
|
78
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
79
|
+
get: function () {
|
|
80
|
+
return this.isEnabledProperty;
|
|
81
|
+
},
|
|
82
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
83
|
+
set: function (value) {
|
|
84
|
+
if (this.isEnabledProperty !== value) {
|
|
85
|
+
this.isEnabledProperty = value;
|
|
86
|
+
this.invalidateParent();
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
enumerable: false,
|
|
90
|
+
configurable: true
|
|
91
|
+
});
|
|
75
92
|
HeatMapDataLabelProvider.prototype.getText = function (xIndex, yIndex) {
|
|
76
93
|
var _a, _b;
|
|
77
94
|
if (this.metaDataSelector) {
|
|
@@ -130,7 +147,7 @@ var HeatMapDataLabelProvider = /** @class */ (function (_super) {
|
|
|
130
147
|
var _b, _c;
|
|
131
148
|
// clear any previous labels
|
|
132
149
|
this.dataLabels = [];
|
|
133
|
-
if (!this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
150
|
+
if (!this.isEnabled || !this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
134
151
|
return;
|
|
135
152
|
}
|
|
136
153
|
this.dataSeries = this.parentSeries.dataSeries;
|
|
@@ -188,7 +205,8 @@ var HeatMapDataLabelProvider = /** @class */ (function (_super) {
|
|
|
188
205
|
var json = _super.prototype.toJSON.call(this);
|
|
189
206
|
var options = {
|
|
190
207
|
numericFormat: this.numericFormat,
|
|
191
|
-
precision: this.precision
|
|
208
|
+
precision: this.precision,
|
|
209
|
+
isEnabled: this.isEnabled
|
|
192
210
|
};
|
|
193
211
|
Object.assign(json.options, options);
|
|
194
212
|
return json;
|
|
@@ -17,6 +17,8 @@ export interface ITextDataLabelProviderOptions extends IBaseDataLabelProviderOpt
|
|
|
17
17
|
horizontalTextPosition?: EHorizontalTextPosition;
|
|
18
18
|
/** Sets the vertical text position for the label */
|
|
19
19
|
verticalTextPosition?: EVerticalTextPosition;
|
|
20
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
21
|
+
isEnabled?: boolean;
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* A DataLabelProvider sepcifically designed to work with {@link FastTextRenderableSeries } or any series that uses an {@link XYTextDataSeries }
|
|
@@ -31,6 +33,7 @@ export declare class TextDataLabelProvider extends BaseDataLabelProvider {
|
|
|
31
33
|
calculateTextBounds: boolean;
|
|
32
34
|
protected horizontalTextPositionProperty: EHorizontalTextPosition;
|
|
33
35
|
protected verticalTextPositionProperty: EVerticalTextPosition;
|
|
36
|
+
protected isEnabledProperty: boolean;
|
|
34
37
|
constructor(options?: ITextDataLabelProviderOptions);
|
|
35
38
|
/**
|
|
36
39
|
* Gets or sets the horizontal text position for the label
|
|
@@ -44,6 +47,10 @@ export declare class TextDataLabelProvider extends BaseDataLabelProvider {
|
|
|
44
47
|
*/
|
|
45
48
|
get verticalTextPosition(): EVerticalTextPosition;
|
|
46
49
|
set verticalTextPosition(value: EVerticalTextPosition);
|
|
50
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
51
|
+
get isEnabled(): boolean;
|
|
52
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
53
|
+
set isEnabled(value: boolean);
|
|
47
54
|
getPosition(state: DataLabelState, textBounds: TSRTextBounds): Point;
|
|
48
55
|
getColor(state: DataLabelState, text: string): number;
|
|
49
56
|
generateDataLabels(renderContext: WebGlRenderContext2D, renderPassData: RenderPassData): void;
|
|
@@ -42,7 +42,7 @@ var TextDataLabelProvider = /** @class */ (function (_super) {
|
|
|
42
42
|
__extends(TextDataLabelProvider, _super);
|
|
43
43
|
function TextDataLabelProvider(options) {
|
|
44
44
|
var _this = this;
|
|
45
|
-
var _a, _b, _c;
|
|
45
|
+
var _a, _b, _c, _d;
|
|
46
46
|
_this = _super.call(this, __assign(__assign({}, options), { style: __assign({ fontFamily: "Arial", fontSize: 12 }, options === null || options === void 0 ? void 0 : options.style) })) || this;
|
|
47
47
|
_this.type = DataLabelProviderType_1.EDataLabelProviderType.Text;
|
|
48
48
|
/**
|
|
@@ -52,9 +52,11 @@ var TextDataLabelProvider = /** @class */ (function (_super) {
|
|
|
52
52
|
_this.calculateTextBounds = false;
|
|
53
53
|
_this.horizontalTextPositionProperty = TextPosition_1.EHorizontalTextPosition.Right;
|
|
54
54
|
_this.verticalTextPositionProperty = TextPosition_1.EVerticalTextPosition.Above;
|
|
55
|
+
_this.isEnabledProperty = true;
|
|
55
56
|
_this.calculateTextBounds = (_a = options === null || options === void 0 ? void 0 : options.calculateTextBounds) !== null && _a !== void 0 ? _a : _this.calculateTextBounds;
|
|
56
57
|
_this.horizontalTextPositionProperty = (_b = options === null || options === void 0 ? void 0 : options.horizontalTextPosition) !== null && _b !== void 0 ? _b : _this.horizontalTextPosition;
|
|
57
58
|
_this.verticalTextPositionProperty = (_c = options === null || options === void 0 ? void 0 : options.verticalTextPosition) !== null && _c !== void 0 ? _c : _this.verticalTextPosition;
|
|
59
|
+
_this.isEnabledProperty = (_d = options === null || options === void 0 ? void 0 : options.isEnabled) !== null && _d !== void 0 ? _d : _this.isEnabledProperty;
|
|
58
60
|
return _this;
|
|
59
61
|
}
|
|
60
62
|
Object.defineProperty(TextDataLabelProvider.prototype, "horizontalTextPosition", {
|
|
@@ -87,6 +89,21 @@ var TextDataLabelProvider = /** @class */ (function (_super) {
|
|
|
87
89
|
enumerable: false,
|
|
88
90
|
configurable: true
|
|
89
91
|
});
|
|
92
|
+
Object.defineProperty(TextDataLabelProvider.prototype, "isEnabled", {
|
|
93
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
94
|
+
get: function () {
|
|
95
|
+
return this.isEnabledProperty;
|
|
96
|
+
},
|
|
97
|
+
/** Flag to enable/disable dataLabel generation. Default true */
|
|
98
|
+
set: function (value) {
|
|
99
|
+
if (this.isEnabledProperty !== value) {
|
|
100
|
+
this.isEnabledProperty = value;
|
|
101
|
+
this.invalidateParent();
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
enumerable: false,
|
|
105
|
+
configurable: true
|
|
106
|
+
});
|
|
90
107
|
TextDataLabelProvider.prototype.getPosition = function (state, textBounds) {
|
|
91
108
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
92
109
|
var x = state.xCoord();
|
|
@@ -119,7 +136,7 @@ var TextDataLabelProvider = /** @class */ (function (_super) {
|
|
|
119
136
|
var _a, _b, _c, _d, _e;
|
|
120
137
|
// clear any previous labels
|
|
121
138
|
this.dataLabels = [];
|
|
122
|
-
if (!this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
139
|
+
if (!this.isEnabled || !this.style || !this.style.fontFamily || !this.style.fontSize) {
|
|
123
140
|
return;
|
|
124
141
|
}
|
|
125
142
|
var textSeries = this.parentSeries.dataSeries;
|
|
@@ -170,7 +187,8 @@ var TextDataLabelProvider = /** @class */ (function (_super) {
|
|
|
170
187
|
var options = {
|
|
171
188
|
calculateTextBounds: this.calculateTextBounds,
|
|
172
189
|
horizontalTextPosition: this.horizontalTextPosition,
|
|
173
|
-
verticalTextPosition: this.verticalTextPosition
|
|
190
|
+
verticalTextPosition: this.verticalTextPosition,
|
|
191
|
+
isEnabled: this.isEnabled
|
|
174
192
|
};
|
|
175
193
|
Object.assign(json.options, options);
|
|
176
194
|
return json;
|
|
@@ -113,6 +113,7 @@ var TextStyle_1 = require("../../types/TextStyle");
|
|
|
113
113
|
var TextPosition_1 = require("../../types/TextPosition");
|
|
114
114
|
var Globals_1 = require("../../Core/Globals");
|
|
115
115
|
var createMaster3d_1 = require("../../Charting3D/Visuals/createMaster3d");
|
|
116
|
+
var LayoutMangerType_1 = require("../../types/LayoutMangerType");
|
|
116
117
|
exports.sciChartConfig = {};
|
|
117
118
|
/**
|
|
118
119
|
* @summary The {@link SciChartSurface} is the root 2D Chart control in SciChart's High Performance Real-time
|
|
@@ -743,6 +744,9 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
743
744
|
chart.delete();
|
|
744
745
|
}
|
|
745
746
|
this.subChartsProperty = [];
|
|
747
|
+
if (this.layoutManagerProperty.type === LayoutMangerType_1.ELayoutManagerType.Synchronised) {
|
|
748
|
+
this.layoutManagerProperty.verticalGroup.removeSurface(this);
|
|
749
|
+
}
|
|
746
750
|
this.layoutManagerProperty.sciChartSurface = undefined;
|
|
747
751
|
this.layoutManagerProperty = undefined;
|
|
748
752
|
this.renderableSeries.asArray().forEach(function (rs) { return rs.delete(); });
|
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 = "3.2.
|
|
3
|
+
export declare const libraryVersion = "3.2.476";
|
|
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 = "2023-09-
|
|
4
|
+
var buildStamp = "2023-09-28T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "3.2.
|
|
7
|
+
exports.libraryVersion = "3.2.476";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|