scichart 2.0.2127 → 2.0.2146
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/Builder/buildSeries.d.ts +1 -1
- package/Charting/ChartModifiers/LegendModifier.js +1 -0
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.d.ts +7 -2
- package/Charting/ChartModifiers/OverviewRangeSelectionModifier.js +18 -2
- package/Charting/ChartModifiers/RolloverModifier.d.ts +6 -0
- package/Charting/ChartModifiers/RolloverModifier.js +49 -15
- package/Charting/Model/BaseDataSeries.d.ts +2 -2
- package/Charting/Model/OhlcDataSeries.d.ts +2 -2
- package/Charting/Model/XyyDataSeries.d.ts +2 -2
- package/Charting/Model/XyzDataSeries.d.ts +2 -2
- package/Charting/Services/SciChartRenderer.d.ts +1 -0
- package/Charting/Services/SciChartRenderer.js +22 -6
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +75 -52
- package/Charting/Visuals/Axis/AxisBase2D.js +53 -34
- package/Charting/Visuals/Axis/AxisCore.d.ts +7 -4
- package/Charting/Visuals/Axis/AxisCore.js +21 -5
- package/Charting/Visuals/Axis/AxisRenderer.d.ts +5 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +58 -71
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -3
- package/Charting/Visuals/Axis/LogarithmicAxis.js +4 -11
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/BandAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/BubbleAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/CandlestickAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ColumnAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/FadeAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/LineAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/MountainAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/OhlcAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/ScatterAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.d.ts → SeriesAnimation.d.ts} +3 -2
- package/Charting/Visuals/RenderableSeries/Animations/{BaseAnimation.js → SeriesAnimation.js} +13 -13
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/SweepAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.js +2 -2
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +8 -8
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +9 -9
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +3 -3
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +7 -7
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +1 -1
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +7 -7
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +3 -3
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js +29 -5
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +4 -4
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +1 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +1 -0
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +1 -0
- package/Charting/Visuals/SciChartOverview.d.ts +5 -2
- package/Charting/Visuals/SciChartOverview.js +24 -15
- package/Charting/Visuals/SciChartSurface.d.ts +13 -0
- package/Charting/Visuals/SciChartSurface.js +38 -3
- package/Charting3D/Visuals/SciChart3DRenderer.js +1 -0
- package/Core/Animations/AnimationFiniteStateMachine.d.ts +27 -14
- package/Core/Animations/AnimationFiniteStateMachine.js +48 -15
- package/Core/Animations/Animator.d.ts +1 -9
- package/Core/Animations/Animator.js +1 -9
- package/Core/Animations/DoubleAnimator.d.ts +2 -8
- package/Core/Animations/DoubleAnimator.js +1 -7
- package/Core/Animations/GenericAnimation.d.ts +74 -0
- package/Core/Animations/GenericAnimation.js +74 -0
- package/Core/Animations/NumberRangeAnimator.d.ts +4 -3
- package/Core/Animations/NumberRangeAnimator.js +23 -3
- package/Core/NumberRange.js +6 -7
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +1 -1
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +1 -1
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +2 -2
package/Charting/Visuals/RenderableSeries/RolloverModifier/RolloverModifierRenderableSeriesProps.js
CHANGED
|
@@ -5,13 +5,14 @@ var Deleter_1 = require("../../../../Core/Deleter");
|
|
|
5
5
|
var SciChartSurfaceBase_1 = require("../../SciChartSurfaceBase");
|
|
6
6
|
var constants_1 = require("./constants");
|
|
7
7
|
var RolloverModifierRenderableSeriesProps = /** @class */ (function () {
|
|
8
|
-
function RolloverModifierRenderableSeriesProps() {
|
|
8
|
+
function RolloverModifierRenderableSeriesProps(renderableSeries, isY1) {
|
|
9
|
+
if (isY1 === void 0) { isY1 = false; }
|
|
9
10
|
this.tooltipLegendOffsetX = 20;
|
|
10
11
|
this.tooltipLegendOffsetY = 20;
|
|
11
12
|
this.showsRolloverProperty = true;
|
|
12
|
-
this.tooltipColorProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.textAnnotationBackground;
|
|
13
13
|
this.tooltipTextColorProperty = SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.textAnnotationForeground;
|
|
14
|
-
this.
|
|
14
|
+
this.renderableSeries = renderableSeries;
|
|
15
|
+
this.isY1 = isY1;
|
|
15
16
|
}
|
|
16
17
|
RolloverModifierRenderableSeriesProps.prototype.setInvalidateParentCallback = function (callback) {
|
|
17
18
|
this.invalidateParentCallback = callback;
|
|
@@ -29,7 +30,15 @@ var RolloverModifierRenderableSeriesProps = /** @class */ (function () {
|
|
|
29
30
|
});
|
|
30
31
|
Object.defineProperty(RolloverModifierRenderableSeriesProps.prototype, "tooltipColor", {
|
|
31
32
|
get: function () {
|
|
32
|
-
|
|
33
|
+
if (this.tooltipColorProperty) {
|
|
34
|
+
return this.tooltipColorProperty;
|
|
35
|
+
}
|
|
36
|
+
else if (this.getRenderableSeriesStroke()) {
|
|
37
|
+
return this.getRenderableSeriesStroke();
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.textAnnotationBackground;
|
|
41
|
+
}
|
|
33
42
|
},
|
|
34
43
|
set: function (value) {
|
|
35
44
|
this.tooltipColorProperty = value;
|
|
@@ -62,7 +71,15 @@ var RolloverModifierRenderableSeriesProps = /** @class */ (function () {
|
|
|
62
71
|
});
|
|
63
72
|
Object.defineProperty(RolloverModifierRenderableSeriesProps.prototype, "markerColor", {
|
|
64
73
|
get: function () {
|
|
65
|
-
|
|
74
|
+
if (this.markerColorProperty) {
|
|
75
|
+
return this.markerColorProperty;
|
|
76
|
+
}
|
|
77
|
+
else if (this.getRenderableSeriesStroke()) {
|
|
78
|
+
return this.getRenderableSeriesStroke();
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.textAnnotationBackground;
|
|
82
|
+
}
|
|
66
83
|
},
|
|
67
84
|
set: function (value) {
|
|
68
85
|
this.markerColorProperty = value;
|
|
@@ -104,6 +121,13 @@ var RolloverModifierRenderableSeriesProps = /** @class */ (function () {
|
|
|
104
121
|
this.invalidateParentCallback();
|
|
105
122
|
}
|
|
106
123
|
};
|
|
124
|
+
RolloverModifierRenderableSeriesProps.prototype.getRenderableSeriesStroke = function () {
|
|
125
|
+
if (this.isY1) {
|
|
126
|
+
var bandRS = this.renderableSeries;
|
|
127
|
+
return bandRS.strokeY1;
|
|
128
|
+
}
|
|
129
|
+
return this.renderableSeries.stroke;
|
|
130
|
+
};
|
|
107
131
|
return RolloverModifierRenderableSeriesProps;
|
|
108
132
|
}());
|
|
109
133
|
exports.RolloverModifierRenderableSeriesProps = RolloverModifierRenderableSeriesProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
2
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
4
4
|
import { DoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
5
|
-
import {
|
|
5
|
+
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
6
6
|
import { BaseBandRenderableSeries, IBaseBandRenderableSeriesOptions } from "./BaseBandRenderableSeries";
|
|
7
7
|
import { ISpline } from "./ISpline";
|
|
8
8
|
/**
|
|
@@ -71,9 +71,9 @@ export declare class SplineBandRenderableSeries extends BaseBandRenderableSeries
|
|
|
71
71
|
/** @inheritDoc */
|
|
72
72
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
73
73
|
/** @inheritDoc */
|
|
74
|
-
protected setAnimationVectors(animation:
|
|
74
|
+
protected setAnimationVectors(animation: SeriesAnimation): void;
|
|
75
75
|
/** @inheritDoc */
|
|
76
|
-
protected updateAnimationProperties(progress: number, animationFSM:
|
|
76
|
+
protected updateAnimationProperties(progress: number, animationFSM: SeriesAnimationFiniteStateMachine): void;
|
|
77
77
|
/** @inheritDoc */
|
|
78
78
|
protected dataSeriesDataChanged(): void;
|
|
79
79
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
2
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
4
4
|
import { DoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
5
|
-
import {
|
|
5
|
+
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
6
6
|
import { BaseLineRenderableSeries } from "./BaseLineRenderableSeries";
|
|
7
7
|
import { TPalettingState } from "./DrawingProviders/BaseSeriesDrawingProvider";
|
|
8
8
|
import { IBaseRenderableSeriesOptions } from "./IBaseRenderableSeriesOptions";
|
|
@@ -72,9 +72,9 @@ export declare class SplineLineRenderableSeries extends BaseLineRenderableSeries
|
|
|
72
72
|
*/
|
|
73
73
|
pushPalettedColors(color: number, palettingState: TPalettingState): void;
|
|
74
74
|
/** @inheritDoc */
|
|
75
|
-
protected setAnimationVectors(animation:
|
|
75
|
+
protected setAnimationVectors(animation: SeriesAnimation): void;
|
|
76
76
|
/** @inheritDoc */
|
|
77
|
-
protected updateAnimationProperties(progress: number, animationFSM:
|
|
77
|
+
protected updateAnimationProperties(progress: number, animationFSM: SeriesAnimationFiniteStateMachine): void;
|
|
78
78
|
/** @inheritDoc */
|
|
79
79
|
protected dataSeriesDataChanged(): void;
|
|
80
80
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SeriesAnimationFiniteStateMachine } from "../../../Core/Animations/AnimationFiniteStateMachine";
|
|
2
2
|
import { NumberRange } from "../../../Core/NumberRange";
|
|
3
3
|
import { ESeriesType } from "../../../types/SeriesType";
|
|
4
4
|
import { DoubleVector, TSciChart } from "../../../types/TSciChart";
|
|
5
|
-
import {
|
|
5
|
+
import { SeriesAnimation } from "./Animations/SeriesAnimation";
|
|
6
6
|
import { BaseMountainRenderableSeries, IBaseMountainRenderableSeriesOptions } from "./BaseMountainRenderableSeries";
|
|
7
7
|
import { ISpline } from "./ISpline";
|
|
8
8
|
/**
|
|
@@ -68,9 +68,9 @@ export declare class SplineMountainRenderableSeries extends BaseMountainRenderab
|
|
|
68
68
|
/** @inheritDoc */
|
|
69
69
|
toJSON(excludeData?: boolean): import("../../../Builder/buildSeries").TSeriesDefinition;
|
|
70
70
|
/** @inheritDoc */
|
|
71
|
-
protected setAnimationVectors(animation:
|
|
71
|
+
protected setAnimationVectors(animation: SeriesAnimation): void;
|
|
72
72
|
/** @inheritDoc */
|
|
73
|
-
protected updateAnimationProperties(progress: number, animationFSM:
|
|
73
|
+
protected updateAnimationProperties(progress: number, animationFSM: SeriesAnimationFiniteStateMachine): void;
|
|
74
74
|
/** @inheritDoc */
|
|
75
75
|
protected dataSeriesDataChanged(): void;
|
|
76
76
|
}
|
|
@@ -69,6 +69,7 @@ export declare class StackedColumnCollection extends BaseStackedCollection<Stack
|
|
|
69
69
|
* Creates an instance of the {@link StackedColumnCollection}
|
|
70
70
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
71
71
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
72
|
+
* @param options Optional parameters of type {@link IStackedColumnCollectionOptions} to configure the series
|
|
72
73
|
*/
|
|
73
74
|
constructor(webAssemblyContext: TSciChart, options?: IStackedColumnCollectionOptions);
|
|
74
75
|
/** @inheritDoc */
|
|
@@ -65,6 +65,7 @@ var StackedColumnCollection = /** @class */ (function (_super) {
|
|
|
65
65
|
* Creates an instance of the {@link StackedColumnCollection}
|
|
66
66
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
67
67
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
68
|
+
* @param options Optional parameters of type {@link IStackedColumnCollectionOptions} to configure the series
|
|
68
69
|
*/
|
|
69
70
|
function StackedColumnCollection(webAssemblyContext, options) {
|
|
70
71
|
var _a, _b;
|
|
@@ -89,6 +89,7 @@ export declare class StackedColumnRenderableSeries extends BaseStackedRenderable
|
|
|
89
89
|
* Creates an instance of the {@link StackedColumnRenderableSeries}
|
|
90
90
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
91
91
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
92
|
+
* @param options Optional parameters of type {@link IStackedColumnRenderableSeriesOptions} to configure the series
|
|
92
93
|
*/
|
|
93
94
|
constructor(webAssemblyContext: TSciChart, options?: IStackedColumnRenderableSeriesOptions);
|
|
94
95
|
/**
|
|
@@ -66,6 +66,7 @@ var StackedColumnRenderableSeries = /** @class */ (function (_super) {
|
|
|
66
66
|
* Creates an instance of the {@link StackedColumnRenderableSeries}
|
|
67
67
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
68
68
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
69
|
+
* @param options Optional parameters of type {@link IStackedColumnRenderableSeriesOptions} to configure the series
|
|
69
70
|
*/
|
|
70
71
|
function StackedColumnRenderableSeries(webAssemblyContext, options) {
|
|
71
72
|
var _a, _b, _c, _d, _e;
|
|
@@ -38,6 +38,7 @@ export declare class StackedMountainCollection extends BaseStackedCollection<Sta
|
|
|
38
38
|
* Creates an instance of the {@link StackedMountainCollection}
|
|
39
39
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
40
40
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
41
|
+
* @param options Optional parameters of type {@link IBaseStackedCollectionOptions} to configure the
|
|
41
42
|
*/
|
|
42
43
|
constructor(webAssemblyContext: TSciChart, options?: IBaseStackedCollectionOptions);
|
|
43
44
|
/** @inheritDoc */
|
|
@@ -50,6 +50,7 @@ var StackedMountainCollection = /** @class */ (function (_super) {
|
|
|
50
50
|
* Creates an instance of the {@link StackedMountainCollection}
|
|
51
51
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
52
52
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
53
|
+
* @param options Optional parameters of type {@link IBaseStackedCollectionOptions} to configure the
|
|
53
54
|
*/
|
|
54
55
|
function StackedMountainCollection(webAssemblyContext, options) {
|
|
55
56
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
@@ -55,6 +55,7 @@ export declare class StackedMountainRenderableSeries extends BaseStackedRenderab
|
|
|
55
55
|
* Creates an instance of the {@link StackedMountainRenderableSeries}
|
|
56
56
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
57
57
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
58
|
+
* @param options Optional parameters of type {@link IStackedMountainRenderableSeriesOptions} to configure the series
|
|
58
59
|
*/
|
|
59
60
|
constructor(webAssemblyContext: TSciChart, options?: IStackedMountainRenderableSeriesOptions);
|
|
60
61
|
/**
|
|
@@ -52,6 +52,7 @@ var StackedMountainRenderableSeries = /** @class */ (function (_super) {
|
|
|
52
52
|
* Creates an instance of the {@link StackedMountainRenderableSeries}
|
|
53
53
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
54
54
|
* native methods and access to our WebGL2 WebAssembly Drawing Engine
|
|
55
|
+
* @param options Optional parameters of type {@link IStackedMountainRenderableSeriesOptions} to configure the series
|
|
55
56
|
*/
|
|
56
57
|
function StackedMountainRenderableSeries(webAssemblyContext, options) {
|
|
57
58
|
var _a, _b, _c;
|
|
@@ -3,18 +3,21 @@ import { OverviewRangeSelectionModifier } from "../ChartModifiers/OverviewRangeS
|
|
|
3
3
|
import { IThemeable } from "../Themes/IThemeable";
|
|
4
4
|
import { IThemeProvider } from "../Themes/IThemeProvider";
|
|
5
5
|
import { AxisBase2D } from "./Axis/AxisBase2D";
|
|
6
|
+
import { INumericAxisOptions } from "./Axis/NumericAxis";
|
|
7
|
+
import { I2DSurfaceOptions } from "./I2DSurfaceOptions";
|
|
6
8
|
import { IRenderableSeries } from "./RenderableSeries/IRenderableSeries";
|
|
7
9
|
import { SciChartSurface } from "./SciChartSurface";
|
|
8
10
|
/**
|
|
9
11
|
* Options for passing to the {@link SciChartOverview.create} method
|
|
10
12
|
*/
|
|
11
|
-
export interface IOverviewOptions {
|
|
13
|
+
export interface IOverviewOptions extends I2DSurfaceOptions {
|
|
12
14
|
mainAxisId?: string;
|
|
13
15
|
secondaryAxisId?: string;
|
|
14
16
|
customRangeSelectionModifier?: OverviewRangeSelectionModifier;
|
|
15
17
|
rangeSelectionAnnotationSvgString?: string;
|
|
16
18
|
transformRenderableSeries?: (renderableSeries: IRenderableSeries) => IRenderableSeries;
|
|
17
|
-
|
|
19
|
+
overviewXAxisOptions?: INumericAxisOptions;
|
|
20
|
+
overviewYAxisOptions?: INumericAxisOptions;
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* @summary The {@link SciChartOverview} is the component that can control the visible range of the parent {@link SciChartSurface} using a slider
|
|
@@ -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
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
14
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
15
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -42,6 +53,7 @@ var NumberRange_1 = require("../../Core/NumberRange");
|
|
|
42
53
|
var AutoRange_1 = require("../../types/AutoRange");
|
|
43
54
|
var OverviewRangeSelectionModifier_1 = require("../ChartModifiers/OverviewRangeSelectionModifier");
|
|
44
55
|
var AxisBase2D_1 = require("./Axis/AxisBase2D");
|
|
56
|
+
var CategoryAxis_1 = require("./Axis/CategoryAxis");
|
|
45
57
|
var NumericAxis_1 = require("./Axis/NumericAxis");
|
|
46
58
|
var SciChartSurface_1 = require("./SciChartSurface");
|
|
47
59
|
/**
|
|
@@ -76,9 +88,6 @@ var SciChartOverview = /** @class */ (function () {
|
|
|
76
88
|
case 0: return [4 /*yield*/, createSciChartOverview(parentChart, overviewRootElementId, options)];
|
|
77
89
|
case 1:
|
|
78
90
|
_a = _b.sent(), sciChartSurface = _a.sciChartSurface, wasmContext = _a.wasmContext, rangeSelectionModifier = _a.rangeSelectionModifier, xAxis = _a.xAxis, yAxis = _a.yAxis;
|
|
79
|
-
if (options === null || options === void 0 ? void 0 : options.theme) {
|
|
80
|
-
sciChartSurface.applyTheme(options === null || options === void 0 ? void 0 : options.theme);
|
|
81
|
-
}
|
|
82
91
|
return [2 /*return*/, new SciChartOverview(parentChart, sciChartSurface, wasmContext, rangeSelectionModifier, xAxis, yAxis)];
|
|
83
92
|
}
|
|
84
93
|
});
|
|
@@ -148,12 +157,12 @@ var SciChartOverview = /** @class */ (function () {
|
|
|
148
157
|
exports.SciChartOverview = SciChartOverview;
|
|
149
158
|
/** @ignore */
|
|
150
159
|
var createSciChartOverview = function (originalSciChartSurface, overviewRootElementId, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
-
var _a, wasmContext, sciChartSurface, mainAxisId, secondaryAxisId, originalMainAxis, originalSecondaryAxis, originalXAxis, originalYAxis, xAxis, yAxis, mainOverviewAxis, defaultTransform, renderableSeries, rangeSelectionModifier;
|
|
160
|
+
var _a, wasmContext, sciChartSurface, mainAxisId, secondaryAxisId, originalMainAxis, originalSecondaryAxis, originalXAxis, originalYAxis, xAxisOptions, yAxisOptions, xAxis, yAxis, mainOverviewAxis, defaultTransform, renderableSeries, rangeSelectionModifier;
|
|
152
161
|
var _b;
|
|
153
162
|
var _c, _d, _e, _f;
|
|
154
163
|
return __generator(this, function (_g) {
|
|
155
164
|
switch (_g.label) {
|
|
156
|
-
case 0: return [4 /*yield*/, SciChartSurface_1.SciChartSurface.create(overviewRootElementId)];
|
|
165
|
+
case 0: return [4 /*yield*/, SciChartSurface_1.SciChartSurface.create(overviewRootElementId, options)];
|
|
157
166
|
case 1:
|
|
158
167
|
_a = _g.sent(), wasmContext = _a.wasmContext, sciChartSurface = _a.sciChartSurface;
|
|
159
168
|
mainAxisId = (_c = options === null || options === void 0 ? void 0 : options.mainAxisId) !== null && _c !== void 0 ? _c : AxisBase2D_1.AxisBase2D.DEFAULT_AXIS_ID;
|
|
@@ -168,16 +177,14 @@ var createSciChartOverview = function (originalSciChartSurface, overviewRootElem
|
|
|
168
177
|
(!(options === null || options === void 0 ? void 0 : options.secondaryAxisId) ? "Please specify secondaryAxisId in the options" : ""));
|
|
169
178
|
originalXAxis = originalMainAxis.isXAxis ? originalMainAxis : originalSecondaryAxis;
|
|
170
179
|
originalYAxis = originalMainAxis.isXAxis ? originalSecondaryAxis : originalMainAxis;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
yAxis =
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
autoRange: AutoRange_1.EAutoRange.Always
|
|
180
|
-
});
|
|
180
|
+
xAxisOptions = __assign({ axisAlignment: originalXAxis.axisAlignment, isVisible: false, autoRange: AutoRange_1.EAutoRange.Always }, options === null || options === void 0 ? void 0 : options.overviewXAxisOptions);
|
|
181
|
+
yAxisOptions = __assign({ axisAlignment: originalYAxis.axisAlignment, isVisible: false, autoRange: AutoRange_1.EAutoRange.Always }, options === null || options === void 0 ? void 0 : options.overviewYAxisOptions);
|
|
182
|
+
xAxis = originalXAxis.isCategoryAxis
|
|
183
|
+
? new CategoryAxis_1.CategoryAxis(wasmContext, xAxisOptions)
|
|
184
|
+
: new NumericAxis_1.NumericAxis(wasmContext, xAxisOptions);
|
|
185
|
+
yAxis = originalYAxis.isCategoryAxis
|
|
186
|
+
? new CategoryAxis_1.CategoryAxis(wasmContext, yAxisOptions)
|
|
187
|
+
: new NumericAxis_1.NumericAxis(wasmContext, yAxisOptions);
|
|
181
188
|
mainOverviewAxis = originalMainAxis.isXAxis ? xAxis : yAxis;
|
|
182
189
|
defaultTransform = function (rendSeries) {
|
|
183
190
|
// return undefined to skip
|
|
@@ -200,6 +207,8 @@ var createSciChartOverview = function (originalSciChartSurface, overviewRootElem
|
|
|
200
207
|
(_b = sciChartSurface.renderableSeries).add.apply(_b, renderableSeries);
|
|
201
208
|
sciChartSurface.zoomExtents();
|
|
202
209
|
rangeSelectionModifier = (_f = options === null || options === void 0 ? void 0 : options.customRangeSelectionModifier) !== null && _f !== void 0 ? _f : new OverviewRangeSelectionModifier_1.OverviewRangeSelectionModifier();
|
|
210
|
+
rangeSelectionModifier.xAxisId = xAxis.id;
|
|
211
|
+
rangeSelectionModifier.yAxisId = yAxis.id;
|
|
203
212
|
rangeSelectionModifier.onSelectedAreaChanged = function (selectedRange) {
|
|
204
213
|
if (!selectedRange.equals(originalMainAxis.visibleRange)) {
|
|
205
214
|
originalMainAxis.visibleRange = selectedRange;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISciChart2DDefinition } from "../../Builder/buildSurface";
|
|
2
2
|
import { TEasingFn } from "../../Core/Animations/EasingFunctions";
|
|
3
|
+
import { IGenericAnimation } from "../../Core/Animations/GenericAnimation";
|
|
3
4
|
import { EventHandler } from "../../Core/EventHandler";
|
|
4
5
|
import { ObservableArray } from "../../Core/ObservableArray";
|
|
5
6
|
import { Rect } from "../../Core/Rect";
|
|
@@ -174,6 +175,7 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
174
175
|
* access to our WebGL2 Engine and WebAssembly numerical methods
|
|
175
176
|
*/
|
|
176
177
|
readonly webAssemblyContext2D: TSciChart;
|
|
178
|
+
protected animationList: IGenericAnimation[];
|
|
177
179
|
private readonly sciChartRenderer;
|
|
178
180
|
private layoutManagerProperty;
|
|
179
181
|
private zoomStateProperty;
|
|
@@ -360,6 +362,17 @@ export declare class SciChartSurface extends SciChartSurfaceBase {
|
|
|
360
362
|
* @param timeElapsed
|
|
361
363
|
*/
|
|
362
364
|
onAnimate(timeElapsed: number): void;
|
|
365
|
+
/**
|
|
366
|
+
* Gets the generic animations currently on the surface. Do not manipulate this array directly.
|
|
367
|
+
* To add, use addAnimation. To remove, find an animation and call .cancel() on it.
|
|
368
|
+
*/
|
|
369
|
+
getAnimations(): ReadonlyArray<IGenericAnimation>;
|
|
370
|
+
/**
|
|
371
|
+
* Add a {@link GenericAnimation} to the surface.
|
|
372
|
+
* Multiple animations will be run in parallel, so if you want to run one after another, use the onCompleted callback
|
|
373
|
+
* to add another animation after the first completes
|
|
374
|
+
*/
|
|
375
|
+
addAnimation(animation: IGenericAnimation): void;
|
|
363
376
|
/**
|
|
364
377
|
* Returns true if an animation is running
|
|
365
378
|
*/
|
|
@@ -89,6 +89,7 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
89
89
|
* to time render performance, or to update elements of the chart or your UI on redraw.
|
|
90
90
|
*/
|
|
91
91
|
_this.rendered = new EventHandler_1.EventHandler();
|
|
92
|
+
_this.animationList = [];
|
|
92
93
|
_this.zoomStateProperty = ZoomState_1.EZoomState.AtExtents;
|
|
93
94
|
_this.paddingProperty = Thickness_1.Thickness.fromNumber(10);
|
|
94
95
|
_this.viewportBorderProperty = {
|
|
@@ -649,8 +650,40 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
649
650
|
SciChartSurface.prototype.onAnimate = function (timeElapsed) {
|
|
650
651
|
if (timeElapsed) {
|
|
651
652
|
this.renderableSeries.asArray().forEach(function (rs) { return rs.onAnimate(timeElapsed); });
|
|
653
|
+
// advance all animations in queue
|
|
654
|
+
var remainingAnimations = [];
|
|
655
|
+
for (var i = 0; i < this.animationList.length; i++) {
|
|
656
|
+
var animation = this.animationList[i];
|
|
657
|
+
if (!animation.isComplete) {
|
|
658
|
+
animation.update(timeElapsed);
|
|
659
|
+
if (!animation.isComplete) {
|
|
660
|
+
// Request another draw to advance animation
|
|
661
|
+
this.invalidateElement();
|
|
662
|
+
remainingAnimations.push(animation);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
this.animationList = remainingAnimations;
|
|
652
667
|
}
|
|
653
668
|
};
|
|
669
|
+
/**
|
|
670
|
+
* Gets the generic animations currently on the surface. Do not manipulate this array directly.
|
|
671
|
+
* To add, use addAnimation. To remove, find an animation and call .cancel() on it.
|
|
672
|
+
*/
|
|
673
|
+
SciChartSurface.prototype.getAnimations = function () {
|
|
674
|
+
return this.animationList;
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* Add a {@link GenericAnimation} to the surface.
|
|
678
|
+
* Multiple animations will be run in parallel, so if you want to run one after another, use the onCompleted callback
|
|
679
|
+
* to add another animation after the first completes
|
|
680
|
+
*/
|
|
681
|
+
SciChartSurface.prototype.addAnimation = function (animation) {
|
|
682
|
+
if (!animation)
|
|
683
|
+
return;
|
|
684
|
+
this.animationList.push(animation);
|
|
685
|
+
this.invalidateElement();
|
|
686
|
+
};
|
|
654
687
|
Object.defineProperty(SciChartSurface.prototype, "isRunningAnimation", {
|
|
655
688
|
/**
|
|
656
689
|
* Returns true if an animation is running
|
|
@@ -661,7 +694,7 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
661
694
|
return true;
|
|
662
695
|
}
|
|
663
696
|
}
|
|
664
|
-
return
|
|
697
|
+
return this.animationList.some(function (a) { return !a.isComplete; });
|
|
665
698
|
},
|
|
666
699
|
enumerable: false,
|
|
667
700
|
configurable: true
|
|
@@ -779,22 +812,24 @@ var SciChartSurface = /** @class */ (function (_super) {
|
|
|
779
812
|
this.webAssemblyContext2D.SCRTSetClearAlphaParams(enabled, alpha);
|
|
780
813
|
};
|
|
781
814
|
SciChartSurface.prototype.zoomExtentsYInternal = function (xRanges, animationDurationMs, easingFunction, onCompleted) {
|
|
815
|
+
var _this = this;
|
|
782
816
|
if (animationDurationMs === void 0) { animationDurationMs = 0; }
|
|
783
817
|
if (easingFunction === void 0) { easingFunction = EasingFunctions_1.easing.outExpo; }
|
|
784
818
|
if (onCompleted === void 0) { onCompleted = function () { }; }
|
|
785
819
|
this.yAxes.asArray().forEach(function (yAxis) {
|
|
786
820
|
var yRange = yAxis.getWindowedYRange(xRanges);
|
|
787
|
-
yAxis.animateVisibleRange(yRange, animationDurationMs, easingFunction, onCompleted);
|
|
821
|
+
_this.addAnimation(yAxis.animateVisibleRange(yRange, animationDurationMs, easingFunction, onCompleted));
|
|
788
822
|
});
|
|
789
823
|
};
|
|
790
824
|
SciChartSurface.prototype.zoomExtentsXInternal = function (animationDurationMs, easingFunction, onCompleted) {
|
|
825
|
+
var _this = this;
|
|
791
826
|
if (animationDurationMs === void 0) { animationDurationMs = 0; }
|
|
792
827
|
if (easingFunction === void 0) { easingFunction = EasingFunctions_1.easing.outExpo; }
|
|
793
828
|
if (onCompleted === void 0) { onCompleted = function () { }; }
|
|
794
829
|
var xRanges = new Dictionary_1.Dictionary();
|
|
795
830
|
this.xAxes.asArray().forEach(function (xAxis) {
|
|
796
831
|
var maxXRange = xAxis.getMaximumRange();
|
|
797
|
-
xAxis.animateVisibleRange(maxXRange, animationDurationMs, easingFunction, onCompleted);
|
|
832
|
+
_this.addAnimation(xAxis.animateVisibleRange(maxXRange, animationDurationMs, easingFunction, onCompleted));
|
|
798
833
|
xRanges.add(xAxis.id, maxXRange);
|
|
799
834
|
});
|
|
800
835
|
return xRanges;
|
|
@@ -117,6 +117,7 @@ var SciChart3DRenderer = /** @class */ (function () {
|
|
|
117
117
|
axis.forEach(function (el) {
|
|
118
118
|
el.validateAxis();
|
|
119
119
|
SciChart3DRenderer.tryPerformAutoRangeOn(el, _this.scs);
|
|
120
|
+
el.isMeasured = true;
|
|
120
121
|
});
|
|
121
122
|
};
|
|
122
123
|
SciChart3DRenderer.prototype.updateWorldDimensions = function (sceneWorld, worldDimensions) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BaseAnimation } from "../../Charting/Visuals/RenderableSeries/Animations/BaseAnimation";
|
|
2
1
|
import { BaseAnimationStyle } from "../../Charting/Visuals/RenderableSeries/Animations/BaseAnimationStyle";
|
|
2
|
+
import { SeriesAnimation } from "../../Charting/Visuals/RenderableSeries/Animations/SeriesAnimation";
|
|
3
3
|
import { IRenderableSeries } from "../../Charting/Visuals/RenderableSeries/IRenderableSeries";
|
|
4
|
+
import { TEasingFn } from "./EasingFunctions";
|
|
4
5
|
export declare enum EAnimationState {
|
|
5
6
|
InitialState = "InitialState",
|
|
6
7
|
Delayed = "Delayed",
|
|
@@ -15,15 +16,19 @@ export declare enum EAnimationStateTransition {
|
|
|
15
16
|
Delayed_Running = "Delayed_Running",
|
|
16
17
|
Running_Completed = "Running_Completed"
|
|
17
18
|
}
|
|
19
|
+
export interface IAnimation {
|
|
20
|
+
delay: number;
|
|
21
|
+
duration: number;
|
|
22
|
+
ease: TEasingFn;
|
|
23
|
+
}
|
|
18
24
|
export declare class AnimationFiniteStateMachine {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
constructor(animation: BaseAnimation, renderableSeries: IRenderableSeries);
|
|
25
|
+
protected readonly animationProperty: IAnimation;
|
|
26
|
+
protected stateProperty: EAnimationState;
|
|
27
|
+
protected animationDelayStartTimestamp: number;
|
|
28
|
+
protected animationDelayElapsed: number;
|
|
29
|
+
protected animationStartTimestamp: number;
|
|
30
|
+
protected animationElapsed: number;
|
|
31
|
+
constructor(animation: IAnimation);
|
|
27
32
|
/**
|
|
28
33
|
* Gets the current state
|
|
29
34
|
*/
|
|
@@ -31,11 +36,7 @@ export declare class AnimationFiniteStateMachine {
|
|
|
31
36
|
/**
|
|
32
37
|
* Gets the animation property
|
|
33
38
|
*/
|
|
34
|
-
get animation():
|
|
35
|
-
/**
|
|
36
|
-
* Gets the initial styles for the animation
|
|
37
|
-
*/
|
|
38
|
-
get initialStyles(): BaseAnimationStyle;
|
|
39
|
+
get animation(): IAnimation;
|
|
39
40
|
/**
|
|
40
41
|
* Checks the current state
|
|
41
42
|
* @param states
|
|
@@ -60,3 +61,15 @@ export declare class AnimationFiniteStateMachine {
|
|
|
60
61
|
private updateDelayedState;
|
|
61
62
|
private updateRunningState;
|
|
62
63
|
}
|
|
64
|
+
export declare class SeriesAnimationFiniteStateMachine extends AnimationFiniteStateMachine {
|
|
65
|
+
private readonly initialStylesProperty;
|
|
66
|
+
constructor(animation: SeriesAnimation, renderableSeries: IRenderableSeries);
|
|
67
|
+
/**
|
|
68
|
+
* Gets the animation property
|
|
69
|
+
*/
|
|
70
|
+
get animation(): SeriesAnimation;
|
|
71
|
+
/**
|
|
72
|
+
* Gets the initial styles for the animation
|
|
73
|
+
*/
|
|
74
|
+
get initialStyles(): BaseAnimationStyle;
|
|
75
|
+
}
|
|
@@ -1,6 +1,19 @@
|
|
|
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 (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
2
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnimationFiniteStateMachine = exports.EAnimationStateTransition = exports.EAnimationState = void 0;
|
|
16
|
+
exports.SeriesAnimationFiniteStateMachine = exports.AnimationFiniteStateMachine = exports.EAnimationStateTransition = exports.EAnimationState = void 0;
|
|
4
17
|
var NumberUtil_1 = require("../NumberUtil");
|
|
5
18
|
var EAnimationState;
|
|
6
19
|
(function (EAnimationState) {
|
|
@@ -19,12 +32,9 @@ var EAnimationStateTransition;
|
|
|
19
32
|
EAnimationStateTransition["Running_Completed"] = "Running_Completed";
|
|
20
33
|
})(EAnimationStateTransition = exports.EAnimationStateTransition || (exports.EAnimationStateTransition = {}));
|
|
21
34
|
var AnimationFiniteStateMachine = /** @class */ (function () {
|
|
22
|
-
function AnimationFiniteStateMachine(animation
|
|
35
|
+
function AnimationFiniteStateMachine(animation) {
|
|
23
36
|
this.stateProperty = EAnimationState.InitialState;
|
|
24
37
|
this.animationProperty = animation;
|
|
25
|
-
if (renderableSeries) {
|
|
26
|
-
this.initialStylesProperty = animation.getSeriesStyle(renderableSeries);
|
|
27
|
-
}
|
|
28
38
|
}
|
|
29
39
|
Object.defineProperty(AnimationFiniteStateMachine.prototype, "state", {
|
|
30
40
|
/**
|
|
@@ -46,16 +56,6 @@ var AnimationFiniteStateMachine = /** @class */ (function () {
|
|
|
46
56
|
enumerable: false,
|
|
47
57
|
configurable: true
|
|
48
58
|
});
|
|
49
|
-
Object.defineProperty(AnimationFiniteStateMachine.prototype, "initialStyles", {
|
|
50
|
-
/**
|
|
51
|
-
* Gets the initial styles for the animation
|
|
52
|
-
*/
|
|
53
|
-
get: function () {
|
|
54
|
-
return this.initialStylesProperty;
|
|
55
|
-
},
|
|
56
|
-
enumerable: false,
|
|
57
|
-
configurable: true
|
|
58
|
-
});
|
|
59
59
|
/**
|
|
60
60
|
* Checks the current state
|
|
61
61
|
* @param states
|
|
@@ -147,3 +147,36 @@ var AnimationFiniteStateMachine = /** @class */ (function () {
|
|
|
147
147
|
return AnimationFiniteStateMachine;
|
|
148
148
|
}());
|
|
149
149
|
exports.AnimationFiniteStateMachine = AnimationFiniteStateMachine;
|
|
150
|
+
// tslint:disable-next-line: max-classes-per-file
|
|
151
|
+
var SeriesAnimationFiniteStateMachine = /** @class */ (function (_super) {
|
|
152
|
+
__extends(SeriesAnimationFiniteStateMachine, _super);
|
|
153
|
+
function SeriesAnimationFiniteStateMachine(animation, renderableSeries) {
|
|
154
|
+
var _this = _super.call(this, animation) || this;
|
|
155
|
+
if (renderableSeries) {
|
|
156
|
+
_this.initialStylesProperty = animation.getSeriesStyle(renderableSeries);
|
|
157
|
+
}
|
|
158
|
+
return _this;
|
|
159
|
+
}
|
|
160
|
+
Object.defineProperty(SeriesAnimationFiniteStateMachine.prototype, "animation", {
|
|
161
|
+
/**
|
|
162
|
+
* Gets the animation property
|
|
163
|
+
*/
|
|
164
|
+
get: function () {
|
|
165
|
+
return this.animationProperty;
|
|
166
|
+
},
|
|
167
|
+
enumerable: false,
|
|
168
|
+
configurable: true
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(SeriesAnimationFiniteStateMachine.prototype, "initialStyles", {
|
|
171
|
+
/**
|
|
172
|
+
* Gets the initial styles for the animation
|
|
173
|
+
*/
|
|
174
|
+
get: function () {
|
|
175
|
+
return this.initialStylesProperty;
|
|
176
|
+
},
|
|
177
|
+
enumerable: false,
|
|
178
|
+
configurable: true
|
|
179
|
+
});
|
|
180
|
+
return SeriesAnimationFiniteStateMachine;
|
|
181
|
+
}(AnimationFiniteStateMachine));
|
|
182
|
+
exports.SeriesAnimationFiniteStateMachine = SeriesAnimationFiniteStateMachine;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { AnimationToken } from "../AnimationToken";
|
|
2
2
|
import { TEasingFn } from "./EasingFunctions";
|
|
3
3
|
/**
|
|
4
|
-
* @
|
|
5
|
-
* @remarks See functions {@link DoubleAnimator.animate} and {@link NumberRangeAnimator.animate} for examples on how to use this
|
|
6
|
-
* @param durationMs The duration of the animation in milliseconds
|
|
7
|
-
* @param from The start value
|
|
8
|
-
* @param to The end value
|
|
9
|
-
* @param onAnimate A function which is called on animation step, with the current intermediate value passed in
|
|
10
|
-
* @param interpolate An interpolation function
|
|
11
|
-
* @param onCompleted A function which is called when animation is completed
|
|
12
|
-
* @param easingFn An easing function. See {@link IEasingMap} for a list of values
|
|
4
|
+
* @deprecated Instead create an {@link GenericAnimation} and pass it to sciChartSurface.addAnimation
|
|
13
5
|
*/
|
|
14
6
|
export declare function animateAny<T>(durationMs: number, from: T, to: T, onAnimate: (intermediateValue: T) => void, interpolate: (start: T, end: T, interpolationFactor: number) => T, onCompleted: () => void, easingFn: TEasingFn): AnimationToken;
|
|
@@ -5,15 +5,7 @@ var AnimationToken_1 = require("../AnimationToken");
|
|
|
5
5
|
var Guard_1 = require("../Guard");
|
|
6
6
|
var NumberUtil_1 = require("../NumberUtil");
|
|
7
7
|
/**
|
|
8
|
-
* @
|
|
9
|
-
* @remarks See functions {@link DoubleAnimator.animate} and {@link NumberRangeAnimator.animate} for examples on how to use this
|
|
10
|
-
* @param durationMs The duration of the animation in milliseconds
|
|
11
|
-
* @param from The start value
|
|
12
|
-
* @param to The end value
|
|
13
|
-
* @param onAnimate A function which is called on animation step, with the current intermediate value passed in
|
|
14
|
-
* @param interpolate An interpolation function
|
|
15
|
-
* @param onCompleted A function which is called when animation is completed
|
|
16
|
-
* @param easingFn An easing function. See {@link IEasingMap} for a list of values
|
|
8
|
+
* @deprecated Instead create an {@link GenericAnimation} and pass it to sciChartSurface.addAnimation
|
|
17
9
|
*/
|
|
18
10
|
function animateAny(durationMs, from, to, onAnimate, interpolate, onCompleted, easingFn) {
|
|
19
11
|
Guard_1.Guard.notNull(onAnimate, "onAnimate");
|