scichart 2.1.2294 → 2.2.2378

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 (184) hide show
  1. package/Builder/buildAxis.d.ts +7 -0
  2. package/Builder/buildAxis.js +6 -0
  3. package/Builder/buildDataSeries.d.ts +19 -1
  4. package/Builder/buildDataSeries.js +22 -1
  5. package/Builder/buildModifiers.d.ts +2 -1
  6. package/Builder/buildSeries.d.ts +7 -2
  7. package/Builder/buildSeries.js +5 -1
  8. package/Charting/ChartModifiers/CursorModifier.d.ts +5 -0
  9. package/Charting/ChartModifiers/CursorModifier.js +15 -10
  10. package/Charting/ChartModifiers/LegendModifier.d.ts +31 -0
  11. package/Charting/ChartModifiers/LegendModifier.js +22 -0
  12. package/Charting/ChartModifiers/RolloverModifier.d.ts +10 -0
  13. package/Charting/ChartModifiers/RolloverModifier.js +76 -19
  14. package/Charting/Drawing/WebGlRenderContext2D.js +26 -42
  15. package/Charting/LayoutManager/LayoutManager.js +6 -1
  16. package/Charting/Model/BaseHeatmapDataSeries.d.ts +3 -2
  17. package/Charting/Model/BaseHeatmapDataSeries.js +17 -5
  18. package/Charting/Model/ChartData/HlcSeriesInfo.d.ts +12 -0
  19. package/Charting/Model/ChartData/HlcSeriesInfo.js +52 -0
  20. package/Charting/Model/Filters/HlcCustomFilter.d.ts +41 -0
  21. package/Charting/Model/Filters/HlcCustomFilter.js +119 -0
  22. package/Charting/Model/Filters/HlcFilterBase.d.ts +30 -0
  23. package/Charting/Model/Filters/HlcFilterBase.js +141 -0
  24. package/Charting/Model/Filters/HlcScaleOffsetFilter.d.ts +18 -0
  25. package/Charting/Model/Filters/HlcScaleOffsetFilter.js +86 -0
  26. package/Charting/Model/Filters/XyFilterBase.d.ts +2 -0
  27. package/Charting/Model/Filters/XyFilterBase.js +6 -0
  28. package/Charting/Model/Filters/XyyFilterBase.js +9 -0
  29. package/Charting/Model/Filters/XyzFilterBase.js +12 -3
  30. package/Charting/Model/HlcDataSeries.d.ts +189 -0
  31. package/Charting/Model/HlcDataSeries.js +557 -0
  32. package/Charting/Model/IDataSeries.d.ts +5 -1
  33. package/Charting/Model/IDataSeries.js +4 -0
  34. package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +1 -1
  35. package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -2
  36. package/Charting/Model/PointSeries/HlcPointSeriesWrapped.d.ts +10 -0
  37. package/Charting/Model/PointSeries/HlcPointSeriesWrapped.js +31 -0
  38. package/Charting/Model/PointSeries/IPointSeries.d.ts +5 -0
  39. package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +1 -1
  40. package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +3 -3
  41. package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.d.ts +2 -2
  42. package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.js +15 -6
  43. package/Charting/Services/SciChartRenderer.d.ts +1 -0
  44. package/Charting/Services/SciChartRenderer.js +6 -0
  45. package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -1
  46. package/Charting/Visuals/Annotations/AnnotationBase.js +23 -2
  47. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +6 -0
  48. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +46 -5
  49. package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +3 -1
  50. package/Charting/Visuals/Annotations/CustomAnnotation.js +14 -3
  51. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.d.ts +4 -0
  52. package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +3 -2
  53. package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +1 -1
  54. package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +13 -3
  55. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +13 -0
  56. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +71 -14
  57. package/Charting/Visuals/Annotations/VerticalLineAnnotation.d.ts +2 -0
  58. package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +3 -2
  59. package/Charting/Visuals/Annotations/constants.d.ts +2 -1
  60. package/Charting/Visuals/Annotations/constants.js +1 -0
  61. package/Charting/Visuals/Axis/AxisBase2D.d.ts +11 -1
  62. package/Charting/Visuals/Axis/AxisBase2D.js +75 -17
  63. package/Charting/Visuals/Axis/AxisCore.d.ts +4 -0
  64. package/Charting/Visuals/Axis/AxisCore.js +6 -0
  65. package/Charting/Visuals/Axis/AxisRenderer.js +6 -10
  66. package/Charting/Visuals/Axis/DateTimeNumericAxis.d.ts +11 -0
  67. package/Charting/Visuals/Axis/DateTimeNumericAxis.js +36 -0
  68. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.d.ts +28 -0
  69. package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +125 -0
  70. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +34 -0
  71. package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +82 -0
  72. package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +2 -2
  73. package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +39 -6
  74. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -0
  75. package/Charting/Visuals/Axis/LogarithmicAxis.js +5 -3
  76. package/Charting/Visuals/Helpers/NativeObject.d.ts +13 -0
  77. package/Charting/Visuals/Helpers/NativeObject.js +101 -0
  78. package/Charting/Visuals/Helpers/createNativeRect.d.ts +2 -2
  79. package/Charting/Visuals/Helpers/createNativeRect.js +3 -1
  80. package/Charting/Visuals/Helpers/drawBorder.js +2 -2
  81. package/Charting/Visuals/Helpers/drawLabel.d.ts +3 -3
  82. package/Charting/Visuals/Helpers/drawLabel.js +38 -18
  83. package/Charting/Visuals/I2DSurfaceOptions.d.ts +6 -0
  84. package/Charting/Visuals/Legend/SciChartLegend.d.ts +4 -0
  85. package/Charting/Visuals/Legend/SciChartLegend.js +7 -1
  86. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +24 -8
  87. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +109 -31
  88. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +3 -0
  89. package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -0
  90. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +17 -166
  91. package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +35 -328
  92. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +5 -2
  93. package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +5 -3
  94. package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +14 -11
  95. package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +46 -0
  96. package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +252 -0
  97. package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +1 -1
  98. package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.d.ts +188 -0
  99. package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +357 -0
  100. package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +3 -10
  101. package/Charting/Visuals/RenderableSeries/HitTest/ErrorSeriesHitTestProvider.d.ts +20 -0
  102. package/Charting/Visuals/RenderableSeries/HitTest/ErrorSeriesHitTestProvider.js +120 -0
  103. package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +6 -0
  104. package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +36 -0
  105. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +8 -0
  106. package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +6 -0
  107. package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.d.ts +6 -0
  108. package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.js +11 -0
  109. package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +1 -2
  110. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +22 -0
  111. package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +38 -1
  112. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -2
  113. package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +26 -45
  114. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +77 -18
  115. package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +139 -42
  116. package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +13 -0
  117. package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +23 -3
  118. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
  119. package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +21 -1
  120. package/Charting/Visuals/RenderableSeries/constants.d.ts +8 -0
  121. package/Charting/Visuals/RenderableSeries/constants.js +8 -0
  122. package/Charting/Visuals/SciChartPieSurface/IPieSurfaceOptions.d.ts +25 -2
  123. package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +9 -1
  124. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +128 -2
  125. package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +202 -21
  126. package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +6 -1
  127. package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +5 -0
  128. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +77 -3
  129. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +373 -81
  130. package/Charting/Visuals/SciChartPieSurface/constants.d.ts +7 -1
  131. package/Charting/Visuals/SciChartPieSurface/constants.js +6 -0
  132. package/Charting/Visuals/SciChartSurface.d.ts +13 -2
  133. package/Charting/Visuals/SciChartSurface.js +39 -3
  134. package/Charting/Visuals/createMaster.js +17 -13
  135. package/Charting/Visuals/createSingle.js +5 -3
  136. package/Charting/Visuals/licenseManager2D.d.ts +6 -0
  137. package/Charting/Visuals/licenseManager2D.js +83 -8
  138. package/Charting/Visuals/licenseManager2dState.d.ts +11 -0
  139. package/Charting/Visuals/licenseManager2dState.js +37 -1
  140. package/Charting/Visuals/loader.js +4 -1
  141. package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
  142. package/Charting/Visuals/sciChartInitCommon.js +13 -9
  143. package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +6 -2
  144. package/Charting3D/Visuals/SciChart3DRenderer.js +1 -1
  145. package/Charting3D/Visuals/createMaster3d.js +20 -14
  146. package/Charting3D/Visuals/createSingle3d.js +3 -4
  147. package/Charting3D/Visuals/licenseManager3D.js +3 -1
  148. package/Core/BuildStamp.d.ts +1 -1
  149. package/Core/BuildStamp.js +2 -2
  150. package/Core/Telemetry.d.ts +7 -0
  151. package/Core/Telemetry.js +106 -0
  152. package/Core/storage/localStorageApi.d.ts +4 -0
  153. package/Core/storage/localStorageApi.js +12 -0
  154. package/_wasm/scichart.browser.js +1 -1
  155. package/_wasm/scichart2d.js +95 -95
  156. package/_wasm/scichart2d.wasm +0 -0
  157. package/_wasm/scichart3d.js +14 -14
  158. package/_wasm/scichart3d.wasm +0 -0
  159. package/package.json +1 -1
  160. package/types/AxisType.d.ts +5 -1
  161. package/types/AxisType.js +4 -0
  162. package/types/Color.d.ts +1 -0
  163. package/types/Color.js +1 -0
  164. package/types/DataFilterType.d.ts +1 -0
  165. package/types/DataFilterType.js +1 -0
  166. package/types/DataPointWidthMode.d.ts +13 -0
  167. package/types/DataPointWidthMode.js +17 -0
  168. package/types/ErrorDirection.d.ts +13 -0
  169. package/types/ErrorDirection.js +17 -0
  170. package/types/ErrorMode.d.ts +17 -0
  171. package/types/ErrorMode.js +21 -0
  172. package/types/LabelPlacement.d.ts +8 -0
  173. package/types/LabelPlacement.js +11 -1
  174. package/types/LabelProviderType.d.ts +5 -1
  175. package/types/LabelProviderType.js +4 -0
  176. package/types/SeriesType.d.ts +3 -1
  177. package/types/SeriesType.js +2 -0
  178. package/types/TSciChart.d.ts +8 -2
  179. package/types/TSciChart3D.d.ts +5 -2
  180. package/types/TSciChartSurfaceCanvases.d.ts +1 -0
  181. package/utils/date.d.ts +1 -0
  182. package/utils/date.js +15 -1
  183. package/utils/guid.d.ts +6 -0
  184. package/utils/guid.js +17 -1
