scichart 3.2.481 → 3.2.509

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 (62) hide show
  1. package/Charting/ChartModifiers/CursorModifier.js +3 -7
  2. package/Charting/ChartModifiers/RolloverModifier.js +1 -2
  3. package/Charting/ChartModifiers/VerticalSliceModifier.js +6 -0
  4. package/Charting/Drawing/WebGlRenderContext2D.d.ts +1 -1
  5. package/Charting/Drawing/WebGlRenderContext2D.js +1 -1
  6. package/Charting/LayoutManager/SynchronizedLayoutManager.js +12 -0
  7. package/Charting/Numerics/TickCoordinateProviders/DefaultTickCoordinatesProvider.d.ts +5 -0
  8. package/Charting/Numerics/TickCoordinateProviders/DefaultTickCoordinatesProvider.js +11 -1
  9. package/Charting/Numerics/TickCoordinateProviders/StaticTickCoordinatesProvider.d.ts +19 -0
  10. package/Charting/Numerics/TickCoordinateProviders/StaticTickCoordinatesProvider.js +86 -0
  11. package/Charting/Numerics/TickCoordinateProviders/TickCoordinatesProvider.d.ts +2 -0
  12. package/Charting/Numerics/TickProviders/LogarithmicTickProvider.d.ts +1 -0
  13. package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +6 -1
  14. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +1 -2
  15. package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +2 -3
  16. package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +1 -1
  17. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +1 -2
  18. package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +16 -17
  19. package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +2 -0
  20. package/Charting/Visuals/Annotations/SvgAnnotationBase.js +9 -4
  21. package/Charting/Visuals/Axis/AxisBase2D.d.ts +14 -1
  22. package/Charting/Visuals/Axis/AxisBase2D.js +51 -19
  23. package/Charting/Visuals/Axis/AxisCore.d.ts +1 -1
  24. package/Charting/Visuals/Axis/DeltaCalculator/LogarithmicDeltaCalculator.d.ts +1 -0
  25. package/Charting/Visuals/Axis/DeltaCalculator/LogarithmicDeltaCalculator.js +13 -4
  26. package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +6 -1
  27. package/Charting/Visuals/Axis/LogarithmicAxis.js +27 -10
  28. package/Charting/Visuals/Axis/constants.d.ts +2 -1
  29. package/Charting/Visuals/Axis/constants.js +1 -0
  30. package/Charting/Visuals/Helpers/createPen.js +8 -0
  31. package/Charting/Visuals/Legend/SciChartLegendBase.js +15 -2
  32. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +7 -0
  33. package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +41 -16
  34. package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +1 -1
  35. package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +16 -5
  36. package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +5 -0
  37. package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +7 -2
  38. package/Charting/Visuals/RenderableSeries/constants.d.ts +2 -1
  39. package/Charting/Visuals/RenderableSeries/constants.js +1 -0
  40. package/Charting/Visuals/SciChartOverview.js +3 -2
  41. package/Charting/Visuals/SciChartPieSurface/IPieSurfaceOptions.d.ts +1 -0
  42. package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +9 -8
  43. package/Charting/Visuals/SciChartSurfaceBase.js +5 -1
  44. package/Charting/Visuals/TextureManager/CanvasTexture.js +1 -7
  45. package/Charting3D/Visuals/Axis/AxisBase3D.d.ts +1 -1
  46. package/Core/BuildStamp.d.ts +1 -1
  47. package/Core/BuildStamp.js +2 -2
  48. package/Core/ObservableArray.d.ts +1 -1
  49. package/Core/ObservableArray.js +1 -1
  50. package/README.md +6 -1
  51. package/_wasm/scichart.browser.js +1 -1
  52. package/_wasm/scichart2d.js +1 -1
  53. package/_wasm/scichart2d.wasm +0 -0
  54. package/_wasm/scichart3d.js +1 -1
  55. package/_wasm/scichart3d.wasm +0 -0
  56. package/index.d.ts +1 -0
  57. package/index.dev.js +339 -119
  58. package/index.js +13 -11
  59. package/index.min.js +1 -1
  60. package/package.json +1 -1
  61. package/types/TSciChart.d.ts +19 -17
  62. package/types/TSciChart3D.d.ts +1 -0
