scichart 2.0.0-alpha.1971 → 2.0.0-alpha.1991
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/buildAxis.d.ts +3 -3
- package/Builder/buildDataSeries.d.ts +44 -4
- package/Builder/buildDataSeries.js +66 -0
- package/Builder/buildSeries.d.ts +1 -1
- package/Builder/buildSeries.js +1 -2
- package/Builder/buildSurface.d.ts +14 -6
- package/Builder/buildSurface.js +13 -8
- package/Builder/chartBuilder.d.ts +12 -6
- package/Builder/chartBuilder.js +6 -6
- package/Charting/ChartModifiers/LegendModifier.d.ts +4 -0
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +14 -6
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
- package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +13 -0
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
- package/Charting/Drawing/BrushCache.js +6 -8
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/Model/BaseDataSeries.d.ts +61 -53
- package/Charting/Model/BaseDataSeries.js +145 -81
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +6 -4
- package/Charting/Model/DataPointSelectionPaletteProvider.js +10 -1
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +106 -0
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +112 -1
- package/Charting/Model/Filters/XyLinearTrendFilter.js +21 -0
- package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +110 -1
- package/Charting/Model/Filters/XyMovingAverageFilter.js +21 -0
- package/Charting/Model/Filters/XyRatioFilter.d.ts +111 -2
- package/Charting/Model/Filters/XyRatioFilter.js +34 -3
- package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +112 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +116 -0
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +116 -0
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +21 -0
- package/Charting/Model/IDataSeries.d.ts +18 -3
- package/Charting/Model/IDataSeries.js +12 -1
- package/Charting/Model/IPaletteProvider.d.ts +8 -8
- package/Charting/Model/OhlcDataSeries.d.ts +39 -10
- package/Charting/Model/OhlcDataSeries.js +106 -19
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/XyyDataSeries.d.ts +21 -12
- package/Charting/Model/XyyDataSeries.js +70 -16
- package/Charting/Model/XyzDataSeries.d.ts +20 -5
- package/Charting/Model/XyzDataSeries.js +62 -6
- package/Charting/Services/SciChartRenderer.js +3 -1
- package/Charting/Visuals/Annotations/AnnotationBase.js +5 -9
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/LineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -0
- package/Charting/Visuals/Axis/AxisBase2D.js +57 -5
- package/Charting/Visuals/Axis/AxisCore.js +16 -13
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
- package/Charting/Visuals/Axis/constants.d.ts +2 -1
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +1 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +11 -0
- package/Charting/Visuals/Legend/SciChartLegendBase.js +45 -17
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +9 -2
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +65 -4
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +0 -11
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +0 -29
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +0 -37
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +0 -120
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +4 -24
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +44 -72
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.d.ts +0 -6
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +0 -42
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -17
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -71
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -4
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +10 -32
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +11 -21
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +10 -21
- package/Charting/Visuals/SciChartOverview.d.ts +1 -1
- package/Charting/Visuals/SciChartOverview.js +1 -1
- package/Charting/Visuals/SciChartSurface.d.ts +2 -2
- package/Charting/Visuals/SciChartSurface.js +4 -4
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +2 -3
- package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
- package/Charting/Visuals/TextureManager/DpiHelper.js +2 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +3 -2
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +1 -1
- package/Charting3D/Visuals/SciChart3DSurface.js +1 -1
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +1 -1
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataFilterType.d.ts +9 -0
- package/types/DataFilterType.js +13 -0
- package/types/SeriesType.d.ts +17 -17
- package/types/SeriesType.js +17 -17
- package/utils/font.d.ts +8 -0
- package/utils/font.js +15 -0
|
@@ -271,11 +271,11 @@ export declare abstract class BaseHeatmapDataSeries implements IHeatmapSeries {
|
|
|
271
271
|
/**
|
|
272
272
|
* Gets the range in the X-direction for this DataSeries
|
|
273
273
|
*/
|
|
274
|
-
|
|
274
|
+
abstract getXRange(): NumberRange;
|
|
275
275
|
/**
|
|
276
276
|
* Gets the range in the Y-direction for this DataSeries
|
|
277
277
|
*/
|
|
278
|
-
|
|
278
|
+
abstract getYRange(): NumberRange;
|
|
279
279
|
/**
|
|
280
280
|
* Computes the range in the Z-direction for this DataSeries
|
|
281
281
|
* @remarks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TPaletteProviderDefinition } from "../../Builder/buildSeries";
|
|
2
2
|
import { IRenderableSeries } from "../Visuals/RenderableSeries/IRenderableSeries";
|
|
3
|
-
import { EFillPaletteMode, EStrokePaletteMode, IPointMarkerPaletteProvider, TPointMarkerArgb } from "./IPaletteProvider";
|
|
3
|
+
import { EFillPaletteMode, EStrokePaletteMode, IFillPaletteProvider, IPointMarkerPaletteProvider, IStrokePaletteProvider, TPointMarkerArgb } from "./IPaletteProvider";
|
|
4
4
|
import { IPointMetadata } from "./IPointMetadata";
|
|
5
5
|
export interface ISelectedPointOptions {
|
|
6
6
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ISelectedPointOptions {
|
|
|
12
12
|
*/
|
|
13
13
|
stroke?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare class DataPointSelectionPaletteProvider implements IPointMarkerPaletteProvider {
|
|
15
|
+
export declare class DataPointSelectionPaletteProvider implements IFillPaletteProvider, IStrokePaletteProvider, IPointMarkerPaletteProvider {
|
|
16
16
|
selectedPointMarker: TPointMarkerArgb;
|
|
17
17
|
selectedStroke: number;
|
|
18
18
|
selectedFill: number;
|
|
@@ -22,5 +22,7 @@ export declare class DataPointSelectionPaletteProvider implements IPointMarkerPa
|
|
|
22
22
|
onAttached(parentSeries: IRenderableSeries): void;
|
|
23
23
|
onDetached(): void;
|
|
24
24
|
overridePointMarkerArgb(xValue: number, yValue: number, index: number, opacity?: number, metadata?: IPointMetadata): TPointMarkerArgb;
|
|
25
|
-
|
|
25
|
+
overrideStrokeArgb(xValue: number, yValue: number, index: number, opacity?: number, metadata?: IPointMetadata): number;
|
|
26
|
+
overrideFillArgb(xValue: number, yValue: number, index: number, opacity?: number, metadata?: IPointMetadata): number;
|
|
27
|
+
toJSON(): TPaletteProviderDefinition;
|
|
26
28
|
}
|
|
@@ -24,7 +24,16 @@ var DataPointSelectionPaletteProvider = /** @class */ (function () {
|
|
|
24
24
|
}
|
|
25
25
|
return undefined;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
DataPointSelectionPaletteProvider.prototype.overrideStrokeArgb = function (xValue, yValue, index, opacity, metadata) {
|
|
28
|
+
if (metadata === null || metadata === void 0 ? void 0 : metadata.isSelected)
|
|
29
|
+
return this.selectedStroke;
|
|
30
|
+
return undefined;
|
|
31
|
+
};
|
|
32
|
+
DataPointSelectionPaletteProvider.prototype.overrideFillArgb = function (xValue, yValue, index, opacity, metadata) {
|
|
33
|
+
if (metadata === null || metadata === void 0 ? void 0 : metadata.isSelected)
|
|
34
|
+
return this.selectedFill;
|
|
35
|
+
return undefined;
|
|
36
|
+
};
|
|
28
37
|
DataPointSelectionPaletteProvider.prototype.toJSON = function () {
|
|
29
38
|
return {
|
|
30
39
|
type: PaletteProviderType_1.EPaletteProviderType.DataPointSelection,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EDataFilterType } from "../../../types/DataFilterType";
|
|
1
2
|
import { BaseDataSeries } from "../BaseDataSeries";
|
|
2
3
|
import { OhlcCustomFilter } from "./OhlcCustomFilter";
|
|
3
4
|
import { IOhlcFilterOptions } from "./OhlcFilterBase";
|
|
@@ -13,5 +14,110 @@ export declare class OhlcScaleOffsetFilter extends OhlcCustomFilter {
|
|
|
13
14
|
get offset(): number;
|
|
14
15
|
set offset(value: number);
|
|
15
16
|
constructor(originalSeries: BaseDataSeries, options?: IOhlcScaleOffsetFilterOptions);
|
|
17
|
+
toJSON(excludeData?: boolean): {
|
|
18
|
+
filter: {
|
|
19
|
+
type: EDataFilterType;
|
|
20
|
+
options: {
|
|
21
|
+
scale: number;
|
|
22
|
+
offset: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
xDataId?: string | number;
|
|
26
|
+
yDataId?: string | number;
|
|
27
|
+
xValues?: number[];
|
|
28
|
+
yValues?: number[];
|
|
29
|
+
dataSeriesName?: string;
|
|
30
|
+
dataIsSortedInX?: boolean;
|
|
31
|
+
containsNaN?: boolean;
|
|
32
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
33
|
+
type: string;
|
|
34
|
+
data?: any;
|
|
35
|
+
};
|
|
36
|
+
} | {
|
|
37
|
+
filter: {
|
|
38
|
+
type: EDataFilterType;
|
|
39
|
+
options: {
|
|
40
|
+
scale: number;
|
|
41
|
+
offset: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
xDataId?: string | number;
|
|
45
|
+
yDataId?: string | number;
|
|
46
|
+
y1DataId?: string | number;
|
|
47
|
+
xValues?: number[];
|
|
48
|
+
yValues?: number[];
|
|
49
|
+
y1Values?: number[];
|
|
50
|
+
dataSeriesName?: string;
|
|
51
|
+
dataIsSortedInX?: boolean;
|
|
52
|
+
containsNaN?: boolean;
|
|
53
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
54
|
+
type: string;
|
|
55
|
+
data?: any;
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
filter: {
|
|
59
|
+
type: EDataFilterType;
|
|
60
|
+
options: {
|
|
61
|
+
scale: number;
|
|
62
|
+
offset: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
xDataId?: string | number;
|
|
66
|
+
yDataId?: string | number;
|
|
67
|
+
zDataId?: string | number;
|
|
68
|
+
xValues?: number[];
|
|
69
|
+
yValues?: number[];
|
|
70
|
+
zValues?: number[];
|
|
71
|
+
dataSeriesName?: string;
|
|
72
|
+
dataIsSortedInX?: boolean;
|
|
73
|
+
containsNaN?: boolean;
|
|
74
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
75
|
+
type: string;
|
|
76
|
+
data?: any;
|
|
77
|
+
};
|
|
78
|
+
} | {
|
|
79
|
+
filter: {
|
|
80
|
+
type: EDataFilterType;
|
|
81
|
+
options: {
|
|
82
|
+
scale: number;
|
|
83
|
+
offset: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
xDataId?: string | number;
|
|
87
|
+
openDataId?: string | number;
|
|
88
|
+
highDataId?: string | number;
|
|
89
|
+
lowDataId?: string | number;
|
|
90
|
+
closeDataId?: string | number;
|
|
91
|
+
xValues?: number[];
|
|
92
|
+
openValues?: number[];
|
|
93
|
+
highValues?: number[];
|
|
94
|
+
lowValues?: number[];
|
|
95
|
+
closeValues?: number[];
|
|
96
|
+
dataSeriesName?: string;
|
|
97
|
+
dataIsSortedInX?: boolean;
|
|
98
|
+
containsNaN?: boolean;
|
|
99
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
100
|
+
type: string;
|
|
101
|
+
data?: any;
|
|
102
|
+
};
|
|
103
|
+
} | {
|
|
104
|
+
filter: {
|
|
105
|
+
type: EDataFilterType;
|
|
106
|
+
options: {
|
|
107
|
+
scale: number;
|
|
108
|
+
offset: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
xStart: number;
|
|
112
|
+
xStep: number;
|
|
113
|
+
yStart: number;
|
|
114
|
+
yStep: number;
|
|
115
|
+
dataSeriesName?: string;
|
|
116
|
+
zValues?: number[][];
|
|
117
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[][] | {
|
|
118
|
+
type: string;
|
|
119
|
+
data?: any;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
16
122
|
protected filterFunctionProperty(index: number, y: number): number;
|
|
17
123
|
}
|
|
@@ -12,8 +12,20 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
12
12
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
13
|
};
|
|
14
14
|
})();
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
15
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
27
|
exports.OhlcScaleOffsetFilter = void 0;
|
|
28
|
+
var DataFilterType_1 = require("../../../types/DataFilterType");
|
|
17
29
|
var IDataSeries_1 = require("../IDataSeries");
|
|
18
30
|
var OhlcCustomFilter_1 = require("./OhlcCustomFilter");
|
|
19
31
|
var OhlcScaleOffsetFilter = /** @class */ (function (_super) {
|
|
@@ -55,6 +67,15 @@ var OhlcScaleOffsetFilter = /** @class */ (function (_super) {
|
|
|
55
67
|
enumerable: false,
|
|
56
68
|
configurable: true
|
|
57
69
|
});
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
OhlcScaleOffsetFilter.prototype.toJSON = function (excludeData) {
|
|
72
|
+
if (excludeData === void 0) { excludeData = false; }
|
|
73
|
+
var original = this.originalSeries.toJSON(excludeData);
|
|
74
|
+
return __assign(__assign({}, original), { filter: {
|
|
75
|
+
type: DataFilterType_1.EDataFilterType.OhlcScaleOffset,
|
|
76
|
+
options: { scale: this.scale, offset: this.offset }
|
|
77
|
+
} });
|
|
78
|
+
};
|
|
58
79
|
OhlcScaleOffsetFilter.prototype.filterFunctionProperty = function (index, y) {
|
|
59
80
|
return y * this.scaleProperty + this.offsetProperty;
|
|
60
81
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EDataFilterType } from "../../../types/DataFilterType";
|
|
1
2
|
import { BaseDataSeries } from "../BaseDataSeries";
|
|
2
|
-
import { IXyFilterOptions, XyFilterBase } from "./XyFilterBase";
|
|
3
|
+
import { EDataSeriesField, IXyFilterOptions, XyFilterBase } from "./XyFilterBase";
|
|
3
4
|
/**
|
|
4
5
|
* An XyDataSeries that represents the linear trendline (or linear regression) of the original series
|
|
5
6
|
*/
|
|
@@ -15,6 +16,116 @@ export declare class XyLinearTrendFilter extends XyFilterBase {
|
|
|
15
16
|
* The y-intercept of the trendline
|
|
16
17
|
*/
|
|
17
18
|
get intercept(): number;
|
|
19
|
+
toJSON(excludeData?: boolean): {
|
|
20
|
+
filter: {
|
|
21
|
+
type: EDataFilterType;
|
|
22
|
+
options: {
|
|
23
|
+
field: EDataSeriesField;
|
|
24
|
+
slope: number;
|
|
25
|
+
intercept: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
xDataId?: string | number;
|
|
29
|
+
yDataId?: string | number;
|
|
30
|
+
xValues?: number[];
|
|
31
|
+
yValues?: number[];
|
|
32
|
+
dataSeriesName?: string;
|
|
33
|
+
dataIsSortedInX?: boolean;
|
|
34
|
+
containsNaN?: boolean;
|
|
35
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
36
|
+
type: string;
|
|
37
|
+
data?: any;
|
|
38
|
+
};
|
|
39
|
+
} | {
|
|
40
|
+
filter: {
|
|
41
|
+
type: EDataFilterType;
|
|
42
|
+
options: {
|
|
43
|
+
field: EDataSeriesField;
|
|
44
|
+
slope: number;
|
|
45
|
+
intercept: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
xDataId?: string | number;
|
|
49
|
+
yDataId?: string | number;
|
|
50
|
+
y1DataId?: string | number;
|
|
51
|
+
xValues?: number[];
|
|
52
|
+
yValues?: number[];
|
|
53
|
+
y1Values?: number[];
|
|
54
|
+
dataSeriesName?: string;
|
|
55
|
+
dataIsSortedInX?: boolean;
|
|
56
|
+
containsNaN?: boolean;
|
|
57
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
58
|
+
type: string;
|
|
59
|
+
data?: any;
|
|
60
|
+
};
|
|
61
|
+
} | {
|
|
62
|
+
filter: {
|
|
63
|
+
type: EDataFilterType;
|
|
64
|
+
options: {
|
|
65
|
+
field: EDataSeriesField;
|
|
66
|
+
slope: number;
|
|
67
|
+
intercept: number;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
xDataId?: string | number;
|
|
71
|
+
yDataId?: string | number;
|
|
72
|
+
zDataId?: string | number;
|
|
73
|
+
xValues?: number[];
|
|
74
|
+
yValues?: number[];
|
|
75
|
+
zValues?: number[];
|
|
76
|
+
dataSeriesName?: string;
|
|
77
|
+
dataIsSortedInX?: boolean;
|
|
78
|
+
containsNaN?: boolean;
|
|
79
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
80
|
+
type: string;
|
|
81
|
+
data?: any;
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
84
|
+
filter: {
|
|
85
|
+
type: EDataFilterType;
|
|
86
|
+
options: {
|
|
87
|
+
field: EDataSeriesField;
|
|
88
|
+
slope: number;
|
|
89
|
+
intercept: number;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
xDataId?: string | number;
|
|
93
|
+
openDataId?: string | number;
|
|
94
|
+
highDataId?: string | number;
|
|
95
|
+
lowDataId?: string | number;
|
|
96
|
+
closeDataId?: string | number;
|
|
97
|
+
xValues?: number[];
|
|
98
|
+
openValues?: number[];
|
|
99
|
+
highValues?: number[];
|
|
100
|
+
lowValues?: number[];
|
|
101
|
+
closeValues?: number[];
|
|
102
|
+
dataSeriesName?: string;
|
|
103
|
+
dataIsSortedInX?: boolean;
|
|
104
|
+
containsNaN?: boolean;
|
|
105
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
106
|
+
type: string;
|
|
107
|
+
data?: any;
|
|
108
|
+
};
|
|
109
|
+
} | {
|
|
110
|
+
filter: {
|
|
111
|
+
type: EDataFilterType;
|
|
112
|
+
options: {
|
|
113
|
+
field: EDataSeriesField;
|
|
114
|
+
slope: number;
|
|
115
|
+
intercept: number;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
xStart: number;
|
|
119
|
+
xStep: number;
|
|
120
|
+
yStart: number;
|
|
121
|
+
yStep: number;
|
|
122
|
+
dataSeriesName?: string;
|
|
123
|
+
zValues?: number[][];
|
|
124
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[][] | {
|
|
125
|
+
type: string;
|
|
126
|
+
data?: any;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
18
129
|
protected onClear(): void;
|
|
19
130
|
protected filterAll(): void;
|
|
20
131
|
}
|
|
@@ -12,8 +12,20 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
12
12
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
13
|
};
|
|
14
14
|
})();
|
|
15
|
+
var __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
15
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
27
|
exports.XyLinearTrendFilter = void 0;
|
|
28
|
+
var DataFilterType_1 = require("../../../types/DataFilterType");
|
|
17
29
|
var XyFilterBase_1 = require("./XyFilterBase");
|
|
18
30
|
/**
|
|
19
31
|
* An XyDataSeries that represents the linear trendline (or linear regression) of the original series
|
|
@@ -47,6 +59,15 @@ var XyLinearTrendFilter = /** @class */ (function (_super) {
|
|
|
47
59
|
enumerable: false,
|
|
48
60
|
configurable: true
|
|
49
61
|
});
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
XyLinearTrendFilter.prototype.toJSON = function (excludeData) {
|
|
64
|
+
if (excludeData === void 0) { excludeData = false; }
|
|
65
|
+
var original = _super.prototype.toJSON.call(this, excludeData);
|
|
66
|
+
return __assign(__assign({}, original), { filter: {
|
|
67
|
+
type: DataFilterType_1.EDataFilterType.XyLinearTrend,
|
|
68
|
+
options: { field: this.field, slope: this.slope, intercept: this.intercept }
|
|
69
|
+
} });
|
|
70
|
+
};
|
|
50
71
|
XyLinearTrendFilter.prototype.onClear = function () {
|
|
51
72
|
this.clear();
|
|
52
73
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EDataFilterType } from "../../../types/DataFilterType";
|
|
1
2
|
import { BaseDataSeries } from "../BaseDataSeries";
|
|
2
|
-
import { IXyFilterOptions, XyFilterBase } from "./XyFilterBase";
|
|
3
|
+
import { EDataSeriesField, IXyFilterOptions, XyFilterBase } from "./XyFilterBase";
|
|
3
4
|
/**
|
|
4
5
|
* Options for the {@link XyMovingAverageFilter}
|
|
5
6
|
*/
|
|
@@ -26,6 +27,114 @@ export declare class XyMovingAverageFilter extends XyFilterBase {
|
|
|
26
27
|
* Gets or Sets the length of the moving average
|
|
27
28
|
*/
|
|
28
29
|
set length(value: number);
|
|
30
|
+
toJSON(excludeData?: boolean): {
|
|
31
|
+
filter: {
|
|
32
|
+
type: EDataFilterType;
|
|
33
|
+
options: {
|
|
34
|
+
field: EDataSeriesField;
|
|
35
|
+
length: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
xDataId?: string | number;
|
|
39
|
+
yDataId?: string | number;
|
|
40
|
+
/**
|
|
41
|
+
* An XyDataSeries that is the moving average of the original series
|
|
42
|
+
*/
|
|
43
|
+
xValues?: number[];
|
|
44
|
+
yValues?: number[];
|
|
45
|
+
dataSeriesName?: string;
|
|
46
|
+
dataIsSortedInX?: boolean;
|
|
47
|
+
containsNaN?: boolean;
|
|
48
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
49
|
+
type: string;
|
|
50
|
+
data?: any;
|
|
51
|
+
};
|
|
52
|
+
} | {
|
|
53
|
+
filter: {
|
|
54
|
+
type: EDataFilterType;
|
|
55
|
+
options: {
|
|
56
|
+
field: EDataSeriesField;
|
|
57
|
+
length: number;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
xDataId?: string | number;
|
|
61
|
+
yDataId?: string | number;
|
|
62
|
+
y1DataId?: string | number;
|
|
63
|
+
xValues?: number[];
|
|
64
|
+
yValues?: number[];
|
|
65
|
+
y1Values?: number[];
|
|
66
|
+
dataSeriesName?: string;
|
|
67
|
+
dataIsSortedInX?: boolean;
|
|
68
|
+
containsNaN?: boolean;
|
|
69
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
70
|
+
type: string;
|
|
71
|
+
data?: any;
|
|
72
|
+
};
|
|
73
|
+
} | {
|
|
74
|
+
filter: {
|
|
75
|
+
type: EDataFilterType;
|
|
76
|
+
options: {
|
|
77
|
+
field: EDataSeriesField;
|
|
78
|
+
length: number;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
xDataId?: string | number;
|
|
82
|
+
yDataId?: string | number;
|
|
83
|
+
zDataId?: string | number;
|
|
84
|
+
xValues?: number[];
|
|
85
|
+
yValues?: number[];
|
|
86
|
+
zValues?: number[];
|
|
87
|
+
dataSeriesName?: string;
|
|
88
|
+
dataIsSortedInX?: boolean;
|
|
89
|
+
containsNaN?: boolean;
|
|
90
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
91
|
+
type: string;
|
|
92
|
+
data?: any;
|
|
93
|
+
};
|
|
94
|
+
} | {
|
|
95
|
+
filter: {
|
|
96
|
+
type: EDataFilterType;
|
|
97
|
+
options: {
|
|
98
|
+
field: EDataSeriesField;
|
|
99
|
+
length: number;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
xDataId?: string | number;
|
|
103
|
+
openDataId?: string | number;
|
|
104
|
+
highDataId?: string | number;
|
|
105
|
+
lowDataId?: string | number;
|
|
106
|
+
closeDataId?: string | number;
|
|
107
|
+
xValues?: number[];
|
|
108
|
+
openValues?: number[];
|
|
109
|
+
highValues?: number[];
|
|
110
|
+
lowValues?: number[];
|
|
111
|
+
closeValues?: number[];
|
|
112
|
+
dataSeriesName?: string;
|
|
113
|
+
dataIsSortedInX?: boolean;
|
|
114
|
+
containsNaN?: boolean;
|
|
115
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
116
|
+
type: string;
|
|
117
|
+
data?: any;
|
|
118
|
+
};
|
|
119
|
+
} | {
|
|
120
|
+
filter: {
|
|
121
|
+
type: EDataFilterType;
|
|
122
|
+
options: {
|
|
123
|
+
field: EDataSeriesField;
|
|
124
|
+
length: number;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
xStart: number;
|
|
128
|
+
xStep: number;
|
|
129
|
+
yStart: number;
|
|
130
|
+
yStep: number;
|
|
131
|
+
dataSeriesName?: string;
|
|
132
|
+
zValues?: number[][];
|
|
133
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[][] | {
|
|
134
|
+
type: string;
|
|
135
|
+
data?: any;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
29
138
|
protected onOriginalPropertyChanged(name: string): void;
|
|
30
139
|
protected filterOnAppend(count: number): void;
|
|
31
140
|
protected filterOnUpdate(index: number): void;
|