scichart 3.0.284 → 3.0.301
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/ChartModifierBase.d.ts +3 -2
- package/Charting/ChartModifiers/ChartModifierBase.js +2 -1
- package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +6 -0
- package/Charting/ChartModifiers/ChartModifierBase2D.js +9 -6
- package/Charting/ChartModifiers/CursorModifier.d.ts +0 -4
- package/Charting/ChartModifiers/CursorModifier.js +4 -6
- package/Charting/ChartModifiers/CustomChartModifier2D.d.ts +16 -0
- package/Charting/ChartModifiers/CustomChartModifier2D.js +40 -0
- package/Charting/ChartModifiers/LegendModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +2 -6
- package/Charting/ChartModifiers/RolloverModifier.js +17 -11
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +3 -1
- package/Charting/Model/BaseDataSeries.d.ts +5 -1
- package/Charting/Model/BaseDataSeries.js +24 -14
- package/Charting/Model/ChartData/SeriesInfo.d.ts +1 -0
- package/Charting/Model/ChartData/SeriesInfo.js +1 -0
- package/Charting/Model/Filters/HlcCustomFilter.js +19 -7
- package/Charting/Model/Filters/OhlcCustomFilter.js +20 -8
- package/Charting/Model/Filters/XyCustomFilter.js +15 -5
- package/Charting/Model/Filters/XyRatioFilter.js +1 -0
- package/Charting/Model/Filters/XyyCustomFilter.js +17 -6
- package/Charting/Model/Filters/XyzCustomFilter.js +17 -6
- package/Charting/Services/SciChartRenderer.js +42 -2
- package/Charting/Visuals/Annotations/AdornerLayer.d.ts +1 -0
- package/Charting/Visuals/Annotations/AdornerLayer.js +6 -3
- package/Charting/Visuals/Annotations/AnnotationBase.js +4 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +1 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +2 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -0
- package/Charting/Visuals/RenderableSeries/HitTest/HitTestInfo.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +2 -0
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +1 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +5 -2
- package/Charting/Visuals/SciChartDefaults.d.ts +7 -0
- package/Charting/Visuals/SciChartDefaults.js +7 -0
- package/Charting/Visuals/SciChartSurface.d.ts +5 -0
- package/Charting/Visuals/SciChartSurface.js +5 -0
- package/Charting/Visuals/licenseManager2D.js +10 -4
- package/Charting3D/ChartModifiers/ChartModifierBase3D.d.ts +18 -0
- package/Charting3D/ChartModifiers/ChartModifierBase3D.js +8 -1
- package/Charting3D/ChartModifiers/CustomChartModifier3D.d.ts +16 -0
- package/Charting3D/ChartModifiers/CustomChartModifier3D.js +40 -0
- package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.d.ts +7 -5
- package/Charting3D/ChartModifiers/MouseWheelZoomModifier3D.js +9 -4
- package/Charting3D/ChartModifiers/OrbitModifier3D.d.ts +11 -5
- package/Charting3D/ChartModifiers/OrbitModifier3D.js +7 -5
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.d.ts +11 -8
- package/Charting3D/ChartModifiers/ResetCamera3DModifier.js +16 -8
- package/Charting3D/Visuals/SciChart3DRenderer.d.ts +1 -0
- package/Charting3D/Visuals/SciChart3DRenderer.js +29 -1
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +3 -0
- package/Charting3D/Visuals/SciChart3DSurface.js +7 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/README.md +7 -8
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +16 -16
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +10 -10
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +5 -0
- package/index.js +21 -13
- package/index.min.js +1 -1
- package/package.json +18 -4
- package/types/ChartModifierType.d.ts +2 -1
- package/types/ChartModifierType.js +1 -0
- package/types/ExecuteOn.d.ts +9 -1
- package/types/ExecuteOn.js +9 -1
- package/types/MousePosition.d.ts +0 -1
- package/types/MousePosition.js +0 -1
- package/types/WatermarkPosition.d.ts +6 -0
- package/types/WatermarkPosition.js +10 -0
- package/types/licensingClasses.d.ts +8 -7
- package/types/licensingClasses.js +8 -7
- package/utils/ccall/appendDoubleVectorFromJsArray.js +1 -1
|
@@ -46,6 +46,10 @@ var ResetCamera3DModifier = /** @class */ (function (_super) {
|
|
|
46
46
|
var _this = this;
|
|
47
47
|
var _a, _b, _c;
|
|
48
48
|
_this = _super.call(this, options) || this;
|
|
49
|
+
/**
|
|
50
|
+
* @inheritDoc
|
|
51
|
+
*/
|
|
52
|
+
_this.type = ChartModifierType_1.EChart3DModifierType.ZoomExtents;
|
|
49
53
|
/**
|
|
50
54
|
* When true, the Zoom operations are animated. See also {@link animationDuration} and {@link easingFunction}
|
|
51
55
|
*/
|
|
@@ -64,6 +68,7 @@ var ResetCamera3DModifier = /** @class */ (function (_super) {
|
|
|
64
68
|
options.easingFunction = EasingFunctions_1.easing[options.easingFunction];
|
|
65
69
|
}
|
|
66
70
|
_this.easingFunction = (_c = options === null || options === void 0 ? void 0 : options.easingFunction) !== null && _c !== void 0 ? _c : EasingFunctions_1.easing.outExpo;
|
|
71
|
+
_this.destination = options === null || options === void 0 ? void 0 : options.destination;
|
|
67
72
|
return _this;
|
|
68
73
|
}
|
|
69
74
|
ResetCamera3DModifier.prototype.onAttach = function () {
|
|
@@ -128,16 +133,19 @@ var ResetCamera3DModifier = /** @class */ (function (_super) {
|
|
|
128
133
|
}
|
|
129
134
|
args.handled = true;
|
|
130
135
|
};
|
|
131
|
-
|
|
136
|
+
/**
|
|
137
|
+
* @inheritDoc
|
|
138
|
+
*/
|
|
132
139
|
ResetCamera3DModifier.prototype.toJSON = function () {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
+
var json = _super.prototype.toJSON.call(this);
|
|
141
|
+
var options = {
|
|
142
|
+
animationDuration: this.animationDuration,
|
|
143
|
+
easingFunction: this.easingFunction.name,
|
|
144
|
+
isAnimated: this.isAnimated,
|
|
145
|
+
destination: this.destination
|
|
140
146
|
};
|
|
147
|
+
Object.assign(json.options, options);
|
|
148
|
+
return json;
|
|
141
149
|
};
|
|
142
150
|
return ResetCamera3DModifier;
|
|
143
151
|
}(ChartModifierBase3D_1.ChartModifierBase3D));
|
|
@@ -4,6 +4,7 @@ exports.SciChart3DRenderer = void 0;
|
|
|
4
4
|
var Deleter_1 = require("../../Core/Deleter");
|
|
5
5
|
var Guard_1 = require("../../Core/Guard");
|
|
6
6
|
var AutoRange_1 = require("../../types/AutoRange");
|
|
7
|
+
var WatermarkPosition_1 = require("../../types/WatermarkPosition");
|
|
7
8
|
var AxisCubeDescriptor_1 = require("./Primitives/AxisCubeDescriptor");
|
|
8
9
|
var RenderPassInfo3D_1 = require("./Primitives/RenderPassInfo3D");
|
|
9
10
|
var SceneDescriptor_1 = require("./Primitives/SceneDescriptor");
|
|
@@ -96,7 +97,7 @@ var SciChart3DRenderer = /** @class */ (function () {
|
|
|
96
97
|
// Viewport3D already checked to be not null in IsSurfaceValid
|
|
97
98
|
this.scs.rootEntity.visitEntities(function (e) { return e.setRenderPassData(rpd); });
|
|
98
99
|
// We add the same padding as we have for 2D 6px
|
|
99
|
-
this.
|
|
100
|
+
this.updateWatermark();
|
|
100
101
|
// Step 6: Notify that scene is about to be drawn
|
|
101
102
|
this.scs.onSciChartRendered();
|
|
102
103
|
// Invalidate for the animations
|
|
@@ -104,6 +105,33 @@ var SciChart3DRenderer = /** @class */ (function () {
|
|
|
104
105
|
setTimeout(this.scs.invalidateElement, 0);
|
|
105
106
|
}
|
|
106
107
|
};
|
|
108
|
+
SciChart3DRenderer.prototype.updateWatermark = function () {
|
|
109
|
+
var chartHeight = this.scs.getMainCanvas().clientHeight;
|
|
110
|
+
var chartWidth = this.scs.getMainCanvas().clientWidth;
|
|
111
|
+
var left = 5;
|
|
112
|
+
var bottom = chartHeight - 10;
|
|
113
|
+
var wmWidth = Math.max(72, Math.min(0.25 * chartWidth, 256));
|
|
114
|
+
var wmHeight = (42 * wmWidth) / 256;
|
|
115
|
+
switch (this.scs.watermarkPosition) {
|
|
116
|
+
case WatermarkPosition_1.EWatermarkPosition.BottomRight:
|
|
117
|
+
left = chartWidth - wmWidth - 5;
|
|
118
|
+
bottom = 12;
|
|
119
|
+
break;
|
|
120
|
+
case WatermarkPosition_1.EWatermarkPosition.TopLeft:
|
|
121
|
+
left = 5;
|
|
122
|
+
bottom = chartHeight - (5 + wmHeight);
|
|
123
|
+
break;
|
|
124
|
+
case WatermarkPosition_1.EWatermarkPosition.TopRight:
|
|
125
|
+
left = chartWidth - wmWidth - 5;
|
|
126
|
+
bottom = chartHeight - (5 + wmHeight);
|
|
127
|
+
break;
|
|
128
|
+
case WatermarkPosition_1.EWatermarkPosition.BottomLeft:
|
|
129
|
+
left = 5;
|
|
130
|
+
bottom = 12;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
this.scs.updateWatermark(left, bottom);
|
|
134
|
+
};
|
|
107
135
|
SciChart3DRenderer.prototype.isSurfaceValid = function (sciChartSurface, viewportSize) {
|
|
108
136
|
if (!sciChartSurface.xAxis) {
|
|
109
137
|
throw new Error("Unable to draw SciChart3DSurface as the xAxis is undefined");
|
|
@@ -14,6 +14,7 @@ import { AxisCubeEntity } from "./Axis/AxisCubeEntity";
|
|
|
14
14
|
import { IRenderableSeries3D } from "./RenderableSeries/BaseRenderableSeries3D";
|
|
15
15
|
import { RootSceneEntity } from "./RootSceneEntity";
|
|
16
16
|
import { ViewportManager3DBase } from "./ViewportManager3DBase";
|
|
17
|
+
import { EWatermarkPosition } from "../../types/WatermarkPosition";
|
|
17
18
|
export declare type TSciChart3D = TWasmContext;
|
|
18
19
|
export declare type TWebAssemblyChart3D = {
|
|
19
20
|
wasmContext: TSciChart3D;
|
|
@@ -121,6 +122,8 @@ export declare class SciChart3DSurface extends SciChartSurfaceBase {
|
|
|
121
122
|
* access to our WebGL2 Engine and WebAssembly numerical methods
|
|
122
123
|
*/
|
|
123
124
|
readonly webAssemblyContext3D: TSciChart3D;
|
|
125
|
+
/** The position of the watermark for trials and community licenses */
|
|
126
|
+
watermarkPosition: EWatermarkPosition;
|
|
124
127
|
protected animationList: IGenericAnimation[];
|
|
125
128
|
private xAxisProperty;
|
|
126
129
|
private yAxisProperty;
|
|
@@ -32,6 +32,7 @@ var GizmoEntity_1 = require("./GizmoEntity");
|
|
|
32
32
|
var RootSceneEntity_1 = require("./RootSceneEntity");
|
|
33
33
|
var SciChart3DRenderer_1 = require("./SciChart3DRenderer");
|
|
34
34
|
var BuildStamp_1 = require("../../Core/BuildStamp");
|
|
35
|
+
var SciChartDefaults_1 = require("../../Charting/Visuals/SciChartDefaults");
|
|
35
36
|
exports.sciChartConfig3D = {};
|
|
36
37
|
/**
|
|
37
38
|
* @summary The {@link SciChart3DSurface} is the root 3D Chart control in SciChart's High Performance Real-time
|
|
@@ -61,6 +62,8 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
61
62
|
var _this = this;
|
|
62
63
|
var _a, _b, _c, _d;
|
|
63
64
|
_this = _super.call(this, webAssemblyContext, options === null || options === void 0 ? void 0 : options.canvases) || this;
|
|
65
|
+
/** The position of the watermark for trials and community licenses */
|
|
66
|
+
_this.watermarkPosition = SciChartDefaults_1.SciChartDefaults.watermarkPosition;
|
|
64
67
|
_this.animationList = [];
|
|
65
68
|
_this.isAxisCubeRenderedProperty = false;
|
|
66
69
|
var canvasWidth = (_b = (_a = _this.domCanvas2D) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : app_1.DEFAULT_WIDTH;
|
|
@@ -105,6 +108,7 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
105
108
|
// Watermark
|
|
106
109
|
if (!app_1.IS_TEST_ENV) {
|
|
107
110
|
_this.watermarkProperties = new webAssemblyContext.SCRTWaterMarkProperties();
|
|
111
|
+
_this.watermarkProperties.m_fCanvasWidth = canvasWidth;
|
|
108
112
|
_this.watermarkPropertyPosition = new webAssemblyContext.TSRVector2(0, 0);
|
|
109
113
|
_this.watermarkProperties.SetPosition(_this.watermarkPropertyPosition);
|
|
110
114
|
_this.watermarkProperties.SetOpacity(0.5);
|
|
@@ -475,12 +479,13 @@ var SciChart3DSurface = /** @class */ (function (_super) {
|
|
|
475
479
|
* @inheritDoc
|
|
476
480
|
*/
|
|
477
481
|
SciChart3DSurface.prototype.updateWatermark = function (left, bottom) {
|
|
478
|
-
var _a;
|
|
482
|
+
var _a, _b;
|
|
479
483
|
if (!app_1.IS_TEST_ENV) {
|
|
480
484
|
this.watermarkPropertyPosition.x = left;
|
|
481
485
|
this.watermarkPropertyPosition.y = bottom;
|
|
486
|
+
this.watermarkProperties.m_fCanvasWidth = (_a = this.getMainCanvas()) === null || _a === void 0 ? void 0 : _a.clientWidth;
|
|
482
487
|
this.watermarkProperties.SetPosition(this.watermarkPropertyPosition);
|
|
483
|
-
var isLightBackground = (
|
|
488
|
+
var isLightBackground = (_b = this.themeProvider) === null || _b === void 0 ? void 0 : _b.isLightBackground;
|
|
484
489
|
this.watermarkProperties.m_bIsDarkBackground = isLightBackground !== undefined ? !isLightBackground : false;
|
|
485
490
|
this.webAssemblyContext3D.SCRT3DSetWaterMarkProperties(this.watermarkProperties);
|
|
486
491
|
}
|
package/Core/BuildStamp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TSciChart } from "../types/TSciChart";
|
|
2
2
|
import { TSciChart3D } from "../types/TSciChart3D";
|
|
3
|
-
export declare const libraryVersion = "3.0.
|
|
3
|
+
export declare const libraryVersion = "3.0.301";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -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-02-
|
|
4
|
+
var buildStamp = "2023-02-27T00:00:00";
|
|
5
5
|
var result;
|
|
6
6
|
// tslint:disable-next-line:no-var-requires
|
|
7
|
-
exports.libraryVersion = "3.0.
|
|
7
|
+
exports.libraryVersion = "3.0.301";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ SciChart.JS v3 is released! Check out [what's new](https://www.scichart.com/scic
|
|
|
51
51
|
- [Tutorials](https://www.scichart.com/documentation/js/current/webframe.html#Tutorial%2001%20-%20Setting%20up%20a%20Project%20with%20SciChart.js.html)
|
|
52
52
|
- [Getting Started Guide](https://scichart.com/getting-started/scichart-javascript/)
|
|
53
53
|
- [Documentation](https://www.scichart.com/documentation/js/current/webframe.html)
|
|
54
|
+
- [CodePen, JSFiddle support](https://www.scichart.com/blog/codepen-codesandbox-and-jsfiddle-support-in-scichart-js/)
|
|
54
55
|
|
|
55
56
|
### Support
|
|
56
57
|
|
|
@@ -75,10 +76,8 @@ npm i scichart
|
|
|
75
76
|
2. **Create a simple chart** by putting this into `src/index.js` file
|
|
76
77
|
|
|
77
78
|
```javascript
|
|
78
|
-
import {
|
|
79
|
-
import { NumericAxis } from "scichart
|
|
80
|
-
import { XyDataSeries } from "scichart/Charting/Model/XyDataSeries";
|
|
81
|
-
import { FastLineRenderableSeries } from "scichart/Charting/Visuals/RenderableSeries/FastLineRenderableSeries";
|
|
79
|
+
// New syntax from v3.0.284! import { all, the, things } from "scichart"
|
|
80
|
+
import { SciChartSurface, NumericAxis, NumericAxis, FastLineRenderableSeries } from "scichart";
|
|
82
81
|
|
|
83
82
|
// Call useWasmFromCDN once before SciChart.js is initialised to load Wasm files from our CDN
|
|
84
83
|
// Alternative methods for serving wasm from webpack or offline are available on our website
|
|
@@ -139,15 +138,15 @@ initSciChart();
|
|
|
139
138
|
|
|
140
139
|
If your environment does not include a bundler like Parcel or Webpack, you can still load SciChart.js using the browser bundle module from [JSDlvr](https://www.jsdelivr.com/package/npm/scichart)
|
|
141
140
|
|
|
142
|
-
1. **Include
|
|
141
|
+
1. **Include index.min.js in your webpage**
|
|
143
142
|
|
|
144
143
|
```html
|
|
145
144
|
<!-- Always include latest scichart.js version -->
|
|
146
|
-
<script src="https://cdn.jsdelivr.net/npm/scichart/
|
|
145
|
+
<script src="https://cdn.jsdelivr.net/npm/scichart/index.min.js" crossorigin="anonymous"></script>
|
|
147
146
|
<!-- or, choose specific version -->
|
|
148
|
-
<script src="https://cdn.jsdelivr.net/npm/scichart@3.0.
|
|
147
|
+
<script src="https://cdn.jsdelivr.net/npm/scichart@3.0.284/index.min.js" crossorigin="anonymous"></script>
|
|
149
148
|
<!-- or, choosing latest version from 3.x -->
|
|
150
|
-
<script src="https://cdn.jsdelivr.net/npm/scichart@3/
|
|
149
|
+
<script src="https://cdn.jsdelivr.net/npm/scichart@3/index.min.js" crossorigin="anonymous"></script>
|
|
151
150
|
```
|
|
152
151
|
|
|
153
152
|
2.**Create scichart-example.js file with a simple chart**
|