scichart 3.2.464 → 3.2.470

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.
@@ -96,7 +96,6 @@ var RolloverModifier = /** @class */ (function (_super) {
96
96
  if (options === null || options === void 0 ? void 0 : options.tooltipLegendTemplate) {
97
97
  if (typeof options.tooltipLegendTemplate === "string") {
98
98
  _this.typeMap.set("tooltipLegendTemplate", options.tooltipLegendTemplate);
99
- // @ts-ignore
100
99
  options.tooltipLegendTemplate = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.tooltipLegendTemplate);
101
100
  }
102
101
  }
@@ -107,8 +106,7 @@ var RolloverModifier = /** @class */ (function (_super) {
107
106
  if (options === null || options === void 0 ? void 0 : options.tooltipDataTemplate) {
108
107
  if (typeof options.tooltipDataTemplate === "string") {
109
108
  _this.typeMap.set("tooltipDataTemplate", options.tooltipDataTemplate);
110
- // @ts-ignore
111
- options.tooltipDataTemplate = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.tooltipDataTemplate.type);
109
+ options.tooltipDataTemplate = (0, classFactory_1.getFunction)(BaseType_1.EBaseType.OptionFunction, options.tooltipDataTemplate);
112
110
  }
113
111
  }
114
112
  _this.tooltipDataTemplateProperty =
@@ -14,6 +14,15 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
17
26
  Object.defineProperty(exports, "__esModule", { value: true });
18
27
  exports.XyTextDataSeries = void 0;
19
28
  var Guard_1 = require("../../Core/Guard");
@@ -194,7 +203,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
194
203
  this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, [x], [y], startIndex);
195
204
  nativeX.insertAt(startIndex, x);
196
205
  nativeY.insertAt(startIndex, y);
197
- this.textValuesProperty.unshift(text);
206
+ this.textValuesProperty.splice(startIndex, 0, text);
198
207
  this.insertMetadata(startIndex, metadata);
199
208
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Insert, startIndex, 1);
200
209
  }
@@ -225,7 +234,7 @@ var XyTextDataSeries = /** @class */ (function (_super) {
225
234
  this.dataDistributionCalculator.onInsert(this.isSorted, this.containsNaN, nativeX, xValues, yValues, startIndex);
226
235
  (0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, xValues, this.getNativeXValues(), startIndex);
227
236
  (0, appendDoubleVectorFromJsArray_1.insertDoubleVectorFromJsArray)(this.webAssemblyContext, yValues, this.getNativeYValues(), startIndex);
228
- (_a = this.textValuesProperty).unshift.apply(_a, textValues);
237
+ (_a = this.textValuesProperty).splice.apply(_a, __spreadArray([startIndex, 0], textValues, false));
229
238
  this.insertMetadataRange(startIndex, metadata);
230
239
  this.notifyDataChanged(IDataSeries_1.EDataChangeType.Insert, startIndex, xValues.length);
231
240
  }
@@ -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 = Math.abs(this.xCoord(this.indexStart) - this.xCoord(this.indexEnd)) / this.pointCount;
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 = 0;
41
- this.pointCount = this.xValues.size();
42
- this.indexEnd = this.pointCount - 1;
43
- this.pointGap = Math.abs(this.xCoord(this.indexStart) - this.xCoord(this.indexEnd)) / this.pointCount;
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;
@@ -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.464";
3
+ export declare const libraryVersion = "3.2.470";
4
4
  export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
@@ -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-07T00:00:00";
4
+ var buildStamp = "2023-09-26T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "3.2.464";
7
+ exports.libraryVersion = "3.2.470";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;