scichart 3.2.0-beta → 3.2.442

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.
Files changed (123) hide show
  1. package/Builder/buildSurface.d.ts +2 -2
  2. package/Builder/chartBuilder.d.ts +4 -4
  3. package/Charting/ChartModifiers/ChartModifierBase.d.ts +5 -5
  4. package/Charting/ChartModifiers/ChartModifierBase.js +2 -3
  5. package/Charting/ChartModifiers/CursorModifier.d.ts +9 -9
  6. package/Charting/ChartModifiers/CursorModifier.js +1 -1
  7. package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +1 -0
  8. package/Charting/ChartModifiers/DataPointSelectionModifier.js +6 -1
  9. package/Charting/ChartModifiers/LegendModifier.d.ts +9 -24
  10. package/Charting/ChartModifiers/LegendModifier.js +9 -21
  11. package/Charting/ChartModifiers/MouseWheelZoomModifier.js +20 -11
  12. package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +5 -5
  13. package/Charting/ChartModifiers/PinchZoomModifier.js +9 -9
  14. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +4 -7
  15. package/Charting/ChartModifiers/RubberBandXyZoomModifier.js +6 -8
  16. package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -8
  17. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
  18. package/Charting/ChartModifiers/XAxisDragModifier.js +3 -3
  19. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +2 -4
  20. package/Charting/ChartModifiers/YAxisDragModifier.js +7 -8
  21. package/Charting/Drawing/BaseCache.js +13 -8
  22. package/Charting/Model/BaseDataSeries.d.ts +2 -2
  23. package/Charting/Model/Filters/HlcFilterBase.d.ts +6 -2
  24. package/Charting/Model/Filters/HlcFilterBase.js +17 -1
  25. package/Charting/Model/Filters/IFilterBase.d.ts +24 -0
  26. package/Charting/Model/Filters/IFilterBase.js +2 -0
  27. package/Charting/Model/Filters/OhlcFilterBase.d.ts +6 -2
  28. package/Charting/Model/Filters/OhlcFilterBase.js +17 -1
  29. package/Charting/Model/Filters/XyFilterBase.d.ts +6 -5
  30. package/Charting/Model/Filters/XyFilterBase.js +17 -1
  31. package/Charting/Model/Filters/XyyFilterBase.d.ts +6 -2
  32. package/Charting/Model/Filters/XyyFilterBase.js +17 -1
  33. package/Charting/Model/Filters/XyzFilterBase.d.ts +6 -2
  34. package/Charting/Model/Filters/XyzFilterBase.js +17 -1
  35. package/Charting/Model/XyyDataSeries.js +15 -16
  36. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +0 -4
  37. package/Charting/Visuals/Annotations/NativeTextAnnotation.js +4 -0
  38. package/Charting/Visuals/Axis/AxisBase2D.d.ts +3 -3
  39. package/Charting/Visuals/Axis/AxisCore.d.ts +2 -2
  40. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +15 -1
  41. package/Charting/Visuals/Legend/ManualLegend.d.ts +57 -0
  42. package/Charting/Visuals/Legend/ManualLegend.js +150 -0
  43. package/Charting/Visuals/Legend/SciChartLegend.js +4 -3
  44. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +62 -3
  45. package/Charting/Visuals/Legend/SciChartLegendBase.js +70 -11
  46. package/Charting/Visuals/PointMarkers/BasePointMarker.js +13 -8
  47. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +1 -1
  48. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +3 -3
  49. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -3
  50. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +6 -10
  51. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +14 -3
  52. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +34 -10
  53. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +3 -8
  54. package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +5 -10
  55. package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +5 -10
  56. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +5 -9
  57. package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +3 -8
  58. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +5 -9
  59. package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.d.ts +6 -1
  60. package/Charting/Visuals/RenderableSeries/HoveredChangedArgs.js +2 -1
  61. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +1 -1
  62. package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.d.ts +6 -1
  63. package/Charting/Visuals/RenderableSeries/SelectionChangedArgs.js +2 -1
  64. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +43 -1
  65. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +6 -1
  66. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +6 -1
  67. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.d.ts +4 -0
  68. package/Charting/Visuals/RubberBandSvgRect/RubberBandSvgRect.js +8 -2
  69. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +6 -0
  70. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +7 -0
  71. package/Charting/Visuals/SciChartSurface.d.ts +0 -5
  72. package/Charting/Visuals/SciChartSurface.js +11 -12
  73. package/Charting/Visuals/SciChartSurfaceBase.d.ts +19 -1
  74. package/Charting/Visuals/SciChartSurfaceBase.js +45 -23
  75. package/Charting/Visuals/createMaster.d.ts +3 -0
  76. package/Charting/Visuals/createMaster.js +54 -23
  77. package/Charting/Visuals/createSingle.js +2 -2
  78. package/Charting/Visuals/licenseManager2D.js +9 -4
  79. package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +1 -1
  80. package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +1 -2
  81. package/Charting3D/ChartModifiers/TooltipModifier3D.d.ts +35 -0
  82. package/Charting3D/ChartModifiers/TooltipModifier3D.js +41 -5
  83. package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.d.ts +1 -1
  84. package/Charting3D/Model/DataSeries/BaseGridDataSeries3D.js +2 -2
  85. package/Charting3D/Model/DataSeries/IPointMetadata3D.d.ts +7 -2
  86. package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +8 -1
  87. package/Charting3D/Visuals/Axis/AxisBase3D.js +0 -2
  88. package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +3 -2
  89. package/Charting3D/Visuals/Axis/NumericAxis3D.js +7 -3
  90. package/Charting3D/Visuals/Primitives/PointLine3DSceneEntity.js +4 -2
  91. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +5 -2
  92. package/Charting3D/Visuals/Primitives/SurfaceMeshSceneEntity.js +2 -1
  93. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +5 -0
  94. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +19 -5
  95. package/Charting3D/Visuals/SciChart3DRenderer.d.ts +0 -1
  96. package/Charting3D/Visuals/SciChart3DRenderer.js +3 -26
  97. package/Charting3D/Visuals/SciChart3DSurface.d.ts +12 -5
  98. package/Charting3D/Visuals/SciChart3DSurface.js +35 -6
  99. package/Charting3D/Visuals/createMaster3d.js +9 -4
  100. package/Core/BuildStamp.d.ts +1 -1
  101. package/Core/BuildStamp.js +2 -2
  102. package/Core/DeletableEntity.d.ts +11 -5
  103. package/Core/DeletableEntity.js +42 -45
  104. package/Core/Mouse/MouseManager.js +6 -0
  105. package/Core/OneTimePerformanceWarning.d.ts +1 -1
  106. package/Core/OneTimePerformanceWarning.js +2 -1
  107. package/_wasm/scichart.browser.js +1 -1
  108. package/_wasm/scichart2d.js +1 -1
  109. package/_wasm/scichart2d.wasm +0 -0
  110. package/_wasm/scichart3d.js +1 -1
  111. package/_wasm/scichart3d.wasm +0 -0
  112. package/constants/performanceWarnings.d.ts +1 -0
  113. package/constants/performanceWarnings.js +2 -1
  114. package/index.d.ts +5 -6
  115. package/index.dev.js +68886 -0
  116. package/index.js +13 -21
  117. package/index.min.js +1 -1
  118. package/package.json +1 -1
  119. package/utils/MemoryUsageHelper.d.ts +55 -8
  120. package/utils/MemoryUsageHelper.js +64 -14
  121. package/utils/colorUtil.d.ts +7 -0
  122. package/utils/colorUtil.js +13 -1
  123. package/utils/parseColor.js +19 -4
