scichart 2.0.2194 → 2.1.0-beta.40
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.d.ts +9 -0
- package/Charting/ChartModifiers/CursorModifier.js +10 -0
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +0 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +25 -0
- package/Charting/ChartModifiers/RolloverModifier.js +8 -0
- package/Charting/Drawing/BrushCache.d.ts +8 -2
- package/Charting/Drawing/BrushCache.js +16 -8
- package/Charting/Drawing/WebGlRenderContext2D.d.ts +1 -0
- package/Charting/Drawing/WebGlRenderContext2D.js +4 -1
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.d.ts +2 -0
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +33 -0
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +19 -2
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +18 -2
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +18 -2
- package/Charting/Model/BaseDataSeries.d.ts +42 -15
- package/Charting/Model/BaseDataSeries.js +77 -28
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +31 -23
- package/Charting/Model/BaseHeatmapDataSeries.js +45 -18
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.d.ts +23 -0
- package/Charting/Model/DataDistributionCalculator/DataDistributionCalculator.js +122 -0
- package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.d.ts +57 -0
- package/Charting/Model/DataDistributionCalculator/IDataDistributionCalculator.js +2 -0
- package/Charting/Model/Filters/OhlcFilterBase.d.ts +2 -2
- package/Charting/Model/Filters/XyFilterBase.d.ts +3 -3
- package/Charting/Model/Filters/XyMovingAverageFilter.js +1 -1
- package/Charting/Model/Filters/XyyFilterBase.d.ts +4 -4
- package/Charting/Model/Filters/XyzFilterBase.d.ts +4 -4
- package/Charting/Model/IDataSeries.d.ts +37 -5
- package/Charting/Model/OhlcDataSeries.d.ts +12 -11
- package/Charting/Model/OhlcDataSeries.js +47 -44
- package/Charting/Model/PointSeries/BasePointSeriesResampled.d.ts +21 -0
- package/Charting/Model/PointSeries/BasePointSeriesResampled.js +56 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +14 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +23 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +31 -0
- package/Charting/Model/PointSeries/IPointSeries.js +2 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.d.ts +13 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesResampled.js +59 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.d.ts +11 -0
- package/Charting/Model/PointSeries/OhlcPointSeriesWrapped.js +32 -0
- package/Charting/Model/PointSeries/XyPointSeriesResampled.d.ts +7 -0
- package/Charting/Model/PointSeries/XyPointSeriesResampled.js +27 -0
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.d.ts +6 -0
- package/Charting/Model/PointSeries/XyPointSeriesWrapped.js +27 -0
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.d.ts +10 -0
- package/Charting/Model/PointSeries/XyyPointSeriesResampled.js +48 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +8 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +29 -0
- package/Charting/Model/PointSeries/XyzPointSeriesWrapped.d.ts +8 -0
- package/Charting/Model/PointSeries/XyzPointSeriesWrapped.js +29 -0
- package/Charting/Model/XyDataSeries.d.ts +3 -2
- package/Charting/Model/XyDataSeries.js +26 -26
- package/Charting/Model/XyyDataSeries.d.ts +5 -5
- package/Charting/Model/XyyDataSeries.js +30 -27
- package/Charting/Model/XyzDataSeries.d.ts +5 -5
- package/Charting/Model/XyzDataSeries.js +30 -27
- package/Charting/Numerics/CoordinateCalculators/CategoryCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/FlippedCategoryCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/FlippedNumericCoordinateCalculator.js +6 -2
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.d.ts +2 -1
- package/Charting/Numerics/CoordinateCalculators/NumericCoordinateCalculator.js +6 -2
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.d.ts +54 -0
- package/Charting/Numerics/Resamplers/ExtremeResamplerHelper.js +232 -0
- package/Charting/Numerics/Resamplers/ResamplingMode.d.ts +37 -0
- package/Charting/Numerics/Resamplers/ResamplingMode.js +41 -0
- package/Charting/Numerics/Resamplers/ResamplingParams.d.ts +39 -0
- package/Charting/Numerics/Resamplers/ResamplingParams.js +52 -0
- package/Charting/Services/RenderPassData.d.ts +6 -1
- package/Charting/Services/RenderPassData.js +5 -1
- package/Charting/Services/RenderPassInfo.d.ts +18 -0
- package/Charting/Services/RenderPassInfo.js +14 -0
- package/Charting/Services/SciChartRenderer.d.ts +14 -1
- package/Charting/Services/SciChartRenderer.js +124 -31
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +1 -0
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +6 -0
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.d.ts +5 -0
- package/Charting/Visuals/Annotations/RolloverMarkerSvgAnnotation.js +12 -1
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +6 -8
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +12 -9
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +7 -2
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +23 -0
- package/Charting/Visuals/Axis/AxisBase2D.js +71 -24
- package/Charting/Visuals/Axis/AxisCore.d.ts +11 -0
- package/Charting/Visuals/Axis/AxisCore.js +39 -18
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +1 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +37 -10
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +5 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +2 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +9 -4
- package/Charting/Visuals/Axis/NumericAxis.js +2 -2
- package/Charting/Visuals/Axis/constants.d.ts +1 -0
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/SeriesAnimation.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +6 -6
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +2 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +9 -2
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +45 -1
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +12 -5
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +59 -0
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +40 -5
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +116 -11
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +36 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +51 -3
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +38 -4
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +54 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +8 -14
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +4 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +5 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ColumnSeriesDrawingProvider.js +4 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/LineSeriesDrawingProvider.js +17 -21
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +16 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/OhlcSeriesDrawingProvider.js +9 -15
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +4 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +16 -21
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformContoursDrawingProvider.js +2 -9
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +0 -7
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +6 -2
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +5 -0
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/FastLineRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/MountainSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/ScatterSeriesHitTestProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/StackedMountainSeriesHitTestProvider.js +2 -2
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +6 -6
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +1 -1
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -1
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +38 -2
- package/Charting/Visuals/RenderableSeries/ISpline.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +5 -5
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +3 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +3 -3
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +0 -6
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +1 -7
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +6 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -3
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +6 -3
- package/Charting/Visuals/RenderableSeries/constants.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/constants.js +3 -0
- package/Charting/Visuals/SciChartDefaults.d.ts +9 -1
- package/Charting/Visuals/SciChartDefaults.js +9 -1
- package/Charting/Visuals/SciChartSurface.d.ts +4 -4
- package/Charting/Visuals/SciChartSurface.js +18 -11
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -2
- package/Charting/Visuals/SciChartSurfaceBase.js +4 -4
- package/Charting/Visuals/createMaster.d.ts +1 -1
- package/Charting/Visuals/createMaster.js +11 -6
- package/Charting/Visuals/createSingle.d.ts +1 -1
- package/Charting/Visuals/createSingle.js +2 -2
- package/Charting/Visuals/licenseManager2D.js +22 -21
- package/Charting/Visuals/licenseManager2dState.d.ts +4 -0
- package/Charting/Visuals/licenseManager2dState.js +12 -0
- package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
- package/Charting/Visuals/sciChartInitCommon.js +18 -12
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.d.ts +7 -7
- package/Charting3D/Model/DataSeries/XyzDataSeries3D.js +3 -3
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -2
- package/Charting3D/Visuals/SciChart3DSurface.js +3 -3
- package/Charting3D/Visuals/createMaster3d.d.ts +1 -1
- package/Charting3D/Visuals/createMaster3d.js +11 -6
- package/Charting3D/Visuals/createSingle3d.d.ts +1 -1
- package/Charting3D/Visuals/createSingle3d.js +2 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/NumberRange.d.ts +1 -0
- package/Core/NumberRange.js +8 -0
- package/Core/OneTimePerformanceWarning.d.ts +6 -0
- package/Core/OneTimePerformanceWarning.js +19 -0
- package/Core/storage/localStorageApi.d.ts +9 -0
- package/Core/storage/localStorageApi.js +32 -0
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +12 -12
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +96 -96
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/performanceWarnings.d.ts +5 -0
- package/constants/performanceWarnings.js +8 -0
- package/package.json +1 -1
- package/types/NumberArray.d.ts +1 -0
- package/types/NumberArray.js +5 -1
- package/types/SearchMode.d.ts +21 -0
- package/types/SearchMode.js +25 -0
- package/types/TSciChart.d.ts +143 -40
- package/types/TSciChart3D.d.ts +66 -28
- package/types/TStackedAxisLength.d.ts +4 -0
- package/types/TStackedAxisLength.js +4 -0
- package/utils/array.d.ts +7 -0
- package/utils/array.js +19 -1
- package/utils/calcAverage.d.ts +2 -2
- package/utils/ccall/appendDoubleVectorFromJsArray.d.ts +19 -0
- package/utils/ccall/appendDoubleVectorFromJsArray.js +91 -0
- package/utils/hash.d.ts +7 -0
- package/utils/hash.js +35 -0
- package/utils/ccall/fillDoubleVectorFromJsArray.d.ts +0 -3
- package/utils/ccall/fillDoubleVectorFromJsArray.js +0 -33
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
2
2
|
import { TSciChart } from "../../../types/TSciChart";
|
|
3
|
+
import { IPointSeries } from "../../Model/PointSeries/IPointSeries";
|
|
4
|
+
import { ResamplingParams } from "../../Numerics/Resamplers/ResamplingParams";
|
|
3
5
|
import { BaseRenderableSeries } from "./BaseRenderableSeries";
|
|
4
6
|
import { IHitTestProvider } from "./HitTest/IHitTestProvider";
|
|
5
7
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
@@ -45,8 +47,8 @@ export declare class XyScatterRenderableSeries extends BaseRenderableSeries {
|
|
|
45
47
|
* @param options Optional parameters of type {@link IBaseRenderableSeriesOptions} to configure the series
|
|
46
48
|
*/
|
|
47
49
|
constructor(webAssemblyContext: TSciChart, options?: IXyScatterRenderableSeriesOptions);
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
/** @inheritDoc */
|
|
51
|
+
toPointSeries(rp?: ResamplingParams): IPointSeries;
|
|
52
|
+
/** @inheritDoc */
|
|
51
53
|
protected newHitTestProvider(): IHitTestProvider;
|
|
52
54
|
}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.XyScatterRenderableSeries = void 0;
|
|
19
19
|
var SeriesType_1 = require("../../../types/SeriesType");
|
|
20
|
+
var XyPointSeriesWrapped_1 = require("../../Model/PointSeries/XyPointSeriesWrapped");
|
|
20
21
|
var EllipsePointMarker_1 = require("../PointMarkers/EllipsePointMarker");
|
|
21
22
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
22
23
|
var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
|
|
@@ -75,9 +76,11 @@ var XyScatterRenderableSeries = /** @class */ (function (_super) {
|
|
|
75
76
|
}
|
|
76
77
|
return _this;
|
|
77
78
|
}
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
/** @inheritDoc */
|
|
80
|
+
XyScatterRenderableSeries.prototype.toPointSeries = function (rp) {
|
|
81
|
+
return new XyPointSeriesWrapped_1.XyPointSeriesWrapped(this.dataSeries);
|
|
82
|
+
};
|
|
83
|
+
/** @inheritDoc */
|
|
81
84
|
XyScatterRenderableSeries.prototype.newHitTestProvider = function () {
|
|
82
85
|
return new ScatterSeriesHitTestProvider_1.ScatterSeriesHitTestProvider(this, this.webAssemblyContext);
|
|
83
86
|
};
|
|
@@ -12,6 +12,7 @@ export declare enum PROPERTY {
|
|
|
12
12
|
DATA_SERIES = "dataSeries",
|
|
13
13
|
DRAW_NAN_AS = "drawNaNAs",
|
|
14
14
|
EFFECT = "EFFECT",
|
|
15
|
+
ENABLE_DRAWING_OPTIMISATIONS = "ENABLE_DRAWING_OPTIMISATIONS",
|
|
15
16
|
FILL = "fill",
|
|
16
17
|
FILL_Y1 = "FILL_Y1",
|
|
17
18
|
FILL_LINEAR_GRADIENT = "FILL_LINEAR_GRADIENT",
|
|
@@ -30,6 +31,8 @@ export declare enum PROPERTY {
|
|
|
30
31
|
PALETTE_PROVIDER = "PALETTE_PROVIDER",
|
|
31
32
|
POINT_MARKER = "pointMarker",
|
|
32
33
|
RANGE = "RANGE",
|
|
34
|
+
RESAMPLING_MODE = "RESAMPLING_MODE",
|
|
35
|
+
RESAMPLING_PRECISION = "RESAMPLING_PRECISION",
|
|
33
36
|
SPACING = "SPACING",
|
|
34
37
|
STACKED_GROUP_ID = "STACKED_GROUP_ID",
|
|
35
38
|
STROKE = "STROKE",
|
|
@@ -16,6 +16,7 @@ var PROPERTY;
|
|
|
16
16
|
PROPERTY["DATA_SERIES"] = "dataSeries";
|
|
17
17
|
PROPERTY["DRAW_NAN_AS"] = "drawNaNAs";
|
|
18
18
|
PROPERTY["EFFECT"] = "EFFECT";
|
|
19
|
+
PROPERTY["ENABLE_DRAWING_OPTIMISATIONS"] = "ENABLE_DRAWING_OPTIMISATIONS";
|
|
19
20
|
PROPERTY["FILL"] = "fill";
|
|
20
21
|
PROPERTY["FILL_Y1"] = "FILL_Y1";
|
|
21
22
|
PROPERTY["FILL_LINEAR_GRADIENT"] = "FILL_LINEAR_GRADIENT";
|
|
@@ -34,6 +35,8 @@ var PROPERTY;
|
|
|
34
35
|
PROPERTY["PALETTE_PROVIDER"] = "PALETTE_PROVIDER";
|
|
35
36
|
PROPERTY["POINT_MARKER"] = "pointMarker";
|
|
36
37
|
PROPERTY["RANGE"] = "RANGE";
|
|
38
|
+
PROPERTY["RESAMPLING_MODE"] = "RESAMPLING_MODE";
|
|
39
|
+
PROPERTY["RESAMPLING_PRECISION"] = "RESAMPLING_PRECISION";
|
|
37
40
|
PROPERTY["SPACING"] = "SPACING";
|
|
38
41
|
PROPERTY["STACKED_GROUP_ID"] = "STACKED_GROUP_ID";
|
|
39
42
|
PROPERTY["STROKE"] = "STROKE";
|
|
@@ -5,7 +5,15 @@ export declare class SciChartDefaults {
|
|
|
5
5
|
*/
|
|
6
6
|
static asyncLabels: boolean;
|
|
7
7
|
/**
|
|
8
|
-
* Set this true to allow
|
|
8
|
+
* Set this true to allow reuse of label textures across different axes and different charts
|
|
9
9
|
*/
|
|
10
10
|
static useSharedCache: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Turn on/off resampling
|
|
13
|
+
*/
|
|
14
|
+
static enableResampling: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Turn on/off warnings to optimize performance
|
|
17
|
+
*/
|
|
18
|
+
static performanceWarnings: boolean;
|
|
11
19
|
}
|
|
@@ -10,9 +10,17 @@ var SciChartDefaults = /** @class */ (function () {
|
|
|
10
10
|
*/
|
|
11
11
|
SciChartDefaults.asyncLabels = false;
|
|
12
12
|
/**
|
|
13
|
-
* Set this true to allow
|
|
13
|
+
* Set this true to allow reuse of label textures across different axes and different charts
|
|
14
14
|
*/
|
|
15
15
|
SciChartDefaults.useSharedCache = false;
|
|
16
|
+
/**
|
|
17
|
+
* Turn on/off resampling
|
|
18
|
+
*/
|
|
19
|
+
SciChartDefaults.enableResampling = true;
|
|
20
|
+
/**
|
|
21
|
+
* Turn on/off warnings to optimize performance
|
|
22
|
+
*/
|
|
23
|
+
SciChartDefaults.performanceWarnings = true;
|
|
16
24
|
return SciChartDefaults;
|
|
17
25
|
}());
|
|
18
26
|
exports.SciChartDefaults = SciChartDefaults;
|
|
@@ -53,16 +53,16 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
53
53
|
/**
|
|
54
54
|
* Creates a {@link SciChartSurface} and {@link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
|
|
55
55
|
* @remarks This method is async and must be awaited
|
|
56
|
-
* @param
|
|
56
|
+
* @param divElement The Div Element ID or reference where the {@link SciChartSurface} will reside
|
|
57
57
|
* @param options Optional - Optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
|
|
58
58
|
*/
|
|
59
|
-
static create(
|
|
59
|
+
static create(divElement: string | HTMLDivElement, options?: I2DSurfaceOptions): Promise<TWebAssemblyChart>;
|
|
60
60
|
/**
|
|
61
61
|
* USED INTERNALLY - performs a similar operation to {@link SciChartSurface.create} but used internally for testing
|
|
62
|
-
* @param
|
|
62
|
+
* @param divElement The Div Element ID or reference where the {@link SciChartSurface} will reside
|
|
63
63
|
* @param options - optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
|
|
64
64
|
*/
|
|
65
|
-
static createSingle(
|
|
65
|
+
static createSingle(divElement: string | HTMLDivElement, options?: I2DSurfaceOptions): Promise<TWebAssemblyChart>;
|
|
66
66
|
/**
|
|
67
67
|
* Allows setting of web URL for Wasm and Data files, in the case you are loading SciChart outside of npm/webpack environment.
|
|
68
68
|
* Note if loading from CDN the version number of data/wasm Urls must match the version number of SciChart.js you are using.
|
|
@@ -195,17 +195,17 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
195
195
|
/**
|
|
196
196
|
* Creates a {@link SciChartSurface} and {@link TSciChart | WebAssembly Context} to occupy the div by element ID in your DOM.
|
|
197
197
|
* @remarks This method is async and must be awaited
|
|
198
|
-
* @param
|
|
198
|
+
* @param divElement The Div Element ID or reference where the {@link SciChartSurface} will reside
|
|
199
199
|
* @param options Optional - Optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
|
|
200
200
|
*/
|
|
201
|
-
SciChartSurface.create = function (
|
|
201
|
+
SciChartSurface.create = function (divElement, options) {
|
|
202
202
|
(0, chartBuilder_1.ensureRegistrations)();
|
|
203
203
|
options = SciChartSurface.resolveOptions(options);
|
|
204
204
|
if (app_1.IS_TEST_ENV) {
|
|
205
|
-
return this.createTest(
|
|
205
|
+
return this.createTest(divElement, options);
|
|
206
206
|
}
|
|
207
207
|
else {
|
|
208
|
-
return (0, createMaster_1.createMultichart)(
|
|
208
|
+
return (0, createMaster_1.createMultichart)(divElement, options).then(function (result) {
|
|
209
209
|
result.sciChartSurface.applyOptions(options);
|
|
210
210
|
return result;
|
|
211
211
|
});
|
|
@@ -213,17 +213,17 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
213
213
|
};
|
|
214
214
|
/**
|
|
215
215
|
* USED INTERNALLY - performs a similar operation to {@link SciChartSurface.create} but used internally for testing
|
|
216
|
-
* @param
|
|
216
|
+
* @param divElement The Div Element ID or reference where the {@link SciChartSurface} will reside
|
|
217
217
|
* @param options - optional parameters for chart creation. See {@link I2DSurfaceOptions} for more details
|
|
218
218
|
*/
|
|
219
|
-
SciChartSurface.createSingle = function (
|
|
219
|
+
SciChartSurface.createSingle = function (divElement, options) {
|
|
220
220
|
(0, chartBuilder_1.ensureRegistrations)();
|
|
221
221
|
options = SciChartSurface.resolveOptions(options);
|
|
222
222
|
if (app_1.IS_TEST_ENV) {
|
|
223
|
-
return this.createTest(
|
|
223
|
+
return this.createTest(divElement, options);
|
|
224
224
|
}
|
|
225
225
|
else {
|
|
226
|
-
return (0, createSingle_1.createSingleInternal)(
|
|
226
|
+
return (0, createSingle_1.createSingleInternal)(divElement, options).then(function (result) {
|
|
227
227
|
result.sciChartSurface.applyOptions(options);
|
|
228
228
|
return result;
|
|
229
229
|
});
|
|
@@ -246,9 +246,9 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
246
246
|
exports.sciChartConfig.dataUrl = (_a = config === null || config === void 0 ? void 0 : config.dataUrl) !== null && _a !== void 0 ? _a : undefined;
|
|
247
247
|
exports.sciChartConfig.wasmUrl = (_b = config === null || config === void 0 ? void 0 : config.wasmUrl) !== null && _b !== void 0 ? _b : undefined;
|
|
248
248
|
};
|
|
249
|
-
SciChartSurface.createTest = function (
|
|
249
|
+
SciChartSurface.createTest = function (divElement, options) {
|
|
250
250
|
var _a, _b;
|
|
251
|
-
var canvases = sciChartInitCommon_1.default.initCanvas(
|
|
251
|
+
var canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.canvas2D);
|
|
252
252
|
var sciChartSurface = new SciChartSurface(exports.sciChartConfig.testWasm, { canvases: canvases });
|
|
253
253
|
sciChartSurface.applyTheme(options === null || options === void 0 ? void 0 : options.theme);
|
|
254
254
|
sciChartSurface.applyOptions(options);
|
|
@@ -385,13 +385,20 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
385
385
|
// Logger.log("SciChartSurface.isSuspended = true. Ignoring invalidateElement() call");
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
|
+
// console.log("Invalidating ", this.domChartRoot.id);
|
|
388
389
|
var canvasId = this.domCanvas2D ? this.domCanvas2D.id : "undefinedCanvasId";
|
|
389
390
|
this.renderSurface.invalidateElement(canvasId);
|
|
390
391
|
};
|
|
391
392
|
// Step_5: Get context and pass drawing to SciChartRenderer
|
|
392
393
|
SciChartSurface.prototype.doDrawingLoop = function () {
|
|
393
394
|
var context = this.renderSurface.getRenderContext();
|
|
394
|
-
|
|
395
|
+
try {
|
|
396
|
+
// console.log("Drawing ", this.domChartRoot.id);
|
|
397
|
+
this.sciChartRenderer.render(context);
|
|
398
|
+
}
|
|
399
|
+
catch (err) {
|
|
400
|
+
console.error("Error from chart in div ".concat(this.domChartRoot.id), err);
|
|
401
|
+
}
|
|
395
402
|
};
|
|
396
403
|
/**
|
|
397
404
|
* @inheritDoc
|
|
@@ -325,13 +325,14 @@ export declare abstract class SciChartSurfaceBase implements ISciChartSurfaceBas
|
|
|
325
325
|
protected changeMasterCanvasViewportSize(wasmContext: TSciChart | TSciChart3D, pixelWidth: number, pixelHeight: number): void;
|
|
326
326
|
protected changeWebGLCanvasViewportSize(wasmContext: TSciChart | TSciChart3D, pixelWidth: number, pixelHeight: number): void;
|
|
327
327
|
}
|
|
328
|
-
export declare const createChartDestination: (
|
|
328
|
+
export declare const createChartDestination: (canvas: HTMLCanvasElement) => {
|
|
329
329
|
canvas: HTMLCanvasElement;
|
|
330
330
|
GetHeight(): any;
|
|
331
331
|
GetWidth(): any;
|
|
332
332
|
GetID(): any;
|
|
333
333
|
};
|
|
334
334
|
export declare const getMasterCanvas: () => HTMLCanvasElement;
|
|
335
|
-
export declare
|
|
335
|
+
export declare type TGetDestinationFn = (destinationId: string) => TSciChartDestination;
|
|
336
|
+
export declare const copyToCanvas: (sourceCanvas: HTMLCanvasElement, getDestinationById: TGetDestinationFn) => (destinationId: string) => void;
|
|
336
337
|
/** @ignore */
|
|
337
338
|
export declare const getLocateFile: (sciChartConfig: TSciChartConfig) => (path: string, prefix: string) => string;
|
|
@@ -420,8 +420,7 @@ var SciChartSurfaceBase = /** @class */ (function () {
|
|
|
420
420
|
return SciChartSurfaceBase;
|
|
421
421
|
}());
|
|
422
422
|
exports.SciChartSurfaceBase = SciChartSurfaceBase;
|
|
423
|
-
var createChartDestination = function (
|
|
424
|
-
var canvas = document.querySelector("#".concat(canvasId));
|
|
423
|
+
var createChartDestination = function (canvas) {
|
|
425
424
|
if (!canvas)
|
|
426
425
|
return undefined;
|
|
427
426
|
return {
|
|
@@ -475,8 +474,9 @@ var getMasterCanvas = function () {
|
|
|
475
474
|
return SciChartSurfaceBase.domMasterCanvas;
|
|
476
475
|
};
|
|
477
476
|
exports.getMasterCanvas = getMasterCanvas;
|
|
478
|
-
var copyToCanvas = function (sourceCanvas) { return function (destinationId) {
|
|
479
|
-
var
|
|
477
|
+
var copyToCanvas = function (sourceCanvas, getDestinationById) { return function (destinationId) {
|
|
478
|
+
var destination = getDestinationById(destinationId);
|
|
479
|
+
var destinationCanvas = destination === null || destination === void 0 ? void 0 : destination.sciChartSurface.domCanvas2D;
|
|
480
480
|
if (destinationCanvas) {
|
|
481
481
|
var destinationCanvasContext = destinationCanvas.getContext("2d");
|
|
482
482
|
destinationCanvasContext.clearRect(0, 0, destinationCanvasContext.canvas.width, destinationCanvasContext.canvas.height);
|
|
@@ -2,6 +2,6 @@ import { I2DSurfaceOptions } from "./I2DSurfaceOptions";
|
|
|
2
2
|
import { TWebAssemblyChart } from "./SciChartSurface";
|
|
3
3
|
import { TSciChartDestination } from "./SciChartSurfaceBase";
|
|
4
4
|
/** @ignore */
|
|
5
|
-
export declare const createMultichart: (
|
|
5
|
+
export declare const createMultichart: (divElement: string | HTMLDivElement, options?: I2DSurfaceOptions) => Promise<TWebAssemblyChart>;
|
|
6
6
|
/** @ignore */
|
|
7
7
|
export declare const sciChartDestinations: TSciChartDestination[];
|
|
@@ -57,14 +57,14 @@ var sciChartMaster = {
|
|
|
57
57
|
/** @ignore */
|
|
58
58
|
var sciChartMasterPromise;
|
|
59
59
|
/** @ignore */
|
|
60
|
-
var createMultichart = function (
|
|
61
|
-
var canvases, loader, loaderDiv, master, createChildSurface, wasmContext_1, sciChartSurface_1, err_1;
|
|
60
|
+
var createMultichart = function (divElement, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
61
|
+
var canvases, loader, loaderDiv, master, createChildSurface, wasmContext_1, divElementId, sciChartSurface_1, err_1;
|
|
62
62
|
var _a, _b, _c;
|
|
63
63
|
return __generator(this, function (_d) {
|
|
64
64
|
switch (_d.label) {
|
|
65
65
|
case 0:
|
|
66
|
-
sciChartInitCommon_1.default.checkChartDivExists(
|
|
67
|
-
canvases = sciChartInitCommon_1.default.initCanvas(
|
|
66
|
+
sciChartInitCommon_1.default.checkChartDivExists(divElement);
|
|
67
|
+
canvases = sciChartInitCommon_1.default.initCanvas(divElement, (_a = options === null || options === void 0 ? void 0 : options.widthAspect) !== null && _a !== void 0 ? _a : 0, (_b = options === null || options === void 0 ? void 0 : options.heightAspect) !== null && _b !== void 0 ? _b : 0, sciChartInitCommon_1.default.ECanvasType.canvas2D);
|
|
68
68
|
loader = (_c = options === null || options === void 0 ? void 0 : options.loader) !== null && _c !== void 0 ? _c : new loader_1.DefaultSciChartLoader();
|
|
69
69
|
loaderDiv = loader.addChartLoader(canvases.domDivContainer, options === null || options === void 0 ? void 0 : options.theme);
|
|
70
70
|
_d.label = 1;
|
|
@@ -85,6 +85,7 @@ var createMultichart = function (divElementId, options) { return __awaiter(void
|
|
|
85
85
|
_d.label = 3;
|
|
86
86
|
case 3:
|
|
87
87
|
createChildSurface = sciChartMaster.createChildSurface, wasmContext_1 = sciChartMaster.wasmContext;
|
|
88
|
+
divElementId = canvases.domChartRoot.id;
|
|
88
89
|
sciChartSurface_1 = createChildSurface(divElementId, canvases, options === null || options === void 0 ? void 0 : options.theme);
|
|
89
90
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
90
91
|
setTimeout(function () {
|
|
@@ -147,7 +148,7 @@ var createMaster = function () {
|
|
|
147
148
|
return sciChartSurface;
|
|
148
149
|
};
|
|
149
150
|
var addDestination = function (wasmContext, canvasElementId, sciChartSurface, width, height, chartInitObj) {
|
|
150
|
-
var newDestination = (0, SciChartSurfaceBase_1.createChartDestination)(
|
|
151
|
+
var newDestination = (0, SciChartSurfaceBase_1.createChartDestination)(sciChartSurface.domCanvas2D);
|
|
151
152
|
if (!newDestination) {
|
|
152
153
|
sciChartSurface.delete();
|
|
153
154
|
return;
|
|
@@ -212,7 +213,7 @@ var createMaster = function () {
|
|
|
212
213
|
wasmContext.SCRTSetGlobalSampleChartInterface(chartInitObj);
|
|
213
214
|
/// create an object that native side can trigger the copy to from...
|
|
214
215
|
var canvasCopyObj = wasmContext.SCRTCopyToDestinationInterface.implement({
|
|
215
|
-
CopyToDestination: (0, SciChartSurfaceBase_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas)
|
|
216
|
+
CopyToDestination: (0, SciChartSurfaceBase_1.copyToCanvas)(SciChartSurfaceBase_1.SciChartSurfaceBase.domMasterCanvas, getDestinationById)
|
|
216
217
|
});
|
|
217
218
|
wasmContext.SCRTSetGlobalCopyToDestinationInterface(canvasCopyObj);
|
|
218
219
|
wasmContext.TSRSetDrawRequestsEnabled(true);
|
|
@@ -224,3 +225,7 @@ var createMaster = function () {
|
|
|
224
225
|
});
|
|
225
226
|
});
|
|
226
227
|
};
|
|
228
|
+
/** @ignore */
|
|
229
|
+
var getDestinationById = function (destinationId) {
|
|
230
|
+
return exports.sciChartDestinations.find(function (dest) { return dest.canvasElementId === destinationId; });
|
|
231
|
+
};
|
|
@@ -6,6 +6,6 @@ import { TWebAssemblyChart } from "./SciChartSurface";
|
|
|
6
6
|
import { TSciChartDestination } from "./SciChartSurfaceBase";
|
|
7
7
|
export declare const sciChartSingleDestinations: TSciChartDestination[];
|
|
8
8
|
/** @ignore */
|
|
9
|
-
export declare const createSingleInternal: (
|
|
9
|
+
export declare const createSingleInternal: (divElement: string | HTMLDivElement, options?: I2DSurfaceOptions) => Promise<TWebAssemblyChart>;
|
|
10
10
|
/** @ignore */
|
|
11
11
|
export declare const initDrawEngineSingleChart: (wasmContext: TSciChart, canvases: TSciChartSurfaceCanvases, resolve: (value: TWebAssemblyChart) => void, theme: IThemeProvider) => void;
|
|
@@ -15,10 +15,10 @@ var SciChartSurfaceBase_1 = require("./SciChartSurfaceBase");
|
|
|
15
15
|
// Global variables
|
|
16
16
|
exports.sciChartSingleDestinations = [];
|
|
17
17
|
/** @ignore */
|
|
18
|
-
var createSingleInternal = function (
|
|
18
|
+
var createSingleInternal = function (divElement, options) {
|
|
19
19
|
return new Promise(function (resolve, reject) {
|
|
20
20
|
var _a;
|
|
21
|
-
var canvases = sciChartInitCommon_1.default.initCanvas(
|
|
21
|
+
var canvases = sciChartInitCommon_1.default.initCanvas(divElement, options === null || options === void 0 ? void 0 : options.widthAspect, options === null || options === void 0 ? void 0 : options.heightAspect);
|
|
22
22
|
var loader = (_a = options === null || options === void 0 ? void 0 : options.loader) !== null && _a !== void 0 ? _a : new loader_1.DefaultSciChartLoader();
|
|
23
23
|
var loaderDiv = loader.addChartLoader(canvases.domDivContainer, options === null || options === void 0 ? void 0 : options.theme);
|
|
24
24
|
var webGLSupport = WebGlHelper_1.WebGlHelper.getWebGlSupport();
|
|
@@ -40,17 +40,17 @@ exports.licenseManager = exports.updateLicenseDisplay = exports.getLicenseInfo =
|
|
|
40
40
|
var app_1 = require("../../constants/app");
|
|
41
41
|
var BuildStamp_1 = require("../../Core/BuildStamp");
|
|
42
42
|
var Dictionary_1 = require("../../Core/Dictionary");
|
|
43
|
+
var localStorageApi_1 = require("../../Core/storage/localStorageApi");
|
|
43
44
|
var Color_1 = require("../../types/Color");
|
|
44
45
|
var licensingClasses_1 = require("../../types/licensingClasses");
|
|
45
46
|
var cookie_1 = require("../../utils/cookie");
|
|
47
|
+
var licenseManager2dState_1 = require("./licenseManager2dState");
|
|
46
48
|
var licenseWizardPort = 24278;
|
|
47
49
|
var licenseWizardAlternatePort = 24279;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
licenseWizardAlternatePort = licenseWizardPort + 1;
|
|
53
|
-
}
|
|
50
|
+
var portOverride = localStorageApi_1.localStorageApi.getLicenseWizardPort();
|
|
51
|
+
if (portOverride) {
|
|
52
|
+
licenseWizardPort = portOverride;
|
|
53
|
+
licenseWizardAlternatePort = licenseWizardPort + 1;
|
|
54
54
|
}
|
|
55
55
|
var fetchFromWizard = function (path) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
56
|
var wizardUrl, response, err_1, maxport, wizardUrl, response, err_2;
|
|
@@ -67,8 +67,8 @@ var fetchFromWizard = function (path) { return __awaiter(void 0, void 0, void 0,
|
|
|
67
67
|
err_1 = _a.sent();
|
|
68
68
|
debug("Could not connect to license wizard on port " + licenseWizardPort.toString());
|
|
69
69
|
if (!(typeof localStorage !== "undefined")) return [3 /*break*/, 8];
|
|
70
|
-
maxport =
|
|
71
|
-
if (!
|
|
70
|
+
maxport = localStorageApi_1.localStorageApi.getLicenseWizardMaxPort();
|
|
71
|
+
if (!maxport) return [3 /*break*/, 8];
|
|
72
72
|
_a.label = 3;
|
|
73
73
|
case 3:
|
|
74
74
|
if (!(licenseWizardAlternatePort <= maxport)) return [3 /*break*/, 8];
|
|
@@ -105,7 +105,7 @@ exports.setDependencies = setDependencies;
|
|
|
105
105
|
var isDebug = null;
|
|
106
106
|
var debug = function (message) {
|
|
107
107
|
if (isDebug === null) {
|
|
108
|
-
isDebug =
|
|
108
|
+
isDebug = localStorageApi_1.localStorageApi.getIsLicenseDebug();
|
|
109
109
|
}
|
|
110
110
|
if (app_1.IS_TEST_ENV || isDebug) {
|
|
111
111
|
licenseDependencies.debug(message);
|
|
@@ -255,7 +255,7 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
|
|
|
255
255
|
return __generator(this, function (_b) {
|
|
256
256
|
switch (_b.label) {
|
|
257
257
|
case 0:
|
|
258
|
-
server =
|
|
258
|
+
server = licenseManager2dState_1.licenseManager2dState.getIsDev() ? "license wizard" : "server";
|
|
259
259
|
_b.label = 1;
|
|
260
260
|
case 1:
|
|
261
261
|
_b.trys.push([1, 11, , 12]);
|
|
@@ -273,7 +273,7 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
|
|
|
273
273
|
}
|
|
274
274
|
response = void 0;
|
|
275
275
|
queryString = "orderid=".concat(orderId, "&challenge=").concat(challenge);
|
|
276
|
-
if (!
|
|
276
|
+
if (!licenseManager2dState_1.licenseManager2dState.getIsDev()) return [3 /*break*/, 3];
|
|
277
277
|
url = "/validate?".concat(queryString);
|
|
278
278
|
return [4 /*yield*/, licenseDependencies.fetchFromWizard(url)];
|
|
279
279
|
case 2:
|
|
@@ -335,7 +335,7 @@ var dolicenseChallenge = function () { return __awaiter(void 0, void 0, void 0,
|
|
|
335
335
|
}
|
|
336
336
|
else {
|
|
337
337
|
expiry = (0, exports.getLicenseCookie)().expiry;
|
|
338
|
-
msg =
|
|
338
|
+
msg = licenseManager2dState_1.licenseManager2dState.getIsDev()
|
|
339
339
|
? "Please run the license wizard, ensure your license is activated, then refresh page to retry."
|
|
340
340
|
: "Please check that the endpoint is configured correctly.";
|
|
341
341
|
console.error("Failed to connect to ".concat(server, "/").concat(serverLicenseEndpoint, ". License must be revalidated before ").concat(expiry.toLocaleString(), ". ").concat(msg));
|
|
@@ -359,7 +359,6 @@ var checkStatus = licensingClasses_1.LicenseCheckStatus.NoLicense;
|
|
|
359
359
|
var licenseContext2D;
|
|
360
360
|
var sciChartSurface2D;
|
|
361
361
|
var isRuntimeKey = false;
|
|
362
|
-
var isDev = false;
|
|
363
362
|
var applyLicense2D = function (licenseContext, sciChartSurface, isSingle) {
|
|
364
363
|
debug("applyLicense 2D");
|
|
365
364
|
if (isSingle || shouldApplyLicense2D) {
|
|
@@ -377,7 +376,9 @@ var applyLicense = function (licenseContext) {
|
|
|
377
376
|
debug("Initial license status is " + licensingClasses_1.LicenseType[convertLicenseType(lt, licenseContext)]);
|
|
378
377
|
// Get from global store
|
|
379
378
|
var runtimelicense = getRuntimeLicenseKey();
|
|
380
|
-
if ((checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicense ||
|
|
379
|
+
if ((checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicense ||
|
|
380
|
+
checkStatus === licensingClasses_1.LicenseCheckStatus.LicenseOK ||
|
|
381
|
+
checkStatus === licensingClasses_1.LicenseCheckStatus.LookingForLicenseWizard) &&
|
|
381
382
|
lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_NO_LICENSE &&
|
|
382
383
|
runtimelicense) {
|
|
383
384
|
debug("Runtime license found");
|
|
@@ -429,7 +430,7 @@ var applyLicense = function (licenseContext) {
|
|
|
429
430
|
licenseContext.SCRTCredentials.SetRuntimeLicenseKeyW(licenseKey);
|
|
430
431
|
lt = licenseContext.SCRTCredentials.GetLicenseType();
|
|
431
432
|
}
|
|
432
|
-
|
|
433
|
+
licenseManager2dState_1.licenseManager2dState.setIsDev(licenseContext.SCRTCredentials.GetAllowDebugging());
|
|
433
434
|
if (lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_FULL ||
|
|
434
435
|
lt === licenseContext.SCRTLicenseType.LICENSE_TYPE_TRIAL) {
|
|
435
436
|
checkStatus = licensingClasses_1.LicenseCheckStatus.LicenseOK;
|
|
@@ -437,7 +438,7 @@ var applyLicense = function (licenseContext) {
|
|
|
437
438
|
}
|
|
438
439
|
else if (licenseContext.SCRTCredentials.RequiresValidation()) {
|
|
439
440
|
debug("license requires validation");
|
|
440
|
-
if (isRuntimeKey &&
|
|
441
|
+
if (isRuntimeKey && licenseManager2dState_1.licenseManager2dState.getIsDev()) {
|
|
441
442
|
// clear key
|
|
442
443
|
licenseContext.SCRTCredentials.ResetRuntimeLicense();
|
|
443
444
|
(0, cookie_1.deleteCookie)("scLicense");
|
|
@@ -477,7 +478,7 @@ var applyLicense = function (licenseContext) {
|
|
|
477
478
|
if (checkStatus === licensingClasses_1.LicenseCheckStatus.NoLicense && useLicenseWizard) {
|
|
478
479
|
if (wizardTimer === undefined) {
|
|
479
480
|
checkStatus = licensingClasses_1.LicenseCheckStatus.LookingForLicenseWizard;
|
|
480
|
-
|
|
481
|
+
licenseManager2dState_1.licenseManager2dState.setIsDev(true);
|
|
481
482
|
getlicenseFromWizard();
|
|
482
483
|
}
|
|
483
484
|
}
|
|
@@ -726,7 +727,7 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
|
|
|
726
727
|
postMsg = "Instructions can be seen at ".concat(licensingLink, "</br>\n Please ").concat(contactSupportLink, " with your OrderID if you are experiencing issues.");
|
|
727
728
|
}
|
|
728
729
|
else if (licenseType === licensingClasses_1.LicenseType.Requres_Validation) {
|
|
729
|
-
if (
|
|
730
|
+
if (licenseManager2dState_1.licenseManager2dState.getIsDev()) {
|
|
730
731
|
premsg = "Your developer license must be validated by the SciChart Licensing Wizard running locally";
|
|
731
732
|
}
|
|
732
733
|
else {
|
|
@@ -759,21 +760,21 @@ var updateLicenseDisplayInternal = function (licenseInfo, sciChartSurface, is2D,
|
|
|
759
760
|
if (checkStatus === licensingClasses_1.LicenseCheckStatus.LookingForLicenseWizard)
|
|
760
761
|
chartmsg = "<br>Looking for Licensing Wizard... <u>Please run it or click for download and installation instructions</u>.";
|
|
761
762
|
else if (checkStatus === licensingClasses_1.LicenseCheckStatus.FailedToFindLicenseWizard)
|
|
762
|
-
if (
|
|
763
|
+
if (licenseManager2dState_1.licenseManager2dState.getIsDev()) {
|
|
763
764
|
chartmsg = "<br><u>Could not connect to the Licensing Wizard. Please run it or click for download and installation instructions, then reload this page.</u>";
|
|
764
765
|
}
|
|
765
766
|
else {
|
|
766
767
|
chartmsg = "<br><u>Could not connect to the server licensing endpoint</u>";
|
|
767
768
|
}
|
|
768
769
|
else if (checkStatus === licensingClasses_1.LicenseCheckStatus.ValidatingDeveloperLicense)
|
|
769
|
-
if (
|
|
770
|
+
if (licenseManager2dState_1.licenseManager2dState.getIsDev()) {
|
|
770
771
|
chartmsg = "<br><u>Trying to validate your license... Please run the Licensing Wizard or click for download and installation instructions</u>.";
|
|
771
772
|
}
|
|
772
773
|
else {
|
|
773
774
|
chartmsg = "<br><u>Trying to validate your license with the server...</u>.";
|
|
774
775
|
}
|
|
775
776
|
else if (checkStatus === licensingClasses_1.LicenseCheckStatus.FailedToValidateDeveloperLicense)
|
|
776
|
-
if (
|
|
777
|
+
if (licenseManager2dState_1.licenseManager2dState.getIsDev()) {
|
|
777
778
|
chartmsg = "<br><u>Failed to validate your developer license with the Licensing Wizard. If you have changed your activated license, try clearing your cookies for this site.</u>.";
|
|
778
779
|
}
|
|
779
780
|
else {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.licenseManager2dState = void 0;
|
|
4
|
+
var isDev = false;
|
|
5
|
+
var getIsDev = function () { return isDev; };
|
|
6
|
+
var setIsDev = function (value) {
|
|
7
|
+
isDev = value;
|
|
8
|
+
};
|
|
9
|
+
exports.licenseManager2dState = {
|
|
10
|
+
getIsDev: getIsDev,
|
|
11
|
+
setIsDev: setIsDev
|
|
12
|
+
};
|
|
@@ -7,10 +7,10 @@ declare enum ECanvasType {
|
|
|
7
7
|
svg = 2
|
|
8
8
|
}
|
|
9
9
|
declare const sciChartInitCommon: {
|
|
10
|
-
checkChartDivExists: (
|
|
10
|
+
checkChartDivExists: (divElement: string | HTMLDivElement) => void;
|
|
11
11
|
ECanvasType: typeof ECanvasType;
|
|
12
12
|
getCanvas2dId: (divElementId: string) => string;
|
|
13
|
-
initCanvas: (
|
|
13
|
+
initCanvas: (divElement: string | HTMLDivElement, aspectWidth: number, aspectHeight: number, activeCanvas?: ECanvasType) => TSciChartSurfaceCanvases;
|
|
14
14
|
subscribeToResize: (chartRoot: HTMLDivElement, aspect: number, sciChartSurface: ISciChartSurfaceBase) => IDeletable;
|
|
15
15
|
};
|
|
16
16
|
export default sciChartInitCommon;
|
|
@@ -37,13 +37,13 @@ var getCanvasSizes = function (divWidth, divHeight, maxHeight, aspectWidth, aspe
|
|
|
37
37
|
return { width: width, height: height, aspectRatio: aspectRatio };
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
var getChartRootDomElement = function (
|
|
41
|
-
var chartRoot = document.querySelector("#".concat(
|
|
40
|
+
var getChartRootDomElement = function (divElement) {
|
|
41
|
+
var chartRoot = typeof divElement === "string" ? document.querySelector("#".concat(divElement)) : divElement;
|
|
42
42
|
if (!chartRoot) {
|
|
43
|
-
throw new Error("Check div element with id \"".concat(
|
|
43
|
+
throw new Error("Check div element with id \"".concat(chartRoot.id, "\" exists"));
|
|
44
44
|
}
|
|
45
45
|
if (chartRoot.nodeName.toLowerCase() !== "div") {
|
|
46
|
-
throw new Error("Element with id \"".concat(
|
|
46
|
+
throw new Error("Element with id \"".concat(chartRoot.id, "\" should be of type div"));
|
|
47
47
|
}
|
|
48
48
|
return chartRoot;
|
|
49
49
|
};
|
|
@@ -68,12 +68,13 @@ var getMaxHeight = function (divElement) {
|
|
|
68
68
|
* @param activeCanvas - ECanvasType.canvasWebGL for sciChartSurface.createSingle, ECanvasType.canvas2D for copy canvas,
|
|
69
69
|
* ECanvasType.svg for SciChartPieSurface
|
|
70
70
|
*/
|
|
71
|
-
var initCanvas = function (
|
|
71
|
+
var initCanvas = function (divElement, aspectWidth, aspectHeight, activeCanvas) {
|
|
72
72
|
if (activeCanvas === void 0) { activeCanvas = ECanvasType.canvasWebGL; }
|
|
73
73
|
WebGlHelper_1.WebGlHelper.initialize();
|
|
74
74
|
DpiHelper_1.DpiHelper.initialize();
|
|
75
|
-
var chartRoot = getChartRootDomElement(
|
|
75
|
+
var chartRoot = getChartRootDomElement(divElement);
|
|
76
76
|
chartRoot.innerHTML = "";
|
|
77
|
+
var divElementId = chartRoot.id;
|
|
77
78
|
var divWidth = chartRoot.offsetWidth, divHeight = chartRoot.offsetHeight;
|
|
78
79
|
var maxHeight = getMaxHeight(chartRoot);
|
|
79
80
|
var _a = getCanvasSizes(divWidth, divHeight, maxHeight, aspectWidth, aspectHeight), width = _a.width, height = _a.height, aspectRatio = _a.aspectRatio;
|
|
@@ -215,13 +216,18 @@ var subscribeToResize = function (chartRoot, aspect, sciChartSurface) {
|
|
|
215
216
|
* Check DOM element with specified ID exists and unique
|
|
216
217
|
* @param divElementId
|
|
217
218
|
*/
|
|
218
|
-
var checkChartDivExists = function (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
var checkChartDivExists = function (divElement) {
|
|
220
|
+
if (typeof divElement === "string") {
|
|
221
|
+
var numberOfElements = document.querySelectorAll("[id=".concat(divElement, "]")).length;
|
|
222
|
+
if (numberOfElements > 1) {
|
|
223
|
+
console.error("Please provide a unique ID for each chart div element, \"".concat(divElement, "\" it is not a unique identifier"));
|
|
224
|
+
}
|
|
225
|
+
else if (numberOfElements === 0) {
|
|
226
|
+
console.error("Chart div element with the ID \"".concat(divElement, "\" is not present in the DOM"));
|
|
227
|
+
}
|
|
222
228
|
}
|
|
223
|
-
else if (
|
|
224
|
-
|
|
229
|
+
else if (!divElement) {
|
|
230
|
+
throw new Error("Provided div element doesn't exist!");
|
|
225
231
|
}
|
|
226
232
|
};
|
|
227
233
|
var sciChartInitCommon = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
2
|
-
import {
|
|
2
|
+
import { SCRTDoubleVector } from "../../../types/TSciChart";
|
|
3
3
|
import { TSciChart3D } from "../../../types/TSciChart3D";
|
|
4
4
|
import { BaseDataSeries3D, EDataSeriesType3D } from "./BaseDataSeries3D";
|
|
5
5
|
import { IPointMetadata3D } from "./IPointMetadata3D";
|
|
@@ -39,9 +39,9 @@ export interface IXyzDataSeries3DOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
export declare class XyzDataSeries3D extends BaseDataSeries3D {
|
|
41
41
|
readonly type: EDataSeriesType3D;
|
|
42
|
-
protected xValues:
|
|
43
|
-
protected yValues:
|
|
44
|
-
protected zValues:
|
|
42
|
+
protected xValues: SCRTDoubleVector;
|
|
43
|
+
protected yValues: SCRTDoubleVector;
|
|
44
|
+
protected zValues: SCRTDoubleVector;
|
|
45
45
|
protected metadata: IPointMetadata3D[];
|
|
46
46
|
/**
|
|
47
47
|
* Creates an instance of {@link XyzDataSeries3D}
|
|
@@ -53,15 +53,15 @@ export declare class XyzDataSeries3D extends BaseDataSeries3D {
|
|
|
53
53
|
/**
|
|
54
54
|
* Gets a native / WebAssembly vector of X-values in the DataSeries
|
|
55
55
|
*/
|
|
56
|
-
getNativeXValues():
|
|
56
|
+
getNativeXValues(): SCRTDoubleVector;
|
|
57
57
|
/**
|
|
58
58
|
* Gets a native / WebAssembly vector of Y-values in the DataSeries
|
|
59
59
|
*/
|
|
60
|
-
getNativeYValues():
|
|
60
|
+
getNativeYValues(): SCRTDoubleVector;
|
|
61
61
|
/**
|
|
62
62
|
* Gets a native / WebAssembly vector of Z-values in the DataSeries
|
|
63
63
|
*/
|
|
64
|
-
getNativeZValues():
|
|
64
|
+
getNativeZValues(): SCRTDoubleVector;
|
|
65
65
|
/**
|
|
66
66
|
* Gets a native / WebAssembly vector of {@link IPointMetadata3D | Metadata values} in the DataSeries
|
|
67
67
|
*/
|