@@ -156,20 +156,26 @@ var createMaster = function () {
156
156
  InitializeChart: function () {
157
157
  resolve({ getChildSurfaces: getChildSurfaces, createChildSurface: createChildSurface, wasmContext: wasmContext });
158
158
  },
159
- Draw: function () {
160
- exports.sciChartDestinations.forEach(function (dest) {
161
- var canvasElementId = dest.canvasElementId, sciChartSurface = dest.sciChartSurface;
162
- var chart = wasmContext.SCRTGetGlobalSampleChartInterface3D();
163
- // TODO
164
- if (chart.GetCurrentDestination()) {
165
- var currDestID = chart.GetCurrentDestination().GetID();
166
- if (currDestID === canvasElementId &&
167
- sciChartSurface.isInitialized &&
168
- !sciChartSurface.isDeleted) {
169
- sciChartSurface.doDrawingLoop();
170
- }
171
- }
172
- });
159
+ Draw: function (canvasId) {
160
+ var dest = exports.sciChartDestinations.find(function (d) { return d.canvasElementId === canvasId; });
161
+ if (dest) {
162
+ dest.sciChartSurface.doDrawingLoop();
163
+ }
164
+ // sciChartDestinations.forEach(dest => {
165
+ // const { canvasElementId, sciChartSurface } = dest;
166
+ // const chart = wasmContext.SCRTGetGlobalSampleChartInterface3D();
167
+ // // TODO
168
+ // if (chart.GetCurrentDestination()) {
169
+ // const currDestID = chart.GetCurrentDestination().GetID();
170
+ // if (
171
+ // currDestID === canvasElementId &&
172
+ // sciChartSurface.isInitialized &&
173
+ // !sciChartSurface.isDeleted
174
+ // ) {
175
+ // (sciChartSurface as SciChart3DSurface).doDrawingLoop();
176
+ // }
177
+ // }
178
+ // });
173
179
  },
174
180
  Update: function (deltaTime) {
175
181
  // console.log("Update");
@@ -9,7 +9,6 @@ var sciChartInitCommon_1 = require("../../Charting/Visuals/sciChartInitCommon");
9
9
  var SciChartSurfaceBase_1 = require("../../Charting/Visuals/SciChartSurfaceBase");
10
10
  var BuildStamp_1 = require("../../Core/BuildStamp");
11
11
  var WebGlHelper_1 = require("../../Core/WebGlHelper");
12
- var logger_1 = require("../../utils/logger");
13
12
  var licenseManager3D_1 = require("./licenseManager3D");
14
13
  var SciChart3DSurface_1 = require("./SciChart3DSurface");
15
14
  var createSingle3dInternal = function (divElement, options) {
@@ -67,16 +66,16 @@ var initDrawEngineSingleChart = function (wasmContext, canvases, resolve, theme)
67
66
  }, 0);
68
67
  resolve({ wasmContext: wasmContext, sciChart3DSurface: scs });
69
68
  },
70
- Draw: function () {
69
+ Draw: function (canvasId) {
71
70
  if (scs.isInitialized) {
72
71
  scs.doDrawingLoop();
73
72
  }
74
73
  },
75
74
  Update: function (deltaTime) {
76
- logger_1.Logger.log("SciChart3DSurface.ts Update()");
75
+ //Logger.log("SciChart3DSurface.ts Update()");
77
76
  },
78
77
  ShutDownChart: function () {
79
- logger_1.Logger.log("SciChart3DSurface.ts ShutDownChart");
78
+ //Logger.log("SciChart3DSurface.ts ShutDownChart");
80
79
  }
81
80
  };
82
81
  var chartInitObj = wasmContext.SCRTSampleChartInterface3D.implement(chartInitializer);
@@ -34,7 +34,9 @@ var applyLicense3D = function (licenseContext, sciChartSurface, isSingle) {
34
34
  (0, licenseManager2D_1.setCallbacks3D)(callbacks3D);
35
35
  (0, licenseManager2D_1.applyLicense)(licenseContext);
36
36
  }
37
- (0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext), sciChartSurface, false, false);
37
+ else {
38
+ (0, licenseManager2D_1.updateLicenseDisplay)((0, licenseManager2D_1.getLicenseInfo)(licenseContext), sciChartSurface, false, false);
39
+ }
38
40
  if (!isSingle)
