scichart 2.0.0-alpha.1930 → 2.0.0-alpha.1991

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 (212) hide show
  1. package/Builder/buildAxis.d.ts +3 -3
  2. package/Builder/buildDataSeries.d.ts +44 -4
  3. package/Builder/buildDataSeries.js +66 -0
  4. package/Builder/buildSeries.d.ts +7 -5
  5. package/Builder/buildSeries.js +3 -4
  6. package/Builder/buildSurface.d.ts +14 -6
  7. package/Builder/buildSurface.js +13 -8
  8. package/Builder/chartBuilder.d.ts +14 -8
  9. package/Builder/chartBuilder.js +6 -6
  10. package/Charting/ChartModifiers/ChartModifierBase.d.ts +37 -81
  11. package/Charting/ChartModifiers/ChartModifierBase.js +28 -73
  12. package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +5 -1
  13. package/Charting/ChartModifiers/ChartModifierBase2D.js +6 -17
  14. package/Charting/ChartModifiers/CursorModifier.d.ts +4 -2
  15. package/Charting/ChartModifiers/CursorModifier.js +1 -1
  16. package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +3 -1
  17. package/Charting/ChartModifiers/DataPointSelectionModifier.js +62 -27
  18. package/Charting/ChartModifiers/LegendModifier.d.ts +5 -1
  19. package/Charting/ChartModifiers/LegendModifier.js +2 -1
  20. package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +1 -1
  21. package/Charting/ChartModifiers/PinchZoomModifier.d.ts +1 -1
  22. package/Charting/ChartModifiers/RolloverModifier.d.ts +1 -1
  23. package/Charting/ChartModifiers/RolloverModifier.js +44 -58
  24. package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
  25. package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +15 -7
  26. package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
  27. package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
  28. package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
  29. package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +14 -1
  30. package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
  31. package/Charting/Drawing/BrushCache.js +6 -8
  32. package/Charting/Drawing/Pen2DCache.d.ts +4 -6
  33. package/Charting/Drawing/Pen2DCache.js +14 -11
  34. package/Charting/Drawing/WebGlPen.d.ts +2 -1
  35. package/Charting/Drawing/WebGlPen.js +3 -2
  36. package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +1 -1
  37. package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
  38. package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +1 -1
  39. package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
  40. package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +1 -1
  41. package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
  42. package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +1 -1
  43. package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
  44. package/Charting/Model/BaseDataSeries.d.ts +64 -52
  45. package/Charting/Model/BaseDataSeries.js +158 -84
  46. package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
  47. package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +22 -10
  48. package/Charting/Model/DataPointSelectionPaletteProvider.js +35 -5
  49. package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +106 -0
  50. package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +21 -0
  51. package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +112 -1
  52. package/Charting/Model/Filters/XyLinearTrendFilter.js +21 -0
  53. package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +110 -1
  54. package/Charting/Model/Filters/XyMovingAverageFilter.js +21 -0
  55. package/Charting/Model/Filters/XyRatioFilter.d.ts +111 -2
  56. package/Charting/Model/Filters/XyRatioFilter.js +34 -3
  57. package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +112 -1
  58. package/Charting/Model/Filters/XyScaleOffsetFilter.js +21 -0
  59. package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +116 -0
  60. package/Charting/Model/Filters/XyyScaleOffsetFilter.js +21 -0
  61. package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +116 -0
  62. package/Charting/Model/Filters/XyzScaleOffsetFilter.js +21 -0
  63. package/Charting/Model/IDataSeries.d.ts +18 -3
  64. package/Charting/Model/IDataSeries.js +12 -1
  65. package/Charting/Model/IPaletteProvider.d.ts +8 -8
  66. package/Charting/Model/OhlcDataSeries.d.ts +39 -10
  67. package/Charting/Model/OhlcDataSeries.js +106 -19
  68. package/Charting/Model/UniformHeatmapDataSeries.d.ts +2 -2
  69. package/Charting/Model/XyyDataSeries.d.ts +21 -12
  70. package/Charting/Model/XyyDataSeries.js +70 -16
  71. package/Charting/Model/XyzDataSeries.d.ts +20 -5
  72. package/Charting/Model/XyzDataSeries.js +63 -7
  73. package/Charting/Numerics/TickProviders/LogarithmicTickProvider.d.ts +24 -0
  74. package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +26 -4
  75. package/Charting/Services/SciChartRenderer.js +4 -2
  76. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +7 -21
  77. package/Charting/Visuals/Annotations/AnnotationBase.js +28 -42
  78. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -1
  79. package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +2 -4
  80. package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
  81. package/Charting/Visuals/Annotations/BoxAnnotation.js +3 -2
  82. package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
  83. package/Charting/Visuals/Annotations/CustomAnnotation.js +2 -2
  84. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
  85. package/Charting/Visuals/Annotations/IAnnotation.d.ts +4 -0
  86. package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
  87. package/Charting/Visuals/Annotations/LineAnnotation.js +2 -4
  88. package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +3 -2
  89. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +1 -1
  90. package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
  91. package/Charting/Visuals/Annotations/SvgAnnotationBase.js +3 -2
  92. package/Charting/Visuals/Annotations/TextAnnotation.d.ts +1 -1
  93. package/Charting/Visuals/Annotations/TextAnnotation.js +1 -1
  94. package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
  95. package/Charting/Visuals/Annotations/annotationHelpers.d.ts +21 -0
  96. package/Charting/Visuals/Annotations/annotationHelpers.js +19 -0
  97. package/Charting/Visuals/Axis/AxisBase2D.d.ts +21 -0
  98. package/Charting/Visuals/Axis/AxisBase2D.js +81 -14
  99. package/Charting/Visuals/Axis/AxisCore.d.ts +5 -5
  100. package/Charting/Visuals/Axis/AxisCore.js +50 -55
  101. package/Charting/Visuals/Axis/AxisRenderer.js +1 -1
  102. package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
  103. package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +1 -1
  104. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +3 -2
  105. package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +13 -0
  106. package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +1 -1
  107. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +53 -0
  108. package/Charting/Visuals/Axis/LogarithmicAxis.js +107 -3
  109. package/Charting/Visuals/Axis/constants.d.ts +2 -1
  110. package/Charting/Visuals/Axis/constants.js +1 -0
  111. package/Charting/Visuals/Legend/SciChartLegend.js +1 -1
  112. package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +11 -0
  113. package/Charting/Visuals/Legend/SciChartLegendBase.js +45 -16
  114. package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +4 -0
  115. package/Charting/Visuals/RenderableSeries/Animations/BaseAnimation.d.ts +1 -1
  116. package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +1 -1
  117. package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +1 -1
  118. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +9 -2
  119. package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +65 -4
  120. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +0 -11
  121. package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +0 -29
  122. package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -1
  123. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +0 -37
  124. package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +0 -120
  125. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +4 -24
  126. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +65 -91
  127. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +26 -2
  128. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +55 -3
  129. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +3 -1
  130. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -1
  131. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +7 -1
  132. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +66 -64
  133. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +7 -0
  134. package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +12 -0
  135. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
  136. package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
  137. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +6 -0
  138. package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +12 -0
  139. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.d.ts +0 -6
  140. package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +0 -42
  141. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -17
  142. package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -71
  143. package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.js +1 -1
  144. package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
  145. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.d.ts +4 -0
  146. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +7 -0
  147. package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +2 -1
  148. package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.d.ts +4 -0
  149. package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +7 -0
  150. package/Charting/Visuals/RenderableSeries/HitTest/IHitTestProvider.d.ts +13 -0
  151. package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.d.ts +4 -0
  152. package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +7 -0
  153. package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.d.ts +4 -0
  154. package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +7 -0
  155. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +17 -5
  156. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +2 -2
  157. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +3 -0
  158. package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +10 -32
  159. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -0
  160. package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +11 -21
  161. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -0
  162. package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +10 -21
  163. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.d.ts +18 -5
  164. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +16 -35
  165. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +4 -5
  166. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -5
  167. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +2 -35
  168. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +3 -1
  169. package/Charting/Visuals/SciChartOverview.d.ts +1 -1
  170. package/Charting/Visuals/SciChartOverview.js +1 -1
  171. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +3 -1
  172. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +9 -8
  173. package/Charting/Visuals/SciChartSurface.d.ts +20 -3
  174. package/Charting/Visuals/SciChartSurface.js +36 -8
  175. package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -3
  176. package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
  177. package/Charting/Visuals/TextureManager/DpiHelper.d.ts +1 -1
  178. package/Charting/Visuals/TextureManager/DpiHelper.js +5 -3
  179. package/Charting/Visuals/TextureManager/TextureManager.d.ts +7 -1
  180. package/Charting/Visuals/TextureManager/TextureManager.js +14 -7
  181. package/Charting/Visuals/licenseManager2D.js +35 -28
  182. package/Charting/Visuals/loader.d.ts +3 -0
  183. package/Charting/Visuals/loader.js +3 -0
  184. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +21 -45
  185. package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +15 -36
  186. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +35 -73
  187. package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +25 -66
  188. package/Charting3D/Visuals/SciChart3DRenderer.js +1 -1
  189. package/Charting3D/Visuals/SciChart3DSurface.d.ts +13 -1
  190. package/Charting3D/Visuals/SciChart3DSurface.js +13 -1
  191. package/Core/ObservableArray.d.ts +8 -1
  192. package/Core/ObservableArray.js +7 -0
  193. package/_wasm/scichart.browser.js +1 -1
  194. package/_wasm/scichart2d.js +95 -95
  195. package/_wasm/scichart2d.wasm +0 -0
  196. package/_wasm/scichart3d.js +1 -1
  197. package/_wasm/scichart3d.wasm +0 -0
  198. package/package.json +1 -1
  199. package/types/AnchorPoint.d.ts +0 -3
  200. package/types/AnchorPoint.js +0 -3
  201. package/types/BaseType.d.ts +3 -1
  202. package/types/BaseType.js +2 -0
  203. package/types/DataFilterType.d.ts +9 -0
  204. package/types/DataFilterType.js +13 -0
  205. package/types/HelperTypes.d.ts +5 -0
  206. package/types/HelperTypes.js +2 -0
  207. package/types/SeriesType.d.ts +17 -17
  208. package/types/SeriesType.js +17 -17
  209. package/utils/font.d.ts +8 -0
  210. package/utils/font.js +15 -0
  211. package/utils/imageUtil.d.ts +6 -0
  212. package/utils/imageUtil.js +11 -1