@@ -92,7 +92,7 @@ export declare type TLayoutManagerDefinition = {
92
92
  * @param divElementId The Div Element ID where the {@link SciChartSurface} will reside
93
93
  * @param definition the {@link ISciChart2DDefinition}
94
94
  */
95
- export declare const build2DChart: (divElementId: string, definition: ISciChart2DDefinition | string) => Promise<{
95
+ export declare const build2DChart: (divElementId: string | HTMLDivElement, definition: ISciChart2DDefinition | string) => Promise<{
96
96
  wasmContext: TSciChart;
97
97
  sciChartSurface: SciChartSurface;
98
98
  }>;
@@ -102,5 +102,5 @@ export declare const build2DChart: (divElementId: string, definition: ISciChart2
102
102
  * @param divElementId The Div Element ID where the {@link SciChartPieSurface} will reside
103
103
  * @param definition the {@link ISciChartPieDefinition}
104
104
  */
105
- export declare const buildPieChart: (divElementId: string, definition: ISciChartPieDefinition | string) => Promise<SciChartPieSurface>;
105
+ export declare const buildPieChart: (divElementId: string | HTMLDivElement, definition: ISciChartPieDefinition | string) => Promise<SciChartPieSurface>;
106
106
  export declare function configure2DSurface(definition: ISciChart2DDefinition, sciChartSurface: SciChartSurface, wasmContext: TSciChart): void;
@@ -22,7 +22,7 @@ export declare function chartReviver(key: string, value: any): any;
22
22
  * @param definition a {@link TSurfaceDefinition } or a string which will be parsed to it.
23
23
  * @returns
24
24
  */
25
- export declare const buildChart: (divElementId: string, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
25
+ export declare const buildChart: (divElementId: string | HTMLDivElement, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
26
26
  /**
27
27
  * Configures an existing surface using a definition.
28
28
  * This is useful if you need to use the wasmContext in methods or classes you use in your definition
@@ -37,16 +37,16 @@ export declare const configureChart: (sciChartSurface: SciChartSurfaceBase, wasm
37
37
  export declare const ensureRegistrations: () => void;
38
38
  export declare const chartBuilder: {
39
39
  /** @inheritdoc */
40
- buildChart: (divElementId: string, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
40
+ buildChart: (divElementId: string | HTMLDivElement, definition: string | TSurfaceDefinition) => Promise<TWebAssemblyChart | SciChartPieSurface>;
41
41
  /** @inheritdoc */
42
42
  chartReviver: typeof chartReviver;
43
43
  /** @inheritdoc */
44
- build2DChart: (divElementId: string, definition: string | ISciChart2DDefinition) => Promise<{
44
+ build2DChart: (divElementId: string | HTMLDivElement, definition: string | ISciChart2DDefinition) => Promise<{
45
45
  wasmContext: TSciChart;
46
46
  sciChartSurface: SciChartSurface;
47
47
  }>;
48
48
  /** @inheritdoc */
49
- buildPieChart: (divElementId: string, definition: string | ISciChartPieDefinition) => Promise<SciChartPieSurface>;
49
+ buildPieChart: (divElementId: string | HTMLDivElement, definition: string | ISciChartPieDefinition) => Promise<SciChartPieSurface>;
50
50
  /** @inheritdoc */
51
51
  configureChart: (sciChartSurface: SciChartSurfaceBase, wasmContext: TSciChart, definition: string | TSurfaceDefinition) => void;
52
52
  /** @inheritdoc */
@@ -57,7 +57,7 @@ export interface IChartModifierBase extends IThemeable, IDeletable {
57
57
  * Specifies a string ID to group modifiers.
58
58
  * @remarks When one receives a mouse event, all modifiers in the same group receive the event.
59
59
  */
60
- modifierGroup: string;
60
+ modifierGroup: string | undefined;
61
61
  /**
62
62
  * Called when the modifier is attached to a parent {@link SciChartSurfaceBase}
63
63
  */
@@ -158,20 +158,20 @@ export declare abstract class ChartModifierBase<TSurfaceType extends SciChartSur
158
158
  /** @inheritDoc */
159
159
  readonly id: string;
160
160
  /** @inheritDoc */
161
- modifierGroup: string;
161
+ modifierGroup: string | undefined;
162
162
  /** @inheritDoc */
163
163
  invalidateParentCallback: () => void;
164
164
  protected isEnabledProperty: boolean;
165
165
  protected isAttachedProperty: boolean;
166
166
  protected receiveHandledEventsProperty: boolean;
167
- protected mousePoint: Point;
168
- protected previousPoint: Point;
167
+ protected mousePoint: Point | undefined;
168
+ protected previousPoint: Point | undefined;
169
169
  protected executeOnProperty: EExecuteOn;
170
170
  /**
171
171
  * Stores info about active pointerdown events
172
172
  */
173
173
  protected activePointerEvents: Map<number, ModifierMouseArgs>;
174
- private parentSurfaceProperty;
174
+ protected parentSurfaceProperty: TSurfaceType;
175
175
  protected constructor(options?: {
176
176
  id?: string;
177
177
  executeOn?: EExecuteOn;
@@ -228,9 +228,8 @@ var ChartModifierBase = /** @class */ (function (_super) {
228
228
  ChartModifierBase.prototype.updatePointerInfo = function (args) {
229
229
  var _a;
230
230
  // store position of primary pointer
231
- // (PointerEvent.isPrimary seems to not be set on secondary pointer after the primary pointer was released,
232
- // so here we are checking order of entry insertion instead)
233
- if (this.activePointerEvents.keys().next().value === args.pointerId) {
231
+ // activePointerEvents are set on mousedown/mouseup if this is a touch event. In this case only track the first one
232
+ if (this.activePointerEvents.size === 0 || this.activePointerEvents.keys().next().value === args.pointerId) {
234
233
  this.mousePoint = args.mousePoint;
235
234
  }
236
235
  // get previous coordinates of the current pointer
@@ -131,19 +131,19 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
131
131
  /**
132
132
  * Gets or sets the xAxis label text color as an HTML Color code
133
133
  */
134
- xAxisLabelStroke: string;
134
+ xAxisLabelStroke: string | undefined;
135
135
  /**
136
136
  * Gets or sets the xAxis label fill as an HTML Color code.
137
137
  */
138
- xAxisLabelFill: string;
138
+ xAxisLabelFill: string | undefined;
139
139
  /**
140
140
  * Gets or sets the xAxis label text color as an HTML Color code
141
141
  */
142
- yAxisLabelStroke: string;
142
+ yAxisLabelStroke: string | undefined;
143
143
  /**
144
144
  * Gets or sets the yAxis label fill as an HTML Color code.
145
145
  */
146
- yAxisLabelFill: string;
146
+ yAxisLabelFill: string | undefined;
147
147
  /**
148
148
  * Gets or sets the template for the legend
149
149
  */
@@ -160,14 +160,14 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
160
160
  * If this is set greater than the default of zero, the toolip will only show values for points in this radius, rather than all points on the vertical line
161
161
  */
162
162
  hitTestRadius: number;
163
- protected xLineAnnotation: LineAnnotation;
164
- protected yLineAnnotation: LineAnnotation;
165
- protected tooltipAnnotation: CursorTooltipSvgAnnotation;
163
+ protected xLineAnnotation: LineAnnotation | undefined;
164
+ protected yLineAnnotation: LineAnnotation | undefined;
165
+ protected tooltipAnnotation: CursorTooltipSvgAnnotation | undefined;
166
166
  protected mousePosition: EMousePosition;
167
167
  protected crosshairStrokeProperty: string;
168
- protected tooltipDataTemplateProperty?: TCursorTooltipDataTemplate;
168
+ protected tooltipDataTemplateProperty?: TCursorTooltipDataTemplate | undefined;
169
169
  protected includedSeriesMap: Map<IRenderableSeries, boolean>;
170
- protected placementDivIdProperty: string;
170
+ protected placementDivIdProperty: string | undefined;
171
171
  protected showXLineProperty: boolean;
172
172
  protected showYLineProperty: boolean;
173
173
  protected showAxisLabelsProperty: boolean;
@@ -538,7 +538,7 @@ var CursorModifier = /** @class */ (function (_super) {
538
538
  this.yLineAnnotation.isHidden = true;
539
539
  }
540
540
  this.tooltipAnnotation.isHidden = true;
541
- this.tooltipAnnotation.seriesInfos = undefined;
541
+ this.tooltipAnnotation.seriesInfos = [];
542
542
  if (this.placementDivId) {
543
543
  this.tooltipAnnotation.delete();
544
544
  }
@@ -201,6 +201,7 @@ export declare class DataPointSelectionModifier extends ChartModifierBase2D impl
201
201
  type: string;
202
202
  options: Required<Omit<IChartModifierBaseOptions, never>>;
203
203
  };
204
+ delete(): void;
204
205
  /**
205
206
  * Selects all points inside the {@link Rect}, according to the {@link ESelectionMode} passed in
206
207
  * @param rect
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.DataPointSelectionModifier = exports.ESelectionMode = void 0;
19
19
  var classFactory_1 = require("../../Builder/classFactory");
20
+ var Deleter_1 = require("../../Core/Deleter");
20
21
  var EventHandler_1 = require("../../Core/EventHandler");
21
22
  var Rect_1 = require("../../Core/Rect");
22
23
  var BaseType_1 = require("../../types/BaseType");
@@ -131,7 +132,7 @@ var DataPointSelectionModifier = /** @class */ (function (_super) {
131
132
  var _this = this;
132
133
  var _a;
133
134
  _super.prototype.onDetach.call(this);
134
- this.selectionRect = undefined;
135
+ this.selectionRect = (0, Deleter_1.deleteSafe)(this.selectionRect);
135
136
  this.clearSelectedDataPoints();
136
137
  (_a = this.getAllSeries()) === null || _a === void 0 ? void 0 : _a.forEach(function (rs) { return _this.onDetachSeries(rs); });
137
138
  };
@@ -366,6 +367,10 @@ var DataPointSelectionModifier = /** @class */ (function (_super) {
366
367
  Object.assign(json.options, options);
367
368
  return json;
368
369
  };
370
+ DataPointSelectionModifier.prototype.delete = function () {
371
+ this.selectionRect = (0, Deleter_1.deleteSafe)(this.selectionRect);
372
+ _super.prototype.delete.call(this);
373
+ };
369
374
  /**
370
375
  * Selects all points inside the {@link Rect}, according to the {@link ESelectionMode} passed in
371
376
  * @param rect
@@ -3,21 +3,13 @@ import { IIncludeSeries } from "../../Core/IIncludeSeries";
3
3
  import { EChart2DModifierType } from "../../types/ChartModifierType";
4
4
  import { IThemeProvider } from "../Themes/IThemeProvider";
5
5
  import { SciChartLegend } from "../Visuals/Legend/SciChartLegend";
6
- import { ELegendOrientation, ELegendPlacement } from "../Visuals/Legend/SciChartLegendBase";
6
+ import { ILegendOptionsBase } from "../Visuals/Legend/SciChartLegendBase";
7
7
  import { IRenderableSeries } from "../Visuals/RenderableSeries/IRenderableSeries";
8
8
  import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
9
9
  /**
10
10
  * Optional parameters used to configure a {@link LegendModifier} at construct time
11
11
  */
12
- export interface ILegendModifierOptions extends IChartModifierBaseOptions {
13
- /**
14
- * Sets the initial orientation of the legend. See {@link ELegendOrientation} for a list of values
15
- */
16
- orientation?: ELegendOrientation;
17
- /**
18
- * Sets whether the legend is initially visible or not
19
- */
20
- showLegend?: boolean;
12
+ export interface ILegendModifierOptions extends IChartModifierBaseOptions, ILegendOptionsBase {
21
13
  /**
22
14
  * Sets whether the legend has visibility checkboxes in it or not
23
15
  */
@@ -26,24 +18,17 @@ export interface ILegendModifierOptions extends IChartModifierBaseOptions {
26
18
  * Sets whether Series markers are visible or not
27
19
  */
28
20
  showSeriesMarkers?: boolean;
29
- /**
30
- * Sets the initial legend placement in the parent chart surface. See {@link ELegendPlacement} for a list of values
31
- */
32
- placement?: ELegendPlacement;
33
- /**
34
- * Sets the margin for the legend control
35
- */
36
- margin?: number;
37
- /**
38
- * The parent div element Id or reference, the Legend will be appended to this element
39
- */
40
- placementDivId?: string | HTMLDivElement;
41
21
  /**
42
22
  * Callback when a legend item checkbox is checked or unchecked (by default, this corresponds to {@link IRenderableSeries.isVisible}
43
23
  * @param series
44
24
  * @param isChecked
45
25
  */
46
26
  isCheckedChangedCallback?: (series: IRenderableSeries, isChecked: boolean) => void;
27
+ /**
28
+ * Set this only if you need to pass in a custom legend instance.
29
+ * showCheckboxes, showSeriesMarkers and isCheckedChangedCallback will be set on the instance you pass if specified in the options.
30
+ */
31
+ legend?: SciChartLegend;
47
32
  }
48
33
  /**
49
34
  * Type args for the {@link LegendModifier.isCheckedChanged} callback
@@ -76,7 +61,7 @@ export declare class LegendModifier extends ChartModifierBase2D implements IIncl
76
61
  /**
77
62
  * Gets the {@link SciChartLegend} control used to render the legend
78
63
  */
79
- sciChartLegend: SciChartLegend;
64
+ sciChartLegend: SciChartLegend | undefined;
80
65
  /**
81
66
  * An event handler raised when a {@link SciChartLegend} row checkbox is checked or unchecked
82
67
  */
@@ -106,7 +91,7 @@ export declare class LegendModifier extends ChartModifierBase2D implements IIncl
106
91
  /** @inheritDoc */
107
92
  toJSON(): {
108
93
  type: string;
109
- options: Required<Omit<IChartModifierBaseOptions, never>>;
94
+ options: Required<Omit<IChartModifierBaseOptions, never>>; /** @inheritDoc */
110
95
  };
111
96
  /** @inheritDoc */
112
97
  delete(): void;
@@ -16,7 +16,6 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.LegendModifier = void 0;
19
- var Deleter_1 = require("../../Core/Deleter");
20
19
  var EventHandler_1 = require("../../Core/EventHandler");
21
20
  var ChartModifierType_1 = require("../../types/ChartModifierType");
22
21
  var SciChartLegend_1 = require("../Visuals/Legend/SciChartLegend");
@@ -42,7 +41,7 @@ var LegendModifier = /** @class */ (function (_super) {
42
41
  */
43
42
  function LegendModifier(options) {
44
43
  var _this = this;
45
- var _a, _b, _c, _d, _e, _f, _g;
44
+ var _a, _b, _c;
46
45
  _this = _super.call(this, options) || this;
47
46
  _this.type = ChartModifierType_1.EChart2DModifierType.Legend;
48
47
  /**
@@ -51,14 +50,9 @@ var LegendModifier = /** @class */ (function (_super) {
51
50
  _this.isCheckedChanged = new EventHandler_1.EventHandler();
52
51
  _this.includedSeriesMap = new Map();
53
52
  _this.legendItemCheckedChanged = _this.legendItemCheckedChanged.bind(_this);
54
- _this.sciChartLegend = new SciChartLegend_1.SciChartLegend();
55
- _this.sciChartLegend.orientation = (_a = options === null || options === void 0 ? void 0 : options.orientation) !== null && _a !== void 0 ? _a : _this.sciChartLegend.orientation;
56
- _this.sciChartLegend.showLegend = (_b = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _b !== void 0 ? _b : _this.sciChartLegend.showLegend;
57
- _this.sciChartLegend.showCheckboxes = (_c = options === null || options === void 0 ? void 0 : options.showCheckboxes) !== null && _c !== void 0 ? _c : _this.sciChartLegend.showCheckboxes;
58
- _this.sciChartLegend.showSeriesMarkers = (_d = options === null || options === void 0 ? void 0 : options.showSeriesMarkers) !== null && _d !== void 0 ? _d : _this.sciChartLegend.showSeriesMarkers;
59
- _this.sciChartLegend.placement = (_e = options === null || options === void 0 ? void 0 : options.placement) !== null && _e !== void 0 ? _e : _this.sciChartLegend.placement;
60
- _this.sciChartLegend.margin = (_f = options === null || options === void 0 ? void 0 : options.margin) !== null && _f !== void 0 ? _f : _this.sciChartLegend.margin;
61
- _this.sciChartLegend.placementDivId = (_g = options === null || options === void 0 ? void 0 : options.placementDivId) !== null && _g !== void 0 ? _g : _this.sciChartLegend.placementDivId;
53
+ _this.sciChartLegend = (_a = options === null || options === void 0 ? void 0 : options.legend) !== null && _a !== void 0 ? _a : new SciChartLegend_1.SciChartLegend(options);
54
+ _this.sciChartLegend.showCheckboxes = (_b = options === null || options === void 0 ? void 0 : options.showCheckboxes) !== null && _b !== void 0 ? _b : _this.sciChartLegend.showCheckboxes;
55
+ _this.sciChartLegend.showSeriesMarkers = (_c = options === null || options === void 0 ? void 0 : options.showSeriesMarkers) !== null && _c !== void 0 ? _c : _this.sciChartLegend.showSeriesMarkers;
62
56
  _this.sciChartLegend.legendItemCheckedChangedCallback = _this.legendItemCheckedChanged;
63
57
  if (options === null || options === void 0 ? void 0 : options.isCheckedChangedCallback) {
64
58
  _this.isCheckedChanged.subscribe(function (arg) {
@@ -86,26 +80,20 @@ var LegendModifier = /** @class */ (function (_super) {
86
80
  /** @inheritDoc */
87
81
  LegendModifier.prototype.onParentSurfaceRendered = function () {
88
82
  _super.prototype.onParentSurfaceRendered.call(this);
89
- this.sciChartLegend.setSeriesViewRect(this.parentSurface.seriesViewRect);
90
- this.sciChartLegend.update();
91
83
  };
92
84
  /** @inheritDoc */
93
85
  LegendModifier.prototype.onAttach = function () {
94
86
  _super.prototype.onAttach.call(this);
95
- this.sciChartLegend.setParentSurface(this.parentSurface);
96
- this.sciChartLegend.setRootDiv(this.parentSurface.domDivContainer);
87
+ this.sciChartLegend.attachTo(this.parentSurface);
97
88
  this.sciChartLegend.setRenderableSeriesArray(this.getIncludedRenderableSeries());
98
- this.sciChartLegend.setInvalidateParentSurface(this.parentSurface.invalidateElement);
99
89
  };
100
90
  /** @inheritDoc */
101
91
  LegendModifier.prototype.onDetach = function () {
102
- var _a, _b, _c, _d;
92
+ var _a, _b;
103
93
  _super.prototype.onDetach.call(this);
104
- (_a = this.sciChartLegend) === null || _a === void 0 ? void 0 : _a.setRootDiv(undefined);
105
- (_b = this.sciChartLegend) === null || _b === void 0 ? void 0 : _b.setRenderableSeriesArray([]);
106
- (_c = this.sciChartLegend) === null || _c === void 0 ? void 0 : _c.setInvalidateParentSurface(undefined);
107
- (_d = this.sciChartLegend) === null || _d === void 0 ? void 0 : _d.setParentSurface(undefined);
108
- this.sciChartLegend = (0, Deleter_1.deleteSafe)(this.sciChartLegend);
94
+ (_a = this.sciChartLegend) === null || _a === void 0 ? void 0 : _a.setRenderableSeriesArray([]);
95
+ (_b = this.sciChartLegend) === null || _b === void 0 ? void 0 : _b.detach();
96
+ this.sciChartLegend = undefined;
109
97
  };
110
98
  /** @inheritDoc */
111
99
  LegendModifier.prototype.includeSeries = function (series, isIncluded) {
@@ -60,9 +60,18 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
60
60
  */
61
61
  function MouseWheelZoomModifier(options) {
62
62
  var _this = this;
63
- var _a, _b, _c, _d, _e, _f, _g;
63
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
64
64
  _this = _super.call(this, options) || this;
65
65
  _this.type = ChartModifierType_1.EChart2DModifierType.MouseWheelZoom;
66
+ /**
67
+ * Modifies the speed of mousewheel zoom, for example growFactor = 0.001 means each mousewheel 'click'
68
+ * zooms the chart 0.1%
69
+ */
70
+ _this.growFactor = 0.001;
71
+ /**
72
+ * Defines whether the Mouse Wheel zooms or pans. See {@link EActionType} for options
73
+ */
74
+ _this.actionType = EActionType.Zoom;
66
75
  /**
67
76
  * Whether the modifier applies when the mouse is over the area where series are drawn (ie not over the axes). Default true.
68
77
  */
@@ -73,30 +82,30 @@ var MouseWheelZoomModifier = /** @class */ (function (_super) {
73
82
  _this.applyToAxes = true;
74
83
  _this.includedXAxisMap = new Map();
75
84
  _this.includedYAxisMap = new Map();
76
- _this.growFactor = (options === null || options === void 0 ? void 0 : options.growFactor) || 0.001;
77
- _this.actionType = (_a = options === null || options === void 0 ? void 0 : options.actionType) !== null && _a !== void 0 ? _a : EActionType.Zoom;
78
- _this.applyToSeriesViewRect = (_b = options === null || options === void 0 ? void 0 : options.applyToSeriesViewRect) !== null && _b !== void 0 ? _b : _this.applyToSeriesViewRect;
79
- _this.applyToAxes = (_c = options === null || options === void 0 ? void 0 : options.applyToAxes) !== null && _c !== void 0 ? _c : _this.applyToAxes;
85
+ _this.growFactor = (_a = options === null || options === void 0 ? void 0 : options.growFactor) !== null && _a !== void 0 ? _a : _this.growFactor;
86
+ _this.actionType = (_b = options === null || options === void 0 ? void 0 : options.actionType) !== null && _b !== void 0 ? _b : _this.actionType;
87
+ _this.applyToSeriesViewRect = (_c = options === null || options === void 0 ? void 0 : options.applyToSeriesViewRect) !== null && _c !== void 0 ? _c : _this.applyToSeriesViewRect;
88
+ _this.applyToAxes = (_d = options === null || options === void 0 ? void 0 : options.applyToAxes) !== null && _d !== void 0 ? _d : _this.applyToAxes;
80
89
  if (_this.actionType === EActionType.Pan && _this.xyDirection === XyDirection_1.EXyDirection.XyDirection) {
81
90
  console.warn("SciChart MouseWheelZoomModifier: actionType=Pan and xyDirection=Xy conflict. Auto setting XyDirection to X");
82
91
  _this.xyDirection = XyDirection_1.EXyDirection.XDirection;
83
92
  }
84
- if ((options === null || options === void 0 ? void 0 : options.includedXAxisIds) && (options === null || options === void 0 ? void 0 : options.excludedXAxisIds)) {
93
+ if (((_e = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _e === void 0 ? void 0 : _e.length) > 0 && ((_f = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _f === void 0 ? void 0 : _f.length) > 0) {
85
94
  throw new Error("You either should use includedXAxisIds or excludedXAxisIds");
86
95
  }
87
- if ((options === null || options === void 0 ? void 0 : options.includedYAxisIds) && (options === null || options === void 0 ? void 0 : options.excludedYAxisIds)) {
96
+ if (((_g = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _g === void 0 ? void 0 : _g.length) > 0 && ((_h = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _h === void 0 ? void 0 : _h.length) > 0) {
88
97
  throw new Error("You either should use includedYAxisIds or excludedYAxisIds");
89
98
  }
90
- (_d = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _d === void 0 ? void 0 : _d.forEach(function (id) {
99
+ (_j = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _j === void 0 ? void 0 : _j.forEach(function (id) {
91
100
  _this.includedXAxisMap.set(id, true);
92
101
  });
93
- (_e = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _e === void 0 ? void 0 : _e.forEach(function (id) {
102
+ (_k = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _k === void 0 ? void 0 : _k.forEach(function (id) {
94
103
  _this.includedYAxisMap.set(id, true);
95
104
  });
96
- (_f = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _f === void 0 ? void 0 : _f.forEach(function (id) {
105
+ (_l = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _l === void 0 ? void 0 : _l.forEach(function (id) {
97
106
  _this.includedXAxisMap.set(id, false);
98
107
  });
99
- (_g = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _g === void 0 ? void 0 : _g.forEach(function (id) {
108
+ (_m = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _m === void 0 ? void 0 : _m.forEach(function (id) {
100
109
  _this.includedYAxisMap.set(id, false);
101
110
  });
102
111
  return _this;
@@ -29,14 +29,14 @@ export interface IRangeSelectionModifierOptions extends IChartModifierBaseOption
29
29
  export declare class OverviewRangeSelectionModifier extends ChartModifierBase2D {
30
30
  readonly type = EChart2DModifierType.OverviewRangeSelection;
31
31
  onSelectedAreaChanged: (area?: NumberRange) => void;
32
- overviewPositionAnimation: IGenericAnimation;
32
+ overviewPositionAnimation: IGenericAnimation | undefined;
33
33
  animationDuration: number;
34
34
  animate: boolean;
35
- protected pointTo: Point;
35
+ protected pointTo: Point | undefined;
36
36
  protected isClicked: boolean;
37
- protected rangeSelectionAnnotationProperty: OverviewCustomResizableAnnotation;
38
- protected annotationBeforeSelectedAreaProperty: OverviewCustomResizableAnnotation;
39
- protected annotationAfterSelectedAreaProperty: OverviewCustomResizableAnnotation;
37
+ protected rangeSelectionAnnotationProperty: OverviewCustomResizableAnnotation | undefined;
38
+ protected annotationBeforeSelectedAreaProperty: OverviewCustomResizableAnnotation | undefined;
39
+ protected annotationAfterSelectedAreaProperty: OverviewCustomResizableAnnotation | undefined;
40
40
  private selectedAreaProperty;
41
41
  /**
42
42
  * Creates an instance of a OverviewRangeSelectionModifier
@@ -46,7 +46,7 @@ var PinchZoomModifier = /** @class */ (function (_super) {
46
46
  */
47
47
  function PinchZoomModifier(options) {
48
48
  var _this = this;
49
- var _a, _b, _c, _d, _e, _f;
49
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
50
50
  _this = _super.call(this, options) || this;
51
51
  /**
52
52
  * Defines the sensitivity of zooming in horizontal direction
@@ -67,26 +67,26 @@ var PinchZoomModifier = /** @class */ (function (_super) {
67
67
  return new Point_1.Point((firstPoint.x + secondPoint.x) / 2, (firstPoint.y + secondPoint.y) / 2);
68
68
  };
69
69
  _this.type = ChartModifierType_1.EChart2DModifierType.PinchZoom;
70
- if ((options === null || options === void 0 ? void 0 : options.includedXAxisIds) && (options === null || options === void 0 ? void 0 : options.excludedXAxisIds)) {
70
+ if (((_a = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _b === void 0 ? void 0 : _b.length) > 0) {
71
71
  throw new Error("You either should use includedXAxisIds or excludedXAxisIds");
72
72
  }
73
- if ((options === null || options === void 0 ? void 0 : options.includedYAxisIds) && (options === null || options === void 0 ? void 0 : options.excludedYAxisIds)) {
73
+ if (((_c = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((_d = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _d === void 0 ? void 0 : _d.length) > 0) {
74
74
  throw new Error("You either should use includedYAxisIds or excludedYAxisIds");
75
75
  }
76
- (_a = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _a === void 0 ? void 0 : _a.forEach(function (id) {
76
+ (_e = options === null || options === void 0 ? void 0 : options.includedXAxisIds) === null || _e === void 0 ? void 0 : _e.forEach(function (id) {
77
77
  _this.includedXAxisMap.set(id, true);
78
78
  });
79
- (_b = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _b === void 0 ? void 0 : _b.forEach(function (id) {
79
+ (_f = options === null || options === void 0 ? void 0 : options.includedYAxisIds) === null || _f === void 0 ? void 0 : _f.forEach(function (id) {
80
80
  _this.includedYAxisMap.set(id, true);
81
81
  });
82
- (_c = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _c === void 0 ? void 0 : _c.forEach(function (id) {
82
+ (_g = options === null || options === void 0 ? void 0 : options.excludedXAxisIds) === null || _g === void 0 ? void 0 : _g.forEach(function (id) {
83
83
  _this.includedXAxisMap.set(id, false);
84
84
  });
85
- (_d = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _d === void 0 ? void 0 : _d.forEach(function (id) {
85
+ (_h = options === null || options === void 0 ? void 0 : options.excludedYAxisIds) === null || _h === void 0 ? void 0 : _h.forEach(function (id) {
86
86
  _this.includedYAxisMap.set(id, false);
87
87
  });
88
- _this.horizontalGrowFactor = (_e = options === null || options === void 0 ? void 0 : options.horizontalGrowFactor) !== null && _e !== void 0 ? _e : _this.horizontalGrowFactor;
89
- _this.verticalGrowFactor = (_f = options === null || options === void 0 ? void 0 : options.verticalGrowFactor) !== null && _f !== void 0 ? _f : _this.verticalGrowFactor;
88
+ _this.horizontalGrowFactor = (_j = options === null || options === void 0 ? void 0 : options.horizontalGrowFactor) !== null && _j !== void 0 ? _j : _this.horizontalGrowFactor;
89
+ _this.verticalGrowFactor = (_k = options === null || options === void 0 ? void 0 : options.verticalGrowFactor) !== null && _k !== void 0 ? _k : _this.verticalGrowFactor;
90
90
  return _this;
91
91
  }
92
92
  /**
@@ -68,9 +68,9 @@ export declare class RubberBandXyZoomModifier extends ChartModifierBase2D {
68
68
  * Defines the easing function for animation. See {@link TEasingFn} for a range of functions
69
69
  */
70
70
  easingFunction: TEasingFn;
71
- rubberBandRect: RubberBandSvgRect;
72
- protected pointFrom: Point;
73
- protected pointTo: Point;
71
+ rubberBandRect: RubberBandSvgRect | undefined;
72
+ protected pointFrom: Point | undefined;
73
+ protected pointTo: Point | undefined;
74
74
  protected isClicked: boolean;
75
75
  private fillProperty;
76
76
  private strokeProperty;
@@ -84,10 +84,6 @@ export declare class RubberBandXyZoomModifier extends ChartModifierBase2D {
84
84
  * @inheritDoc
85
85
  */
86
86
  applyTheme(themeProvider: IThemeProvider): void;
87
- /**
88
- * @inheritDoc
89
- */
90
- onAttach(): void;
91
87
  /**
92
88
  * @inheritDoc
93
89
  */
@@ -132,6 +128,7 @@ export declare class RubberBandXyZoomModifier extends ChartModifierBase2D {
132
128
  type: string;
133
129
  options: Required<Omit<IChartModifierBaseOptions, never>>;
134
130
  };
131
+ delete(): void;
135
132
  /**
136
133
  * Performs the zoom operation on the parent Surface, using the mouse points from & to, which
137
134
  * define the corners of the rectangle to zoom
@@ -92,19 +92,12 @@ var RubberBandXyZoomModifier = /** @class */ (function (_super) {
92
92
  this.stroke = themeProvider.rubberBandStrokeBrush;
93
93
  }
94
94
  };
95
- /**
96
- * @inheritDoc
97
- */
98
- RubberBandXyZoomModifier.prototype.onAttach = function () {
99
- _super.prototype.onAttach.call(this);
100
- this.rubberBandRect = new RubberBandSvgRect_1.RubberBandSvgRect(this.parentSurface.domSvgContainer, this.fill, this.stroke, this.strokeThickness);
101
- };
102
95
  /**
103
96
  * @inheritDoc
104
97
  */
105
98
  RubberBandXyZoomModifier.prototype.onDetach = function () {
106
99
  _super.prototype.onDetach.call(this);
107
- this.rubberBandRect = undefined;
100
+ this.rubberBandRect = (0, Deleter_1.deleteSafe)(this.rubberBandRect);
108
101
  };
109
102
  /**
110
103
  * @inheritDoc
@@ -225,6 +218,11 @@ var RubberBandXyZoomModifier = /** @class */ (function (_super) {
225
218
  Object.assign(json.options, options);
226
219
  return json;
227
220
  };
221
+ RubberBandXyZoomModifier.prototype.delete = function () {
222
+ this.parentSurfaceProperty = undefined;
223
+ this.rubberBandRect = (0, Deleter_1.deleteSafe)(this.rubberBandRect);
224
+ _super.prototype.delete.call(this);
225
+ };
228
226
  /**
229
227
  * Performs the zoom operation on the parent Surface, using the mouse points from & to, which
230
228
  * define the corners of the rectangle to zoom
@@ -189,9 +189,10 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
189
189
  var prevHovered = __spreadArray([], this.hoveredSeries, true);
190
190
  // Deselect all series
191
191
  this.hoveredSeries = [];
192
+ var nearestHitTestInfo_1;
192
193
  if ((hitTestInfos === null || hitTestInfos === void 0 ? void 0 : hitTestInfos.length) > 0) {
193
194
  // Any series been hit-tested? Get the nearest
194
- var nearestHitTestInfo_1 = hitTestInfos
195
+ nearestHitTestInfo_1 = hitTestInfos
195
196
  .filter(function (ht) { return ht.isHit; })
196
197
  .sort(function (a, b) { return a.getEuclideanDistance() - b.getEuclideanDistance(); })[0];
197
198
  // 1. Set the isHovered flag and add to hovered array for the nearest hitTestInfo
@@ -215,7 +216,7 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
215
216
  // Raise the hoverChanged event if something has changed
216
217
  if (prevHovered.length !== this.hoveredSeries.length ||
217
218
  prevHovered.some(function (s) { return !_this.hoveredSeries.includes(s); })) {
218
- (_a = this.hoverChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new HoveredChangedArgs_1.HoveredChangedArgs(this, this.hoveredSeries, allSeries));
219
+ (_a = this.hoverChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new HoveredChangedArgs_1.HoveredChangedArgs(this, this.hoveredSeries, allSeries, nearestHitTestInfo_1));
219
220
  }
220
221
  }
221
222
  finally {
@@ -249,10 +250,11 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
249
250
  // Deselect all series
250
251
  this.selectedSeries = [];
251
252
  allSeries.forEach(function (rs) { return (rs.isSelected = false); });
253
+ var nearestHitTestInfo = void 0;
252
254
  // Select the first series that has HitTestInfo.isHit = true
253
255
  if ((hitTestInfos === null || hitTestInfos === void 0 ? void 0 : hitTestInfos.length) > 0) {
254
256
  // Any series been hit-tested? Get the nearest
255
- var nearestHitTestInfo = hitTestInfos.sort(function (a, b) { return a.getEuclideanDistance() - b.getEuclideanDistance(); })[0];
257
+ nearestHitTestInfo = hitTestInfos.sort(function (a, b) { return a.getEuclideanDistance() - b.getEuclideanDistance(); })[0];
256
258
  if (nearestHitTestInfo.isHit) {
257
259
  // Setting isSelected true will cause series to raise the selectionChanged event
258
260
  // This then feeds back into this.select
@@ -261,7 +263,7 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
261
263
  }
262
264
  }
263
265
  // Raise the selectionChanged event
264
- (_a = this.selectionChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new SelectionChangedArgs_1.SelectionChangedArgs(this, this.selectedSeries, allSeries));
266
+ (_a = this.selectionChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new SelectionChangedArgs_1.SelectionChangedArgs(this, this.selectedSeries, allSeries, nearestHitTestInfo));
265
267
  }
266
268
  finally {
267
269
  this.preventReentrancy = false;
@@ -295,12 +297,12 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
295
297
  if (arg.isSelected) {
296
298
  this.selectedSeries.push(arg.sourceSeries);
297
299
  // Raise the selectionChanged event
298
- (_a = this.selectionChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new SelectionChangedArgs_1.SelectionChangedArgs(this, this.selectedSeries, this.getAllSeries()));
300
+ (_a = this.selectionChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new SelectionChangedArgs_1.SelectionChangedArgs(this, this.selectedSeries, this.getAllSeries(), undefined));
299
301
  }
300
302
  else {
301
303
  this.selectedSeries = (0, array_1.arrayRemove)(this.selectedSeries, arg.sourceSeries);
302
304
  // Raise the selectionChanged event after series deselected
303
- (_b = this.selectionChanged) === null || _b === void 0 ? void 0 : _b.raiseEvent(new SelectionChangedArgs_1.SelectionChangedArgs(this, this.selectedSeries, this.getAllSeries()));
305
+ (_b = this.selectionChanged) === null || _b === void 0 ? void 0 : _b.raiseEvent(new SelectionChangedArgs_1.SelectionChangedArgs(this, this.selectedSeries, this.getAllSeries(), undefined));
304
306
  }
305
307
  };
306
308
  SeriesSelectionModifier.prototype.updateSeriesHovered = function (arg) {
@@ -312,12 +314,12 @@ var SeriesSelectionModifier = /** @class */ (function (_super) {
312
314
  if (arg.hovered) {
313
315
  this.hoveredSeries.push(arg.sourceSeries);
314
316
  // Raise the selectionChanged event
315
- (_a = this.hoverChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new HoveredChangedArgs_1.HoveredChangedArgs(this, this.hoveredSeries, this.getAllSeries()));
317
+ (_a = this.hoverChanged) === null || _a === void 0 ? void 0 : _a.raiseEvent(new HoveredChangedArgs_1.HoveredChangedArgs(this, this.hoveredSeries, this.getAllSeries(), undefined));
316
318
  }
317
319
  else {
318
320
  this.hoveredSeries = (0, array_1.arrayRemove)(this.hoveredSeries, arg.sourceSeries);
319
321
  // Raise the selectionChanged event after series deselected
320
- (_b = this.hoverChanged) === null || _b === void 0 ? void 0 : _b.raiseEvent(new HoveredChangedArgs_1.HoveredChangedArgs(this, this.hoveredSeries, this.getAllSeries()));
322
+ (_b = this.hoverChanged) === null || _b === void 0 ? void 0 : _b.raiseEvent(new HoveredChangedArgs_1.HoveredChangedArgs(this, this.hoveredSeries, this.getAllSeries(), undefined));
321
323
  }
322
324
  };
323
325
  return SeriesSelectionModifier;
@@ -34,7 +34,7 @@ export declare class XAxisDragModifier extends ChartModifierBase2D {
34
34
  readonly type = EChart2DModifierType.XAxisDrag;
35
35
  dragMode: EDragMode;
36
36
  protected isClickedOverXAxis: boolean;
37
- protected pointFrom: Point;
37
+ protected pointFrom: Point | undefined;
38
38
  protected activeAxes: AxisBase2D[];
39
39
  protected initialVisibleRanges: NumberRange[];
40
40
  protected isVerticalChart: boolean;