scichart 2.1.2294 → 2.2.2378
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 +7 -0
- package/Builder/buildAxis.js +6 -0
- package/Builder/buildDataSeries.d.ts +19 -1
- package/Builder/buildDataSeries.js +22 -1
- package/Builder/buildModifiers.d.ts +2 -1
- package/Builder/buildSeries.d.ts +7 -2
- package/Builder/buildSeries.js +5 -1
- package/Charting/ChartModifiers/CursorModifier.d.ts +5 -0
- package/Charting/ChartModifiers/CursorModifier.js +15 -10
- package/Charting/ChartModifiers/LegendModifier.d.ts +31 -0
- package/Charting/ChartModifiers/LegendModifier.js +22 -0
- package/Charting/ChartModifiers/RolloverModifier.d.ts +10 -0
- package/Charting/ChartModifiers/RolloverModifier.js +76 -19
- package/Charting/Drawing/WebGlRenderContext2D.js +26 -42
- package/Charting/LayoutManager/LayoutManager.js +6 -1
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +3 -2
- package/Charting/Model/BaseHeatmapDataSeries.js +17 -5
- package/Charting/Model/ChartData/HlcSeriesInfo.d.ts +12 -0
- package/Charting/Model/ChartData/HlcSeriesInfo.js +52 -0
- package/Charting/Model/Filters/HlcCustomFilter.d.ts +41 -0
- package/Charting/Model/Filters/HlcCustomFilter.js +119 -0
- package/Charting/Model/Filters/HlcFilterBase.d.ts +30 -0
- package/Charting/Model/Filters/HlcFilterBase.js +141 -0
- package/Charting/Model/Filters/HlcScaleOffsetFilter.d.ts +18 -0
- package/Charting/Model/Filters/HlcScaleOffsetFilter.js +86 -0
- package/Charting/Model/Filters/XyFilterBase.d.ts +2 -0
- package/Charting/Model/Filters/XyFilterBase.js +6 -0
- package/Charting/Model/Filters/XyyFilterBase.js +9 -0
- package/Charting/Model/Filters/XyzFilterBase.js +12 -3
- package/Charting/Model/HlcDataSeries.d.ts +189 -0
- package/Charting/Model/HlcDataSeries.js +557 -0
- package/Charting/Model/IDataSeries.d.ts +5 -1
- package/Charting/Model/IDataSeries.js +4 -0
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.d.ts +1 -1
- package/Charting/Model/PointSeries/BasePointSeriesWrapped.js +2 -2
- package/Charting/Model/PointSeries/HlcPointSeriesWrapped.d.ts +10 -0
- package/Charting/Model/PointSeries/HlcPointSeriesWrapped.js +31 -0
- package/Charting/Model/PointSeries/IPointSeries.d.ts +5 -0
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.d.ts +1 -1
- package/Charting/Model/PointSeries/XyyPointSeriesWrapped.js +3 -3
- package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.d.ts +2 -2
- package/Charting/Numerics/CoordinateCalculators/LogarithmicCoordinateCalculator.js +15 -6
- package/Charting/Services/SciChartRenderer.d.ts +1 -0
- package/Charting/Services/SciChartRenderer.js +6 -0
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -1
- package/Charting/Visuals/Annotations/AnnotationBase.js +23 -2
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.d.ts +6 -0
- package/Charting/Visuals/Annotations/CursorTooltipSvgAnnotation.js +46 -5
- package/Charting/Visuals/Annotations/CustomAnnotation.d.ts +3 -1
- package/Charting/Visuals/Annotations/CustomAnnotation.js +14 -3
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.d.ts +4 -0
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/RolloverLegendSvgAnnotation.js +13 -3
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.d.ts +13 -0
- package/Charting/Visuals/Annotations/RolloverTooltipSvgAnnotation.js +71 -14
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.d.ts +2 -0
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +3 -2
- package/Charting/Visuals/Annotations/constants.d.ts +2 -1
- package/Charting/Visuals/Annotations/constants.js +1 -0
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +11 -1
- package/Charting/Visuals/Axis/AxisBase2D.js +75 -17
- package/Charting/Visuals/Axis/AxisCore.d.ts +4 -0
- package/Charting/Visuals/Axis/AxisCore.js +6 -0
- package/Charting/Visuals/Axis/AxisRenderer.js +6 -10
- package/Charting/Visuals/Axis/DateTimeNumericAxis.d.ts +11 -0
- package/Charting/Visuals/Axis/DateTimeNumericAxis.js +36 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.d.ts +28 -0
- package/Charting/Visuals/Axis/DeltaCalculator/DateTimeDeltaCalculator.js +125 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.d.ts +34 -0
- package/Charting/Visuals/Axis/LabelProvider/PieLabelProvider.js +82 -0
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.d.ts +2 -2
- package/Charting/Visuals/Axis/LabelProvider/SmartDateLabelProvider.js +39 -6
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +1 -0
- package/Charting/Visuals/Axis/LogarithmicAxis.js +5 -3
- package/Charting/Visuals/Helpers/NativeObject.d.ts +13 -0
- package/Charting/Visuals/Helpers/NativeObject.js +101 -0
- package/Charting/Visuals/Helpers/createNativeRect.d.ts +2 -2
- package/Charting/Visuals/Helpers/createNativeRect.js +3 -1
- package/Charting/Visuals/Helpers/drawBorder.js +2 -2
- package/Charting/Visuals/Helpers/drawLabel.d.ts +3 -3
- package/Charting/Visuals/Helpers/drawLabel.js +38 -18
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +6 -0
- package/Charting/Visuals/Legend/SciChartLegend.d.ts +4 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +7 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +24 -8
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +109 -31
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedCollection.js +8 -0
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.d.ts +17 -166
- package/Charting/Visuals/RenderableSeries/BaseStackedRenderableSeries.js +35 -328
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.d.ts +5 -2
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BandSeriesDrawingProvider.js +5 -3
- package/Charting/Visuals/RenderableSeries/DrawingProviders/BaseSeriesDrawingProvider.js +14 -11
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.d.ts +46 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/ErrorSeriesDrawingProvider.js +252 -0
- package/Charting/Visuals/RenderableSeries/DrawingProviders/UniformHeatmapDrawingProvider.js +1 -1
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.d.ts +188 -0
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.js +357 -0
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.js +3 -10
- package/Charting/Visuals/RenderableSeries/HitTest/ErrorSeriesHitTestProvider.d.ts +20 -0
- package/Charting/Visuals/RenderableSeries/HitTest/ErrorSeriesHitTestProvider.js +120 -0
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/HitTest/hitTestHelpers.js +36 -0
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/IRenderableSeries.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.d.ts +6 -0
- package/Charting/Visuals/RenderableSeries/SeriesVisibleChangedArgs.js +11 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnCollection.js +1 -2
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +22 -0
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.js +38 -1
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.d.ts +2 -2
- package/Charting/Visuals/RenderableSeries/StackedMountainCollection.js +26 -45
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.d.ts +77 -18
- package/Charting/Visuals/RenderableSeries/StackedMountainRenderableSeries.js +139 -42
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.d.ts +13 -0
- package/Charting/Visuals/RenderableSeries/UniformHeatmapRenderableSeries.js +23 -3
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.d.ts +5 -0
- package/Charting/Visuals/RenderableSeries/XyScatterRenderableSeries.js +21 -1
- package/Charting/Visuals/RenderableSeries/constants.d.ts +8 -0
- package/Charting/Visuals/RenderableSeries/constants.js +8 -0
- package/Charting/Visuals/SciChartPieSurface/IPieSurfaceOptions.d.ts +25 -2
- package/Charting/Visuals/SciChartPieSurface/PieSegment/IPieSegment.d.ts +9 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.d.ts +128 -2
- package/Charting/Visuals/SciChartPieSurface/PieSegment/PieSegment.js +202 -21
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.d.ts +6 -1
- package/Charting/Visuals/SciChartPieSurface/PieSegment/constants.js +5 -0
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.d.ts +77 -3
- package/Charting/Visuals/SciChartPieSurface/SciChartPieSurface.js +373 -81
- package/Charting/Visuals/SciChartPieSurface/constants.d.ts +7 -1
- package/Charting/Visuals/SciChartPieSurface/constants.js +6 -0
- package/Charting/Visuals/SciChartSurface.d.ts +13 -2
- package/Charting/Visuals/SciChartSurface.js +39 -3
- package/Charting/Visuals/createMaster.js +17 -13
- package/Charting/Visuals/createSingle.js +5 -3
- package/Charting/Visuals/licenseManager2D.d.ts +6 -0
- package/Charting/Visuals/licenseManager2D.js +83 -8
- package/Charting/Visuals/licenseManager2dState.d.ts +11 -0
- package/Charting/Visuals/licenseManager2dState.js +37 -1
- package/Charting/Visuals/loader.js +4 -1
- package/Charting/Visuals/sciChartInitCommon.d.ts +2 -2
- package/Charting/Visuals/sciChartInitCommon.js +13 -9
- package/Charting3D/Visuals/Primitives/ScatterPointsSceneEntity.js +6 -2
- package/Charting3D/Visuals/SciChart3DRenderer.js +1 -1
- package/Charting3D/Visuals/createMaster3d.js +20 -14
- package/Charting3D/Visuals/createSingle3d.js +3 -4
- package/Charting3D/Visuals/licenseManager3D.js +3 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Telemetry.d.ts +7 -0
- package/Core/Telemetry.js +106 -0
- package/Core/storage/localStorageApi.d.ts +4 -0
- package/Core/storage/localStorageApi.js +12 -0
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +14 -14
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
- package/types/AxisType.d.ts +5 -1
- package/types/AxisType.js +4 -0
- package/types/Color.d.ts +1 -0
- package/types/Color.js +1 -0
- package/types/DataFilterType.d.ts +1 -0
- package/types/DataFilterType.js +1 -0
- package/types/DataPointWidthMode.d.ts +13 -0
- package/types/DataPointWidthMode.js +17 -0
- package/types/ErrorDirection.d.ts +13 -0
- package/types/ErrorDirection.js +17 -0
- package/types/ErrorMode.d.ts +17 -0
- package/types/ErrorMode.js +21 -0
- package/types/LabelPlacement.d.ts +8 -0
- package/types/LabelPlacement.js +11 -1
- package/types/LabelProviderType.d.ts +5 -1
- package/types/LabelProviderType.js +4 -0
- package/types/SeriesType.d.ts +3 -1
- package/types/SeriesType.js +2 -0
- package/types/TSciChart.d.ts +8 -2
- package/types/TSciChart3D.d.ts +5 -2
- package/types/TSciChartSurfaceCanvases.d.ts +1 -0
- package/utils/date.d.ts +1 -0
- package/utils/date.js +15 -1
- package/utils/guid.d.ts +6 -0
- package/utils/guid.js +17 -1
|
@@ -26,6 +26,10 @@ export interface IHeatmapRenderableSeriesOptions extends IBaseRenderableSeriesOp
|
|
|
26
26
|
* The flag whether to make the heatmap linearly interpolated or smoothed between cells
|
|
27
27
|
*/
|
|
28
28
|
useLinearTextureFiltering?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The flag whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
31
|
+
*/
|
|
32
|
+
fillValuesOutOfRange?: boolean;
|
|
29
33
|
}
|
|
30
34
|
/** @ignore */
|
|
31
35
|
export declare const COLOR_MAP_PREFIX = "colorMap.";
|
|
@@ -72,6 +76,7 @@ export declare class UniformHeatmapRenderableSeries extends BaseRenderableSeries
|
|
|
72
76
|
readonly type: ESeriesType;
|
|
73
77
|
private colorMapProperty;
|
|
74
78
|
private useLinearTextureFilteringProperty;
|
|
79
|
+
private fillValuesOutOfRangeProperty;
|
|
75
80
|
private zLabelProviderProperty;
|
|
76
81
|
/**
|
|
77
82
|
* Creates an instance of the {@link UniformHeatmapRenderableSeries}
|
|
@@ -100,6 +105,14 @@ export declare class UniformHeatmapRenderableSeries extends BaseRenderableSeries
|
|
|
100
105
|
checkIsOutOfDataRange(xValue: number, yValue: number): boolean;
|
|
101
106
|
get zLabelProvider(): LabelProvider;
|
|
102
107
|
set zLabelProvider(labelProvider: LabelProvider);
|
|
108
|
+
/**
|
|
109
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
110
|
+
*/
|
|
111
|
+
get fillValuesOutOfRange(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
114
|
+
*/
|
|
115
|
+
set fillValuesOutOfRange(value: boolean);
|
|
103
116
|
/** @inheritDoc */
|
|
104
117
|
toPointSeries(resamplingParams?: ResamplingParams): IPointSeries;
|
|
105
118
|
/** @inheritDoc */
|
|
@@ -75,10 +75,11 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
75
75
|
* @param options optional parameters of type {@link IHeatmapRenderableSeriesOptions} applied when constructing the series type
|
|
76
76
|
*/
|
|
77
77
|
function UniformHeatmapRenderableSeries(webAssemblyContext, options) {
|
|
78
|
-
var _a, _b, _c, _d, _e;
|
|
78
|
+
var _a, _b, _c, _d, _e, _f;
|
|
79
79
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
80
80
|
_this.type = SeriesType_1.ESeriesType.UniformHeatmapSeries;
|
|
81
81
|
_this.useLinearTextureFilteringProperty = false;
|
|
82
|
+
_this.fillValuesOutOfRangeProperty = true;
|
|
82
83
|
_this.colorMapPropertyChanged = _this.colorMapPropertyChanged.bind(_this);
|
|
83
84
|
if (options === null || options === void 0 ? void 0 : options.colorMap) {
|
|
84
85
|
if (!("toJSON" in options.colorMap)) {
|
|
@@ -91,9 +92,10 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
91
92
|
_this.xAxisId = (_b = options === null || options === void 0 ? void 0 : options.yAxisId) !== null && _b !== void 0 ? _b : AxisCore_1.AxisCore.DEFAULT_AXIS_ID;
|
|
92
93
|
_this.useLinearTextureFilteringProperty =
|
|
93
94
|
(_c = options === null || options === void 0 ? void 0 : options.useLinearTextureFiltering) !== null && _c !== void 0 ? _c : _this.useLinearTextureFilteringProperty;
|
|
95
|
+
_this.fillValuesOutOfRangeProperty = (_d = options === null || options === void 0 ? void 0 : options.fillValuesOutOfRange) !== null && _d !== void 0 ? _d : _this.fillValuesOutOfRangeProperty;
|
|
94
96
|
// Must be called here for the series type to be available
|
|
95
|
-
if ((
|
|
96
|
-
(
|
|
97
|
+
if ((_e = _this.paletteProvider) === null || _e === void 0 ? void 0 : _e.onAttached) {
|
|
98
|
+
(_f = _this.paletteProvider) === null || _f === void 0 ? void 0 : _f.onAttached(_this);
|
|
97
99
|
}
|
|
98
100
|
_this.drawingProviders = [];
|
|
99
101
|
if (!app_1.IS_TEST_ENV) {
|
|
@@ -159,6 +161,23 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
159
161
|
enumerable: false,
|
|
160
162
|
configurable: true
|
|
161
163
|
});
|
|
164
|
+
Object.defineProperty(UniformHeatmapRenderableSeries.prototype, "fillValuesOutOfRange", {
|
|
165
|
+
/**
|
|
166
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
167
|
+
*/
|
|
168
|
+
get: function () {
|
|
169
|
+
return this.fillValuesOutOfRangeProperty;
|
|
170
|
+
},
|
|
171
|
+
/**
|
|
172
|
+
* Gets or sets whether to fill cells with edge color if its value is outside of {@link colorMap.minimum} to {@link colorMap.maximum} range
|
|
173
|
+
*/
|
|
174
|
+
set: function (value) {
|
|
175
|
+
this.fillValuesOutOfRangeProperty = value;
|
|
176
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.FILL_VALUES_OUT_OF_RANGE);
|
|
177
|
+
},
|
|
178
|
+
enumerable: false,
|
|
179
|
+
configurable: true
|
|
180
|
+
});
|
|
162
181
|
/** @inheritDoc */
|
|
163
182
|
UniformHeatmapRenderableSeries.prototype.toPointSeries = function (resamplingParams) {
|
|
164
183
|
// not used for Heatmap
|
|
@@ -171,6 +190,7 @@ var UniformHeatmapRenderableSeries = /** @class */ (function (_super) {
|
|
|
171
190
|
var json = _super.prototype.toJSON.call(this, excludeData);
|
|
172
191
|
var options = {
|
|
173
192
|
colorMap: (_a = this.colorMap) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
193
|
+
fillValuesOutOfRange: this.fillValuesOutOfRange,
|
|
174
194
|
useLinearTextureFiltering: this.useLinearTextureFiltering
|
|
175
195
|
};
|
|
176
196
|
Object.assign(json.options, options);
|
|
@@ -40,6 +40,7 @@ export interface IXyScatterRenderableSeriesOptions extends IBaseRenderableSeries
|
|
|
40
40
|
*/
|
|
41
41
|
export declare class XyScatterRenderableSeries extends BaseRenderableSeries {
|
|
42
42
|
readonly type = ESeriesType.ScatterSeries;
|
|
43
|
+
private scatterOpacityProperty;
|
|
43
44
|
/**
|
|
44
45
|
* Creates an instance of the {@link XyScatterRenderableSeries}
|
|
45
46
|
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
|
|
@@ -51,4 +52,8 @@ export declare class XyScatterRenderableSeries extends BaseRenderableSeries {
|
|
|
51
52
|
toPointSeries(rp?: ResamplingParams): IPointSeries;
|
|
52
53
|
/** @inheritDoc */
|
|
53
54
|
protected newHitTestProvider(): IHitTestProvider;
|
|
55
|
+
/** @inheritDoc */
|
|
56
|
+
get opacity(): number;
|
|
57
|
+
/** @inheritDoc */
|
|
58
|
+
set opacity(value: number);
|
|
54
59
|
}
|
|
@@ -20,6 +20,7 @@ var SeriesType_1 = require("../../../types/SeriesType");
|
|
|
20
20
|
var XyPointSeriesWrapped_1 = require("../../Model/PointSeries/XyPointSeriesWrapped");
|
|
21
21
|
var EllipsePointMarker_1 = require("../PointMarkers/EllipsePointMarker");
|
|
22
22
|
var BaseRenderableSeries_1 = require("./BaseRenderableSeries");
|
|
23
|
+
var constants_1 = require("./constants");
|
|
23
24
|
var PointMarkerDrawingProvider_1 = require("./DrawingProviders/PointMarkerDrawingProvider");
|
|
24
25
|
var ScatterSeriesHitTestProvider_1 = require("./HitTest/ScatterSeriesHitTestProvider");
|
|
25
26
|
/**
|
|
@@ -59,9 +60,10 @@ var XyScatterRenderableSeries = /** @class */ (function (_super) {
|
|
|
59
60
|
* @param options Optional parameters of type {@link IBaseRenderableSeriesOptions} to configure the series
|
|
60
61
|
*/
|
|
61
62
|
function XyScatterRenderableSeries(webAssemblyContext, options) {
|
|
62
|
-
var _a, _b;
|
|
63
|
+
var _a, _b, _c;
|
|
63
64
|
var _this = _super.call(this, webAssemblyContext, options) || this;
|
|
64
65
|
_this.type = SeriesType_1.ESeriesType.ScatterSeries;
|
|
66
|
+
_this.scatterOpacityProperty = 1;
|
|
65
67
|
if (!_this.pointMarker) {
|
|
66
68
|
_this.pointMarker = new EllipsePointMarker_1.EllipsePointMarker(webAssemblyContext, { width: 10, height: 10 });
|
|
67
69
|
}
|
|
@@ -74,6 +76,7 @@ var XyScatterRenderableSeries = /** @class */ (function (_super) {
|
|
|
74
76
|
if ((_a = _this.paletteProvider) === null || _a === void 0 ? void 0 : _a.onAttached) {
|
|
75
77
|
(_b = _this.paletteProvider) === null || _b === void 0 ? void 0 : _b.onAttached(_this);
|
|
76
78
|
}
|
|
79
|
+
_this.scatterOpacityProperty = (_c = options === null || options === void 0 ? void 0 : options.opacity) !== null && _c !== void 0 ? _c : _this.scatterOpacityProperty;
|
|
77
80
|
return _this;
|
|
78
81
|
}
|
|
79
82
|
/** @inheritDoc */
|
|
@@ -84,6 +87,23 @@ var XyScatterRenderableSeries = /** @class */ (function (_super) {
|
|
|
84
87
|
XyScatterRenderableSeries.prototype.newHitTestProvider = function () {
|
|
85
88
|
return new ScatterSeriesHitTestProvider_1.ScatterSeriesHitTestProvider(this, this.webAssemblyContext);
|
|
86
89
|
};
|
|
90
|
+
Object.defineProperty(XyScatterRenderableSeries.prototype, "opacity", {
|
|
91
|
+
/** @inheritDoc */
|
|
92
|
+
get: function () {
|
|
93
|
+
return this.scatterOpacityProperty;
|
|
94
|
+
},
|
|
95
|
+
/** @inheritDoc */
|
|
96
|
+
set: function (value) {
|
|
97
|
+
this.scatterOpacityProperty = value;
|
|
98
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.OPACITY);
|
|
99
|
+
if (this.pointMarker) {
|
|
100
|
+
this.pointMarker.opacity = value;
|
|
101
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.POINT_MARKER);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
enumerable: false,
|
|
105
|
+
configurable: true
|
|
106
|
+
});
|
|
87
107
|
return XyScatterRenderableSeries;
|
|
88
108
|
}(BaseRenderableSeries_1.BaseRenderableSeries));
|
|
89
109
|
exports.XyScatterRenderableSeries = XyScatterRenderableSeries;
|
|
@@ -9,13 +9,20 @@ export declare enum PROPERTY {
|
|
|
9
9
|
CONTOUR_MAJOR_LINE_STYLE = "CONTOUR_MAJOR_LINE_STYLE",
|
|
10
10
|
CONTOUR_COLOR_MAP_MODE = "CONTOUR_COLOR_MAP_MODE",
|
|
11
11
|
DATA_POINT_WIDTH = "dataPointWidth",
|
|
12
|
+
DATA_POINT_WIDTH_MODE = "DATA_POINT_WIDTH_MODE",
|
|
12
13
|
DATA_SERIES = "dataSeries",
|
|
14
|
+
DRAWING_PROVIDERS = "DRAWING_PROVIDERS",
|
|
13
15
|
DRAW_NAN_AS = "drawNaNAs",
|
|
16
|
+
DRAW_CONNECTOR = "DRAW_CONNECTOR",
|
|
17
|
+
DRAW_WHISKERS = "DRAW_WHISKERS",
|
|
14
18
|
EFFECT = "EFFECT",
|
|
15
19
|
ENABLE_DRAWING_OPTIMISATIONS = "ENABLE_DRAWING_OPTIMISATIONS",
|
|
20
|
+
ERROR_DIRECTION = "ERROR_DIRECTION",
|
|
21
|
+
ERROR_MODE = "ERROR_MODE",
|
|
16
22
|
FILL = "fill",
|
|
17
23
|
FILL_Y1 = "FILL_Y1",
|
|
18
24
|
FILL_LINEAR_GRADIENT = "FILL_LINEAR_GRADIENT",
|
|
25
|
+
FILL_VALUES_OUT_OF_RANGE = "FILL_VALUES_OUT_OF_RANGE",
|
|
19
26
|
GRADIENT_STOPS = "GRADIENT_STOPS",
|
|
20
27
|
HOVERED = "HOVERED",
|
|
21
28
|
INTERPOLATION_POINTS = "INTERPOLATION_POINTS",
|
|
@@ -29,6 +36,7 @@ export declare enum PROPERTY {
|
|
|
29
36
|
OFFSET = "OFFSET",
|
|
30
37
|
OPACITY = "OPACITY",
|
|
31
38
|
PALETTE_PROVIDER = "PALETTE_PROVIDER",
|
|
39
|
+
PARENT_SURFACE = "PARENT_SURFACE",
|
|
32
40
|
POINT_MARKER = "pointMarker",
|
|
33
41
|
RANGE = "RANGE",
|
|
34
42
|
RESAMPLING_MODE = "RESAMPLING_MODE",
|
|
@@ -13,13 +13,20 @@ var PROPERTY;
|
|
|
13
13
|
PROPERTY["CONTOUR_MAJOR_LINE_STYLE"] = "CONTOUR_MAJOR_LINE_STYLE";
|
|
14
14
|
PROPERTY["CONTOUR_COLOR_MAP_MODE"] = "CONTOUR_COLOR_MAP_MODE";
|
|
15
15
|
PROPERTY["DATA_POINT_WIDTH"] = "dataPointWidth";
|
|
16
|
+
PROPERTY["DATA_POINT_WIDTH_MODE"] = "DATA_POINT_WIDTH_MODE";
|
|
16
17
|
PROPERTY["DATA_SERIES"] = "dataSeries";
|
|
18
|
+
PROPERTY["DRAWING_PROVIDERS"] = "DRAWING_PROVIDERS";
|
|
17
19
|
PROPERTY["DRAW_NAN_AS"] = "drawNaNAs";
|
|
20
|
+
PROPERTY["DRAW_CONNECTOR"] = "DRAW_CONNECTOR";
|
|
21
|
+
PROPERTY["DRAW_WHISKERS"] = "DRAW_WHISKERS";
|
|
18
22
|
PROPERTY["EFFECT"] = "EFFECT";
|
|
19
23
|
PROPERTY["ENABLE_DRAWING_OPTIMISATIONS"] = "ENABLE_DRAWING_OPTIMISATIONS";
|
|
24
|
+
PROPERTY["ERROR_DIRECTION"] = "ERROR_DIRECTION";
|
|
25
|
+
PROPERTY["ERROR_MODE"] = "ERROR_MODE";
|
|
20
26
|
PROPERTY["FILL"] = "fill";
|
|
21
27
|
PROPERTY["FILL_Y1"] = "FILL_Y1";
|
|
22
28
|
PROPERTY["FILL_LINEAR_GRADIENT"] = "FILL_LINEAR_GRADIENT";
|
|
29
|
+
PROPERTY["FILL_VALUES_OUT_OF_RANGE"] = "FILL_VALUES_OUT_OF_RANGE";
|
|
23
30
|
PROPERTY["GRADIENT_STOPS"] = "GRADIENT_STOPS";
|
|
24
31
|
PROPERTY["HOVERED"] = "HOVERED";
|
|
25
32
|
PROPERTY["INTERPOLATION_POINTS"] = "INTERPOLATION_POINTS";
|
|
@@ -33,6 +40,7 @@ var PROPERTY;
|
|
|
33
40
|
PROPERTY["OFFSET"] = "OFFSET";
|
|
34
41
|
PROPERTY["OPACITY"] = "OPACITY";
|
|
35
42
|
PROPERTY["PALETTE_PROVIDER"] = "PALETTE_PROVIDER";
|
|
43
|
+
PROPERTY["PARENT_SURFACE"] = "PARENT_SURFACE";
|
|
36
44
|
PROPERTY["POINT_MARKER"] = "pointMarker";
|
|
37
45
|
PROPERTY["RANGE"] = "RANGE";
|
|
38
46
|
PROPERTY["RESAMPLING_MODE"] = "RESAMPLING_MODE";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { TLabelProviderDefinition } from "../../../Builder/buildAxis";
|
|
2
|
+
import { Thickness } from "../../../Core/Thickness";
|
|
3
|
+
import { TBorder } from "../../../types/TBorder";
|
|
4
|
+
import { PieLabelProvider } from "../Axis/LabelProvider/PieLabelProvider";
|
|
1
5
|
import { ISurfaceOptionsBase } from "../SciChartSurfaceBase";
|
|
2
|
-
import { EPieType, ESizingMode } from "./SciChartPieSurface";
|
|
6
|
+
import { EPieType, EPieValueMode, ESizingMode } from "./SciChartPieSurface";
|
|
3
7
|
/**
|
|
4
8
|
* Options passed to a {@link SciChartPieSurface} in the {@link SciChartPieSurface.create} function
|
|
5
9
|
*/
|
|
@@ -18,8 +22,10 @@ export interface IPieSurfaceOptions extends ISurfaceOptionsBase {
|
|
|
18
22
|
pieType?: EPieType;
|
|
19
23
|
/** Optional - the radius of the hole for a donut chart. */
|
|
20
24
|
holeRadius?: number;
|
|
21
|
-
/** Optional - Whether to animate the chart as it is
|
|
25
|
+
/** Optional - Whether to animate the chart as it is drawn. Default true */
|
|
22
26
|
animate?: boolean;
|
|
27
|
+
/** Optional - The number of frames for the animation. Default 30. A frame will be trigged every 20ms. */
|
|
28
|
+
animationFrames?: number;
|
|
23
29
|
/** Optional - how the hole radius is interpreted, either absolute, or relative to the total radius */
|
|
24
30
|
holeRadiusSizingMode?: ESizingMode;
|
|
25
31
|
/** Optional - whether to show the legend. Default true */
|
|
@@ -30,4 +36,21 @@ export interface IPieSurfaceOptions extends ISurfaceOptionsBase {
|
|
|
30
36
|
showLegendCheckBoxes?: boolean;
|
|
31
37
|
/** Optional - whether to show series markers on the legend. Default true */
|
|
32
38
|
showLegendSeriesMarkers?: boolean;
|
|
39
|
+
/** Optional - adds the spacings / padding around the view area */
|
|
40
|
+
padding?: Thickness;
|
|
41
|
+
/** Optional - adds the border to the view area */
|
|
42
|
+
canvasBorder?: TBorder;
|
|
43
|
+
/** Optional - addes spacing between the segments */
|
|
44
|
+
seriesSpacing?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Sets a {@link LabelProvider} - a class which is responsible for formatting axis labels and cursor labels from numeric values
|
|
47
|
+
*/
|
|
48
|
+
labelProvider?: PieLabelProvider | TLabelProviderDefinition;
|
|
49
|
+
/** Whether to show labels as percentages, or raw values. Default to percentages */
|
|
50
|
+
valueMode?: EPieValueMode;
|
|
51
|
+
/**
|
|
52
|
+
* Use this to adjust the position of the labels. 1 is the default. Larger values will shift the labels outwards.
|
|
53
|
+
* If you want more detailed control you can override calcTitlePosition.
|
|
54
|
+
*/
|
|
55
|
+
labelRadiusAdjustment?: number;
|
|
33
56
|
}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { GradientParams } from "../../../../Core/GradientParams";
|
|
2
|
+
import { Point } from "../../../../Core/Point";
|
|
3
|
+
import { TTextStyle } from "../../Axis/AxisCore";
|
|
2
4
|
import { SciChartPieSurface } from "../SciChartPieSurface";
|
|
3
5
|
import { IPieSegmentOptions } from "./PieSegment";
|
|
4
6
|
export interface IPieSegment {
|
|
5
7
|
readonly id: string;
|
|
6
8
|
text: string;
|
|
7
9
|
value: number;
|
|
10
|
+
oldValue: number;
|
|
8
11
|
color: string;
|
|
9
12
|
colorLinearGradient: GradientParams;
|
|
10
13
|
isSelected: boolean;
|
|
11
14
|
delta: number;
|
|
15
|
+
shift: number;
|
|
16
|
+
labelStyle: TTextStyle;
|
|
17
|
+
labelOffset: Point;
|
|
18
|
+
radiusAdjustment: number;
|
|
12
19
|
onAttach(scs: SciChartPieSurface): void;
|
|
13
20
|
onDetach(): void;
|
|
14
|
-
getPercentage(total: number): string;
|
|
15
21
|
toJSON(): IPieSegmentOptions;
|
|
22
|
+
getPercentage(total: number): number;
|
|
23
|
+
getLabelText(total: number): string;
|
|
16
24
|
}
|
|
@@ -1,42 +1,168 @@
|
|
|
1
|
+
import { TLabelProviderDefinition } from "../../../../Builder/buildAxis";
|
|
1
2
|
import { GradientParams } from "../../../../Core/GradientParams";
|
|
3
|
+
import { Point } from "../../../../Core/Point";
|
|
2
4
|
import { RequiredOwnProps } from "../../../../types/HelperTypes";
|
|
5
|
+
import { TTextStyle } from "../../Axis/AxisCore";
|
|
6
|
+
import { PieLabelProvider } from "../../Axis/LabelProvider/PieLabelProvider";
|
|
3
7
|
import { SciChartPieSurface } from "../SciChartPieSurface";
|
|
4
8
|
import { IPieSegment } from "./IPieSegment";
|
|
5
9
|
export interface IPieSegmentOptions {
|
|
6
10
|
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* A text value for the segment which will be displayed in the legend
|
|
13
|
+
*/
|
|
7
14
|
text?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The numerical value of the segment
|
|
17
|
+
*/
|
|
8
18
|
value?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The color of the segment as an HTML color code
|
|
21
|
+
*/
|
|
9
22
|
color?: string;
|
|
23
|
+
/**
|
|
24
|
+
* An optional color gradient
|
|
25
|
+
*/
|
|
10
26
|
colorLinearGradient?: GradientParams;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the segment is selected. Selected segments are shifted outwards by the delta
|
|
29
|
+
*/
|
|
11
30
|
isSelected?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The amount to shift the segment when it is selected. Default 15 px
|
|
33
|
+
*/
|
|
12
34
|
delta?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Optional class that can override the default label formatting for this segment only. Must be or inherit from {@link PieLabelProvider}
|
|
37
|
+
*/
|
|
38
|
+
labelProvider?: PieLabelProvider | TLabelProviderDefinition;
|
|
39
|
+
/**
|
|
40
|
+
* Optional text style that will override the default style from the surface for this segment only
|
|
41
|
+
*/
|
|
42
|
+
labelStyle?: TTextStyle;
|
|
43
|
+
/**
|
|
44
|
+
* An x, y offset for the label position
|
|
45
|
+
*/
|
|
46
|
+
labelOffset?: Point;
|
|
47
|
+
/**
|
|
48
|
+
* A relative adjustment of the radius for this segment. eg 1.5 will be 50% larger than normal
|
|
49
|
+
*/
|
|
50
|
+
radiusAdjustment?: number;
|
|
13
51
|
}
|
|
14
52
|
export declare class PieSegment implements IPieSegment {
|
|
15
|
-
static readonly DEFAULT_DELTA = 15;
|
|
16
53
|
readonly id: string;
|
|
17
54
|
private colorProperty;
|
|
18
55
|
private colorLinearGradientProperty;
|
|
19
56
|
private isSelectedProperty;
|
|
20
57
|
private textProperty;
|
|
21
58
|
private valueProperty;
|
|
59
|
+
private oldValueProperty;
|
|
22
60
|
private deltaProperty;
|
|
61
|
+
private shiftProperty;
|
|
62
|
+
private parentSurface;
|
|
63
|
+
private labelProviderProperty;
|
|
64
|
+
private labelStyleProperty;
|
|
65
|
+
private labelOffsetProperty;
|
|
66
|
+
private radiusAdjustmentProperty;
|
|
23
67
|
private invalidateParentCallback;
|
|
24
68
|
constructor(options?: IPieSegmentOptions);
|
|
25
69
|
onAttach(scps: SciChartPieSurface): void;
|
|
26
70
|
onDetach(): void;
|
|
71
|
+
/**
|
|
72
|
+
* An optional color gradient
|
|
73
|
+
*/
|
|
27
74
|
get colorLinearGradient(): GradientParams;
|
|
75
|
+
/**
|
|
76
|
+
* An optional color gradient
|
|
77
|
+
*/
|
|
28
78
|
set colorLinearGradient(value: GradientParams);
|
|
79
|
+
/**
|
|
80
|
+
* The color of the segment as an HTML color code
|
|
81
|
+
*/
|
|
29
82
|
get color(): string;
|
|
83
|
+
/**
|
|
84
|
+
* The color of the segment as an HTML color code
|
|
85
|
+
*/
|
|
30
86
|
set color(value: string);
|
|
87
|
+
/**
|
|
88
|
+
* Whether the segment is selected. Selected segments are shifted outwards by the delta
|
|
89
|
+
*/
|
|
31
90
|
get isSelected(): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the segment is selected. Selected segments are shifted outwards by the delta
|
|
93
|
+
*/
|
|
32
94
|
set isSelected(value: boolean);
|
|
95
|
+
/**
|
|
96
|
+
* A text value for the segment which will be displayed in the legend
|
|
97
|
+
*/
|
|
33
98
|
get text(): string;
|
|
99
|
+
/**
|
|
100
|
+
* A text value for the segment which will be displayed in the legend
|
|
101
|
+
*/
|
|
34
102
|
set text(value: string);
|
|
35
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Optional class that can override the default label formatting for this segment only. Must be or inherit from {@link PieLabelProvider}
|
|
105
|
+
*/
|
|
106
|
+
get labelProvider(): PieLabelProvider;
|
|
107
|
+
/**
|
|
108
|
+
* Optional class that can override the default label formatting for this segment only. Must be or inherit from {@link PieLabelProvider}
|
|
109
|
+
*/
|
|
110
|
+
set labelProvider(value: PieLabelProvider);
|
|
111
|
+
getPercentage(total: number): number;
|
|
112
|
+
/**
|
|
113
|
+
* The numerical value of the segment
|
|
114
|
+
*/
|
|
36
115
|
get value(): number;
|
|
116
|
+
/**
|
|
117
|
+
* The numerical value of the segment
|
|
118
|
+
*/
|
|
37
119
|
set value(value: number);
|
|
120
|
+
/**
|
|
121
|
+
* The previous value of the segment, if it has been updated. Used for animations
|
|
122
|
+
*/
|
|
123
|
+
get oldValue(): number;
|
|
124
|
+
/**
|
|
125
|
+
* The amount to shift the segment when it is selected. Default 15 px
|
|
126
|
+
*/
|
|
38
127
|
get delta(): number;
|
|
128
|
+
/**
|
|
129
|
+
* The amount to shift the segment when it is selected. Default 15 px
|
|
130
|
+
*/
|
|
39
131
|
set delta(value: number);
|
|
132
|
+
/**
|
|
133
|
+
* The amount the segment is shifted radially outwards. Automatically set during selected/deselection animations
|
|
134
|
+
* Do not set this directly. Use delta and isSelected instead
|
|
135
|
+
*/
|
|
136
|
+
get shift(): number;
|
|
137
|
+
/**
|
|
138
|
+
* The amount the segment is shifted radially outwards. Automatically set during selected/deselection animations
|
|
139
|
+
*/
|
|
140
|
+
set shift(value: number);
|
|
141
|
+
/**
|
|
142
|
+
* Gets or sets a {@link TTextStyle} object for styling labels for this segment only
|
|
143
|
+
*/
|
|
144
|
+
get labelStyle(): TTextStyle;
|
|
145
|
+
/**
|
|
146
|
+
* Gets or sets a {@link TTextStyle} object for styling labels for this segment only
|
|
147
|
+
*/
|
|
148
|
+
set labelStyle(textStyle: TTextStyle);
|
|
149
|
+
/**
|
|
150
|
+
* An x, y offset for the label position
|
|
151
|
+
*/
|
|
152
|
+
get labelOffset(): Point;
|
|
153
|
+
/**
|
|
154
|
+
* An x, y offset for the label position
|
|
155
|
+
*/
|
|
156
|
+
set labelOffset(value: Point);
|
|
157
|
+
/**
|
|
158
|
+
* A relative adjustment of the radius for this segment. eg 1.5 will be 50% larger than normal
|
|
159
|
+
*/
|
|
160
|
+
get radiusAdjustment(): number;
|
|
161
|
+
/**
|
|
162
|
+
* A relative adjustment of the radius for this segment. eg 1.5 will be 50% larger than normal
|
|
163
|
+
*/
|
|
164
|
+
set radiusAdjustment(value: number);
|
|
40
165
|
toJSON(): RequiredOwnProps<IPieSegmentOptions>;
|
|
166
|
+
getLabelText(total: number): string;
|
|
41
167
|
private notifyPropertyChanged;
|
|
42
168
|
}
|