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
|
@@ -160,7 +160,7 @@ exports.TextAnnotation = TextAnnotation;
|
|
|
160
160
|
/** @ignore */
|
|
161
161
|
/** @ignore */
|
|
162
162
|
var createSvg = function (svgRoot, text, color, fontSize, fontFamily, fontWeight) {
|
|
163
|
-
var svgString = "<svg>\n <text x=\"0\" y=\"" + fontSize + "\" fill=\"" + color + "\" font-size=\"" + fontSize + "\" font-family=\"" + fontFamily + "\" font-weight=\"" + fontWeight + "\">" + text + "</text>\n </svg>";
|
|
163
|
+
var svgString = "<svg class=\"scichart__text-annotation\">\n <text x=\"0\" y=\"" + fontSize + "\" fill=\"" + color + "\" font-size=\"" + fontSize + "\" font-family=\"" + fontFamily + "\" font-weight=\"" + fontWeight + "\">" + text + "</text>\n </svg>";
|
|
164
164
|
var svgNode = document.createRange().createContextualFragment(svgString);
|
|
165
165
|
svgRoot.appendChild(svgNode);
|
|
166
166
|
return svgRoot.lastChild;
|
|
@@ -96,9 +96,6 @@ var VerticalLineAnnotation = /** @class */ (function (_super) {
|
|
|
96
96
|
});
|
|
97
97
|
/** @inheritDoc */
|
|
98
98
|
VerticalLineAnnotation.prototype.drawWithContext = function (renderContext, xCalc, yCalc, viewRect) {
|
|
99
|
-
if (this.isHidden) {
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
99
|
Guard_1.Guard.notNull(renderContext, "renderContext");
|
|
103
100
|
Guard_1.Guard.notNull(xCalc, "xCalc");
|
|
104
101
|
Guard_1.Guard.notNull(yCalc, "yCalc");
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const annotationHelpers: {
|
|
2
|
+
createSvg: (svgString: string, svgRoot: SVGSVGElement) => SVGElement;
|
|
3
|
+
calcNewApex: (x1: number, y1: number, x2: number, y2: number) => {
|
|
4
|
+
point1: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
point2: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
point3: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
};
|
|
16
|
+
point4: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.annotationHelpers = void 0;
|
|
4
|
+
var createSvg = function (svgString, svgRoot) {
|
|
5
|
+
var svgNode = document.createRange().createContextualFragment(svgString);
|
|
6
|
+
svgRoot.appendChild(svgNode);
|
|
7
|
+
return svgRoot.lastChild;
|
|
8
|
+
};
|
|
9
|
+
var calcNewApex = function (x1, y1, x2, y2) {
|
|
10
|
+
var point1 = { x: x1, y: y2 };
|
|
11
|
+
var point2 = { x: x2, y: y2 };
|
|
12
|
+
var point3 = { x: x2, y: y1 };
|
|
13
|
+
var point4 = { x: x1, y: y1 };
|
|
14
|
+
return { point1: point1, point2: point2, point3: point3, point4: point4 };
|
|
15
|
+
};
|
|
16
|
+
exports.annotationHelpers = {
|
|
17
|
+
createSvg: createSvg,
|
|
18
|
+
calcNewApex: calcNewApex
|
|
19
|
+
};
|
|
@@ -72,6 +72,8 @@ export declare type TTickObject = {
|
|
|
72
72
|
};
|
|
73
73
|
export interface IAxisBase2dOptions extends IAxisCoreOptions {
|
|
74
74
|
visibleRangeLimit?: NumberRange;
|
|
75
|
+
zoomExtentsRange?: NumberRange;
|
|
76
|
+
zoomExtentsToInitialRange?: boolean;
|
|
75
77
|
axisAlignment?: EAxisAlignment;
|
|
76
78
|
labelStyle?: TTextStyle;
|
|
77
79
|
axisBorder?: TBorder;
|
|
@@ -123,7 +125,9 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
123
125
|
private axisAlignmentProperty;
|
|
124
126
|
private isInnerAxisProperty;
|
|
125
127
|
private visibleRangeLimitProperty;
|
|
128
|
+
private zoomExtentsRangeProperty;
|
|
126
129
|
private isPrimaryAxisProperty;
|
|
130
|
+
private isStackedAxisProperty;
|
|
127
131
|
private penCacheForMajorGridLines;
|
|
128
132
|
private penCacheForMinorGridLines;
|
|
129
133
|
private penCacheForMajorTickLines;
|
|
@@ -182,6 +186,14 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
182
186
|
* Gets or sets a property which limits {@link AxisCore.visibleRange}, meaning the chart cannot autorange outside that range
|
|
183
187
|
*/
|
|
184
188
|
set visibleRangeLimit(visibleRangeLimit: NumberRange);
|
|
189
|
+
/**
|
|
190
|
+
* Gets or sets a property which, if it is set, will be used as the range when zooming extents, rather than the data max range
|
|
191
|
+
*/
|
|
192
|
+
get zoomExtentsRange(): NumberRange;
|
|
193
|
+
/**
|
|
194
|
+
* Gets or sets a property which, if it is set, will be used as the range when zooming extents, rather than the data max range
|
|
195
|
+
*/
|
|
196
|
+
set zoomExtentsRange(zoomExtentsRange: NumberRange);
|
|
185
197
|
/**
|
|
186
198
|
* Gets or sets whether this axis is placed inside the chart viewport
|
|
187
199
|
* @remarks Center axis uses inner layout strategy
|
|
@@ -204,6 +216,14 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
204
216
|
* The primary axis is the one which draws the gridlines. By default, this is the first axis in the collection
|
|
205
217
|
*/
|
|
206
218
|
set isPrimaryAxis(value: boolean);
|
|
219
|
+
/** Internal Use. Gets or Sets if this axis is stacked
|
|
220
|
+
* This is only used to allow multiple primary axes, so that all stacked axes can draw gridlines
|
|
221
|
+
*/
|
|
222
|
+
get isStackedAxis(): boolean;
|
|
223
|
+
/** Internal Use. Gets or Sets if this axis is stacked
|
|
224
|
+
* This is only used to allow multiple primary axes, so that all stacked axes can draw gridlines
|
|
225
|
+
*/
|
|
226
|
+
set isStackedAxis(value: boolean);
|
|
207
227
|
/**
|
|
208
228
|
* Gets or sets the length the current Axis. E.g. width of horizontal axis or height of vertical axis.
|
|
209
229
|
*/
|
|
@@ -303,6 +323,7 @@ export declare abstract class AxisBase2D extends AxisCore implements IThemeable
|
|
|
303
323
|
* @param easingFunction An optional easing function passed to specify animation easing. See {@link TEasing} for a list of values
|
|
304
324
|
*/
|
|
305
325
|
zoom(fromCoord: number, toCoord: number, duration?: number, easingFunction?: TEasing): void;
|
|
326
|
+
scale(initialRange: NumberRange, delta: number, isMoreThanHalf: boolean): void;
|
|
306
327
|
/**
|
|
307
328
|
* @inheritDoc
|
|
308
329
|
*/
|
|
@@ -112,6 +112,7 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
112
112
|
};
|
|
113
113
|
_this.isInnerAxisProperty = false;
|
|
114
114
|
_this.isPrimaryAxisProperty = false;
|
|
115
|
+
_this.isStackedAxisProperty = false;
|
|
115
116
|
_this.axisBorderProperty = {
|
|
116
117
|
borderBottom: 0,
|
|
117
118
|
borderLeft: 0,
|
|
@@ -132,6 +133,7 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
132
133
|
_this.axisTitleRenderer = new AxisTitleRenderer_1.AxisTitleRenderer(webAssemblyContext);
|
|
133
134
|
_this.tickCoordinatesProvider = new DefaultTickCoordinatesProvider_1.DefaultTickCoordinatesProvider();
|
|
134
135
|
_this.visibleRangeLimit = (_a = options === null || options === void 0 ? void 0 : options.visibleRangeLimit) !== null && _a !== void 0 ? _a : _this.visibleRangeLimit;
|
|
136
|
+
_this.zoomExtentsRange = (options === null || options === void 0 ? void 0 : options.zoomExtentsToInitialRange) ? _this.visibleRange : options === null || options === void 0 ? void 0 : options.zoomExtentsRange;
|
|
135
137
|
_this.axisAlignment = (_b = options === null || options === void 0 ? void 0 : options.axisAlignment) !== null && _b !== void 0 ? _b : _this.axisAlignment;
|
|
136
138
|
_this.axisTitle = (_c = options === null || options === void 0 ? void 0 : options.axisTitle) !== null && _c !== void 0 ? _c : _this.axisTitle;
|
|
137
139
|
_this.labelStyle = (_d = options === null || options === void 0 ? void 0 : options.labelStyle) !== null && _d !== void 0 ? _d : _this.labelStyle;
|
|
@@ -187,7 +189,7 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
187
189
|
AxisBase2D.prototype.onAttach = function (parentSurface, isXAxis, isPrimaryAxis) {
|
|
188
190
|
this.parentSurface = parentSurface;
|
|
189
191
|
this.setIsXAxis(isXAxis);
|
|
190
|
-
this.
|
|
192
|
+
this.isPrimaryAxisProperty = isPrimaryAxis;
|
|
191
193
|
};
|
|
192
194
|
Object.defineProperty(AxisBase2D.prototype, "axisRenderer", {
|
|
193
195
|
/**
|
|
@@ -269,6 +271,23 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
269
271
|
enumerable: false,
|
|
270
272
|
configurable: true
|
|
271
273
|
});
|
|
274
|
+
Object.defineProperty(AxisBase2D.prototype, "zoomExtentsRange", {
|
|
275
|
+
/**
|
|
276
|
+
* Gets or sets a property which, if it is set, will be used as the range when zooming extents, rather than the data max range
|
|
277
|
+
*/
|
|
278
|
+
get: function () {
|
|
279
|
+
return this.zoomExtentsRangeProperty;
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* Gets or sets a property which, if it is set, will be used as the range when zooming extents, rather than the data max range
|
|
283
|
+
*/
|
|
284
|
+
set: function (zoomExtentsRange) {
|
|
285
|
+
this.zoomExtentsRangeProperty = zoomExtentsRange;
|
|
286
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.ZOOMEXTENTS_RANGE);
|
|
287
|
+
},
|
|
288
|
+
enumerable: false,
|
|
289
|
+
configurable: true
|
|
290
|
+
});
|
|
272
291
|
Object.defineProperty(AxisBase2D.prototype, "isInnerAxis", {
|
|
273
292
|
/**
|
|
274
293
|
* Gets or sets whether this axis is placed inside the chart viewport
|
|
@@ -303,14 +322,37 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
303
322
|
* The primary axis is the one which draws the gridlines. By default, this is the first axis in the collection
|
|
304
323
|
*/
|
|
305
324
|
set: function (value) {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
325
|
+
var _this = this;
|
|
326
|
+
this.isPrimaryAxisProperty = value;
|
|
327
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.IS_PRIMARY_AXIS);
|
|
328
|
+
if (value && !this.isStackedAxis) {
|
|
329
|
+
var axes = this.isXAxis ? this.parentSurface.xAxes : this.parentSurface.yAxes;
|
|
330
|
+
axes.asArray().forEach(function (a) {
|
|
331
|
+
if (a !== _this && !a.isStackedAxis) {
|
|
332
|
+
a.isPrimaryAxis = false;
|
|
333
|
+
}
|
|
334
|
+
});
|
|
309
335
|
}
|
|
310
336
|
},
|
|
311
337
|
enumerable: false,
|
|
312
338
|
configurable: true
|
|
313
339
|
});
|
|
340
|
+
Object.defineProperty(AxisBase2D.prototype, "isStackedAxis", {
|
|
341
|
+
/** Internal Use. Gets or Sets if this axis is stacked
|
|
342
|
+
* This is only used to allow multiple primary axes, so that all stacked axes can draw gridlines
|
|
343
|
+
*/
|
|
344
|
+
get: function () {
|
|
345
|
+
return this.isStackedAxisProperty;
|
|
346
|
+
},
|
|
347
|
+
/** Internal Use. Gets or Sets if this axis is stacked
|
|
348
|
+
* This is only used to allow multiple primary axes, so that all stacked axes can draw gridlines
|
|
349
|
+
*/
|
|
350
|
+
set: function (value) {
|
|
351
|
+
this.isStackedAxisProperty = value;
|
|
352
|
+
},
|
|
353
|
+
enumerable: false,
|
|
354
|
+
configurable: true
|
|
355
|
+
});
|
|
314
356
|
Object.defineProperty(AxisBase2D.prototype, "axisLength", {
|
|
315
357
|
/**
|
|
316
358
|
* Gets or sets the length the current Axis. E.g. width of horizontal axis or height of vertical axis.
|
|
@@ -459,12 +501,12 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
459
501
|
return;
|
|
460
502
|
}
|
|
461
503
|
var tickObject = this.getTicksWithCoords();
|
|
462
|
-
var minorGridStyle =
|
|
463
|
-
var majorGridStyle =
|
|
464
|
-
var minorTickStyle =
|
|
465
|
-
var majorTickStyle =
|
|
466
|
-
var penForMinorGridlines = getPenForLines(this.penCacheForMinorGridLines, minorGridStyle.color, minorGridStyle.strokeThickness, minorGridStyle.
|
|
467
|
-
var penForMajorGridlines = getPenForLines(this.penCacheForMajorGridLines, majorGridStyle.color, majorGridStyle.strokeThickness, majorGridStyle.
|
|
504
|
+
var minorGridStyle = this.minorGridLineStyle;
|
|
505
|
+
var majorGridStyle = this.majorGridLineStyle;
|
|
506
|
+
var minorTickStyle = this.minorTickLineStyle;
|
|
507
|
+
var majorTickStyle = this.majorTickLineStyle;
|
|
508
|
+
var penForMinorGridlines = getPenForLines(this.penCacheForMinorGridLines, minorGridStyle.color, minorGridStyle.strokeThickness, minorGridStyle.strokeDashArray);
|
|
509
|
+
var penForMajorGridlines = getPenForLines(this.penCacheForMajorGridLines, majorGridStyle.color, majorGridStyle.strokeThickness, majorGridStyle.strokeDashArray);
|
|
468
510
|
var penForMinorTickLines = getPenForLines(this.penCacheForMinorTickLines, minorTickStyle.color, minorTickStyle.strokeThickness);
|
|
469
511
|
var penForMajorTickLines = getPenForLines(this.penCacheForMajorTickLines, majorTickStyle.color, majorTickStyle.strokeThickness);
|
|
470
512
|
// TODO HERE
|
|
@@ -537,6 +579,9 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
537
579
|
* have to display all the data in the chart.
|
|
538
580
|
*/
|
|
539
581
|
AxisBase2D.prototype.getMaximumRange = function () {
|
|
582
|
+
if (this.zoomExtentsRange) {
|
|
583
|
+
return this.zoomExtentsRange;
|
|
584
|
+
}
|
|
540
585
|
var maximumRange;
|
|
541
586
|
if (this.parentSurface && this.parentSurface.renderableSeries.size() > 0) {
|
|
542
587
|
maximumRange = this.isXAxis ? this.getMaxXRange() : this.getWindowedYRange(undefined);
|
|
@@ -553,6 +598,9 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
553
598
|
*/
|
|
554
599
|
AxisBase2D.prototype.getWindowedYRange = function (xRanges) {
|
|
555
600
|
var _this = this;
|
|
601
|
+
if (this.zoomExtentsRange) {
|
|
602
|
+
return this.zoomExtentsRange;
|
|
603
|
+
}
|
|
556
604
|
var maxRange;
|
|
557
605
|
if (this.parentSurface) {
|
|
558
606
|
var visibleSeries = this.parentSurface.renderableSeries
|
|
@@ -638,6 +686,22 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
638
686
|
var max = fromValue < toValue ? toValue : fromValue;
|
|
639
687
|
this.animateVisibleRange(new NumberRange_1.NumberRange(min, max), duration, easingFunction);
|
|
640
688
|
};
|
|
689
|
+
AxisBase2D.prototype.scale = function (initialRange, delta, isMoreThanHalf) {
|
|
690
|
+
var deltaRange = initialRange.max - initialRange.min;
|
|
691
|
+
var newMin, newMax;
|
|
692
|
+
// Respect flippedCoordinates
|
|
693
|
+
var isMoreThanHalf2 = this.flippedCoordinates ? !isMoreThanHalf : isMoreThanHalf;
|
|
694
|
+
var delta2 = this.flippedCoordinates ? -delta : delta;
|
|
695
|
+
if (isMoreThanHalf2) {
|
|
696
|
+
newMin = initialRange.min;
|
|
697
|
+
newMax = delta2 > 0 ? newMin + deltaRange / (1 + delta2) : newMin + deltaRange * (1 + Math.abs(delta2));
|
|
698
|
+
}
|
|
699
|
+
else {
|
|
700
|
+
newMax = initialRange.max;
|
|
701
|
+
newMin = delta2 > 0 ? newMax - deltaRange * (1 + delta2) : newMax - deltaRange / (1 + Math.abs(delta2));
|
|
702
|
+
}
|
|
703
|
+
this.visibleRange = new NumberRange_1.NumberRange(newMin, newMax);
|
|
704
|
+
};
|
|
641
705
|
/**
|
|
642
706
|
* @inheritDoc
|
|
643
707
|
*/
|
|
@@ -677,8 +741,12 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
677
741
|
maxAutoTicks: this.maxAutoTicks,
|
|
678
742
|
minorGridLineStyle: this.minorGridLineStyle,
|
|
679
743
|
minorTickLineStyle: this.minorTickLineStyle,
|
|
680
|
-
visibleRange: this.hasDefaultVisibleRange ? undefined : this.visibleRange,
|
|
681
|
-
visibleRangeLimit: this.visibleRangeLimit
|
|
744
|
+
visibleRange: this.hasDefaultVisibleRange() ? undefined : this.visibleRange,
|
|
745
|
+
visibleRangeLimit: this.visibleRangeLimit,
|
|
746
|
+
zoomExtentsRange: this.zoomExtentsRange,
|
|
747
|
+
minorsPerMajor: this.minorsPerMajor,
|
|
748
|
+
majorDelta: this.majorDelta,
|
|
749
|
+
minorDelta: this.minorDelta
|
|
682
750
|
};
|
|
683
751
|
return { type: this.type, options: options };
|
|
684
752
|
};
|
|
@@ -901,6 +969,5 @@ var AxisBase2D = /** @class */ (function (_super) {
|
|
|
901
969
|
exports.AxisBase2D = AxisBase2D;
|
|
902
970
|
/** @ignore */
|
|
903
971
|
var getPenForLines = function (penCache, stroke, strokeThickness, strokeDashArray) {
|
|
904
|
-
|
|
905
|
-
return penFromCache.scrtPen;
|
|
972
|
+
return Pen2DCache_1.createPenInCache(penCache, stroke, strokeThickness, 1, strokeDashArray);
|
|
906
973
|
};
|
|
@@ -20,12 +20,12 @@ import { VisibleRangeChangedArgs } from "./VisibleRangeChangedArgs";
|
|
|
20
20
|
* A grid line is the X Y axis grid inside the chart
|
|
21
21
|
* - Set the color as an HTML Color code to define the color
|
|
22
22
|
* - Set the strokeThickness to change the thickness of the grid line
|
|
23
|
-
* - Set the
|
|
23
|
+
* - Set the strokeDashArray to define dash pattern, e.g. [2,2] will have a 2-pixel long dash every 2 pixels
|
|
24
24
|
*/
|
|
25
25
|
export declare type TGridLineStyle = {
|
|
26
26
|
strokeThickness?: number;
|
|
27
27
|
color?: string;
|
|
28
|
-
|
|
28
|
+
strokeDashArray?: number[];
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* A type class to contain information about Tick line styles
|
|
@@ -268,8 +268,8 @@ export declare abstract class AxisCore implements IAxisParams, IDeletable {
|
|
|
268
268
|
* Internal backing property for {@link AxisCore.maxAutoTicks}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
269
269
|
*/
|
|
270
270
|
protected maxAutoTicksProperty: number;
|
|
271
|
+
protected visibleRangeAnimationToken: AnimationToken;
|
|
271
272
|
private readonly defaultVisibleRange;
|
|
272
|
-
private visibleRangeAnimationToken;
|
|
273
273
|
/**
|
|
274
274
|
* Creates an instance of an {@link AxisCore}
|
|
275
275
|
* @param options Optional parameters of type {@link IAxisCoreOptions} used to define properties at instantiation time
|
|
@@ -291,14 +291,14 @@ export declare abstract class AxisCore implements IAxisParams, IDeletable {
|
|
|
291
291
|
* {@link AxisCore.visibleRange} undefined, or NAN, or infinite, or {@link AxisCore.visibleRange} min greater than max
|
|
292
292
|
* will result in this property being false.
|
|
293
293
|
*/
|
|
294
|
-
|
|
294
|
+
hasValidVisibleRange(): boolean;
|
|
295
295
|
/**
|
|
296
296
|
* When true, the axis has the default {@link AxisCore.visibleRange}.
|
|
297
297
|
* @remarks
|
|
298
298
|
* This property is used internally when autoranging. If the range is default and {@link AxisCore.autoRange} is {@link EAutoRange.Once}
|
|
299
299
|
* then the axis will autorange once.
|
|
300
300
|
*/
|
|
301
|
-
|
|
301
|
+
hasDefaultVisibleRange(): boolean;
|
|
302
302
|
/**
|
|
303
303
|
* Gets or sets the unique Axis Id
|
|
304
304
|
* @description
|
|
@@ -45,7 +45,7 @@ var AxisCore = /** @class */ (function () {
|
|
|
45
45
|
* @param options Optional parameters of type {@link IAxisCoreOptions} used to define properties at instantiation time
|
|
46
46
|
*/
|
|
47
47
|
function AxisCore(options) {
|
|
48
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
48
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
49
49
|
/**
|
|
50
50
|
* An {@link EventHandler} which fires a callback when the {@link AxisCore.visibleRange} property changes.
|
|
51
51
|
* @desc
|
|
@@ -125,7 +125,7 @@ var AxisCore = /** @class */ (function () {
|
|
|
125
125
|
this.majorGridLineStyleProperty = {
|
|
126
126
|
strokeThickness: 1,
|
|
127
127
|
color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.majorGridLineBrush,
|
|
128
|
-
|
|
128
|
+
strokeDashArray: undefined
|
|
129
129
|
};
|
|
130
130
|
/**
|
|
131
131
|
* Internal backing property for {@link AxisCore.minorGridLineStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
@@ -133,7 +133,7 @@ var AxisCore = /** @class */ (function () {
|
|
|
133
133
|
this.minorGridLineStyleProperty = {
|
|
134
134
|
strokeThickness: 1,
|
|
135
135
|
color: SciChartSurfaceBase_1.SciChartSurfaceBase.DEFAULT_THEME.minorGridLineBrush,
|
|
136
|
-
|
|
136
|
+
strokeDashArray: undefined
|
|
137
137
|
};
|
|
138
138
|
/**
|
|
139
139
|
* Internal backing property for {@link AxisCore.axisTitleStyle}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
@@ -158,28 +158,31 @@ var AxisCore = /** @class */ (function () {
|
|
|
158
158
|
* Internal backing property for {@link AxisCore.maxAutoTicks}. To fire {@link AxisCore.invalidateParentCallback}, set the public property
|
|
159
159
|
*/
|
|
160
160
|
this.maxAutoTicksProperty = 10;
|
|
161
|
-
this.defaultVisibleRange =
|
|
162
|
-
this.visibleRange = (
|
|
163
|
-
this.id = (
|
|
164
|
-
this.growBy = (
|
|
165
|
-
this.autoRange = (
|
|
166
|
-
this.isVisible = (
|
|
167
|
-
this.axisTitle = (
|
|
168
|
-
this.axisTitleStyle = (
|
|
169
|
-
this.autoTicksProperty = (
|
|
170
|
-
this.maxAutoTicksProperty = (
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
161
|
+
this.defaultVisibleRange = this.getDefaultNonZeroRange();
|
|
162
|
+
this.visibleRange = (options === null || options === void 0 ? void 0 : options.visibleRange) || this.defaultVisibleRange;
|
|
163
|
+
this.id = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : this.id;
|
|
164
|
+
this.growBy = (_b = options === null || options === void 0 ? void 0 : options.growBy) !== null && _b !== void 0 ? _b : this.growBy;
|
|
165
|
+
this.autoRange = (_c = options === null || options === void 0 ? void 0 : options.autoRange) !== null && _c !== void 0 ? _c : this.autoRange;
|
|
166
|
+
this.isVisible = (_d = options === null || options === void 0 ? void 0 : options.isVisible) !== null && _d !== void 0 ? _d : this.isVisible;
|
|
167
|
+
this.axisTitle = (_e = options === null || options === void 0 ? void 0 : options.axisTitle) !== null && _e !== void 0 ? _e : this.axisTitle;
|
|
168
|
+
this.axisTitleStyle = (_f = options === null || options === void 0 ? void 0 : options.axisTitleStyle) !== null && _f !== void 0 ? _f : this.axisTitleStyle;
|
|
169
|
+
this.autoTicksProperty = (_g = options === null || options === void 0 ? void 0 : options.autoTicks) !== null && _g !== void 0 ? _g : this.autoTicksProperty;
|
|
170
|
+
this.maxAutoTicksProperty = (_h = options === null || options === void 0 ? void 0 : options.maxAutoTicks) !== null && _h !== void 0 ? _h : this.maxAutoTicksProperty;
|
|
171
|
+
this.minorsPerMajorProperty = (_j = options === null || options === void 0 ? void 0 : options.minorsPerMajor) !== null && _j !== void 0 ? _j : this.minorsPerMajorProperty;
|
|
172
|
+
this.majorDeltaProperty = (_k = options === null || options === void 0 ? void 0 : options.majorDelta) !== null && _k !== void 0 ? _k : this.majorDeltaProperty;
|
|
173
|
+
this.minorDeltaProperty = (_l = options === null || options === void 0 ? void 0 : options.minorDelta) !== null && _l !== void 0 ? _l : this.minorDeltaProperty;
|
|
174
|
+
this.drawLabelsProperty = (_m = options === null || options === void 0 ? void 0 : options.drawLabels) !== null && _m !== void 0 ? _m : this.drawLabelsProperty;
|
|
175
|
+
this.drawMajorTickLinesProperty = (_o = options === null || options === void 0 ? void 0 : options.drawMajorTickLines) !== null && _o !== void 0 ? _o : this.drawMajorTickLinesProperty;
|
|
176
|
+
this.drawMinorTickLinesProperty = (_p = options === null || options === void 0 ? void 0 : options.drawMinorTickLines) !== null && _p !== void 0 ? _p : this.drawMinorTickLinesProperty;
|
|
177
|
+
this.drawMinorGridLinesProperty = (_q = options === null || options === void 0 ? void 0 : options.drawMinorGridLines) !== null && _q !== void 0 ? _q : this.drawMinorGridLinesProperty;
|
|
178
|
+
this.drawMajorGridLinesProperty = (_r = options === null || options === void 0 ? void 0 : options.drawMajorGridLines) !== null && _r !== void 0 ? _r : this.drawMajorGridLinesProperty;
|
|
179
|
+
this.majorGridLineStyleProperty = (_s = options === null || options === void 0 ? void 0 : options.majorGridLineStyle) !== null && _s !== void 0 ? _s : this.majorGridLineStyleProperty;
|
|
180
|
+
this.minorGridLineStyleProperty = (_t = options === null || options === void 0 ? void 0 : options.minorGridLineStyle) !== null && _t !== void 0 ? _t : this.minorGridLineStyleProperty;
|
|
181
|
+
this.majorTickLineStyleProperty = (_u = options === null || options === void 0 ? void 0 : options.majorTickLineStyle) !== null && _u !== void 0 ? _u : this.majorTickLineStyleProperty;
|
|
182
|
+
this.minorTickLineStyleProperty = (_v = options === null || options === void 0 ? void 0 : options.minorTickLineStyle) !== null && _v !== void 0 ? _v : this.minorTickLineStyleProperty;
|
|
183
|
+
this.drawMajorBandsProperty = (_w = options === null || options === void 0 ? void 0 : options.drawMajorBands) !== null && _w !== void 0 ? _w : this.drawMajorBandsProperty;
|
|
184
|
+
this.axisBandsFillProperty = (_x = options === null || options === void 0 ? void 0 : options.axisBandsFill) !== null && _x !== void 0 ? _x : this.axisBandsFillProperty;
|
|
185
|
+
this.flippedCoordinatesProperty = (_y = options === null || options === void 0 ? void 0 : options.flippedCoordinates) !== null && _y !== void 0 ? _y : this.flippedCoordinatesProperty;
|
|
183
186
|
}
|
|
184
187
|
Object.defineProperty(AxisCore.prototype, "isCategoryAxis", {
|
|
185
188
|
/**
|
|
@@ -203,36 +206,28 @@ var AxisCore = /** @class */ (function () {
|
|
|
203
206
|
enumerable: false,
|
|
204
207
|
configurable: true
|
|
205
208
|
});
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
* then the axis will autorange once.
|
|
229
|
-
*/
|
|
230
|
-
get: function () {
|
|
231
|
-
return this.visibleRange.equals(this.defaultVisibleRange);
|
|
232
|
-
},
|
|
233
|
-
enumerable: false,
|
|
234
|
-
configurable: true
|
|
235
|
-
});
|
|
209
|
+
/**
|
|
210
|
+
* When true, the axis has a valid {@link AxisCore.visibleRange} which can be drawn
|
|
211
|
+
* @remarks
|
|
212
|
+
* {@link AxisCore.visibleRange} undefined, or NAN, or infinite, or {@link AxisCore.visibleRange} min greater than max
|
|
213
|
+
* will result in this property being false.
|
|
214
|
+
*/
|
|
215
|
+
AxisCore.prototype.hasValidVisibleRange = function () {
|
|
216
|
+
if (this.visibleRange === undefined) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
var rangeIsZero = this.visibleRange.diff === 0;
|
|
220
|
+
return !rangeIsZero && isRealNumber_1.isRealNumber(this.visibleRange.max) && isRealNumber_1.isRealNumber(this.visibleRange.min);
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* When true, the axis has the default {@link AxisCore.visibleRange}.
|
|
224
|
+
* @remarks
|
|
225
|
+
* This property is used internally when autoranging. If the range is default and {@link AxisCore.autoRange} is {@link EAutoRange.Once}
|
|
226
|
+
* then the axis will autorange once.
|
|
227
|
+
*/
|
|
228
|
+
AxisCore.prototype.hasDefaultVisibleRange = function () {
|
|
229
|
+
return this.visibleRange.equals(this.defaultVisibleRange);
|
|
230
|
+
};
|
|
236
231
|
Object.defineProperty(AxisCore.prototype, "id", {
|
|
237
232
|
/**
|
|
238
233
|
* Gets or sets the unique Axis Id
|