39
41
  shouldApplyLicense3D = false;
40
42
  };
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "2.1.2294";
3
+ export declare const libraryVersion = "2.2.2378";
4
4
  export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.checkBuildStamp = exports.libraryVersion = void 0;
4
- var buildStamp = "2022-03-16T00:00:00";
4
+ var buildStamp = "2022-05-20T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "2.1.2294";
7
+ exports.libraryVersion = "2.2.2378";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;
@@ -0,0 +1,7 @@
1
+ export declare const getUserCookie: () => {
2
+ userId: string;
3
+ sessionId: string;
4
+ sessionStart: number;
5
+ };
6
+ export declare const shouldSendTelemetry: () => boolean;
7
+ export declare const sendTelemetry: () => void;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendTelemetry = exports.shouldSendTelemetry = exports.getUserCookie = void 0;
4
+ var licenseManager2dState_1 = require("../Charting/Visuals/licenseManager2dState");
5
+ var cookie_1 = require("../utils/cookie");
6
+ var BuildStamp_1 = require("./BuildStamp");
7
+ var app_1 = require("../constants/app");
8
+ var guid_1 = require("../utils/guid");
9
+ var sessionTime = 60 * 60 * 1000;
10
+ var hasSent = false;
11
+ var setUserCookie = function (userId, sessionId, sessionStart) {
12
+ var cookieVal = "".concat(userId, ",").concat(sessionId, ",").concat(sessionStart);
13
+ return (0, cookie_1.setCookie)("scUser", cookieVal, 365);
14
+ };
15
+ var getUserCookie = function () {
16
+ var cookie = (0, cookie_1.getCookie)("scUser");
17
+ if (cookie) {
18
+ var parts = cookie.split(",");
19
+ if (parts.length === 3)
20
+ return {
21
+ userId: parts[0],
22
+ sessionId: parts[1],
23
+ sessionStart: Number.parseInt(parts[2], 10)
24
+ };
25
+ }
26
+ return {
27
+ userId: (0, guid_1.base64Id)(),
28
+ sessionId: (0, guid_1.base64Id)(),
29
+ sessionStart: 0
30
+ };
31
+ };
32
+ exports.getUserCookie = getUserCookie;
33
+ var shouldSendTelemetry = function () {
34
+ // Not in test
35
+ if (app_1.IS_TEST_ENV)
36
+ return false;
37
+ // Not if we've already done it
38
+ if (hasSent)
39
+ return false;
40
+ // not if the license is not dev
41
+ if (!licenseManager2dState_1.licenseManager2dState.getIsDev())
42
+ return false;
43
+ // not if telemetry not enabled
44
+ if (!licenseManager2dState_1.licenseManager2dState.getTelemetry())
45
+ return false;
46
+ // not if not online
47
+ if (window && !window.navigator.onLine)
48
+ return false;
49
+ return true;
50
+ };
51
+ exports.shouldSendTelemetry = shouldSendTelemetry;
52
+ var sendTelemetry = function () {
53
+ if (!(0, exports.shouldSendTelemetry)())
54
+ return;
55
+ var user = (0, exports.getUserCookie)();
56
+ var timeStamp = new Date().toISOString();
57
+ // New sessionId if previous has expired
58
+ if (Date.now() - user.sessionStart < sessionTime) {
59
+ // Don't send more than once per session.
60
+ return;
61
+ }
62
+ // Reset the session time. Sessions expire 30 minutes after the last use in the session.
63
+ // Session tracking is more relevant once we start collecting more detailed per-chart data
64
+ user.sessionId = (0, guid_1.base64Id)();
65
+ user.sessionStart = Date.now();
66
+ setUserCookie(user.userId, user.sessionId, user.sessionStart);
67
+ var eventData = {
68
+ time: timeStamp,
69
+ iKey: "210b4d64-8147-471e-b6cb-244a2c939455",
70
+ name: "Microsoft.ApplicationInsights.210b4d648147471eb6cb244a2c939455.Event",
71
+ tags: {
72
+ "ai.user.id": user.userId,
73
+ "ai.session.id": user.sessionId,
74
+ "ai.device.id": "browser",
75
+ "ai.device.type": "Browser"
76
+ },
77
+ data: {
78
+ baseType: "EventData",
79
+ baseData: {
80
+ ver: 2,
81
+ name: "LicenseSet",
82
+ properties: {
83
+ platform: "JS",
84
+ licenseType: licenseManager2dState_1.licenseManager2dState.getLicenseType(),
85
+ orderId: licenseManager2dState_1.licenseManager2dState.getOrderId(),
86
+ productCode: licenseManager2dState_1.licenseManager2dState.getProductCode(),
87
+ isDev: licenseManager2dState_1.licenseManager2dState.getIsDev(),
88
+ devCount: licenseManager2dState_1.licenseManager2dState.getDevCount(),
89
+ sciChartVersion: BuildStamp_1.libraryVersion
90
+ },
91
+ measurements: {}
92
+ }
93
+ }
94
+ };
95
+ var endPointUrl = "https://dc.services.visualstudio.com/v2/track";
96
+ var body = JSON.stringify([eventData]);
97
+ fetch(endPointUrl, {
98
+ method: "POST",
99
+ headers: {
100
+ "Content-Type": "application/json"
101
+ },
102
+ body: body
103
+ }).catch();
104
+ hasSent = true;
105
+ };
106
+ exports.sendTelemetry = sendTelemetry;
@@ -1,8 +1,12 @@
1
1
  declare function getIsLicenseDebug(): boolean;