@@ -170,8 +170,9 @@ var SciChartOverview = /** @class */ (function (_super) {
170
170
  };
171
171
  /** @inheritDoc */
172
172
  SciChartOverview.prototype.delete = function () {
173
- var _a;
174
- (_a = this.overviewSciChartSurface) === null || _a === void 0 ? void 0 : _a.delete();
173
+ if (this.overviewSciChartSurface && !this.overviewSciChartSurface.isDeleted) {
174
+ this.overviewSciChartSurface.delete();
175
+ }
175
176
  this.overviewWasmContext = undefined;
176
177
  };
177
178
  return SciChartOverview;
@@ -50,6 +50,7 @@ export interface IPieSurfaceOptions extends ISurfaceOptionsBase {
50
50
  valueMode?: EPieValueMode;
51
51
  /**
52
52
  * Use this to adjust the position of the labels. 1 is the default. Larger values will shift the labels outwards.
53
+ * For Pie charts, 1.7 will place the labels outside the pie.
53
54
  * If you want more detailed control you can override calcTitlePosition.
54
55
  */
55
56
  labelRadiusAdjustment?: number;
@@ -102,7 +102,7 @@ var SciChartPieSurface = /** @class */ (function (_super) {
102
102
  function SciChartPieSurface(canvases, options) {
103
103
  if (canvases === void 0) { canvases = {}; }
104
104
  var _this = this;
105
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
105
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
106
106
  _this = _super.call(this) || this;
107
107
  _this.animate = true;
108
108
  /* The number of frames for the animation. Default 30. A frame will be trigged every 20ms. */
@@ -166,18 +166,19 @@ var SciChartPieSurface = /** @class */ (function (_super) {
166
166
  _this.animate = (_f = options === null || options === void 0 ? void 0 : options.animate) !== null && _f !== void 0 ? _f : _this.animate;
167
167
  _this.holeRadiusSizingModeProperty = (_g = options === null || options === void 0 ? void 0 : options.holeRadiusSizingMode) !== null && _g !== void 0 ? _g : _this.holeRadiusSizingModeProperty;
168
168
  _this.seriesSpacingProperty = (_h = options === null || options === void 0 ? void 0 : options.seriesSpacing) !== null && _h !== void 0 ? _h : _this.seriesSpacingProperty;
169
- _this.legend.showLegend = (_j = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _j !== void 0 ? _j : _this.legend.showLegend;
170
- _this.legend.animate = (_k = options === null || options === void 0 ? void 0 : options.animateLegend) !== null && _k !== void 0 ? _k : _this.legend.animate;
171
- _this.legend.showCheckboxes = (_l = options === null || options === void 0 ? void 0 : options.showLegendCheckBoxes) !== null && _l !== void 0 ? _l : _this.legend.showCheckboxes;
172
- _this.legend.showSeriesMarkers = (_m = options === null || options === void 0 ? void 0 : options.showLegendSeriesMarkers) !== null && _m !== void 0 ? _m : _this.legend.showSeriesMarkers;
173
- _this.paddingProperty = (_o = options === null || options === void 0 ? void 0 : options.padding) !== null && _o !== void 0 ? _o : _this.paddingProperty;
169
+ _this.labelRadiusProperty = (_j = options === null || options === void 0 ? void 0 : options.labelRadiusAdjustment) !== null && _j !== void 0 ? _j : _this.labelRadiusProperty;
170
+ _this.legend.showLegend = (_k = options === null || options === void 0 ? void 0 : options.showLegend) !== null && _k !== void 0 ? _k : _this.legend.showLegend;
171
+ _this.legend.animate = (_l = options === null || options === void 0 ? void 0 : options.animateLegend) !== null && _l !== void 0 ? _l : _this.legend.animate;
172
+ _this.legend.showCheckboxes = (_m = options === null || options === void 0 ? void 0 : options.showLegendCheckBoxes) !== null && _m !== void 0 ? _m : _this.legend.showCheckboxes;
173
+ _this.legend.showSeriesMarkers = (_o = options === null || options === void 0 ? void 0 : options.showLegendSeriesMarkers) !== null && _o !== void 0 ? _o : _this.legend.showSeriesMarkers;
174
+ _this.paddingProperty = (_p = options === null || options === void 0 ? void 0 : options.padding) !== null && _p !== void 0 ? _p : _this.paddingProperty;
174
175
  if (options === null || options === void 0 ? void 0 : options.labelProvider) {
175
176
  if (!("getSegmentText" in (options === null || options === void 0 ? void 0 : options.labelProvider))) {
176
177
  options.labelProvider = (0, classFactory_1.createType)(BaseType_1.EBaseType.LabelProvider, options.labelProvider.type, undefined, options.labelProvider.options);
177
178
  }
178
179
  }
179
- _this.labelProvider = (_p = options === null || options === void 0 ? void 0 : options.labelProvider) !== null && _p !== void 0 ? _p : new PieLabelProvider_1.PieLabelProvider();
180
- _this.valueModeProperty = (_q = options === null || options === void 0 ? void 0 : options.valueMode) !== null && _q !== void 0 ? _q : _this.valueModeProperty;
180
+ _this.labelProvider = (_q = options === null || options === void 0 ? void 0 : options.labelProvider) !== null && _q !== void 0 ? _q : new PieLabelProvider_1.PieLabelProvider();
181
+ _this.valueModeProperty = (_r = options === null || options === void 0 ? void 0 : options.valueMode) !== null && _r !== void 0 ? _r : _this.valueModeProperty;
181
182
  return _this;
182
183
  }
183
184
  /**
@@ -133,11 +133,15 @@ var SciChartSurfaceBase = /** @class */ (function (_super) {
133
133
  if (process.env.NODE_ENV !== "production") {
134
134
  if (MemoryUsageHelper_1.MemoryUsageHelper.isMemoryUsageDebugEnabled) {
135
135
  var rootContainer = document.body;
136
+ var wasAttached_1 = false;
136
137
  var observer_1 = new MutationObserver(function () {
137
138
  var isInDom = _this.domChartRoot.isConnected;
138
- if (!isInDom && !_this.isDeleted) {
139
+ if (wasAttached_1 && !isInDom && !_this.isDeleted) {
139
140
  console.warn("The chart root element \"".concat(_this.domChartRoot.id, "\" was detached before the surface ").concat(_this.id, " was properly disposed! Make sure to call \"delete\" method on the surface when it is not longer needed."));
140
141
  }
142
+ if (isInDom) {
143
+ wasAttached_1 = true;
144
+ }
141
145
  });
142
146
  observer_1.observe(rootContainer, { childList: true, subtree: true });
143
147
  _this.addDeletable({
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.CanvasTexture = void 0;
19
19
  var app_1 = require("../../../constants/app");
20
20
  var Deleter_1 = require("../../../Core/Deleter");
21
- var colorUtil_1 = require("../../../utils/colorUtil");
22
21
  var TextureCache_1 = require("../../Drawing/TextureCache");
23
22
  var Guard_1 = require("../../../Core/Guard");
24
23
  var DeletableEntity_1 = require("../../../Core/DeletableEntity");
@@ -149,12 +148,7 @@ var CanvasTexture = /** @class */ (function (_super) {
149
148
  this.wasmContext.SCRTFillTextureAbgr(tsrTexture, this.width, this.height, this.intermediateVector);
150
149
  };
151
150
  CanvasTexture.prototype.applyOpacity = function (opacity) {
152
- var size = this.width * this.height;
153
- for (var i = 0; i < size; i++) {
154
- var oldPixel = this.originalIntermediateVector.get(i);
155
- var newPixel = (0, colorUtil_1.uintArgbColorMultiplyOpacity)(oldPixel, opacity);
156
- this.intermediateVector.set(i, newPixel);
157
- }
151
+ this.wasmContext.SCRTMultiplyColorVectorOpacity(this.originalIntermediateVector, this.intermediateVector, opacity);
158
152
  var tsrTexture = this.tsrTextureCache.value;
159
153
  this.wasmContext.SCRTFillTextureAbgr(tsrTexture, this.width, this.height, this.intermediateVector);
160
154
  };
@@ -224,7 +224,7 @@ export declare abstract class AxisBase3D extends AxisCore implements IThemeable
224
224
  /**
225
225
  * gets the axis size from the WorldDimensions, depending on whether it is an X,Y or ZAxis
226
226
  */
227
- protected getAxisSize(): number;
227
+ getAxisSize(): number;
228
228
  /**
229
229
  * Given an array of numeric values for axis labels, returns a list of strings. Uses {@link labelProvider} property to format labels
230
230
  * @param majorTicks The major tick values as numbers to be converted to labels
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "3.2.481";
3
+ export declare const libraryVersion = "3.2.509";
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 = "2023-10-05T00:00:00";
4
+ var buildStamp = "2023-11-07T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "3.2.481";
7
+ exports.libraryVersion = "3.2.509";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;
@@ -25,7 +25,7 @@ export declare class ObservableArray<T extends {
25
25
  */
26
26
  add(...items: T[]): void;
27
27
  /**
28
- * Converts to a javascript array
28
+ * Returns the backing array. Do not modify this collection. Use add or remove instead.
29
29
  */
30
30
  asArray(): T[];
31
31
  /**
@@ -34,7 +34,7 @@ var ObservableArray = /** @class */ (function () {
34
34
  this.collectionChanged.raiseEvent(new ObservableArrayChangedArgs_1.ObservableArrayChangedArgs(ObservableArrayChangedArgs_1.EObservableArrayChangedAction.Add, items, undefined));
35
35
  };
36
36
  /**
37
- * Converts to a javascript array
37
+ * Returns the backing array. Do not modify this collection. Use add or remove instead.
38
38
  */
39
39
  ObservableArray.prototype.asArray = function () {
40
40
  return this.items;
package/README.md CHANGED
@@ -9,7 +9,12 @@ which WebGL and WebAssembly to achieve incredible real-time and big-data perform
9
9
 
10
10
  [![SciChart.js 2D 3D chart types](https://www.scichart.com/wp-content/uploads/2022/12/sc-home-collage.png)](https://www.scichart.com/javascript-chart-features)
11
11
 
12
- SciChart.JS v3 is released! Check out [what's new](https://www.scichart.com/scichart-js-v3-0-released). There should not be any breaking changes.
12
+ SciChart.JS v3.2 is released! Check out
13
+
14
+ - [Latest Changes](https://www.scichart.com/cbxchangelog/scichart-js-changelog/)
15
+ - [v3.2 Release notes](https://www.scichart.com/scichart-js-v3-2-released/)
16
+ - [v3.1 Release notes](https://www.scichart.com/scichart-js-v3-1-released/)
17
+ - [v3.0 Release notes](https://www.scichart.com/scichart-js-v3-0-released) There should not be any breaking changes from v2.
13
18
 
14
19
  ## License
15
20