scichart 3.0.269 → 3.0.284

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 (91) hide show
  1. package/Builder/chartBuilder.d.ts +7 -7
  2. package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -3
  3. package/Charting/ChartModifiers/CursorModifier.d.ts +27 -12
  4. package/Charting/ChartModifiers/CursorModifier.js +87 -12
  5. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +15 -12
  6. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +15 -12
  7. package/Charting/ChartModifiers/constants.d.ts +4 -1
  8. package/Charting/ChartModifiers/constants.js +3 -0
  9. package/Charting/LayoutManager/BaseAxisLayoutStrategy.d.ts +1 -0
  10. package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +1 -0
  11. package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.d.ts +1 -1
  12. package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +4 -1
  13. package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +4 -1
  14. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.d.ts +1 -0
  15. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -1
  16. package/Charting/LayoutManager/CentralAxesLayoutManager.d.ts +1 -1
  17. package/Charting/LayoutManager/LayoutManager.d.ts +14 -4
  18. package/Charting/LayoutManager/LayoutManager.js +133 -35
  19. package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +4 -1
  20. package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +4 -1
  21. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.d.ts +1 -0
  22. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -3
  23. package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +4 -1
  24. package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +4 -1
  25. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.d.ts +1 -0
  26. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -1
  27. package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +4 -1
  28. package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +4 -1
  29. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.d.ts +1 -0
  30. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -1
  31. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
  32. package/Charting/Visuals/Annotations/AnnotationBase.js +13 -9
  33. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -1
  34. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +7 -7
  35. package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
  36. package/Charting/Visuals/Annotations/BoxAnnotation.js +21 -21
  37. package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
  38. package/Charting/Visuals/Annotations/LineAnnotation.js +4 -4
  39. package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +1 -1
  40. package/Charting/Visuals/Annotations/NativeTextAnnotation.js +21 -21
  41. package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
  42. package/Charting/Visuals/Axis/AxisBase2D.d.ts +1 -6
  43. package/Charting/Visuals/Axis/AxisBase2D.js +13 -19
  44. package/Charting/Visuals/Axis/AxisCore.js +4 -1
  45. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +2 -2
  46. package/Charting/Visuals/I2DSurfaceOptions.d.ts +1 -1
  47. package/Charting/Visuals/PointMarkers/SpritePointMarker.d.ts +1 -1
  48. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +1 -1
  49. package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -1
  50. package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +1 -1
  51. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +1 -1
  52. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +14 -0
  53. package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +1 -1
  54. package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +1 -1
  55. package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +1 -1
  56. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +1 -1
  57. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -1
  58. package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +1 -1
  59. package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +1 -1
  60. package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +1 -1
  61. package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +1 -1
  62. package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.d.ts +1 -1
  63. package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +1 -1
  64. package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.d.ts +1 -1
  65. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +1 -1
  66. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +1 -1
  67. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +1 -1
  68. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +1 -1
  69. package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +1 -1
  70. package/Charting/Visuals/SciChartSurface.d.ts +8 -3
  71. package/Charting/Visuals/SciChartSurface.js +10 -4
  72. package/Charting/Visuals/licenseManager2D.js +4 -2
  73. package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +1 -1
  74. package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -1
  75. package/Core/BuildStamp.d.ts +1 -1
  76. package/Core/BuildStamp.js +2 -2
  77. package/Core/Telemetry.js +4 -1
  78. package/README.md +61 -13
  79. package/_wasm/scichart.browser.js +1 -1
  80. package/_wasm/scichart2d.js +16 -16
  81. package/_wasm/scichart2d.wasm +0 -0
  82. package/_wasm/scichart3d.js +16 -16
  83. package/_wasm/scichart3d.wasm +0 -0
  84. package/index.d.ts +958 -0
  85. package/index.js +1298 -2
  86. package/index.min.js +1 -0
  87. package/package.json +1 -1
  88. package/types/AxisAlignment.d.ts +1 -0
  89. package/types/AxisAlignment.js +5 -1
  90. package/utils/array.d.ts +9 -0
  91. package/utils/array.js +19 -1