2
+ declare function setIsLicenseDebug(value: boolean): void;
3
+ declare function clearLicensingDebug(): void;
2
4
  declare function getLicenseWizardPort(): number;
3
5
  declare function getLicenseWizardMaxPort(): number;
4
6
  export declare const localStorageApi: {
5
7
  getIsLicenseDebug: typeof getIsLicenseDebug;
8
+ setIsLicenseDebug: typeof setIsLicenseDebug;
9
+ clearLicensingDebug: typeof clearLicensingDebug;
6
10
  getLicenseWizardMaxPort: typeof getLicenseWizardMaxPort;
7
11
  getLicenseWizardPort: typeof getLicenseWizardPort;
8
12
  };
@@ -7,6 +7,16 @@ function getIsLicenseDebug() {
7
7
  return undefined;
8
8
  return localStorage.getItem("LICENSE_DEBUG") === "1";
9
9
  }
10
+ function setIsLicenseDebug(value) {
11
+ if (checkLocalStorageIsUndefined())
12
+ return;
13
+ localStorage.setItem("LICENSE_DEBUG", value ? "1" : "0");
14
+ }
15
+ function clearLicensingDebug() {
16
+ if (checkLocalStorageIsUndefined())
17
+ return;
18
+ localStorage.removeItem("LICENSE_DEBUG");
19
+ }
10
20
  function getLicenseWizardPort() {
11
21
  if (checkLocalStorageIsUndefined())
12
22
  return undefined;
@@ -27,6 +37,8 @@ function getLicenseWizardMaxPort() {
27
37
  }
28
38
  exports.localStorageApi = {
29
39
  getIsLicenseDebug: getIsLicenseDebug,
40
+ setIsLicenseDebug: setIsLicenseDebug,
41
+ clearLicensingDebug: clearLicensingDebug,
30
42
  getLicenseWizardMaxPort: getLicenseWizardMaxPort,
31
43
  getLicenseWizardPort: getLicenseWizardPort
32
44
  };