scichart 3.2.532 → 3.2.543
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.
- package/Charting/ChartModifiers/CursorModifier.js +0 -1
- package/Charting/Model/BaseDataSeries.d.ts +3 -2
- package/Charting/Model/BaseDataSeries.js +8 -4
- package/Charting/Model/HlcDataSeries.d.ts +2 -1
- package/Charting/Model/HlcDataSeries.js +4 -2
- package/Charting/Model/IDataSeries.d.ts +2 -1
- package/Charting/Model/IPaletteProvider.d.ts +25 -0
- package/Charting/Model/IPaletteProvider.js +23 -7
- package/Charting/Model/OhlcDataSeries.d.ts +2 -1
- package/Charting/Model/OhlcDataSeries.js +4 -2
- package/Charting/Model/XyyDataSeries.d.ts +2 -1
- package/Charting/Model/XyyDataSeries.js +4 -2
- package/Charting/Visuals/Annotations/AnnotationBase.js +3 -3
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +15 -4
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +55 -8
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +22 -3
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.js +0 -6
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +18 -13
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +10 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +85 -24
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +4 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +1 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +21 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +16 -12
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +17 -11
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +1 -0
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/RenderDataTransforms/BaseRenderDataTransform.d.ts +30 -0
- package/Charting/Visuals/RenderableSeries/RenderDataTransforms/BaseRenderDataTransform.js +63 -0
- package/Charting/Visuals/RenderableSeries/RenderDataTransforms/SplineRenderDataTransform.d.ts +10 -0
- package/Charting/Visuals/RenderableSeries/RenderDataTransforms/SplineRenderDataTransform.js +53 -0
- package/Charting/Visuals/RenderableSeries/RenderDataTransforms/XyySplineRenderDataTransform.d.ts +10 -0
- package/Charting/Visuals/RenderableSeries/RenderDataTransforms/XyySplineRenderDataTransform.js +55 -0
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +13 -8
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +63 -46
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +12 -13
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +60 -52
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +12 -7
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +54 -43
- package/Charting/Visuals/RenderableSeries/constants.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/constants.js +1 -0
- package/Charting/Visuals/createMaster.d.ts +12 -2
- package/Charting/Visuals/createMaster.js +14 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/ObservableArray.d.ts +11 -9
- package/Core/ObservableArray.js +44 -21
- package/README.md +17 -8
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +9 -0
- package/index.dev.js +634 -267
- package/index.js +27 -13
- package/index.min.js +1 -1
- package/package.json +1 -1
- package/types/TSciChart.d.ts +4 -0
- package/types/YRangeMode.d.ts +10 -0
- package/types/YRangeMode.js +14 -0
- package/utils/debug.d.ts +2 -0
- package/utils/debug.js +17 -0
package/Core/ObservableArray.js
CHANGED
|
@@ -1,30 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObservableArray = void 0;
|
|
18
|
+
exports.ObservableArray = exports.ObservableArrayBase = void 0;
|
|
4
19
|
var EventHandler_1 = require("./EventHandler");
|
|
5
20
|
var ObservableArrayChangedArgs_1 = require("./ObservableArrayChangedArgs");
|
|
6
21
|
/**
|
|
7
22
|
* An Observable array which raises {@link collectionChanged} events when an item is added, removed or the collection cleared
|
|
8
23
|
*/
|
|
9
|
-
var
|
|
24
|
+
var ObservableArrayBase = /** @class */ (function () {
|
|
10
25
|
/**
|
|
11
26
|
* Creates an instance of the {@link ObservableArray}
|
|
12
27
|
*/
|
|
13
|
-
function
|
|
28
|
+
function ObservableArrayBase() {
|
|
14
29
|
this.items = [];
|
|
15
30
|
this.collectionChanged = new EventHandler_1.EventHandler();
|
|
16
31
|
}
|
|
17
32
|
/**
|
|
18
33
|
* gets the number of elements in the array
|
|
19
34
|
*/
|
|
20
|
-
|
|
35
|
+
ObservableArrayBase.prototype.size = function () {
|
|
21
36
|
return this.items.length;
|
|
22
37
|
};
|
|
23
38
|
/**
|
|
24
39
|
* Adds items to the array, and raises the {@link collectionChanged} event to subscribers
|
|
25
40
|
* @param items
|
|
26
41
|
*/
|
|
27
|
-
|
|
42
|
+
ObservableArrayBase.prototype.add = function () {
|
|
28
43
|
var _this = this;
|
|
29
44
|
var items = [];
|
|
30
45
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -36,7 +51,7 @@ var ObservableArray = /** @class */ (function () {
|
|
|
36
51
|
/**
|
|
37
52
|
* Returns the backing array. Do not modify this collection. Use add or remove instead.
|
|
38
53
|
*/
|
|
39
|
-
|
|
54
|
+
ObservableArrayBase.prototype.asArray = function () {
|
|
40
55
|
return this.items;
|
|
41
56
|
};
|
|
42
57
|
/**
|
|
@@ -44,7 +59,7 @@ var ObservableArray = /** @class */ (function () {
|
|
|
44
59
|
* @param index
|
|
45
60
|
* @param item
|
|
46
61
|
*/
|
|
47
|
-
|
|
62
|
+
ObservableArrayBase.prototype.insert = function (index, item) {
|
|
48
63
|
if (index < 0) {
|
|
49
64
|
index = 0;
|
|
50
65
|
}
|
|
@@ -59,7 +74,7 @@ var ObservableArray = /** @class */ (function () {
|
|
|
59
74
|
* Returns true if the array contains an item
|
|
60
75
|
* @param item
|
|
61
76
|
*/
|
|
62
|
-
|
|
77
|
+
ObservableArrayBase.prototype.contains = function (item) {
|
|
63
78
|
return this.items.includes(item);
|
|
64
79
|
};
|
|
65
80
|
/**
|
|
@@ -68,7 +83,7 @@ var ObservableArray = /** @class */ (function () {
|
|
|
68
83
|
* @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
|
|
69
84
|
* the delete() function will be called. Defaults to false for backward compatibility
|
|
70
85
|
*/
|
|
71
|
-
|
|
86
|
+
ObservableArrayBase.prototype.removeAt = function (index, callDeleteOnChildren) {
|
|
72
87
|
if (callDeleteOnChildren === void 0) { callDeleteOnChildren = false; }
|
|
73
88
|
if (index < 0 || index >= this.items.length) {
|
|
74
89
|
return;
|
|
@@ -86,7 +101,7 @@ var ObservableArray = /** @class */ (function () {
|
|
|
86
101
|
* @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
|
|
87
102
|
* the delete() function will be called. Defaults to false for backward compatibility
|
|
88
103
|
*/
|
|
89
|
-
|
|
104
|
+
ObservableArrayBase.prototype.remove = function (item, callDeleteOnChildren) {
|
|
90
105
|
if (callDeleteOnChildren === void 0) { callDeleteOnChildren = false; }
|
|
91
106
|
for (var index = 0; index < this.size(); index++) {
|
|
92
107
|
if (this.items[index] === item) {
|
|
@@ -100,7 +115,7 @@ var ObservableArray = /** @class */ (function () {
|
|
|
100
115
|
* @param callDeleteOnChildren When true, if the items in the array implement the {@link IDeletable} interface,
|
|
101
116
|
* the delete() function will be called. Defaults to false for backward compatibility
|
|
102
117
|
*/
|
|
103
|
-
|
|
118
|
+
ObservableArrayBase.prototype.clear = function (callDeleteOnChildren) {
|
|
104
119
|
if (callDeleteOnChildren === void 0) { callDeleteOnChildren = false; }
|
|
105
120
|
var oldItems = this.items;
|
|
106
121
|
this.items = [];
|
|
@@ -117,25 +132,33 @@ var ObservableArray = /** @class */ (function () {
|
|
|
117
132
|
* Gets an item at index
|
|
118
133
|
* @param index
|
|
119
134
|
*/
|
|
120
|
-
|
|
135
|
+
ObservableArrayBase.prototype.get = function (index) {
|
|
121
136
|
return this.items[index];
|
|
122
137
|
};
|
|
123
|
-
/**
|
|
124
|
-
* Gets an item by Id
|
|
125
|
-
* @param id
|
|
126
|
-
*/
|
|
127
|
-
ObservableArray.prototype.getById = function (id) {
|
|
128
|
-
return this.items.find(function (element) { return element.id === id; });
|
|
129
|
-
};
|
|
130
138
|
/**
|
|
131
139
|
* Sets an item at index. Raises the {@link collectionChanged} event to subscribers
|
|
132
140
|
* @param index
|
|
133
141
|
* @param item
|
|
134
142
|
*/
|
|
135
|
-
|
|
143
|
+
ObservableArrayBase.prototype.set = function (index, item) {
|
|
136
144
|
this.items[index] = item;
|
|
137
145
|
this.collectionChanged.raiseEvent(new ObservableArrayChangedArgs_1.ObservableArrayChangedArgs(ObservableArrayChangedArgs_1.EObservableArrayChangedAction.Replace, [item], undefined));
|
|
138
146
|
};
|
|
139
|
-
return
|
|
147
|
+
return ObservableArrayBase;
|
|
140
148
|
}());
|
|
149
|
+
exports.ObservableArrayBase = ObservableArrayBase;
|
|
150
|
+
var ObservableArray = /** @class */ (function (_super) {
|
|
151
|
+
__extends(ObservableArray, _super);
|
|
152
|
+
function ObservableArray() {
|
|
153
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Gets an item by Id
|
|
157
|
+
* @param id
|
|
158
|
+
*/
|
|
159
|
+
ObservableArray.prototype.getById = function (id) {
|
|
160
|
+
return this.items.find(function (element) { return element.id === id; });
|
|
161
|
+
};
|
|
162
|
+
return ObservableArray;
|
|
163
|
+
}(ObservableArrayBase));
|
|
141
164
|
exports.ObservableArray = ObservableArray;
|
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
|
-
|
|
8
|
-
|
|
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
|
|
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
|
-
> - [
|
|
30
|
-
> - [
|
|
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
|
|
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
|
|
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)!
|