@@ -50,19 +50,19 @@ export declare const chartBuilder: {
50
50
  /** @inheritdoc */
51
51
  configureChart: (sciChartSurface: SciChartSurfaceBase, wasmContext: TSciChart, definition: string | TSurfaceDefinition) => void;
52
52
  /** @inheritdoc */
53
- buildSeries: (wasmContext: TSciChart, definition: import("./buildSeries").TSeriesDefinition | import("./buildSeries").TSeriesDefinition[], sharedData?: import("./buildDataSeries").TSharedDataDefinition) => import("../Charting/Visuals/RenderableSeries/IRenderableSeries").IRenderableSeries[];
53
+ buildSeries: (wasmContext: TSciChart, definition: import("./buildSeries").TSeriesDefinition | import("./buildSeries").TSeriesDefinition[], sharedData?: import("./buildDataSeries").TSharedDataDefinition) => import("..").IRenderableSeries[];
54
54
  /** @inheritdoc */
55
- buildDataSeries: (wasmContext: TSciChart, seriesDefinition: import("./buildSeries").TSeriesDefinition, sharedData?: import("./buildDataSeries").TSharedDataDefinition) => import("../Charting/Model/IDataSeries").IDataSeries;
55
+ buildDataSeries: (wasmContext: TSciChart, seriesDefinition: import("./buildSeries").TSeriesDefinition, sharedData?: import("./buildDataSeries").TSharedDataDefinition) => import("..").IDataSeries;
56
56
  /** @inheritdoc */
57
- buildModifiers: (definition: import("./buildModifiers").TModifierDefinition | import("./buildModifiers").TModifierDefinition[]) => import("../Charting/ChartModifiers/ChartModifierBase2D").ChartModifierBase2D[];
57
+ buildModifiers: (definition: import("./buildModifiers").TModifierDefinition | import("./buildModifiers").TModifierDefinition[]) => import("..").ChartModifierBase2D[];
58
58
  /** @inheritdoc */
59
- buildAxes: (wasmContext: TSciChart, definition: import("./buildAxis").TAxisDefinition | import("./buildAxis").TAxisDefinition[]) => import("../Charting/Visuals/Axis/AxisBase2D").AxisBase2D[];
59
+ buildAxes: (wasmContext: TSciChart, definition: import("./buildAxis").TAxisDefinition | import("./buildAxis").TAxisDefinition[]) => import("..").AxisBase2D[];
60
60
  /** @inheritdoc */
61
61
  buildAnnotations: (definition: import("./buildAnnotations").TAnnotationDefinition | import("./buildAnnotations").TAnnotationDefinition[]) => any[];
62
62
  /** @inheritdoc */
63
- registerType: <T extends object>(baseType: import("../types/BaseType").EBaseType, type: string, constructor: (options?: any) => T, overWrite?: boolean) => void;
63
+ registerType: <T extends object>(baseType: import("..").EBaseType, type: string, constructor: (options?: any) => T, overWrite?: boolean) => void;
64
64
  /** @inheritdoc */
65
- registerWasmType: <T_1 extends object>(baseType: import("../types/BaseType").EBaseType, type: string, constructor: (wasmContext: TSciChart | TSciChart3D, options?: any) => T_1, overWrite?: boolean) => void;
65
+ registerWasmType: <T_1 extends object>(baseType: import("..").EBaseType, type: string, constructor: (wasmContext: TSciChart | TSciChart3D, options?: any) => T_1, overWrite?: boolean) => void;
66
66
  /** @inheritdoc */
67
- registerFunction: <T_2 extends Function>(baseType: import("../types/BaseType").EBaseType, type: string, constructor: T_2, overWrite?: boolean) => void;
67
+ registerFunction: <T_2 extends Function>(baseType: import("..").EBaseType, type: string, constructor: T_2, overWrite?: boolean) => void;
68
68
  };
