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
@@ -4,6 +4,7 @@ exports.BaseSceneEntity3D = void 0;
4
4
  var Deleter_1 = require("../../../Core/Deleter");
5
5
  var ObservableArray_1 = require("../../../Core/ObservableArray");
6
6
  var SceneEntityType_1 = require("../../../types/SceneEntityType");
7
+ var guid_1 = require("../../../utils/guid");
7
8
  /**
8
9
  * The {@link BaseSceneEntity3D} provides a base class for entities, or 3D objects in the 3D scene within
9
10
  * SciChart's High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
@@ -20,6 +21,8 @@ var BaseSceneEntity3D = /** @class */ (function () {
20
21
  */
21
22
  function BaseSceneEntity3D(webAssemblyContext) {
22
23
  var _this = this;
24
+ /** @inheritDoc */
25
+ this.id = guid_1.generateGuid();
23
26
  /**
24
27
  * When true, the entity and all its children are visible
25
28
  */
@@ -36,9 +39,7 @@ var BaseSceneEntity3D = /** @class */ (function () {
36
39
  });
37
40
  this.onDpiChanged = this.onDpiChanged.bind(this);
38
41
  }
39
- /**
40
- * @inheritDoc
41
- */
42
+ /** @inheritDoc */
42
43
  BaseSceneEntity3D.prototype.getRoot = function () {
43
44
  if (this.type === SceneEntityType_1.ESceneEntityType.RootSceneEntity) {
44
45
  return this;
@@ -52,9 +53,7 @@ var BaseSceneEntity3D = /** @class */ (function () {
52
53
  }
53
54
  return undefined;
54
55
  };
55
- /**
56
- * @inheritDoc
57
- */
56
+ /** @inheritDoc */
58
57
  BaseSceneEntity3D.prototype.delete = function () {
59
58
  this.children.asArray().forEach(function (el) { return el.delete(); });
60
59
  if (this.nativeEntity) {
@@ -98,26 +97,18 @@ var BaseSceneEntity3D = /** @class */ (function () {
98
97
  this.nativeEntity.Render();
99
98
  }
100
99
  };
101
- /**
102
- * @inheritDoc
103
- */
100
+ /** @inheritDoc */
104
101
  BaseSceneEntity3D.prototype.onEngineRestart = function () {
105
102
  // TODO: TSRSceneEntity.OnEngineRestart
106
103
  };
107
- /**
108
- * @inheritDoc
109
- */
104
+ /** @inheritDoc */
110
105
  BaseSceneEntity3D.prototype.onDpiChanged = function (args) { };
111
106
  Object.defineProperty(BaseSceneEntity3D.prototype, "entityId", {
112
- /**
113
- * @inheritDoc
114
- */
107
+ /** @inheritDoc */
115
108
  get: function () {
116
109
  return this.entityIdProperty;
117
110
  },
118
- /**
119
- * @inheritDoc
120
- */
111
+ /** @inheritDoc */
121
112
  set: function (value) {
122
113
  this.entityIdProperty = value;
123
114
  // TODO: this.nativeEntity.SetEntityId(value)
@@ -125,15 +116,11 @@ var BaseSceneEntity3D = /** @class */ (function () {
125
116
  enumerable: false,
126
117
  configurable: true
127
118
  });
128
- /**
129
- * @inheritDoc
130
- */
119
+ /** @inheritDoc */
131
120
  BaseSceneEntity3D.prototype.setRenderPassData = function (rpd) {
132
121
  this.currentRenderPassData = rpd;
133
122
  };
134
- /**
135
- * @inheritDoc
136
- */
123
+ /** @inheritDoc */
137
124
  BaseSceneEntity3D.prototype.getEntity = function (type) {
138
125
  for (var i = 0; i < this.children.size(); i++) {
139
126
  var ent = this.children.get(i);
@@ -151,9 +138,7 @@ var BaseSceneEntity3D = /** @class */ (function () {
151
138
  var _a, _b;
152
139
  (_b = (_a = this.rootSceneEntity) === null || _a === void 0 ? void 0 : _a.parentSurface) === null || _b === void 0 ? void 0 : _b.invalidateElement();
153
140
  };
154
- /**
155
- * @inheritDoc
156
- */
141
+ /** @inheritDoc */
157
142
  BaseSceneEntity3D.prototype.onAttached = function () {
158
143
  if (this.parent.type === SceneEntityType_1.ESceneEntityType.SCRTSceneEntity) {
159
144
  // TODO
@@ -162,15 +147,11 @@ var BaseSceneEntity3D = /** @class */ (function () {
162
147
  // _nativeEntity.SetWorld(world);
163
148
  }
164
149
  };
165
- /**
166
- * @inheritDoc
167
- */
150
+ /** @inheritDoc */
168
151
  BaseSceneEntity3D.prototype.onDetached = function () {
169
152
  // Override in derived class to be notified of detached
170
153
  };
171
- /**
172
- * @inheritDoc
173
- */
154
+ /** @inheritDoc */
174
155
  BaseSceneEntity3D.prototype.visitEntities = function (operation) {
175
156
  operation(this);
176
157
  this.children.asArray().forEach(function (child) {
@@ -178,9 +159,7 @@ var BaseSceneEntity3D = /** @class */ (function () {
178
159
  });
179
160
  };
180
161
  Object.defineProperty(BaseSceneEntity3D.prototype, "nativeEntity", {
181
- /**
182
- * @inheritDoc
183
- */
162
+ /** @inheritDoc */
184
163
  get: function () {
185
164
  return this.nativeEntityProperty;
186
165
  },
@@ -1,5 +1,6 @@
1
1
  import { IThemeable } from "../../../Charting/Themes/IThemeable";
2
2
  import { IThemeProvider } from "../../../Charting/Themes/IThemeProvider";
3
+ import { INotifyOnDpiChanged, TDpiChangedEventArgs } from "../../../Charting/Visuals/TextureManager/DpiHelper";
3
4
  import { IDeletable } from "../../../Core/IDeletable";
4
5
  import { TSciChart3D } from "../../../types/TSciChart3D";
5
6
  import { BaseDataSeries3D } from "../../Model/DataSeries/BaseDataSeries3D";
@@ -9,7 +10,6 @@ import { IBaseSceneEntity } from "../Primitives/BaseSceneEntity3D";
9
10
  import { IRenderableSeriesSceneEntity } from "../Primitives/RenderableSeriesSceneEntity";
10
11
  import { SciChart3DSurface } from "../SciChart3DSurface";
11
12
  import { ESeriesType3D } from "./ESeriesType";
12
- import { INotifyOnDpiChanged, TDpiChangedEventArgs } from "../../../Charting/Visuals/TextureManager/DpiHelper";
13
13
  /**
14
14
  * @summary Defines the interface to a 3D Renderable Series (or 3D Chart Type) in SciChart's High Performance Real-time
15
15
  * {@link https://www.scichart.com/javascript-chart-features | JavaScript 3D Charts}
@@ -21,6 +21,10 @@ import { INotifyOnDpiChanged, TDpiChangedEventArgs } from "../../../Charting/Vis
21
21
  * See derived types of {@link IRenderableSeries3D} to find out what 3D JavaScript Chart types are available.
22
22
  */
23
23
  export interface IRenderableSeries3D extends IDeletable, IThemeable, INotifyOnDpiChanged {
24
+ /**
25
+ * A unique Id for the {@link IRenderableSeries3D}
26
+ */
27
+ readonly id: string;
24
28
  /**
25
29
  * Gets the Series type. See {@link ESeriesType3D} for a list of values
26
30
  */
@@ -82,6 +86,10 @@ export interface IRenderableSeries3D extends IDeletable, IThemeable, INotifyOnDp
82
86
  * Options to pass to the {@link BaseRenderableSeries3D} constructor
83
87
  */
84
88
  export interface IBaseRenderableSeries3DOptions {
89
+ /**
90
+ * A unique Id for the {@link IRenderableSeries3D}
91
+ */
92
+ readonly id?: string;
85
93
  /**
86
94
  * The {@link BaseDataSeries3D | DataSeries} which provides a datasource for this {@link BaseRenderableSeries3D} to draw
87
95
  */
@@ -115,13 +123,11 @@ export interface IBaseRenderableSeries3DOptions {
115
123
  * See derived types of {@link IRenderableSeries3D} to find out what 3D JavaScript Chart types are available.
116
124
  */
117
125
  export declare abstract class BaseRenderableSeries3D implements IRenderableSeries3D {
118
- /**
119
- * @inheritDoc
120
- */
126
+ /** @inheritDoc */
127
+ readonly id: string;
128
+ /** @inheritDoc */
121
129
  abstract type: ESeriesType3D;
122
- /**
123
- * @inheritDoc
124
- */
130
+ /** @inheritDoc */
125
131
  invalidateParentCallback: () => void;
126
132
  /**
127
133
  * The {@link TSciChart3D | SciChart 3D WebAssembly Context} containing
@@ -146,93 +152,49 @@ export declare abstract class BaseRenderableSeries3D implements IRenderableSerie
146
152
  * @protected
147
153
  */
148
154
  protected constructor(webAssemblyContext: TSciChart3D, options?: IBaseRenderableSeries3DOptions);
149
- /**
150
- * @inheritDoc
151
- */
155
+ /** @inheritDoc */
152
156
  applyTheme(themeProvider: IThemeProvider): void;
153
- /**
154
- * @inheritDoc
155
- */
157
+ /** @inheritDoc */
156
158
  get opacity(): number;
157
- /**
158
- * @inheritDoc
159
- */
159
+ /** @inheritDoc */
160
160
  set opacity(opacity: number);
161
- /**
162
- * @inheritDoc
163
- */
161
+ /** @inheritDoc */
164
162
  get sceneEntity(): IBaseSceneEntity;
165
- /**
166
- * @inheritDoc
167
- */
163
+ /** @inheritDoc */
168
164
  get shininess(): number;
169
- /**
170
- * @inheritDoc
171
- */
165
+ /** @inheritDoc */
172
166
  set shininess(shininess: number);
173
- /**
174
- * @inheritDoc
175
- */
167
+ /** @inheritDoc */
176
168
  get paletteProvider(): IPaletteProvider3D;
177
- /**
178
- * @inheritDoc
179
- */
169
+ /** @inheritDoc */
180
170
  set paletteProvider(paletteProvider: IPaletteProvider3D);
181
- /**
182
- * @inheritDoc
183
- */
171
+ /** @inheritDoc */
184
172
  get stroke(): string;
185
- /**
186
- * @inheritDoc
187
- */
173
+ /** @inheritDoc */
188
174
  set stroke(stroke: string);
189
- /**
190
- * @inheritDoc
191
- */
175
+ /** @inheritDoc */
192
176
  get dataSeries(): BaseDataSeries3D;
193
- /**
194
- * @inheritDoc
195
- */
177
+ /** @inheritDoc */
196
178
  set dataSeries(dataSeries: BaseDataSeries3D);
197
- /**
198
- * @inheritDoc
199
- */
179
+ /** @inheritDoc */
200
180
  get pointMarker(): BasePointMarker3D;
201
- /**
202
- * @inheritDoc
203
- */
181
+ /** @inheritDoc */
204
182
  set pointMarker(pointMarker: BasePointMarker3D);
205
- /**
206
- * @inheritDoc
207
- */
183
+ /** @inheritDoc */
208
184
  get parentSurface(): SciChart3DSurface;
209
- /**
210
- * @inheritDoc
211
- */
185
+ /** @inheritDoc */
212
186
  set parentSurface(parentSurface: SciChart3DSurface);
213
- /**
214
- * @inheritDoc
215
- */
187
+ /** @inheritDoc */
216
188
  get isVisible(): boolean;
217
- /**
218
- * @inheritDoc
219
- */
189
+ /** @inheritDoc */
220
190
  set isVisible(isVisible: boolean);
221
- /**
222
- * @inheritDoc
223
- */
191
+ /** @inheritDoc */
224
192
  onAttach(scs: SciChart3DSurface): void;
225
- /**
226
- * @inheritDoc
227
- */
193
+ /** @inheritDoc */
228
194
  onDetach(): void;
229
- /**
230
- * @inheritDoc
231
- */
195
+ /** @inheritDoc */
232
196
  delete(): void;
233
- /**
234
- * @inheritDoc
235
- */
197
+ /** @inheritDoc */
236
198
  onDpiChanged(args: TDpiChangedEventArgs): void;
237
199
  /**
238
200
  * Used internally - sets the {@link IRenderableSeriesSceneEntity | 3D Scene Entity}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseRenderableSeries3D = void 0;
4
4
  var Deleter_1 = require("../../../Core/Deleter");
5
+ var guid_1 = require("../../../utils/guid");
5
6
  var Constants_1 = require("./Constants");
6
7
  /**
7
8
  * @summary Defines the base class to a 3D Render Series (or 3D Chart Type) in SciChart's High Performance Real-time
@@ -22,6 +23,8 @@ var BaseRenderableSeries3D = /** @class */ (function () {
22
23
  * @protected
23
24
  */
24
25
  function BaseRenderableSeries3D(webAssemblyContext, options) {
26
+ var _a;
27
+ this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : guid_1.generateGuid();
25
28
  this.webAssemblyContext = webAssemblyContext;
26
29
  this.dataSeriesProperty = (options === null || options === void 0 ? void 0 : options.dataSeries) || undefined;
27
30
  this.isVisibleProperty = (options === null || options === void 0 ? void 0 : options.isVisible) !== undefined ? options === null || options === void 0 ? void 0 : options.isVisible : true;
@@ -31,22 +34,16 @@ var BaseRenderableSeries3D = /** @class */ (function () {
31
34
  this.pointMarkerPropertyChanged = this.pointMarkerPropertyChanged.bind(this);
32
35
  this.onDpiChanged = this.onDpiChanged.bind(this);
33
36
  }
34
- /**
35
- * @inheritDoc
36
- */
37
+ /** @inheritDoc */
37
38
  BaseRenderableSeries3D.prototype.applyTheme = function (themeProvider) {
38
39
  // TODO
39
40
  };
40
41
  Object.defineProperty(BaseRenderableSeries3D.prototype, "opacity", {
41
- /**
42
- * @inheritDoc
43
- */
42
+ /** @inheritDoc */
44
43
  get: function () {
45
44
  return this.opacityProperty;
46
45
  },
47
- /**
48
- * @inheritDoc
49
- */
46
+ /** @inheritDoc */
50
47
  set: function (opacity) {
51
48
  this.opacityProperty = opacity;
52
49
  this.notifyPropertyChanged(Constants_1.PROPERTY.OPACITY);
@@ -55,9 +52,7 @@ var BaseRenderableSeries3D = /** @class */ (function () {
55
52
  configurable: true
56
53
  });
57
54
  Object.defineProperty(BaseRenderableSeries3D.prototype, "sceneEntity", {
58
- /**
59
- * @inheritDoc
60
- */
55
+ /** @inheritDoc */
61
56
  get: function () {
62
57
  return this.sceneEntityProperty;
63
58
  },
@@ -65,15 +60,11 @@ var BaseRenderableSeries3D = /** @class */ (function () {
65
60
  configurable: true
66
61
  });
67
62
  Object.defineProperty(BaseRenderableSeries3D.prototype, "shininess", {
68
- /**
69
- * @inheritDoc
70
- */
63
+ /** @inheritDoc */
71
64
  get: function () {
72
65
  return this.shininessProperty;
73
66
  },
74
- /**
75
- * @inheritDoc
76
- */
67
+ /** @inheritDoc */
77
68
  set: function (shininess) {
78
69
  this.shininessProperty = shininess;
79
70
  this.notifyPropertyChanged(Constants_1.PROPERTY.SHININESS);
@@ -82,15 +73,11 @@ var BaseRenderableSeries3D = /** @class */ (function () {
82
73
  configurable: true
83
74
  });
84
75
  Object.defineProperty(BaseRenderableSeries3D.prototype, "paletteProvider", {
85
- /**
86
- * @inheritDoc
87
- */
76
+ /** @inheritDoc */
88
77
  get: function () {
89
78
  return this.paletteProviderProperty;
90
79
  },
91
- /**
92
- * @inheritDoc
93
- */
80
+ /** @inheritDoc */
94
81
  set: function (paletteProvider) {
95
82
  this.paletteProviderProperty = paletteProvider;
96
83
  this.notifyPropertyChanged(Constants_1.PROPERTY.PALETTE_PROVIDER);
@@ -99,15 +86,11 @@ var BaseRenderableSeries3D = /** @class */ (function () {
99
86
  configurable: true
100
87
  });
101
88
  Object.defineProperty(BaseRenderableSeries3D.prototype, "stroke", {
102
- /**
103
- * @inheritDoc
104
- */
89
+ /** @inheritDoc */
105
90
  get: function () {
106
91
  return this.strokeProperty;
107
92
  },
108
- /**
109
- * @inheritDoc
110
- */
93
+ /** @inheritDoc */
111
94
  set: function (stroke) {
112
95
  this.strokeProperty = stroke;
113
96
  this.notifyPropertyChanged(Constants_1.PROPERTY.STROKE);
@@ -116,15 +99,11 @@ var BaseRenderableSeries3D = /** @class */ (function () {
116
99
  configurable: true
117
100
  });
118
101
  Object.defineProperty(BaseRenderableSeries3D.prototype, "dataSeries", {
119
- /**
120
- * @inheritDoc
121
- */
102
+ /** @inheritDoc */
122
103
  get: function () {
123
104
  return this.dataSeriesProperty;
124
105
  },
125
- /**
126
- * @inheritDoc
127
- */
106
+ /** @inheritDoc */
128
107
  set: function (dataSeries) {
129
108
  this.dataSeriesProperty = dataSeries;
130
109
  this.notifyPropertyChanged(Constants_1.PROPERTY.DATA_SERIES);
@@ -133,15 +112,11 @@ var BaseRenderableSeries3D = /** @class */ (function () {
133
112
  configurable: true
134
113
  });
135
114
  Object.defineProperty(BaseRenderableSeries3D.prototype, "pointMarker", {
136
- /**
137
- * @inheritDoc
138
- */
115
+ /** @inheritDoc */
139
116
  get: function () {
140
117
  return this.pointMarkerProperty;
141
118
  },
142
- /**
143
- * @inheritDoc
144
- */
119
+ /** @inheritDoc */
145
120
  set: function (pointMarker) {
146
121
  this.detachPointMarker(this.pointMarkerProperty);
147
122
  this.pointMarkerProperty = pointMarker;
@@ -152,15 +127,11 @@ var BaseRenderableSeries3D = /** @class */ (function () {
152
127
  configurable: true
153
128
  });
154
129
  Object.defineProperty(BaseRenderableSeries3D.prototype, "parentSurface", {
155
- /**
156
- * @inheritDoc
157
- */
130
+ /** @inheritDoc */
158
131
  get: function () {
159
132
  return this.parentSurfaceProperty;
160
133
  },
161
- /**
162
- * @inheritDoc
163
- */
134
+ /** @inheritDoc */
164
135
  set: function (parentSurface) {
165
136
  this.parentSurfaceProperty = parentSurface;
166
137
  this.notifyPropertyChanged(Constants_1.PROPERTY.PARENT_SURFACE);
@@ -169,15 +140,11 @@ var BaseRenderableSeries3D = /** @class */ (function () {
169
140
  configurable: true
170
141
  });
171
142
  Object.defineProperty(BaseRenderableSeries3D.prototype, "isVisible", {
172
- /**
173
- * @inheritDoc
174
- */
143
+ /** @inheritDoc */
175
144
  get: function () {
176
145
  return this.isVisibleProperty;
177
146
  },
178
- /**
179
- * @inheritDoc
180
- */
147
+ /** @inheritDoc */
181
148
  set: function (isVisible) {
182
149
  this.isVisibleProperty = isVisible;
183
150
  if (this.sceneEntityProperty) {
@@ -188,9 +155,7 @@ var BaseRenderableSeries3D = /** @class */ (function () {
188
155
  enumerable: false,
189
156
  configurable: true
190
157
  });
191
- /**
192
- * @inheritDoc
193
- */
158
+ /** @inheritDoc */
194
159
  BaseRenderableSeries3D.prototype.onAttach = function (scs) {
195
160
  this.parentSurface = scs;
196
161
  if (this.invalidateParentCallback) {
@@ -198,23 +163,17 @@ var BaseRenderableSeries3D = /** @class */ (function () {
198
163
  }
199
164
  this.invalidateParentCallback = scs.invalidateElement;
200
165
  };
201
- /**
202
- * @inheritDoc
203
- */
166
+ /** @inheritDoc */
204
167
  BaseRenderableSeries3D.prototype.onDetach = function () {
205
168
  this.invalidateParentCallback = undefined;
206
169
  this.parentSurface = undefined;
207
170
  };
208
- /**
209
- * @inheritDoc
210
- */
171
+ /** @inheritDoc */
211
172
  BaseRenderableSeries3D.prototype.delete = function () {
212
173
  this.sceneEntityProperty = Deleter_1.deleteSafe(this.sceneEntityProperty);
213
174
  this.dataSeries = Deleter_1.deleteSafe(this.dataSeries);
214
175
  };
215
- /**
216
- * @inheritDoc
217
- */
176
+ /** @inheritDoc */
218
177
  BaseRenderableSeries3D.prototype.onDpiChanged = function (args) {
219
178
  var _a;
220
179
  (_a = this.sceneEntityProperty) === null || _a === void 0 ? void 0 : _a.onDpiChanged(args);