@@ -1,4 +1,5 @@
1
1
  import { AnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
2
+ import { NumberRange } from "../../../Core/NumberRange";
2
3
  import { ESeriesType } from "../../../types/SeriesType";
3
4
  import { DoubleVector, TSciChart } from "../../../types/TSciChart";
4
5
  import { BaseAnimation } from "./Animations/BaseAnimation";
@@ -63,6 +64,8 @@ export declare class SplineMountainRenderableSeries extends BaseMountainRenderab
63
64
  */
64
65
  updateSplineValues(): void;
65
66
  /** @inheritDoc */
67
+ getYRange(xVisibleRange: NumberRange, isXCategoryAxis?: boolean): NumberRange;
68
+ /** @inheritDoc */
66
69
  toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
67
70
  /** @inheritDoc */
68
71
  protected setAnimationVectors(animation: BaseAnimation): void;
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SplineMountainRenderableSeries = void 0;
17
17
  var Deleter_1 = require("../../../Core/Deleter");
18
18
  var SeriesType_1 = require("../../../types/SeriesType");
19
+ var animationHelpers_1 = require("./Animations/animationHelpers");
19
20
  var BaseMountainRenderableSeries_1 = require("./BaseMountainRenderableSeries");
20
21
  var constants_1 = require("./constants");
21
22
  /**
@@ -96,6 +97,11 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
96
97
  this.recalculateSpline = false;
97
98
  };
98
99
  /** @inheritDoc */
100
+ SplineMountainRenderableSeries.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
101
+ if (isXCategoryAxis === void 0) { isXCategoryAxis = false; }
102
+ return this.dataSeries.getWindowedYRange(xVisibleRange, true, isXCategoryAxis);
103
+ };
104
+ /** @inheritDoc */
99
105
  SplineMountainRenderableSeries.prototype.toJSON = function (excludeData) {
100
106
  if (excludeData === void 0) { excludeData = false; }
101
107
  var json = _super.prototype.toJSON.call(this, excludeData);
@@ -108,32 +114,15 @@ var SplineMountainRenderableSeries = /** @class */ (function (_super) {
108
114
  /** @inheritDoc */
109
115
  SplineMountainRenderableSeries.prototype.setAnimationVectors = function (animation) {
110
116
  this.updateSplineValues();
111
- if (animation.isOnStartAnimation) {
112
- this.setXFinalAnimationValues(this.xSplineValues);
113
- this.setYFinalAnimationValues(this.ySplineValues);
114
- }
115
- else if (animation.isDataSeriesAnimation) {
116
- this.setXInitialAnimationValues(this.xSplineValues);
117
- this.setYInitialAnimationValues(this.ySplineValues);
118
- // set final animation values for the spline
119
- var dataSeries = animation.dataSeries;
120
- var xValues = this.xAxis.isCategoryAxis ? dataSeries.getNativeIndexes() : dataSeries.getNativeXValues();
121
- this.webAssemblyContext.SCRTSplineHelperCubicSpline(xValues, dataSeries.getNativeYValues(), this.xFinalAnimationValues, this.yFinalAnimationValues, xValues.size(), this.interpolationPoints, dataSeries.containsNaN);
122
- }
117
+ animationHelpers_1.animationHelpers.setSplineAnimationVectors(this.webAssemblyContext, animation, this.dataSeries, animation.dataSeries, this.xSplineValues, this.ySplineValues, this.xAxis.isCategoryAxis, this.interpolationPoints);
123
118
  };
124
119
  /** @inheritDoc */
125
120
  SplineMountainRenderableSeries.prototype.updateAnimationProperties = function (progress, animationFSM) {
126
121
  var animation = animationFSM.animation;
127
122
  animation.updateSeriesProperties(this, animationFSM.initialStyles, animationFSM.animationProgress);
128
- if (animation.isOnStartAnimation) {
129
- var dataSeries = this.dataSeries;
130
- if (dataSeries) {
131
- animation.calculateAnimationValues(this.webAssemblyContext, this.yFinalAnimationValues, this.ySplineValues, progress);
132
- }
133
- }
134
- else if (animation.isDataSeriesAnimation) {
135
- animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.xInitialAnimationValues, this.xFinalAnimationValues, this.xSplineValues, progress);
136
- animation.calculateDataSeriesAnimationValues(this.webAssemblyContext, this.yInitialAnimationValues, this.yFinalAnimationValues, this.ySplineValues, progress);
123
+ var dataSeries = this.dataSeries;
124
+ if (dataSeries) {
125
+ animationHelpers_1.animationHelpers.updateSplineAnimationProperties(this.webAssemblyContext, animation, progress, dataSeries, this.xSplineValues, this.ySplineValues);
137
126
  }
138
127
  if (this.invalidateParentCallback) {
139
128
  this.invalidateParentCallback();
@@ -1,3 +1,4 @@
1
+ import { TSeriesDefinition } from "../../../Builder/buildSeries";
1
2
  import { NumberRange } from "../../../Core/NumberRange";
2
3
  import { ESeriesType } from "../../../types/SeriesType";
3
4
  import { TSciChart } from "../../../types/TSciChart";
@@ -5,8 +6,21 @@ import { WebGlRenderContext2D } from "../../Drawing/WebGlRenderContext2D";
5
6
  import { CoordinateCalculatorBase } from "../../Numerics/CoordinateCalculators/CoordinateCalculatorBase";
6
7
  import { RenderPassData } from "../../Services/RenderPassData";
7
8
  import { SciChartSurface } from "../SciChartSurface";
8
- import { BaseStackedCollection } from "./BaseStackedCollection";
9
+ import { BaseStackedCollection, IBaseStackedCollectionOptions } from "./BaseStackedCollection";
9
10
  import { StackedColumnRenderableSeries } from "./StackedColumnRenderableSeries";
11
+ /**
12
+ * Options to pass to the {@link StackedColumnCollection} constructor
13
+ */
14
+ export interface IStackedColumnCollectionOptions extends IBaseStackedCollectionOptions {
15
+ /**
16
+ * the Datapoint width, as a fraction of available space from 0.0 - 1.0
17
+ */
18
+ dataPointWidth?: number;
19
+ /**
20
+ * the Zero-line Y, the Y-value where the mountain crosses zero and inverts. Default is 0
21
+ */
22
+ zeroLineY?: number;
23
+ }
10
24
  /**
11
25
  * @summary A {@link StackedColumnCollection} allows grouping multiple {@link StackedColumnRenderableSeries}
12
26
  * to create a JavaScript Stacked Column, 100 Stacked Column or Stacked Bar chart
@@ -56,7 +70,7 @@ export declare class StackedColumnCollection extends BaseStackedCollection<Stack
56
70
  * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
57
71
  * native methods and access to our WebGL2 WebAssembly Drawing Engine
58
72
  */
59
- constructor(webAssemblyContext: TSciChart);
73
+ constructor(webAssemblyContext: TSciChart, options?: IStackedColumnCollectionOptions);
60
74
  /** @inheritDoc */
61
75
  delete(): void;
62
76
  /** @inheritDoc */
@@ -66,8 +80,6 @@ export declare class StackedColumnCollection extends BaseStackedCollection<Stack
66
80
  /** @inheritDoc */
67
81
  getXRange(): NumberRange;
68
82
  /** @inheritDoc */
69
- getYRange(xVisibleRange: NumberRange, isXCategoryAxis: boolean): NumberRange;
70
- /** @inheritDoc */
71
83
  onAttach(scs: SciChartSurface): void;
72
84
  /** @inheritDoc */
73
85
  notifyPropertyChanged(propertyName: string): void;
@@ -78,6 +90,8 @@ export declare class StackedColumnCollection extends BaseStackedCollection<Stack
78
90
  * @param xCoordinateCalculator The current XAxis {@link CoordinateCalculatorBase}
79
91
  */
80
92
  getColumnWidth(xCoordinateCalculator: CoordinateCalculatorBase): number;
93
+ /** @inheritDoc */
94
+ toJSON(excludeData?: boolean): TSeriesDefinition;
81
95
  /**
82
96
  * Gets or sets the Datapoint width, as a fraction of available space from 0.0 - 1.0
83
97
  */
@@ -96,7 +110,6 @@ export declare class StackedColumnCollection extends BaseStackedCollection<Stack
96
110
  set zeroLineY(zeroLineY: number);
97
111
  private detachChildSeries;
98
112
  private attachChildSeries;
99
- private isEnoughDataToDraw;
100
113
  private checkXValuesCorrect;
101
114
  /**
102
115
  * @param numberOfElements - number of element expected is used for performance to reserve memory
@@ -17,7 +17,6 @@ exports.StackedColumnCollection = void 0;
17
17
  var Deleter_1 = require("../../../Core/Deleter");
18
18
  var NumberRange_1 = require("../../../Core/NumberRange");
19
19
  var SeriesType_1 = require("../../../types/SeriesType");
20
- var BaseDataSeries_1 = require("../../Model/BaseDataSeries");
21
20
  var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
22
21
  var BaseStackedCollection_1 = require("./BaseStackedCollection");
23
22
  var constants_1 = require("./constants");
@@ -67,12 +66,15 @@ var StackedColumnCollection = /** @class */ (function (_super) {
67
66
  * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
68
67
  * native methods and access to our WebGL2 WebAssembly Drawing Engine
69
68
  */
70
- function StackedColumnCollection(webAssemblyContext) {
71
- var _this = _super.call(this, webAssemblyContext) || this;
69
+ function StackedColumnCollection(webAssemblyContext, options) {
70
+ var _a, _b;
71
+ var _this = _super.call(this, webAssemblyContext, options) || this;
72
72
  _this.type = SeriesType_1.ESeriesType.StackedColumnCollection;
73
73
  _this.seriesGroups = {};
74
74
  _this.dataPointWidthProperty = 0.5;
75
75
  _this.zeroLineYProperty = 0;
76
+ _this.dataPointWidthProperty = (_a = options === null || options === void 0 ? void 0 : options.dataPointWidth) !== null && _a !== void 0 ? _a : _this.dataPointWidthProperty;
77
+ _this.zeroLineYProperty = (_b = options === null || options === void 0 ? void 0 : options.zeroLineY) !== null && _b !== void 0 ? _b : _this.zeroLineYProperty;
76
78
  _this.getColumnWidth = _this.getColumnWidth.bind(_this);
77
79
  _this.detachChildSeries = _this.detachChildSeries.bind(_this);
78
80
  _this.attachChildSeries = _this.attachChildSeries.bind(_this);
@@ -175,19 +177,6 @@ var StackedColumnCollection = /** @class */ (function (_super) {
175
177
  return FastColumnRenderableSeries_1.getXRange(range, count, this.dataPointWidth);
176
178
  };
177
179
  /** @inheritDoc */
178
- StackedColumnCollection.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
179
- if (!this.isEnoughDataToDraw()) {
180
- return new NumberRange_1.NumberRange();
181
- }
182
- var lastSeriesAccumVector = this.getLastVisibleSeries().accumulatedValues;
183
- if (lastSeriesAccumVector.size() !== this.getNativeXValues().size()) {
184
- return new NumberRange_1.NumberRange();
185
- }
186
- // TODO: calc isSorted flag
187
- var range = BaseDataSeries_1.getWindowedYRange(this.webAssemblyContext, this.getNativeXValues(), lastSeriesAccumVector, xVisibleRange, true, isXCategoryAxis, true);
188
- return new NumberRange_1.NumberRange(0, range.max);
189
- };
190
- /** @inheritDoc */
191
180
  StackedColumnCollection.prototype.onAttach = function (scs) {
192
181
  _super.prototype.onAttach.call(this, scs);
193
182
  this.nativeDrawingProvider = new this.webAssemblyContext.SCRTStackedColumnSeriesDrawingProvider();
@@ -220,6 +209,17 @@ var StackedColumnCollection = /** @class */ (function (_super) {
220
209
  return (BaseRenderableSeries_1.getDataPointWidth(xValues, xCoordinateCalculator, viewRect.width, widthFraction, isCategoryAxis) /
221
210
  stackedColumnsCount);
222
211
  };
212
+ /** @inheritDoc */
213
+ StackedColumnCollection.prototype.toJSON = function (excludeData) {
214
+ if (excludeData === void 0) { excludeData = false; }
215
+ var json = _super.prototype.toJSON.call(this, excludeData);
216
+ var options = {
217
+ dataPointWidth: this.dataPointWidth,
218
+ zeroLineY: this.zeroLineY
219
+ };
220
+ Object.assign(json.options, options);
221
+ return json;
222
+ };
223
223
  Object.defineProperty(StackedColumnCollection.prototype, "dataPointWidth", {
224
224
  // PROPERTIES
225
225
  /**
@@ -265,25 +265,6 @@ var StackedColumnCollection = /** @class */ (function (_super) {
265
265
  series.onAttachToParentCollection(this, this.getParentSurface, this.notifyPropertyChanged, this.getColumnWidth);
266
266
  this.invalidateParent();
267
267
  };
268
- StackedColumnCollection.prototype.isEnoughDataToDraw = function () {
269
- var stackedSeriesCount = this.getVisibleSeries().length;
270
- if (stackedSeriesCount < 1) {
271
- return false;
272
- }
273
- // All renderableSeries should have dataSeries property
274
- for (var i = 0; i < stackedSeriesCount; i++) {
275
- if (!this.get(i).dataSeries) {
276
- return false;
277
- }
278
- }
279
- // All dataSeries should have some values
280
- for (var i = 0; i < stackedSeriesCount; i++) {
281
- if (this.get(i).dataSeries.count() === 0) {
282
- return false;
283
- }
284
- }
285
- return true;
286
- };
287
268
  StackedColumnCollection.prototype.checkXValuesCorrect = function () {
288
269
  var length = this.getDataSeriesValuesCount();
289
270
  this.getVisibleSeries().forEach(function (el) {
@@ -19,7 +19,6 @@ var SeriesType_1 = require("../../../types/SeriesType");
19
19
  var BrushCache_1 = require("../../Drawing/BrushCache");
20
20
  var Pen2DCache_1 = require("../../Drawing/Pen2DCache");
21
21
  var SciChartSurfaceBase_1 = require("../SciChartSurfaceBase");
22
- var DpiHelper_1 = require("../TextureManager/DpiHelper");
23
22
  var BaseStackedRenderableSeries_1 = require("./BaseStackedRenderableSeries");
24
23
  var constants_1 = require("./constants");
25
24
  var StackedColumnSeriesHitTestProvider_1 = require("./HitTest/StackedColumnSeriesHitTestProvider");
@@ -112,7 +111,7 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
112
111
  this.notifyParentPropertyChangedFn = notifyPropertyChangedFn;
113
112
  this.getColumnWidthFn = getColumnWidthFn;
114
113
  var _a = this, stroke = _a.stroke, strokeThickness = _a.strokeThickness, fill = _a.fill, opacity = _a.opacity;
115
- Pen2DCache_1.createPenInCache(this.strokePenCache, stroke, strokeThickness * DpiHelper_1.DpiHelper.PIXEL_RATIO, opacity);
114
+ Pen2DCache_1.createPenInCache(this.strokePenCache, stroke, strokeThickness, opacity);
116
115
  BrushCache_1.createBrushInCache(this.fillBrushCache, fill, opacity);
117
116
  };
118
117
  /**
@@ -125,8 +124,8 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
125
124
  * Gets the stroke of the column as an HTML color code
126
125
  */
127
126
  StackedColumnRenderableSeries.prototype.getStrokePen = function () {
128
- var _a = this, stroke = _a.stroke, strokeThickness = _a.strokeThickness, fill = _a.fill, opacity = _a.opacity;
129
- return Pen2DCache_1.createPenInCache(this.strokePenCache, stroke, strokeThickness * DpiHelper_1.DpiHelper.PIXEL_RATIO, opacity);
127
+ var _a = this, stroke = _a.stroke, strokeThickness = _a.strokeThickness, opacity = _a.opacity;
128
+ return Pen2DCache_1.createPenInCache(this.strokePenCache, stroke, strokeThickness, opacity);
130
129
  };
131
130
  StackedColumnRenderableSeries.prototype.getGroupIndex = function () {
132
131
  return this.groupIndex;
@@ -162,7 +161,7 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
162
161
  if (propertyName === constants_1.PROPERTY.STROKE ||
163
162
  propertyName === constants_1.PROPERTY.STROKE_THICKNESS ||
164
163
  propertyName === constants_1.PROPERTY.OPACITY) {
165
- Pen2DCache_1.createPenInCache(this.strokePenCache, this.stroke, this.strokeThickness * DpiHelper_1.DpiHelper.PIXEL_RATIO, this.opacity);
164
+ Pen2DCache_1.createPenInCache(this.strokePenCache, this.stroke, this.strokeThickness, this.opacity);
166
165
  }
167
166
  if (propertyName === constants_1.PROPERTY.FILL || propertyName === constants_1.PROPERTY.OPACITY) {
168
167
  BrushCache_1.createBrushInCache(this.fillBrushCache, this.fill, this.opacity);
@@ -4,7 +4,7 @@ import { TSciChart } from "../../../types/TSciChart";
4
4
  import { WebGlRenderContext2D } from "../../Drawing/WebGlRenderContext2D";
5
5
  import { RenderPassData } from "../../Services/RenderPassData";
6
6
  import { SciChartSurface } from "../SciChartSurface";
7
- import { BaseStackedCollection } from "./BaseStackedCollection";
7
+ import { BaseStackedCollection, IBaseStackedCollectionOptions } from "./BaseStackedCollection";
8
8
  import { StackedMountainRenderableSeries } from "./StackedMountainRenderableSeries";
9
9
  /**
10
10
  * @summary A {@link StackedMountainCollection} allows grouping multiple {@link StackedMountainRenderableSeries}
@@ -39,7 +39,7 @@ export declare class StackedMountainCollection extends BaseStackedCollection<Sta
39
39
  * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
40
40
  * native methods and access to our WebGL2 WebAssembly Drawing Engine
41
41
  */
42
- constructor(webAssemblyContext: TSciChart);
42
+ constructor(webAssemblyContext: TSciChart, options?: IBaseStackedCollectionOptions);
43
43
  /** @inheritDoc */
44
44
  delete(): void;
45
45
  /** @inheritDoc */
@@ -49,8 +49,6 @@ export declare class StackedMountainCollection extends BaseStackedCollection<Sta
49
49
  /** @inheritDoc */
50
50
  getXRange(): NumberRange;
51
51
  /** @inheritDoc */
52
- getYRange(xVisibleRange: NumberRange, isXCategoryAxis: boolean): NumberRange;
53
- /** @inheritDoc */
54
52
  onAttach(scs: SciChartSurface): void;
55
53
  /** @inheritDoc */
56
54
  notifyPropertyChanged(propertyName: string): void;
@@ -58,7 +56,6 @@ export declare class StackedMountainCollection extends BaseStackedCollection<Sta
58
56
  hasDataSeriesValues(): boolean;
59
57
  private detachChildSeries;
60
58
  private attachChildSeries;
61
- private isEnoughDataToDraw;
62
59
  private checkXValuesCorrect;
63
60
  /**
64
61
  * @param numberOfElements - number of element expected is used for performance to reserve memory
@@ -18,7 +18,6 @@ var Deleter_1 = require("../../../Core/Deleter");
18
18
  var NumberRange_1 = require("../../../Core/NumberRange");
19
19
  var SeriesType_1 = require("../../../types/SeriesType");
20
20
  var Pen2DCache_1 = require("../../Drawing/Pen2DCache");
21
- var BaseDataSeries_1 = require("../../Model/BaseDataSeries");
22
21
  var BaseStackedCollection_1 = require("./BaseStackedCollection");
23
22
  var constants_1 = require("./constants");
24
23
  /**
@@ -52,8 +51,8 @@ var StackedMountainCollection = /** @class */ (function (_super) {
52
51
  * @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
53
52
  * native methods and access to our WebGL2 WebAssembly Drawing Engine
54
53
  */
55
- function StackedMountainCollection(webAssemblyContext) {
56
- var _this = _super.call(this, webAssemblyContext) || this;
54
+ function StackedMountainCollection(webAssemblyContext, options) {
55
+ var _this = _super.call(this, webAssemblyContext, options) || this;
57
56
  _this.type = SeriesType_1.ESeriesType.StackedMountainCollection;
58
57
  _this.detachChildSeries = _this.detachChildSeries.bind(_this);
59
58
  _this.attachChildSeries = _this.attachChildSeries.bind(_this);
@@ -139,19 +138,6 @@ var StackedMountainCollection = /** @class */ (function (_super) {
139
138
  return this.getFirstSeries().dataSeries.xRange;
140
139
  };
141
140
  /** @inheritDoc */
142
- StackedMountainCollection.prototype.getYRange = function (xVisibleRange, isXCategoryAxis) {
143
- if (!this.isEnoughDataToDraw()) {
144
- return new NumberRange_1.NumberRange();
145
- }
146
- var lastSeriesAccumVector = this.getLastVisibleSeries().accumulatedValues;
147
- if (lastSeriesAccumVector.size() !== this.getNativeXValues().size()) {
148
- return new NumberRange_1.NumberRange();
149
- }
150
- // TODO: calc isSorted flag
151
- var range = BaseDataSeries_1.getWindowedYRange(this.webAssemblyContext, this.getNativeXValues(), lastSeriesAccumVector, xVisibleRange, true, isXCategoryAxis, true);
152
- return new NumberRange_1.NumberRange(0, range.max);
153
- };
154
- /** @inheritDoc */
155
141
  StackedMountainCollection.prototype.onAttach = function (scs) {
156
142
  _super.prototype.onAttach.call(this, scs);
157
143
  this.nativeDrawingProvider = new this.webAssemblyContext.SCRTBandSeriesDrawingProvider();
@@ -180,25 +166,6 @@ var StackedMountainCollection = /** @class */ (function (_super) {
180
166
  series.onAttachToParentCollection(this, this.getParentSurface, this.notifyPropertyChanged);
181
167
  this.invalidateParent();
182
168
  };
183
- StackedMountainCollection.prototype.isEnoughDataToDraw = function () {
184
- var stackedSeriesCount = this.size();
185
- if (stackedSeriesCount < 1) {
186
- return false;
187
- }
188
- // All renderableSeries should have dataSeries property
189
- for (var i = 0; i < stackedSeriesCount; i++) {
190
- if (!this.get(i).dataSeries) {
191
- return false;
192
- }
193
- }
194
- // All dataSeries should have some values
195
- for (var i = 0; i < stackedSeriesCount; i++) {
196
- if (this.get(i).dataSeries.count() === 0) {
197
- return false;
198
- }
199
- }
200
- return true;
201
- };
202
169
  StackedMountainCollection.prototype.checkXValuesCorrect = function () {
203
170
  var length = this.getDataSeriesValuesCount();
204
171
  this.getVisibleSeries().forEach(function (el) {
@@ -147,7 +147,9 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
147
147
  if (excludeData === void 0) { excludeData = false; }
148
148
  var json = _super.prototype.toJSON.call(this, excludeData);
149
149
  var options = {
150
- fill: this.fill
150
+ fill: this.fill,
151
+ stroke: this.stroke,
152
+ strokeThickness: this.strokeThickness
151
153
  };
152
154
  Object.assign(json.options, options);
153
155
  return json;
@@ -30,7 +30,7 @@ export declare class SciChartOverview implements IDeletable, IThemeable {
30
30
  * @remarks This method is async and must be awaited
31
31
  * @param parentChart The {@link SciChartSurface} of the {@link SciChartOverview} will reside
32
32
  * @param overviewRootElementId The Div Element ID where the {@link SciChartSurface} of the {@link SciChartOverview} will reside
33
- * @param options Optional - Optional parameters for chart creation. See {@link IChartCreationOptions for more details}
33
+ * @param options Optional - Optional parameters for chart creation. See {@link IOverviewOptions for more details}
34
34
  */
35
35
  static create(parentChart: SciChartSurface, overviewRootElementId: string, options?: IOverviewOptions): Promise<SciChartOverview>;
36
36
  private readonly overviewXAxisProperty;
@@ -67,7 +67,7 @@ var SciChartOverview = /** @class */ (function () {
67
67
  * @remarks This method is async and must be awaited
68
68
  * @param parentChart The {@link SciChartSurface} of the {@link SciChartOverview} will reside
69
69
  * @param overviewRootElementId The Div Element ID where the {@link SciChartSurface} of the {@link SciChartOverview} will reside
70
- * @param options Optional - Optional parameters for chart creation. See {@link IChartCreationOptions for more details}
70
+ * @param options Optional - Optional parameters for chart creation. See {@link IOverviewOptions for more details}
71
71
  */
72
72
  SciChartOverview.create = function (parentChart, overviewRootElementId, options) {
73
73
  return __awaiter(this, void 0, void 0, function () {
@@ -1,7 +1,9 @@
1
1
  import { GradientParams } from "../../../../Core/GradientParams";
2
+ import { RequiredOwnProps } from "../../../../types/HelperTypes";
2
3
  import { SciChartPieSurface } from "../SciChartPieSurface";
3
4
  import { IPieSegment } from "./IPieSegment";
4
5
  export interface IPieSegmentOptions {
6
+ id?: string;
5
7
  text?: string;
6
8
  value?: number;
7
9
  color?: string;
@@ -35,6 +37,6 @@ export declare class PieSegment implements IPieSegment {
35
37
  set value(value: number);
36
38
  get delta(): number;
37
39
  set delta(value: number);
38
- toJSON(): IPieSegmentOptions;
40
+ toJSON(): RequiredOwnProps<IPieSegmentOptions>;
39
41
  private notifyPropertyChanged;
40
42
  }
@@ -5,18 +5,18 @@ var guid_1 = require("../../../../utils/guid");
5
5
  var constants_1 = require("./constants");
6
6
  var PieSegment = /** @class */ (function () {
7
7
  function PieSegment(options) {
8
- var _a, _b, _c, _d, _e, _f;
9
- this.id = guid_1.generateGuid();
8
+ var _a, _b, _c, _d, _e, _f, _g;
10
9
  this.colorProperty = "grey";
11
10
  this.isSelectedProperty = false;
12
11
  this.textProperty = "";
13
12
  this.deltaProperty = 0;
14
- this.colorProperty = (_a = options === null || options === void 0 ? void 0 : options.color) !== null && _a !== void 0 ? _a : this.colorProperty;
15
- this.colorLinearGradientProperty = (_b = options === null || options === void 0 ? void 0 : options.colorLinearGradient) !== null && _b !== void 0 ? _b : this.colorLinearGradientProperty;
16
- this.isSelectedProperty = (_c = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _c !== void 0 ? _c : this.isSelectedProperty;
17
- this.textProperty = (_d = options === null || options === void 0 ? void 0 : options.text) !== null && _d !== void 0 ? _d : this.textProperty;
18
- this.valueProperty = (_e = options === null || options === void 0 ? void 0 : options.value) !== null && _e !== void 0 ? _e : this.valueProperty;
19
- this.delta = (_f = options === null || options === void 0 ? void 0 : options.delta) !== null && _f !== void 0 ? _f : this.deltaProperty;
13
+ this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : guid_1.generateGuid();
14
+ this.colorProperty = (_b = options === null || options === void 0 ? void 0 : options.color) !== null && _b !== void 0 ? _b : this.colorProperty;
15
+ this.colorLinearGradientProperty = (_c = options === null || options === void 0 ? void 0 : options.colorLinearGradient) !== null && _c !== void 0 ? _c : this.colorLinearGradientProperty;
16
+ this.isSelectedProperty = (_d = options === null || options === void 0 ? void 0 : options.isSelected) !== null && _d !== void 0 ? _d : this.isSelectedProperty;
17
+ this.textProperty = (_e = options === null || options === void 0 ? void 0 : options.text) !== null && _e !== void 0 ? _e : this.textProperty;
18
+ this.valueProperty = (_f = options === null || options === void 0 ? void 0 : options.value) !== null && _f !== void 0 ? _f : this.valueProperty;
19
+ this.delta = (_g = options === null || options === void 0 ? void 0 : options.delta) !== null && _g !== void 0 ? _g : this.deltaProperty;
20
20
  }
21
21
  PieSegment.prototype.onAttach = function (scps) {
22
22
  this.invalidateParentCallback = scps.invalidateElement;
@@ -109,6 +109,7 @@ var PieSegment = /** @class */ (function () {
109
109
  });
110
110
  PieSegment.prototype.toJSON = function () {
111
111
  return {
112
+ id: this.id,
112
113
  color: this.color,
113
114
  colorLinearGradient: this.colorLinearGradient,
114
115
  isSelected: this.isSelected,
@@ -55,20 +55,32 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
55
55
  * Creates a {@link SciChartSurface} and {@link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
56
56
  * @remarks This method is async and must be awaited
57
57
  * @param divElementId The Div Element ID where the {@link SciChartSurface} will reside
58
- * @param options Optional - Optional parameters for chart creation. See {@link IChartCreationOptions} for more details
58
+ * @param options Optional - Optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
59
59
  */
60
60
  static create(divElementId: string, options?: I2DSurfaceOptions): Promise<TWebAssemblyChart>;
61
61
  /**
62
62
  * USED INTERNALLY - performs a similar operation to {@link SciChartSurface.create} but used internally for testing
63
63
  * @param divElementId
64
- * @param options - optional parameters for chart creation. See {@link IChartCreationOptions} for more details
64
+ * @param options - optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
65
65
  */
66
66
  static createSingle(divElementId: string, options?: I2DSurfaceOptions): Promise<TWebAssemblyChart>;
67
+ /**
68
+ * Allows setting of web URL for Wasm and Data files, in the case you are loading SciChart outside of npm/webpack environment.
69
+ * Note if loading from CDN the version number of data/wasm Urls must match the version number of SciChart.js you are using.
70
+ * @example
71
+ * ```ts
72
+ * SciChart.SciChartSurface.configure({
73
+ * dataUrl: "https://cdn.jsdelivr.net/npm/scichart@1.3.1500/_wasm/scichart2d.data",
74
+ * wasmUrl: "https://cdn.jsdelivr.net/npm/scichart@1.3.1500/_wasm/scichart2d.wasm"
75
+ * });
76
+ * ```
77
+ * @param config
78
+ */
67
79
  static configure(config: TSciChartConfig): void;
68
80
  private static createTest;
69
81
  readonly renderSurface: RenderSurface;
70
82
  /**
71
- * @summary Gets the collection of {@link IRenderableSeries} - the chart types or seres on this {@link SciChartSurface}
83
+ * @summary Gets the collection of {@link IRenderableSeries} - the chart types or series on this {@link SciChartSurface}
72
84
  * @description A {@link SciChartSurface} can have zero to many {@link IRenderableSeries | RenderableSeries}.
73
85
  *
74
86
  * The RenderableSeries are drawn as chart types, e.g. {@link FastLineRenderableSeries | Line series},
@@ -208,6 +220,11 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
208
220
  * set a new Thickness when you want to change the padding.
209
221
  */
210
222
  set padding(padding: Thickness);
223
+ /**
224
+ * Gets the adjusted padding between the SciChartSurface and it's inner elements, in order top, right, bottom, left
225
+ * Defines a resulting padding accordingly to DPI scaling.
226
+ */
227
+ get adjustedPadding(): Thickness;
211
228
  /**
212
229
  * Gets or sets a property whether rendering should be debugged. This will draw rectangles around key boxes and areas on the chart.
213
230
  * Used internally for development purposes