@@ -119,11 +119,10 @@ var ChartModifierBase2D = /** @class */ (function (_super) {
119
119
  */
120
120
  ChartModifierBase2D.prototype.growBy = function (mousePoint, axis, fraction) {
121
121
  var isHorizontalAxis = axis.isHorizontalAxis, isAxisFlipped = axis.isAxisFlipped, viewRect = axis.viewRect, flippedCoordinates = axis.flippedCoordinates;
122
+ var seriesViewRect = this.parentSurface.seriesViewRect;
122
123
  var size = isHorizontalAxis ? viewRect.width : viewRect.height;
123
124
  if (axis.isStackedAxis && this.parentSurface) {
124
- size = isHorizontalAxis
125
- ? this.parentSurface.seriesViewRect.width
126
- : this.parentSurface.seriesViewRect.height;
125
+ size = isHorizontalAxis ? seriesViewRect.width : seriesViewRect.height;
127
126
  }
128
127
  var coord = isHorizontalAxis ? mousePoint.x : mousePoint.y;
129
128
  // Compute relative fractions to expand or contract the axis VisibleRange by
@@ -120,10 +120,6 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
120
120
  * Gets or sets whether we should display the tooltip. Default is false
121
121
  */
122
122
  showTooltip: boolean;
123
- /**
124
- * Gets or sets whether we should display axis labels. Default is true
125
- */
126
- showAxisLabels: boolean;
127
123
  /**
128
124
  * Gets or sets both axis label text color as an HTML Color code
129
125
  */
@@ -160,14 +156,6 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
160
156
  * Gets or sets the legend Y offset
161
157
  */
162
158
  tooltipLegendOffsetY: number;
163
- /**
164
- * Gets or sets whether we should display the X Line. Default is true
165
- */
166
- showXLine: boolean;
167
- /**
168
- * Gets or sets whether we should display the Y Line. Default is true
169
- */
170
- showYLine: boolean;
171
159
  /**
172
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
173
161
  */
@@ -180,6 +168,9 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
180
168
  protected tooltipDataTemplateProperty?: TCursorTooltipDataTemplate;
181
169
  protected includedSeriesMap: Map<IRenderableSeries, boolean>;
182
170
  protected placementDivIdProperty: string;
171
+ protected showXLineProperty: boolean;
172
+ protected showYLineProperty: boolean;
173
+ protected showAxisLabelsProperty: boolean;
183
174
  /**
184
175
  * Creates an instance of the CursorModifier
185
176
  *
@@ -232,6 +223,30 @@ export declare class CursorModifier extends ChartModifierBase2D implements IIncl
232
223
  * Gets or sets the crosshair line Stroke color as an HTML Color code
233
224
  */
234
225
  set crosshairStroke(value: string);
226
+ /**
227
+ * Gets or sets whether we should display the X Line. Default is true
228
+ */
229
+ get showXLine(): boolean;
230
+ /**
231
+ * Gets or sets whether we should display the X Line. Default is true
232
+ */
233
+ set showXLine(value: boolean);
234
+ /**
235
+ * Gets or sets whether we should display the Y Line. Default is true
236
+ */
237
+ get showYLine(): boolean;
238
+ /**
239
+ * Gets or sets whether we should display the Y Line. Default is true
240
+ */
241
+ set showYLine(value: boolean);
242
+ /**
243
+ * Gets or sets whether we should display the Axis Labels. Default is true
244
+ */
245
+ get showAxisLabels(): boolean;
246
+ /**
247
+ * Gets or sets whether we should display the Axis Labels. Default is true
248
+ */
249
+ set showAxisLabels(value: boolean);
235
250
  /**
236
251
  * Gets or sets the parent div element reference or id for the Tooltip
237
252
  */
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.adjustTooltipPosition = exports.calcTooltipSize = exports.CursorModifier = void 0;
19
19
  var classFactory_1 = require("../../Builder/classFactory");
20
+ var Deleter_1 = require("../../Core/Deleter");
20
21
  var BaseType_1 = require("../../types/BaseType");
21
22
  var ChartModifierType_1 = require("../../types/ChartModifierType");
22
23
  var MousePosition_1 = require("../../types/MousePosition");
@@ -86,10 +87,6 @@ var CursorModifier = /** @class */ (function (_super) {
86
87
  * Gets or sets whether we should display the tooltip. Default is false
87
88
  */
88
89
  _this.showTooltip = false;
89
- /**
90
- * Gets or sets whether we should display axis labels. Default is true
91
- */
92
- _this.showAxisLabels = true;
93
90
  /**
94
91
  * Gets or sets both axis label text color as an HTML Color code
95
92
  */
@@ -122,14 +119,6 @@ var CursorModifier = /** @class */ (function (_super) {
122
119
  * Gets or sets the legend Y offset
123
120
  */
124
121
  _this.tooltipLegendOffsetY = 0;
125
- /**
126
- * Gets or sets whether we should display the X Line. Default is true
127
- */
128
- _this.showXLine = true;
129
- /**
130
- * Gets or sets whether we should display the Y Line. Default is true
131
- */
132
- _this.showYLine = true;
133
122
  /**
134
123
  * 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
135
124
  */
@@ -137,6 +126,9 @@ var CursorModifier = /** @class */ (function (_super) {
137
126
  _this.mousePosition = MousePosition_1.EMousePosition.OutOfCanvas;
138
127
  _this.crosshairStrokeProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.cursorLineBrush;
139
128
  _this.includedSeriesMap = new Map();
129
+ _this.showXLineProperty = true;
130
+ _this.showYLineProperty = true;
131
+ _this.showAxisLabelsProperty = true;
140
132
  if (options === null || options === void 0 ? void 0 : options.tooltipSvgTemplate) {
141
133
  if (typeof options.tooltipSvgTemplate === "string") {
142
134
  _this.typeMap.set("tooltipSvgTemplate", options.tooltipSvgTemplate);
@@ -312,6 +304,89 @@ var CursorModifier = /** @class */ (function (_super) {
312
304
  enumerable: false,
313
305
  configurable: true
314
306
  });
307
+ Object.defineProperty(CursorModifier.prototype, "showXLine", {
308
+ /**
309
+ * Gets or sets whether we should display the X Line. Default is true
310
+ */
311
+ get: function () {
312
+ return this.showXLineProperty;
313
+ },
314
+ /**
315
+ * Gets or sets whether we should display the X Line. Default is true
316
+ */
317
+ set: function (value) {
318
+ if (this.showXLineProperty !== value) {
319
+ this.showXLineProperty = value;
320
+ if (this.showXLineProperty && !this.xLineAnnotation) {
321
+ var xAxisLabelFill = this.xAxisLabelFill ? this.xAxisLabelFill : this.axisLabelFill;
322
+ var xAxisLabelStroke = this.xAxisLabelStroke ? this.xAxisLabelStroke : this.axisLabelStroke;
323
+ this.xLineAnnotation = this.newLineAnnotation(xAxisLabelFill, xAxisLabelStroke);
324
+ this.parentSurface.modifierAnnotations.add(this.xLineAnnotation);
325
+ }
326
+ else if (!this.showXLineProperty && this.xLineAnnotation) {
327
+ this.parentSurface.modifierAnnotations.remove(this.xLineAnnotation);
328
+ this.xLineAnnotation = (0, Deleter_1.deleteSafe)(this.xLineAnnotation);
329
+ }
330
+ this.notifyPropertyChanged(constants_1.PROPERTY.X_LINE);
331
+ }
332
+ },
333
+ enumerable: false,
334
+ configurable: true
335
+ });
336
+ Object.defineProperty(CursorModifier.prototype, "showYLine", {
337
+ /**
338
+ * Gets or sets whether we should display the Y Line. Default is true
339
+ */
340
+ get: function () {
341
+ return this.showYLineProperty;
342
+ },
343
+ /**
344
+ * Gets or sets whether we should display the Y Line. Default is true
345
+ */
346
+ set: function (value) {
347
+ if (this.showYLineProperty !== value) {
348
+ this.showYLineProperty = value;
349
+ if (this.showYLineProperty && !this.yLineAnnotation) {
350
+ var yAxisLabelFill = this.yAxisLabelFill ? this.yAxisLabelFill : this.axisLabelFill;
351
+ var yAxisLabelStroke = this.yAxisLabelStroke ? this.yAxisLabelStroke : this.axisLabelStroke;
352
+ this.yLineAnnotation = this.newLineAnnotation(yAxisLabelFill, yAxisLabelStroke);
353
+ this.parentSurface.modifierAnnotations.add(this.yLineAnnotation);
354
+ }
355
+ else if (!this.showYLineProperty && this.yLineAnnotation) {
356
+ this.parentSurface.modifierAnnotations.remove(this.yLineAnnotation);
357
+ this.yLineAnnotation = (0, Deleter_1.deleteSafe)(this.yLineAnnotation);
358
+ }
359
+ this.notifyPropertyChanged(constants_1.PROPERTY.Y_LINE);
360
+ }
361
+ },
362
+ enumerable: false,
363
+ configurable: true
364
+ });
365
+ Object.defineProperty(CursorModifier.prototype, "showAxisLabels", {
366
+ /**
367
+ * Gets or sets whether we should display the Axis Labels. Default is true
368
+ */
369
+ get: function () {
370
+ return this.showAxisLabelsProperty;
371
+ },
372
+ /**
373
+ * Gets or sets whether we should display the Axis Labels. Default is true
374
+ */
375
+ set: function (value) {
376
+ if (this.showAxisLabelsProperty !== value) {
377
+ this.showAxisLabelsProperty = value;
378
+ if (this.xLineAnnotation) {
379
+ this.xLineAnnotation.showLabel = this.showAxisLabelsProperty;
380
+ }
381
+ if (this.yLineAnnotation) {
382
+ this.yLineAnnotation.showLabel = this.showAxisLabelsProperty;
383
+ }
384
+ this.notifyPropertyChanged(constants_1.PROPERTY.AXIS_LABELS);
385
+ }
386
+ },
387
+ enumerable: false,
388
+ configurable: true
389
+ });
315
390
  Object.defineProperty(CursorModifier.prototype, "placementDivId", {
316
391
  /**
317
392
  * Gets or sets the parent div element reference or id for the Tooltip
@@ -1,3 +1,6 @@
1
+ import { NumberRange } from "../../Core/NumberRange";
2
+ import { Point } from "../../Core/Point";
3
+ import { ECursorStyle } from "../../types/CursorStyle";
1
4
  import { EDragMode } from "../../types/DragMode";
2
5
  import { AxisBase2D } from "../Visuals/Axis/AxisBase2D";
3
6
  import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
@@ -31,12 +34,12 @@ export declare class XAxisDragModifier extends ChartModifierBase2D {
31
34
  readonly type = EChart2DModifierType.XAxisDrag;
32
35
  dragMode: EDragMode;
33
36
  protected isClickedOverXAxis: boolean;
34
- private pointFrom;
35
- private activeAxes;
36
- private initialVisibleRanges;
37
- private isVerticalChart;
38
- private cursorStyle;
39
- private includedSeriesMapProperty;
37
+ protected pointFrom: Point;
38
+ protected activeAxes: AxisBase2D[];
39
+ protected initialVisibleRanges: NumberRange[];
40
+ protected isVerticalChart: boolean;
41
+ protected cursorStyle: ECursorStyle;
42
+ protected includedSeriesMapProperty: Map<string, boolean>;
40
43
  /**
41
44
  * Creates an instance of a XAxisDragModifier
42
45
  * @param options optional parameters to pass to the XAxisDragModifier to configure it upon construction
@@ -71,10 +74,10 @@ export declare class XAxisDragModifier extends ChartModifierBase2D {
71
74
  type: string;
72
75
  options: Required<Omit<IChartModifierBaseOptions, never>>;
73
76
  };
74
- private updateCursor;
75
- private doPanning;
76
- private doScaling;
77
- private getHorizontalXAxes;
78
- private getVerticalXAxes;
79
- private startDragging;
77
+ protected updateCursor(mousePoint: Point): void;
78
+ protected doPanning(mousePoint: Point): void;
79
+ protected doScaling(pointTo: Point): void;
80
+ protected getHorizontalXAxes(): AxisBase2D[];
81
+ protected getVerticalXAxes(): AxisBase2D[];
82
+ protected startDragging(axes: AxisBase2D[], args: ModifierMouseArgs): void;
80
83
  }
@@ -1,5 +1,8 @@
1
1
  import { IIncludeAxis } from "../../Core/IIncludeAxis";
2
+ import { NumberRange } from "../../Core/NumberRange";
3
+ import { Point } from "../../Core/Point";
2
4
  import { EChart2DModifierType } from "../../types/ChartModifierType";
5
+ import { ECursorStyle } from "../../types/CursorStyle";
3
6
  import { EDragMode } from "../../types/DragMode";
4
7
  import { AxisBase2D } from "../Visuals/Axis/AxisBase2D";
5
8
  import { ChartModifierBase2D, IChartModifierBaseOptions } from "./ChartModifierBase2D";
@@ -32,12 +35,12 @@ export declare class YAxisDragModifier extends ChartModifierBase2D implements II
32
35
  readonly type = EChart2DModifierType.YAxisDrag;
33
36
  dragMode: EDragMode;
34
37
  protected isClickedOverYAxis: boolean;
35
- private pointFrom;
36
- private activeAxes;
37
- private initialVisibleRanges;
38
- private isVerticalChart;
39
- private cursorStyle;
40
- private includedSeriesMapProperty;
38
+ protected pointFrom: Point;
39
+ protected activeAxes: AxisBase2D[];
40
+ protected initialVisibleRanges: NumberRange[];
41
+ protected isVerticalChart: boolean;
42
+ protected cursorStyle: ECursorStyle;
43
+ protected includedSeriesMapProperty: Map<string, boolean>;
41
44
  /**
42
45
  * Creates an instance of a XAxisDragModifier
43
46
  * @param options optional parameters to pass to the XAxisDragModifier to configure it upon construction
@@ -72,10 +75,10 @@ export declare class YAxisDragModifier extends ChartModifierBase2D implements II
72
75
  type: string;
73
76
  options: Required<Omit<IChartModifierBaseOptions, never>>;
74
77
  };
75
- private updateCursor;
76
- private doPanning;
77
- private doScaling;
78
- private getVerticalYAxes;
79
- private getHorizontalYAxes;
80
- private startDragging;
78
+ protected updateCursor(mousePoint: Point): void;
79
+ protected doPanning(mousePoint: Point): void;
80
+ protected doScaling(pointTo: Point): void;
81
+ protected getVerticalYAxes(): AxisBase2D[];
82
+ protected getHorizontalYAxes(): AxisBase2D[];
83
+ protected startDragging(axes: AxisBase2D[], args: ModifierMouseArgs): void;
81
84
  }
@@ -21,5 +21,8 @@ export declare enum PROPERTY {
21
21
  TOOLTIP_DATA_TEMPLATE = "TOOLTIP_DATA_TEMPLATE",
22
22
  X_AXIS_ID = "X_AXIS_ID",
23
23
  Y_AXIS_ID = "Y_AXIS_ID",
24
- PLACEMENT_DIV_ID = "PLACEMENT_DIV_ID"
24
+ PLACEMENT_DIV_ID = "PLACEMENT_DIV_ID",
25
+ X_LINE = "X_LINE",
26
+ Y_LINE = "Y_LINE",
27
+ AXIS_LABELS = "AXIS_LABELS"
25
28
  }
@@ -26,4 +26,7 @@ var PROPERTY;
26
26
  PROPERTY["X_AXIS_ID"] = "X_AXIS_ID";
27
27
  PROPERTY["Y_AXIS_ID"] = "Y_AXIS_ID";
28
28
  PROPERTY["PLACEMENT_DIV_ID"] = "PLACEMENT_DIV_ID";
29
+ PROPERTY["X_LINE"] = "X_LINE";
30
+ PROPERTY["Y_LINE"] = "Y_LINE";
31
+ PROPERTY["AXIS_LABELS"] = "AXIS_LABELS";
29
32
  })(PROPERTY = exports.PROPERTY || (exports.PROPERTY = {}));
@@ -8,6 +8,7 @@ import { ChartLayoutState } from "./ChartLayoutState";
8
8
  */
9
9
  export declare abstract class BaseAxisLayoutStrategy {
10
10
  abstract readonly type: ELayoutStrategyType;
11
+ readonly isStacked: boolean;
11
12
  /**
12
13
  * The {@link LayoutAxisPartsStrategy} for current Axis Layout Strategy
13
14
  */
@@ -8,6 +8,7 @@ var AxisLayoutHelpers_1 = require("./AxisLayoutHelpers");
8
8
  */
9
9
  var BaseAxisLayoutStrategy = /** @class */ (function () {
10
10
  function BaseAxisLayoutStrategy() {
11
+ this.isStacked = false;
11
12
  }
12
13
  BaseAxisLayoutStrategy.prototype.toJSON = function () {
13
14
  return { type: this.type };
@@ -68,7 +68,7 @@ export declare abstract class BaseCenteredAxisLayoutStrategy extends BaseAxisLay
68
68
  */
69
69
  constructor(options?: IInnerAxisLayoutStrategyOptions);
70
70
  toJSON(): {
71
- type: import("../../types/LayoutStrategyType").ELayoutStrategyType;
71
+ type: import("../..").ELayoutStrategyType;
72
72
  options: Required<Omit<IInnerAxisLayoutStrategyOptions, never>>;
73
73
  };
74
74
  /**
@@ -42,7 +42,10 @@ var BottomAlignedInnerAxisLayoutStrategy = /** @class */ (function (_super) {
42
42
  };
43
43
  BottomAlignedInnerAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
44
44
  // Set axisLength to default value which is seriesViewRect.width
45
- axes.forEach(function (axis) { return (axis.axisLength = undefined); });
45
+ axes.forEach(function (axis) {
46
+ axis.axisLength = undefined;
47
+ axis.offset = 0;
48
+ });
46
49
  if (axes.length === 0) {
47
50
  return;
48
51
  }
@@ -44,7 +44,10 @@ var BottomAlignedOuterAxisLayoutStrategy = /** @class */ (function (_super) {
44
44
  };
45
45
  BottomAlignedOuterAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
46
46
  // Set axisLength to default value which is seriesViewRect.width
47
- axes.forEach(function (axis) { return (axis.axisLength = undefined); });
47
+ axes.forEach(function (axis) {
48
+ axis.axisLength = undefined;
49
+ axis.offset = 0;
50
+ });
48
51
  this.layoutAxesFromTopToBottom(left, top, right, bottom, axes);
49
52
  };
50
53
  return BottomAlignedOuterAxisLayoutStrategy;
@@ -8,6 +8,7 @@ import { ChartLayoutState } from "./ChartLayoutState";
8
8
  */
9
9
  export declare class BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy extends BaseAxisLayoutStrategy {
10
10
  readonly type = ELayoutStrategyType.BottomStacked;
11
+ readonly isStacked: boolean;
11
12
  constructor();
12
13
  measureAxes(sciChartSurface: SciChartSurface, chartLayoutState: ChartLayoutState, axes: AxisBase2D[]): void;
13
14
  layoutAxes(left: number, top: number, right: number, bottom: number, axes: AxisBase2D[]): void;
@@ -28,6 +28,7 @@ var BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy = /** @class */ (fun
28
28
  function BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy() {
29
29
  var _this = _super.call(this) || this;
30
30
  _this.type = LayoutStrategyType_1.ELayoutStrategyType.BottomStacked;
31
+ _this.isStacked = true;
31
32
  _this.layoutAxisPartsStrategy = AxisLayoutHelpers_1.layoutAxisPartsBottomStrategy;
32
33
  return _this;
33
34
  }
@@ -77,7 +78,6 @@ var BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy = /** @class */ (fun
77
78
  leftOffset += additionalLeftSize;
78
79
  axis.offset = leftOffset - left;
79
80
  axis.axisLength = rightOffset - leftOffset;
80
- axis.isStackedAxis = true;
81
81
  axis.isPrimaryAxis = true;
82
82
  axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
83
83
  leftOffset = rightOffset + additionalRightSize;
@@ -65,7 +65,7 @@ export declare class CentralAxesLayoutManager extends LayoutManager {
65
65
  * @remarks The axisPosition obeys {@link coordinateMode} which defines whether it is a pixel, data-value or relative coordinate
66
66
  */
67
67
  set verticalAxisPosition(value: number);
68
- toJSON(): import("../../Builder/buildSurface").TLayoutManagerDefinition;
68
+ toJSON(): import("../..").TLayoutManagerDefinition;
69
69
  /**
70
70
  * @summary Notifies subscribers that a property has changed and the chart requires redrawing
71
71
  * @description SciChart provides fully reactive components, changing any property or changing data will cause the {@link SciChartSurface} to
@@ -1,6 +1,7 @@
1
1
  import { TLayoutManagerDefinition } from "../../Builder/buildSurface";
2
2
  import { Rect } from "../../Core/Rect";
3
3
  import { Thickness } from "../../Core/Thickness";
4
+ import { EAxisAlignment } from "../../types/AxisAlignment";
4
5
  import { ELayoutManagerType } from "../../types/LayoutMangerType";
5
6
  import { ELayoutStrategyType } from "../../types/LayoutStrategyType";
6
7
  import { Size } from "../../types/Size";
@@ -41,19 +42,19 @@ export declare class LayoutManager {
41
42
  /**
42
43
  * Layout strategy for layout of left aligned axis outside
43
44
  */
44
- leftOuterAxesLayoutStrategy: BaseAxisLayoutStrategy;
45
+ protected leftOuterAxesLayoutStrategyProperty: BaseAxisLayoutStrategy;
45
46
  /**
46
47
  * Layout strategy for layout of right aligned axis outside
47
48
  */
48
- rightOuterAxesLayoutStrategy: BaseAxisLayoutStrategy;
49
+ protected rightOuterAxesLayoutStrategyProperty: BaseAxisLayoutStrategy;
49
50
  /**
50
51
  * Layout strategy for layout of top aligned axis outside
51
52
  */
52
- topOuterAxesLayoutStrategy: BaseAxisLayoutStrategy;
53
+ protected topOuterAxesLayoutStrategyProperty: BaseAxisLayoutStrategy;
53
54
  /**
54
55
  * Layout strategy for layout of bottom aligned axis outside
55
56
  */
56
- bottomOuterAxesLayoutStrategy: BaseAxisLayoutStrategy;
57
+ protected bottomOuterAxesLayoutStrategyProperty: BaseAxisLayoutStrategy;
57
58
  /**
58
59
  * Layout strategy for layout of left aligned inner axis
59
60
  */
@@ -74,6 +75,15 @@ export declare class LayoutManager {
74
75
  protected chartLayoutState: ChartLayoutState;
75
76
  protected axesGroupedByLayoutStrategy: LayoutStrategyAxes;
76
77
  constructor(options?: ILayoutManagerOptions);
78
+ get leftOuterAxesLayoutStrategy(): BaseAxisLayoutStrategy;
79
+ set leftOuterAxesLayoutStrategy(value: BaseAxisLayoutStrategy);
80
+ get rightOuterAxesLayoutStrategy(): BaseAxisLayoutStrategy;
81
+ set rightOuterAxesLayoutStrategy(value: BaseAxisLayoutStrategy);
82
+ get topOuterAxesLayoutStrategy(): BaseAxisLayoutStrategy;
83
+ set topOuterAxesLayoutStrategy(value: BaseAxisLayoutStrategy);
84
+ get bottomOuterAxesLayoutStrategy(): BaseAxisLayoutStrategy;
85
+ set bottomOuterAxesLayoutStrategy(value: BaseAxisLayoutStrategy);
86
+ getAxisLayoutStrategy(axisAlignment: EAxisAlignment, isInnerAxis: boolean): BaseAxisLayoutStrategy;
77
87
  layoutChart(viewportSize: Size, padding?: Thickness): Rect;
78
88
  toJSON(): TLayoutManagerDefinition;
79
89
  protected measureLeftOuterAxes(): void;