scichart 2.0.0-alpha.1930 → 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 +7 -5
- package/Builder/buildSeries.js +3 -4
- package/Builder/buildSurface.d.ts +14 -6
- package/Builder/buildSurface.js +13 -8
- package/Builder/chartBuilder.d.ts +14 -8
- package/Builder/chartBuilder.js +6 -6
- package/Charting/ChartModifiers/ChartModifierBase.d.ts +37 -81
- package/Charting/ChartModifiers/ChartModifierBase.js +28 -73
- package/Charting/ChartModifiers/ChartModifierBase2D.d.ts +5 -1
- package/Charting/ChartModifiers/ChartModifierBase2D.js +6 -17
- package/Charting/ChartModifiers/CursorModifier.d.ts +4 -2
- package/Charting/ChartModifiers/CursorModifier.js +1 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.d.ts +3 -1
- package/Charting/ChartModifiers/DataPointSelectionModifier.js +62 -27
- package/Charting/ChartModifiers/LegendModifier.d.ts +5 -1
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/MouseWheelZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/PinchZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.d.ts +1 -1
- package/Charting/ChartModifiers/RolloverModifier.js +44 -58
- package/Charting/ChartModifiers/RubberBandXyZoomModifier.d.ts +1 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +15 -7
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +1 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +14 -1
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
- package/Charting/Drawing/BrushCache.js +6 -8
- package/Charting/Drawing/Pen2DCache.d.ts +4 -6
- package/Charting/Drawing/Pen2DCache.js +14 -11
- package/Charting/Drawing/WebGlPen.d.ts +2 -1
- package/Charting/Drawing/WebGlPen.js +3 -2
- package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +3 -2
- package/Charting/Model/BaseDataSeries.d.ts +64 -52
- package/Charting/Model/BaseDataSeries.js +158 -84
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +22 -10
- package/Charting/Model/DataPointSelectionPaletteProvider.js +35 -5
- 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 +63 -7
- package/Charting/Numerics/TickProviders/LogarithmicTickProvider.d.ts +24 -0
- package/Charting/Numerics/TickProviders/LogarithmicTickProvider.js +26 -4
- package/Charting/Services/SciChartRenderer.js +4 -2
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +7 -21
- package/Charting/Visuals/Annotations/AnnotationBase.js +28 -42
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +2 -4
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/BoxAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +2 -2
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/IAnnotation.d.ts +4 -0
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/LineAnnotation.js +2 -4
- package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +1 -1
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Annotations/SvgAnnotationBase.js +3 -2
- package/Charting/Visuals/Annotations/TextAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/TextAnnotation.js +1 -1
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/annotationHelpers.d.ts +21 -0
- package/Charting/Visuals/Annotations/annotationHelpers.js +19 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +21 -0
- package/Charting/Visuals/Axis/AxisBase2D.js +81 -14
- package/Charting/Visuals/Axis/AxisCore.d.ts +5 -5
- package/Charting/Visuals/Axis/AxisCore.js +50 -55
- package/Charting/Visuals/Axis/AxisRenderer.js +1 -1
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
- package/Charting/Visuals/Axis/LabelProvider/LabelProvider.d.ts +1 -1
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.d.ts +3 -2
- package/Charting/Visuals/Axis/LabelProvider/LabelProviderBase2D.js +13 -0
- package/Charting/Visuals/Axis/LabelProvider/TextLabelProvider.d.ts +1 -1
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +53 -0
- package/Charting/Visuals/Axis/LogarithmicAxis.js +107 -3
- 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 -16
- package/Charting/Visuals/PointMarkers/IPointMarker.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/Animations/BaseAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/ScaleAnimation.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/Animations/WaveAnimation.d.ts +1 -1
- 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 +65 -91
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +26 -2
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +55 -3
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +3 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.d.ts +7 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +66 -64
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.d.ts +7 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BubbleSeriesDrawingProvider.js +12 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/PointMarkerDrawingProvider.js +12 -0
- 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/FastCandlestickRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/BubbleSeriesHitTestProvider.js +2 -1
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/ColumnSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/IHitTestProvider.d.ts +13 -0
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/OhlcSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/HitTest/StackedColumnSeriesHitTestProvider.js +7 -0
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +17 -5
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +2 -2
- 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/RenderableSeries/StackedColumnCollection.d.ts +18 -5
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +16 -35
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +4 -5
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -5
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +2 -35
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +3 -1
- package/Charting/Visuals/SciChartOverview.d.ts +1 -1
- package/Charting/Visuals/SciChartOverview.js +1 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +3 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +9 -8
- package/Charting/Visuals/SciChartSurface.d.ts +20 -3
- package/Charting/Visuals/SciChartSurface.js +36 -8
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +3 -3
- package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
- package/Charting/Visuals/TextureManager/DpiHelper.d.ts +1 -1
- package/Charting/Visuals/TextureManager/DpiHelper.js +5 -3
- package/Charting/Visuals/TextureManager/TextureManager.d.ts +7 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +14 -7
- package/Charting/Visuals/licenseManager2D.js +35 -28
- package/Charting/Visuals/loader.d.ts +3 -0
- package/Charting/Visuals/loader.js +3 -0
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.d.ts +21 -45
- package/Charting3D/Visuals/Primitives/BaseSceneEntity3D.js +15 -36
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.d.ts +35 -73
- package/Charting3D/Visuals/RenderableSeries/BaseRenderableSeries3D.js +25 -66
- package/Charting3D/Visuals/SciChart3DRenderer.js +1 -1
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +13 -1
- package/Charting3D/Visuals/SciChart3DSurface.js +13 -1
- package/Core/ObservableArray.d.ts +8 -1
- package/Core/ObservableArray.js +7 -0
- 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/AnchorPoint.d.ts +0 -3
- package/types/AnchorPoint.js +0 -3
- 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/HelperTypes.d.ts +5 -0
- package/types/HelperTypes.js +2 -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
- package/utils/imageUtil.d.ts +6 -0
- package/utils/imageUtil.js +11 -1
|
@@ -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.XyMovingAverageFilter = void 0;
|
|
28
|
+
var DataFilterType_1 = require("../../../types/DataFilterType");
|
|
17
29
|
var XyFilterBase_1 = require("./XyFilterBase");
|
|
18
30
|
/**
|
|
19
31
|
* An XyDataSeries that is the moving average of the original series
|
|
@@ -55,6 +67,15 @@ var XyMovingAverageFilter = /** @class */ (function (_super) {
|
|
|
55
67
|
enumerable: false,
|
|
56
68
|
configurable: true
|
|
57
69
|
});
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
XyMovingAverageFilter.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.XyMovingAverage,
|
|
76
|
+
options: { field: this.field, length: this.length }
|
|
77
|
+
} });
|
|
78
|
+
};
|
|
58
79
|
XyMovingAverageFilter.prototype.onOriginalPropertyChanged = function (name) { };
|
|
59
80
|
XyMovingAverageFilter.prototype.filterOnAppend = function (count) {
|
|
60
81
|
this.calculate(this.count());
|
|
@@ -1,18 +1,127 @@
|
|
|
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 XyRatioFilter}
|
|
5
6
|
*/
|
|
6
7
|
export interface IXyRatioFilterOptions extends IXyFilterOptions {
|
|
7
|
-
/** The dataSeries to
|
|
8
|
+
/** The dataSeries to divide by */
|
|
8
9
|
divisorSeries: BaseDataSeries;
|
|
10
|
+
/** The field in the divisor series to use */
|
|
11
|
+
divisorField?: EDataSeriesField;
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
14
|
* An XyDataSeries where each point is the ratio of the original series and the given divisorSeries
|
|
12
15
|
*/
|
|
13
16
|
export declare class XyRatioFilter extends XyFilterBase {
|
|
14
17
|
private readonly divisorYValues;
|
|
18
|
+
private readonly divisorField;
|
|
15
19
|
constructor(originalSeries: BaseDataSeries, options: IXyRatioFilterOptions);
|
|
20
|
+
toJSON(excludeData?: boolean): {
|
|
21
|
+
filter: {
|
|
22
|
+
type: EDataFilterType;
|
|
23
|
+
options: {
|
|
24
|
+
field: EDataSeriesField;
|
|
25
|
+
divisorSeries: number[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
xDataId?: string | number;
|
|
29
|
+
yDataId?: string | number;
|
|
30
|
+
xValues?: number[];
|
|
31
|
+
yValues?: number[]; /** The field in the divisor series to use */
|
|
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
|
+
divisorSeries: number[];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
xDataId?: string | number;
|
|
48
|
+
yDataId?: string | number;
|
|
49
|
+
y1DataId?: string | number;
|
|
50
|
+
xValues?: number[];
|
|
51
|
+
yValues?: number[];
|
|
52
|
+
y1Values?: number[];
|
|
53
|
+
dataSeriesName?: string;
|
|
54
|
+
dataIsSortedInX?: boolean;
|
|
55
|
+
containsNaN?: boolean;
|
|
56
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
57
|
+
type: string;
|
|
58
|
+
data?: any;
|
|
59
|
+
};
|
|
60
|
+
} | {
|
|
61
|
+
filter: {
|
|
62
|
+
type: EDataFilterType;
|
|
63
|
+
options: {
|
|
64
|
+
field: EDataSeriesField;
|
|
65
|
+
divisorSeries: number[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
xDataId?: string | number;
|
|
69
|
+
yDataId?: string | number;
|
|
70
|
+
zDataId?: string | number;
|
|
71
|
+
xValues?: number[];
|
|
72
|
+
yValues?: number[];
|
|
73
|
+
zValues?: number[];
|
|
74
|
+
dataSeriesName?: string;
|
|
75
|
+
dataIsSortedInX?: boolean;
|
|
76
|
+
containsNaN?: boolean;
|
|
77
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
78
|
+
type: string;
|
|
79
|
+
data?: any;
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
filter: {
|
|
83
|
+
type: EDataFilterType;
|
|
84
|
+
options: {
|
|
85
|
+
field: EDataSeriesField;
|
|
86
|
+
divisorSeries: number[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
xDataId?: string | number;
|
|
90
|
+
openDataId?: string | number;
|
|
91
|
+
highDataId?: string | number;
|
|
92
|
+
lowDataId?: string | number;
|
|
93
|
+
closeDataId?: string | number;
|
|
94
|
+
xValues?: number[];
|
|
95
|
+
openValues?: number[];
|
|
96
|
+
highValues?: number[];
|
|
97
|
+
lowValues?: number[];
|
|
98
|
+
closeValues?: number[];
|
|
99
|
+
dataSeriesName?: string;
|
|
100
|
+
dataIsSortedInX?: boolean;
|
|
101
|
+
containsNaN?: boolean;
|
|
102
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
103
|
+
type: string;
|
|
104
|
+
data?: any;
|
|
105
|
+
};
|
|
106
|
+
} | {
|
|
107
|
+
filter: {
|
|
108
|
+
type: EDataFilterType;
|
|
109
|
+
options: {
|
|
110
|
+
field: EDataSeriesField;
|
|
111
|
+
divisorSeries: number[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
xStart: number;
|
|
115
|
+
xStep: number;
|
|
116
|
+
yStart: number;
|
|
117
|
+
yStep: number;
|
|
118
|
+
dataSeriesName?: string;
|
|
119
|
+
zValues?: number[][];
|
|
120
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[][] | {
|
|
121
|
+
type: string;
|
|
122
|
+
data?: any;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
16
125
|
protected onClear(): void;
|
|
17
126
|
protected filterOnAppend(count: number): void;
|
|
18
127
|
protected filterOnUpdate(index: number): void;
|
|
@@ -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.XyRatioFilter = void 0;
|
|
28
|
+
var DataFilterType_1 = require("../../../types/DataFilterType");
|
|
17
29
|
var IDataSeries_1 = require("../IDataSeries");
|
|
18
30
|
var XyFilterBase_1 = require("./XyFilterBase");
|
|
19
31
|
/**
|
|
@@ -22,13 +34,29 @@ var XyFilterBase_1 = require("./XyFilterBase");
|
|
|
22
34
|
var XyRatioFilter = /** @class */ (function (_super) {
|
|
23
35
|
__extends(XyRatioFilter, _super);
|
|
24
36
|
function XyRatioFilter(originalSeries, options) {
|
|
37
|
+
var _a;
|
|
25
38
|
var _this = _super.call(this, originalSeries, options) || this;
|
|
39
|
+
_this.divisorField = XyFilterBase_1.EDataSeriesField.Y;
|
|
40
|
+
_this.divisorField = (_a = options.divisorField) !== null && _a !== void 0 ? _a : _this.divisorField;
|
|
26
41
|
_this.divisorYValues = _this.getDivisorYValues(options.divisorSeries);
|
|
27
42
|
if (_this.getOriginalCount() > 0) {
|
|
28
43
|
_this.filterAll();
|
|
29
44
|
}
|
|
30
45
|
return _this;
|
|
31
46
|
}
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
XyRatioFilter.prototype.toJSON = function (excludeData) {
|
|
49
|
+
if (excludeData === void 0) { excludeData = false; }
|
|
50
|
+
var original = this.originalSeries.toJSON(excludeData);
|
|
51
|
+
var divisorSeries = [];
|
|
52
|
+
for (var i = 0; i < this.divisorYValues.size(); i++) {
|
|
53
|
+
divisorSeries.push(this.divisorYValues.get(i));
|
|
54
|
+
}
|
|
55
|
+
return __assign(__assign({}, original), { filter: {
|
|
56
|
+
type: DataFilterType_1.EDataFilterType.XyRatio,
|
|
57
|
+
options: { field: this.field, divisorSeries: divisorSeries }
|
|
58
|
+
} });
|
|
59
|
+
};
|
|
32
60
|
XyRatioFilter.prototype.onClear = function () {
|
|
33
61
|
this.clear();
|
|
34
62
|
};
|
|
@@ -65,13 +93,16 @@ var XyRatioFilter = /** @class */ (function (_super) {
|
|
|
65
93
|
XyRatioFilter.prototype.getDivisorYValues = function (divisorSeries) {
|
|
66
94
|
var divY = divisorSeries.getNativeYValues();
|
|
67
95
|
if (divisorSeries.type === IDataSeries_1.EDataSeriesType.Xyy) {
|
|
68
|
-
|
|
96
|
+
var xyySeries = divisorSeries;
|
|
97
|
+
divY = XyFilterBase_1.switchData(this.divisorField, xyySeries.getNativeYValues(), xyySeries.getNativeY1Values());
|
|
69
98
|
}
|
|
70
99
|
else if (divisorSeries.type === IDataSeries_1.EDataSeriesType.Xyz) {
|
|
71
|
-
|
|
100
|
+
var xyzSeries = divisorSeries;
|
|
101
|
+
divY = XyFilterBase_1.switchData(this.field, xyzSeries.getNativeYValues(), xyzSeries.getNativeZValues());
|
|
72
102
|
}
|
|
73
103
|
else if (divisorSeries.type === IDataSeries_1.EDataSeriesType.Ohlc) {
|
|
74
|
-
|
|
104
|
+
var ohlcSeries = divisorSeries;
|
|
105
|
+
divY = XyFilterBase_1.switchData(this.field, ohlcSeries.getNativeYValues(), ohlcSeries.getNativeOpenValues(), ohlcSeries.getNativeHighValues(), ohlcSeries.getNativeLowValues());
|
|
75
106
|
}
|
|
76
107
|
return divY;
|
|
77
108
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { EDataFilterType } from "../../../types/DataFilterType";
|
|
1
2
|
import { BaseDataSeries } from "../BaseDataSeries";
|
|
2
3
|
import { XyCustomFilter } from "./XyCustomFilter";
|
|
3
|
-
import { IXyFilterOptions } from "./XyFilterBase";
|
|
4
|
+
import { EDataSeriesField, IXyFilterOptions } from "./XyFilterBase";
|
|
4
5
|
/**
|
|
5
6
|
* Options for the {@link XyScaleOffsetFilter}
|
|
6
7
|
*/
|
|
@@ -24,5 +25,115 @@ export declare class XyScaleOffsetFilter extends XyCustomFilter {
|
|
|
24
25
|
get offset(): number;
|
|
25
26
|
/** Gets or sets the offset for the transformation */
|
|
26
27
|
set offset(value: number);
|
|
28
|
+
toJSON(excludeData?: boolean): {
|
|
29
|
+
filter: {
|
|
30
|
+
type: EDataFilterType;
|
|
31
|
+
options: {
|
|
32
|
+
field: EDataSeriesField;
|
|
33
|
+
scale: number;
|
|
34
|
+
offset: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
xDataId?: string | number;
|
|
38
|
+
yDataId?: string | number;
|
|
39
|
+
xValues?: number[];
|
|
40
|
+
yValues?: number[];
|
|
41
|
+
dataSeriesName?: string;
|
|
42
|
+
dataIsSortedInX?: boolean;
|
|
43
|
+
containsNaN?: boolean;
|
|
44
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
45
|
+
type: string;
|
|
46
|
+
data?: any;
|
|
47
|
+
};
|
|
48
|
+
} | {
|
|
49
|
+
filter: {
|
|
50
|
+
type: EDataFilterType;
|
|
51
|
+
options: {
|
|
52
|
+
field: EDataSeriesField;
|
|
53
|
+
scale: number;
|
|
54
|
+
offset: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
xDataId?: string | number;
|
|
58
|
+
yDataId?: string | number;
|
|
59
|
+
y1DataId?: string | number;
|
|
60
|
+
xValues?: number[];
|
|
61
|
+
yValues?: number[];
|
|
62
|
+
y1Values?: number[];
|
|
63
|
+
dataSeriesName?: string;
|
|
64
|
+
dataIsSortedInX?: boolean;
|
|
65
|
+
containsNaN?: boolean;
|
|
66
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
67
|
+
type: string;
|
|
68
|
+
data?: any;
|
|
69
|
+
};
|
|
70
|
+
} | {
|
|
71
|
+
filter: {
|
|
72
|
+
type: EDataFilterType;
|
|
73
|
+
options: {
|
|
74
|
+
field: EDataSeriesField;
|
|
75
|
+
scale: number;
|
|
76
|
+
offset: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
xDataId?: string | number;
|
|
80
|
+
yDataId?: string | number;
|
|
81
|
+
zDataId?: string | number;
|
|
82
|
+
xValues?: number[];
|
|
83
|
+
yValues?: number[];
|
|
84
|
+
zValues?: number[];
|
|
85
|
+
dataSeriesName?: string;
|
|
86
|
+
dataIsSortedInX?: boolean;
|
|
87
|
+
containsNaN?: boolean;
|
|
88
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
89
|
+
type: string;
|
|
90
|
+
data?: any;
|
|
91
|
+
};
|
|
92
|
+
} | {
|
|
93
|
+
filter: {
|
|
94
|
+
type: EDataFilterType;
|
|
95
|
+
options: {
|
|
96
|
+
field: EDataSeriesField;
|
|
97
|
+
scale: number;
|
|
98
|
+
offset: number;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
xDataId?: string | number;
|
|
102
|
+
openDataId?: string | number;
|
|
103
|
+
highDataId?: string | number;
|
|
104
|
+
lowDataId?: string | number;
|
|
105
|
+
closeDataId?: string | number;
|
|
106
|
+
xValues?: number[];
|
|
107
|
+
openValues?: number[];
|
|
108
|
+
highValues?: number[];
|
|
109
|
+
lowValues?: number[]; /** Gets or sets the scale for the transformation */
|
|
110
|
+
closeValues?: number[];
|
|
111
|
+
dataSeriesName?: string;
|
|
112
|
+
dataIsSortedInX?: boolean;
|
|
113
|
+
containsNaN?: boolean;
|
|
114
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
115
|
+
type: string;
|
|
116
|
+
data?: any;
|
|
117
|
+
};
|
|
118
|
+
} | {
|
|
119
|
+
filter: {
|
|
120
|
+
type: EDataFilterType;
|
|
121
|
+
options: {
|
|
122
|
+
field: EDataSeriesField;
|
|
123
|
+
scale: number;
|
|
124
|
+
offset: 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
|
+
};
|
|
27
138
|
protected filterFunctionProperty(index: number, y: number): number;
|
|
28
139
|
}
|
|
@@ -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.XyScaleOffsetFilter = void 0;
|
|
28
|
+
var DataFilterType_1 = require("../../../types/DataFilterType");
|
|
17
29
|
var XyCustomFilter_1 = require("./XyCustomFilter");
|
|
18
30
|
/**
|
|
19
31
|
* An XyDataSeries that is the result of applying a linear transformation (scale and offset)
|
|
@@ -59,6 +71,15 @@ var XyScaleOffsetFilter = /** @class */ (function (_super) {
|
|
|
59
71
|
enumerable: false,
|
|
60
72
|
configurable: true
|
|
61
73
|
});
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
XyScaleOffsetFilter.prototype.toJSON = function (excludeData) {
|
|
76
|
+
if (excludeData === void 0) { excludeData = false; }
|
|
77
|
+
var original = this.originalSeries.toJSON(excludeData);
|
|
78
|
+
return __assign(__assign({}, original), { filter: {
|
|
79
|
+
type: DataFilterType_1.EDataFilterType.XyScaleOffset,
|
|
80
|
+
options: { field: this.field, scale: this.scale, offset: this.offset }
|
|
81
|
+
} });
|
|
82
|
+
};
|
|
62
83
|
XyScaleOffsetFilter.prototype.filterFunctionProperty = function (index, y) {
|
|
63
84
|
return y * this.scaleProperty + this.offsetProperty;
|
|
64
85
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EDataFilterType } from "../../../types/DataFilterType";
|
|
1
2
|
import { BaseDataSeries } from "../BaseDataSeries";
|
|
2
3
|
import { XyyCustomFilter } from "./XyyCustomFilter";
|
|
3
4
|
import { IXyyFilterOptions } from "./XyyFilterBase";
|
|
@@ -13,5 +14,120 @@ export declare class XyyScaleOffsetFilter extends XyyCustomFilter {
|
|
|
13
14
|
get offset(): number;
|
|
14
15
|
set offset(value: number);
|
|
15
16
|
constructor(originalSeries: BaseDataSeries, options?: IXyyScaleOffsetFilterOptions);
|
|
17
|
+
toJSON(excludeData?: boolean): {
|
|
18
|
+
filter: {
|
|
19
|
+
type: EDataFilterType;
|
|
20
|
+
options: {
|
|
21
|
+
yfield: import("./XyFilterBase").EDataSeriesField;
|
|
22
|
+
y1field: import("./XyFilterBase").EDataSeriesField;
|
|
23
|
+
scale: number;
|
|
24
|
+
offset: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
xDataId?: string | number;
|
|
28
|
+
yDataId?: string | number;
|
|
29
|
+
xValues?: number[];
|
|
30
|
+
yValues?: number[];
|
|
31
|
+
dataSeriesName?: string;
|
|
32
|
+
dataIsSortedInX?: boolean;
|
|
33
|
+
containsNaN?: boolean;
|
|
34
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
35
|
+
type: string;
|
|
36
|
+
data?: any;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
filter: {
|
|
40
|
+
type: EDataFilterType;
|
|
41
|
+
options: {
|
|
42
|
+
yfield: import("./XyFilterBase").EDataSeriesField;
|
|
43
|
+
y1field: import("./XyFilterBase").EDataSeriesField;
|
|
44
|
+
scale: number;
|
|
45
|
+
offset: 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
|
+
yfield: import("./XyFilterBase").EDataSeriesField;
|
|
66
|
+
y1field: import("./XyFilterBase").EDataSeriesField;
|
|
67
|
+
scale: number;
|
|
68
|
+
offset: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
xDataId?: string | number;
|
|
72
|
+
yDataId?: string | number;
|
|
73
|
+
zDataId?: string | number;
|
|
74
|
+
xValues?: number[];
|
|
75
|
+
yValues?: number[];
|
|
76
|
+
zValues?: number[];
|
|
77
|
+
dataSeriesName?: string;
|
|
78
|
+
dataIsSortedInX?: boolean;
|
|
79
|
+
containsNaN?: boolean;
|
|
80
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
81
|
+
type: string;
|
|
82
|
+
data?: any;
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
85
|
+
filter: {
|
|
86
|
+
type: EDataFilterType;
|
|
87
|
+
options: {
|
|
88
|
+
yfield: import("./XyFilterBase").EDataSeriesField;
|
|
89
|
+
y1field: import("./XyFilterBase").EDataSeriesField;
|
|
90
|
+
scale: number;
|
|
91
|
+
offset: number;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
xDataId?: string | number;
|
|
95
|
+
openDataId?: string | number;
|
|
96
|
+
highDataId?: string | number;
|
|
97
|
+
lowDataId?: string | number;
|
|
98
|
+
closeDataId?: string | number;
|
|
99
|
+
xValues?: number[];
|
|
100
|
+
openValues?: number[];
|
|
101
|
+
highValues?: number[];
|
|
102
|
+
lowValues?: number[];
|
|
103
|
+
closeValues?: number[];
|
|
104
|
+
dataSeriesName?: string;
|
|
105
|
+
dataIsSortedInX?: boolean;
|
|
106
|
+
containsNaN?: boolean;
|
|
107
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[] | {
|
|
108
|
+
type: string;
|
|
109
|
+
data?: any;
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
filter: {
|
|
113
|
+
type: EDataFilterType;
|
|
114
|
+
options: {
|
|
115
|
+
yfield: import("./XyFilterBase").EDataSeriesField;
|
|
116
|
+
y1field: import("./XyFilterBase").EDataSeriesField;
|
|
117
|
+
scale: number;
|
|
118
|
+
offset: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
xStart: number;
|
|
122
|
+
xStep: number;
|
|
123
|
+
yStart: number;
|
|
124
|
+
yStep: number;
|
|
125
|
+
dataSeriesName?: string;
|
|
126
|
+
zValues?: number[][];
|
|
127
|
+
metadata?: import("../IPointMetadata").IPointMetadata | import("../IPointMetadata").IPointMetadata[][] | {
|
|
128
|
+
type: string;
|
|
129
|
+
data?: any;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
16
132
|
protected filterFunctionProperty(index: number, y: number): number;
|
|
17
133
|
}
|