scichart 3.2.538 → 3.2.549

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.
@@ -365,6 +365,7 @@ var DataPointSelectionModifier = /** @class */ (function (_super) {
365
365
  return json;
366
366
  };
367
367
  DataPointSelectionModifier.prototype.delete = function () {
368
+ this.selectionChanged.unsubscribeAll();
368
369
  this.selectionRect = (0, Deleter_1.deleteSafe)(this.selectionRect);
369
370
  _super.prototype.delete.call(this);
370
371
  };
@@ -14,6 +14,7 @@ declare type TModifierMouseArgsParams = {
14
14
  ctrlKey?: boolean;
15
15
  altKey?: boolean;
16
16
  nativeEvent?: MouseEvent;
17
+ isActiveSubChartEvent?: boolean;
17
18
  };
18
19
  /**
19
20
  * Mouse arguments passed to {@link ChartModifierBase} methods
@@ -98,6 +99,12 @@ export declare class ModifierMouseArgs extends ModifierArgsBase {
98
99
  * The native pointer event
99
100
  */
100
101
  nativeEvent: MouseEvent;
102
+ /**
103
+ * Identifies if the event comes from an active sub chart
104
+ * Useful for SubChartSurfaces with modifierGroups
105
+ * for SciChartSurface returns always True
106
+ */
107
+ readonly isActiveSubChartEvent: boolean;
101
108
  /**
102
109
  * Creates an instance of {@link ModifierMouseArgs}
103
110
  * @param mousePoint the mouse point as an X,Y location
@@ -45,6 +45,12 @@ var ModifierMouseArgs = /** @class */ (function (_super) {
45
45
  var _this = this;
46
46
  var _a;
47
47
  _this = _super.call(this) || this;
48
+ /**
49
+ * Identifies if the event comes from an active sub chart
50
+ * Useful for SubChartSurfaces with modifierGroups
51
+ * for SciChartSurface returns always True
52
+ */
53
+ _this.isActiveSubChartEvent = true;
48
54
  _this.mousePoint = mousePoint;
49
55
  _this.button = options === null || options === void 0 ? void 0 : options.button;
50
56
  _this.mouseWheelDelta = (_a = options === null || options === void 0 ? void 0 : options.mouseWheelDelta) !== null && _a !== void 0 ? _a : 0;
@@ -28,6 +28,7 @@ export interface IPaletteProvider {
28
28
  /**
29
29
  * Called once before the per-vertex loop starts.
30
30
  * @Returns true if paletting should be forced to run. If this exists and returns false, the existing paletting state is reused if possible.
31
+ * If this does NOT exist, the palette will be recalculated on every render. This default will change in v4.
31
32
  * Use this to force the palette to be recalculated if some external parameter to it changes.
32
33
  */
33
34
  shouldUpdatePalette?(): boolean;
@@ -61,7 +61,7 @@ var DefaultPaletteProvider = /** @class */ (function () {
61
61
  * @inheritDoc
62
62
  */
63
63
  DefaultPaletteProvider.prototype.shouldUpdatePalette = function () {
64
- return false;
64
+ return true;
65
65
  };
66
66
  /**
67
67
  * @inheritDoc
@@ -75,7 +75,7 @@ var BaseSeriesDrawingProvider = /** @class */ (function (_super) {
75
75
  var xCount = xValues.size();
76
76
  var count = Math.min(pointSeries ? pointSeries.xValues.size() : xCount, xCount);
77
77
  var startIndex = 0;
78
- if (shouldClip && !(pointSeries === null || pointSeries === void 0 ? void 0 : pointSeries.resampled) && ((_c = renderPassData === null || renderPassData === void 0 ? void 0 : renderPassData.indexRange) === null || _c === void 0 ? void 0 : _c.diff) > 0) {
78
+ if (shouldClip && !(pointSeries === null || pointSeries === void 0 ? void 0 : pointSeries.resampled) && ((_c = renderPassData === null || renderPassData === void 0 ? void 0 : renderPassData.indexRange) === null || _c === void 0 ? void 0 : _c.diff) >= 0) {
79
79
  if (renderPassData.indexRange.diff + 1 < count) {
80
80
  startIndex = renderPassData.indexRange.min;
81
81
  }
@@ -356,7 +356,8 @@ var BaseSeriesDrawingProvider = /** @class */ (function (_super) {
356
356
  this.palettingState.paletteStartIndex = startIndex - this.palettingState.lastStartIndex;
357
357
  }
358
358
  }
359
- if (paletteProvider.shouldUpdatePalette && paletteProvider.shouldUpdatePalette()) {
359
+ // Default to always update for back compatability
360
+ if (!paletteProvider.shouldUpdatePalette || paletteProvider.shouldUpdatePalette()) {
360
361
  this.palettingState.requiresUpdate = true;
361
362
  }
362
363
  };
@@ -148,12 +148,13 @@ var OhlcSeriesDrawingProvider = /** @class */ (function (_super) {
148
148
  // console.log(sx);
149
149
  // console.log(sy);
150
150
  var xDrawValues = isCategoryAxis ? pointSeries.indexes : xValues;
151
- this.nativeDrawingProvider.DrawPointsVec(nativeContext, xDrawValues, openValues, highValues, lowValues, closeValues, renderPassData.xCoordinateCalculator.nativeCalculator, renderPassData.yCoordinateCalculator.nativeCalculator, this.args);
151
+ this.args.SetValues(xDrawValues, openValues, highValues, lowValues, closeValues);
152
+ this.nativeDrawingProvider.DrawPointsVec(nativeContext, renderPassData.xCoordinateCalculator.nativeCalculator, renderPassData.yCoordinateCalculator.nativeCalculator, this.args);
152
153
  if (fifoSweeping && fifoCapacity === this.parentSeries.dataSeries.count()) {
153
154
  this.args.startIndex = Math.min(closeValues.size(), fifoStartIndex + fifoSweepingGap);
154
155
  this.args.count = Math.max(0, closeValues.size() - fifoStartIndex - fifoSweepingGap);
155
156
  if (this.args.count > 0) {
156
- this.nativeDrawingProvider.DrawPointsVec(nativeContext, xDrawValues, openValues, highValues, lowValues, closeValues, renderPassData.xCoordinateCalculator.nativeCalculator, renderPassData.yCoordinateCalculator.nativeCalculator, this.args);
157
+ this.nativeDrawingProvider.DrawPointsVec(nativeContext, renderPassData.xCoordinateCalculator.nativeCalculator, renderPassData.yCoordinateCalculator.nativeCalculator, this.args);
157
158
  }
158
159
  }
159
160
  };
@@ -168,7 +168,7 @@ export declare abstract class SciChartSurfaceBase extends DeletableEntity implem
168
168
  static setRuntimeLicenseKey(keyCode: string): void;
169
169
  /**
170
170
  * Causes SciChart to always use its built in community non-commercial license. This stops it attempting to look for the license wizard
171
- * Usage of the community license constitutes acceptace of the EULA at https://scichart.com/JSCommunityEULA
171
+ * Usage of the community license constitutes acceptance of the terms at https://www.scichart.com/community-licensing/
172
172
  */
173
173
  static UseCommunityLicense(): void;
174
174
  /**
@@ -189,7 +189,7 @@ var SciChartSurfaceBase = /** @class */ (function (_super) {
189
189
  };
190
190
  /**
191
191
  * Causes SciChart to always use its built in community non-commercial license. This stops it attempting to look for the license wizard
192
- * Usage of the community license constitutes acceptace of the EULA at https://scichart.com/JSCommunityEULA
192
+ * Usage of the community license constitutes acceptance of the terms at https://www.scichart.com/community-licensing/
193
193
  */
194
194
  SciChartSurfaceBase.UseCommunityLicense = function () {
195
195
  licenseManager2D_1.licenseManager.setRuntimeLicenseKey("community");
@@ -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.538";
3
+ export declare const libraryVersion = "3.2.549";
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-12-15T00:00:00";
4
+ var buildStamp = "2024-01-08T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "3.2.538";
7
+ exports.libraryVersion = "3.2.549";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  exports.MouseManager = void 0;
4
15
  var ModifierMouseArgs_1 = require("../../Charting/ChartModifiers/ModifierMouseArgs");
@@ -542,6 +553,7 @@ var MouseManager = /** @class */ (function () {
542
553
  });
543
554
  subCharts === null || subCharts === void 0 ? void 0 : subCharts.forEach(function (scs) {
544
555
  var subEventType = eventType;
556
+ var isActiveSubChartEvent = true;
545
557
  if (scs.mouseManager.isOver) {
546
558
  if (scs !== currentActiveSubChart) {
547
559
  scs.mouseManager.isOver = false;
@@ -570,11 +582,12 @@ var MouseManager = /** @class */ (function () {
570
582
  if (![EMouseEventType.Cancel, EMouseEventType.Up, EMouseEventType.Move].includes(subEventType)) {
571
583
  subEventType = undefined;
572
584
  }
585
+ isActiveSubChartEvent = false;
573
586
  }
574
587
  }
575
588
  if (subEventType !== undefined) {
576
589
  var masterData = _this.getMasterData(currentActiveSubChart, args);
577
- _this.processSubChartEvent(subEventType, scs, args, subCharts, masterData);
590
+ _this.processSubChartEvent(subEventType, scs, __assign(__assign({}, args), { isActiveSubChartEvent: isActiveSubChartEvent }), subCharts, masterData);
578
591
  }
579
592
  });
580
593
  };
package/README.md CHANGED
@@ -4,8 +4,15 @@
4
4
  >
5
5
  > Find out what's new in every Major and Minor release at the [Change Log here](https://www.scichart.com/changelog/scichart-js/)
6
6
 
7
- [SciChart.js](https://www.scichart.com) is a High Performance JavaScript & TypeScript Charting library
8
- which WebGL and WebAssembly to achieve incredible real-time and big-data performance. Fast and able to draw millions of datapoints in realtime, our charts will never cause your app to slow down again!
7
+ SciChart.js is a High Performance [JavaScript Chart library](https://www.scichart.com/javascript-chart-features). Leveraging WebGL and WebAssembly to achieve incredible big-data and real-time performance.
8
+ Fast and able to draw millions of datapoints in realtime, our charts will never cause your app to slow down again!
9
+
10
+ ## Useful Links
11
+
12
+ - Learn why we propose SciChart as the [Best JavaScript Chart Library in 2024](https://www.scichart.com/blog/the-best-javascript-chart-10-reasons/) for Big-Data, complex enterprise apps.
13
+ - Read performance test results showing SciChart beating Chart.js, HighCharts, Plotly by a wide margin in a [JavaScript Chart Performance Comparison](https://www.scichart.com/blog/scichart-is-the-fastest-js-chart-library-available-and-why-that-matters-in-todays-world/)
14
+ - Learn the features and key differences of SciChart.js [JS Charts](https://www.scichart.com/javascript-chart-features) library.
15
+ - Browse the demos of [JavaScript Charts](https://demo.scichart.com) and [JavaScript 3D Charts](https://demo.scichart.com) in our interactive React showcase.
9
16
 
10
17
  > SciChart has an extremely configurable and extensible API and is
11
18
  > **perfect for scientific, financial, medical, engineering and enterprise applications**,
@@ -22,18 +29,19 @@ SciChart.JS v3.2 is released! Check out
22
29
 
23
30
  ## License
24
31
 
25
- > SciChart.js is commercial software with a free trial, but we are planning a free community edition soon!
32
+ > SciChart.js is commercial software which ships with a free community edition for personal, non-commercial, educational or blogger/tutorial use.
26
33
  >
27
34
  > **Licensing Links**
28
35
  >
29
- > - [Read about our **license terms** here](https://www.scichart.com/scichart-eula)
30
- > - [**Start a trial** by following steps here](https://scichart.com/getting-started/scichart-javascript)
36
+ > - [Free Community Licensing FAQs](https://www.scichart.com/community-licensing/)
37
+ > - [Read about our **commercial license terms** here](https://www.scichart.com/scichart-eula)
38
+ > - [**Get Started** by following steps here](https://scichart.com/getting-started/scichart-javascript)
31
39
  > - [**Purchase commercial licenses** here](https://store.scichart.com)
32
- > - Academic usage, universities and schools qualify for a free license. Read more about this [here](https://www.scichart.com/educational-discount-programme).
40
+ > - Academic usage, universities and schools qualify for a free non-watermarked license. Read more about this [here](https://www.scichart.com/educational-discount-programme).
33
41
 
34
42
  ## Demo Application
35
43
 
36
- - We've published a **live demo app** at [demo.scichart.com](https://demo.scichart.com) with 85 examples you can try in browser.
44
+ - We've published over 100 [JavaScript Chart Demos](https://demo.scichart.com) with ~100 examples you can try in browser.
37
45
  - You can clone the repo for the demo app at Github: [github.com/abtsoftware/scichart.js.examples](https://github.com/abtsoftware/scichart.js.examples)
38
46
  - Or, checkout our boilerplates for various popular Js frameworks:
39
47
  - [React](https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-react-scichart) + SciChart boilerplate
@@ -47,7 +55,7 @@ SciChart.JS v3.2 is released! Check out
47
55
 
48
56
  > We've prepared a short [Getting Started guide here](https://scichart.com/getting-started/scichart-javascript).
49
57
  >
50
- > This will walk you through the entire process of starting a trial and show you where tutorials and documentation are and examples.
58
+ > This will walk you through the entire process of starting in your favourite framework and show you where tutorials and documentation are and examples.
51
59
 
52
60
  ## Useful Links
53
61
 
@@ -230,5 +238,6 @@ Check out what's new in SciChart.js at the below pages:
230
238
  - [What's New in SciChart.js v2.1](https://www.scichart.com/documentation/js/current/WhatsNewInSciChart2_1.html)
231
239
  - [What's New in SciChart.js v2.2](https://www.scichart.com/documentation/js/current/What's%20New%20in%20SciChart.js%20SDK%20v2.2.html)
232
240
  - [What's New in SciChart.js v3.0](https://www.scichart.com/scichart-js-v3-0-released)
241
+ - [ChangeLog (v3 onwards)](https://www.scichart.com/changelog/scichart-js/)
233
242
 
234
243
  We release often and if you want to report a bug, request a feature or give general feedback [contact us](https://scichart.com/contact-us)!