mdt-charts 1.29.0 → 1.29.1
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/lib/config/config.d.ts +167 -177
- package/lib/designer/designerConfig.d.ts +59 -62
- package/lib/engine/block/block.d.ts +16 -22
- package/lib/engine/block/block.js +51 -51
- package/lib/engine/block/blockHelper.d.ts +6 -6
- package/lib/engine/block/blockHelper.js +16 -16
- package/lib/engine/block/blockHtml.d.ts +8 -8
- package/lib/engine/block/blockHtml.js +15 -15
- package/lib/engine/block/blockSvg.d.ts +20 -20
- package/lib/engine/block/blockSvg.js +66 -65
- package/lib/engine/block/defs/LinearGradientDef.d.ts +2 -2
- package/lib/engine/block/defs/LinearGradientDef.js +27 -27
- package/lib/engine/block/defs/hatchPattern.d.ts +4 -4
- package/lib/engine/block/defs/hatchPattern.js +9 -9
- package/lib/engine/colorReader/colorReader.d.ts +5 -5
- package/lib/engine/colorReader/colorReader.js +18 -18
- package/lib/engine/contentManager/contentManager.d.ts +7 -6
- package/lib/engine/contentManager/contentManager.js +15 -15
- package/lib/engine/contentManager/contentManagerFactory.d.ts +7 -7
- package/lib/engine/contentManager/contentManagerFactory.js +12 -12
- package/lib/engine/elementHighlighter/elementHighlighter.d.ts +22 -70
- package/lib/engine/elementHighlighter/elementHighlighter.js +181 -230
- package/lib/engine/elementHighlighter/selectHighlighter.d.ts +4 -29
- package/lib/engine/elementHighlighter/selectHighlighter.js +87 -189
- package/lib/engine/engine.d.ts +17 -17
- package/lib/engine/engine.js +62 -87
- package/lib/engine/features/aggregator/aggregator.d.ts +17 -24
- package/lib/engine/features/aggregator/aggregator.js +102 -113
- package/lib/engine/features/axis/axis.d.ts +9 -22
- package/lib/engine/features/axis/axis.js +150 -159
- package/lib/engine/features/axis/axisDomHelper.d.ts +2 -7
- package/lib/engine/features/axis/axisDomHelper.js +20 -19
- package/lib/engine/features/axis/axisHelper.d.ts +5 -9
- package/lib/engine/features/axis/axisHelper.js +33 -28
- package/lib/engine/features/axis/axisLabelDomHelper.d.ts +11 -26
- package/lib/engine/features/axis/axisLabelDomHelper.js +152 -156
- package/lib/engine/features/axis/axisLabelsEventManager.d.ts +2 -2
- package/lib/engine/features/axis/axisLabelsEventManager.js +32 -32
- package/lib/engine/features/embeddedLabels/embeddedLabels.d.ts +16 -51
- package/lib/engine/features/embeddedLabels/embeddedLabels.js +134 -234
- package/lib/engine/features/embeddedLabels/embeddedLabelsDomHelper.d.ts +2 -13
- package/lib/engine/features/embeddedLabels/embeddedLabelsDomHelper.js +23 -20
- package/lib/engine/features/embeddedLabels/embeddedLabelsHelper.d.ts +15 -32
- package/lib/engine/features/embeddedLabels/embeddedLabelsHelper.js +63 -56
- package/lib/engine/features/gridLine/gidLineHelper.d.ts +7 -13
- package/lib/engine/features/gridLine/gidLineHelper.js +49 -42
- package/lib/engine/features/gridLine/gridLine.d.ts +5 -19
- package/lib/engine/features/gridLine/gridLine.js +36 -35
- package/lib/engine/features/legend/legend.d.ts +28 -38
- package/lib/engine/features/legend/legend.js +92 -118
- package/lib/engine/features/legend/legendDomHelper.d.ts +6 -13
- package/lib/engine/features/legend/legendDomHelper.js +62 -63
- package/lib/engine/features/legend/legendEventsManager.d.ts +8 -13
- package/lib/engine/features/legend/legendEventsManager.js +47 -48
- package/lib/engine/features/legend/legendHelper.d.ts +14 -39
- package/lib/engine/features/legend/legendHelper.js +92 -98
- package/lib/engine/features/legend/legendHelperService.d.ts +6 -13
- package/lib/engine/features/legend/legendHelperService.js +25 -24
- package/lib/engine/features/legend/legendMarkerCreator.d.ts +9 -18
- package/lib/engine/features/legend/legendMarkerCreator.js +76 -79
- package/lib/engine/features/legend/legendWidthCalculator.d.ts +7 -7
- package/lib/engine/features/legend/legendWidthCalculator.js +122 -126
- package/lib/engine/features/markDots/markDot.d.ts +15 -42
- package/lib/engine/features/markDots/markDot.js +70 -101
- package/lib/engine/features/markDots/markDotsHelper.d.ts +1 -8
- package/lib/engine/features/markDots/markDotsHelper.js +12 -13
- package/lib/engine/features/recordOverflowAlert/recordOverflowAlertCore.d.ts +5 -23
- package/lib/engine/features/recordOverflowAlert/recordOverflowAlertCore.js +34 -42
- package/lib/engine/features/scale/scale.d.ts +12 -17
- package/lib/engine/features/scale/scale.js +69 -76
- package/lib/engine/features/tipBox/tipBox.d.ts +5 -9
- package/lib/engine/features/tipBox/tipBox.js +24 -24
- package/lib/engine/features/tipBox/tipBoxHelper.d.ts +9 -16
- package/lib/engine/features/tipBox/tipBoxHelper.js +45 -60
- package/lib/engine/features/title/title.d.ts +6 -6
- package/lib/engine/features/title/title.js +35 -34
- package/lib/engine/features/tolltip/newTooltip/newTooltip.d.ts +11 -15
- package/lib/engine/features/tolltip/newTooltip/newTooltip.js +21 -21
- package/lib/engine/features/tolltip/newTooltip/newTooltipService.d.ts +8 -13
- package/lib/engine/features/tolltip/newTooltip/newTooltipService.js +23 -26
- package/lib/engine/features/tolltip/tooltip.d.ts +11 -17
- package/lib/engine/features/tolltip/tooltip.js +142 -296
- package/lib/engine/features/tolltip/tooltipComponentsManager.d.ts +10 -21
- package/lib/engine/features/tolltip/tooltipComponentsManager.js +114 -113
- package/lib/engine/features/tolltip/tooltipDomHelper.d.ts +21 -43
- package/lib/engine/features/tolltip/tooltipDomHelper.js +120 -144
- package/lib/engine/features/tolltip/tooltipHelper.d.ts +9 -39
- package/lib/engine/features/tolltip/tooltipHelper.js +91 -114
- package/lib/engine/features/valueLabels/valueLabels.d.ts +38 -58
- package/lib/engine/features/valueLabels/valueLabels.js +169 -205
- package/lib/engine/features/valueLabels/valueLabelsHelper.d.ts +1 -7
- package/lib/engine/features/valueLabels/valueLabelsHelper.js +18 -23
- package/lib/engine/features/valueLabelsCollision/valueLabelsCollision.d.ts +15 -18
- package/lib/engine/features/valueLabelsCollision/valueLabelsCollision.js +47 -46
- package/lib/engine/features/valueLabelsCollision/valueLabelsCollisionHelper.d.ts +3 -6
- package/lib/engine/features/valueLabelsCollision/valueLabelsCollisionHelper.js +45 -49
- package/lib/engine/filterManager/filterEventManager.d.ts +30 -37
- package/lib/engine/filterManager/filterEventManager.js +131 -174
- package/lib/engine/helpers/domHelper.d.ts +20 -45
- package/lib/engine/helpers/domHelper.js +61 -62
- package/lib/engine/helpers/fontResizer/fontResizer.d.ts +10 -10
- package/lib/engine/helpers/fontResizer/fontResizer.js +16 -21
- package/lib/engine/helpers/fontResizer/fontResizerService.d.ts +1 -1
- package/lib/engine/helpers/fontResizer/fontResizerService.js +10 -9
- package/lib/engine/helpers/helper.d.ts +27 -27
- package/lib/engine/helpers/helper.js +92 -91
- package/lib/engine/helpers/namesHelper.d.ts +3 -3
- package/lib/engine/helpers/namesHelper.js +6 -6
- package/lib/engine/helpers/pipeline/Pipeline.d.ts +5 -5
- package/lib/engine/helpers/pipeline/Pipeline.js +33 -33
- package/lib/engine/polarNotation/donut/DonutHelper.d.ts +11 -25
- package/lib/engine/polarNotation/donut/DonutHelper.js +70 -71
- package/lib/engine/polarNotation/donut/donut.d.ts +23 -38
- package/lib/engine/polarNotation/donut/donut.js +99 -109
- package/lib/engine/polarNotation/polarManager.d.ts +6 -6
- package/lib/engine/polarNotation/polarManager.js +47 -67
- package/lib/engine/transitionManager.d.ts +14 -13
- package/lib/engine/transitionManager.js +49 -48
- package/lib/engine/twoDimensionalNotation/area/area.d.ts +28 -44
- package/lib/engine/twoDimensionalNotation/area/area.js +238 -272
- package/lib/engine/twoDimensionalNotation/area/areaGenerator.d.ts +5 -13
- package/lib/engine/twoDimensionalNotation/area/areaGenerator.js +13 -13
- package/lib/engine/twoDimensionalNotation/area/areaHelper.d.ts +4 -4
- package/lib/engine/twoDimensionalNotation/area/areaHelper.js +41 -57
- package/lib/engine/twoDimensionalNotation/bar/bar.d.ts +29 -54
- package/lib/engine/twoDimensionalNotation/bar/bar.js +224 -362
- package/lib/engine/twoDimensionalNotation/bar/barHelper.d.ts +32 -71
- package/lib/engine/twoDimensionalNotation/bar/barHelper.js +126 -162
- package/lib/engine/twoDimensionalNotation/bar/stackedData/dataStacker.d.ts +6 -6
- package/lib/engine/twoDimensionalNotation/bar/stackedData/dataStacker.js +24 -24
- package/lib/engine/twoDimensionalNotation/bar/stackedData/dataStackerService.d.ts +2 -2
- package/lib/engine/twoDimensionalNotation/bar/stackedData/dataStackerService.js +17 -16
- package/lib/engine/twoDimensionalNotation/dot/dotChart.d.ts +23 -23
- package/lib/engine/twoDimensionalNotation/dot/dotChart.js +114 -135
- package/lib/engine/twoDimensionalNotation/line/line.d.ts +16 -37
- package/lib/engine/twoDimensionalNotation/line/line.js +132 -162
- package/lib/engine/twoDimensionalNotation/line/lineBuilder.d.ts +11 -14
- package/lib/engine/twoDimensionalNotation/line/lineBuilder.js +48 -47
- package/lib/engine/twoDimensionalNotation/line/lineGenerator.d.ts +4 -4
- package/lib/engine/twoDimensionalNotation/line/lineGenerator.js +8 -8
- package/lib/engine/twoDimensionalNotation/line/lineHelper.d.ts +6 -12
- package/lib/engine/twoDimensionalNotation/line/lineHelper.js +60 -76
- package/lib/engine/twoDimensionalNotation/lineLike/generatorFactory/lineLikeGeneratorFactory.d.ts +6 -6
- package/lib/engine/twoDimensionalNotation/lineLike/generatorMiddleware/lineLikeGeneratorCurveMiddleware.d.ts +5 -5
- package/lib/engine/twoDimensionalNotation/lineLike/generatorMiddleware/lineLikeGeneratorCurveMiddleware.js +17 -16
- package/lib/engine/twoDimensionalNotation/lineLike/generatorMiddleware/lineLikeGeneratorDefineMiddleware.d.ts +10 -11
- package/lib/engine/twoDimensionalNotation/lineLike/generatorMiddleware/lineLikeGeneratorDefineMiddleware.js +7 -9
- package/lib/engine/twoDimensionalNotation/lineLike/generatorMiddleware/lineLikeGeneratorMiddleware.d.ts +1 -3
- package/lib/engine/twoDimensionalNotation/twoDimensionalManager.d.ts +10 -10
- package/lib/engine/twoDimensionalNotation/twoDimensionalManager.js +138 -253
- package/lib/engine/valueFormatter.d.ts +3 -3
- package/lib/engine/valueFormatter.js +6 -6
- package/lib/main.d.ts +79 -82
- package/lib/main.js +84 -79
- package/lib/model/EventEmitter.d.ts +8 -8
- package/lib/model/EventEmitter.js +24 -24
- package/lib/model/chartStyleModel/chartStyleModel.d.ts +5 -5
- package/lib/model/chartStyleModel/chartStyleModel.js +25 -27
- package/lib/model/chartStyleModel/colorRange.d.ts +3 -3
- package/lib/model/chartStyleModel/colorRange.js +24 -19
- package/lib/model/chartStyleModel/twoDimensionalChartStyleModel.d.ts +12 -22
- package/lib/model/chartStyleModel/twoDimensionalChartStyleModel.js +60 -69
- package/lib/model/configsValidator/configValidator.d.ts +1 -1
- package/lib/model/configsValidator/configValidator.js +4 -4
- package/lib/model/dataManagerModel/dataManagerModel.d.ts +26 -36
- package/lib/model/dataManagerModel/dataManagerModel.js +128 -179
- package/lib/model/dataManagerModel/dataManagerModelService.d.ts +2 -2
- package/lib/model/dataManagerModel/dataManagerModelService.js +26 -25
- package/lib/model/featuresModel/axisModel.d.ts +18 -69
- package/lib/model/featuresModel/axisModel.js +169 -224
- package/lib/model/featuresModel/axisModelService.d.ts +6 -10
- package/lib/model/featuresModel/axisModelService.js +27 -27
- package/lib/model/featuresModel/legendModel/legendCanvasModel.d.ts +11 -16
- package/lib/model/featuresModel/legendModel/legendCanvasModel.js +59 -55
- package/lib/model/featuresModel/legendModel/legendModel.d.ts +3 -7
- package/lib/model/featuresModel/legendModel/legendModel.js +41 -59
- package/lib/model/featuresModel/legendModel/polarMarginCalculator.d.ts +3 -8
- package/lib/model/featuresModel/legendModel/polarMarginCalculator.js +20 -18
- package/lib/model/featuresModel/legendModel/twoDimLegendModel.d.ts +4 -8
- package/lib/model/featuresModel/legendModel/twoDimLegendModel.js +27 -40
- package/lib/model/featuresModel/otherComponents.d.ts +4 -7
- package/lib/model/featuresModel/otherComponents.js +9 -9
- package/lib/model/featuresModel/recordOverflowModel/recordOverflowModel.d.ts +4 -0
- package/lib/model/featuresModel/recordOverflowModel/recordOverflowModel.js +33 -0
- package/lib/model/featuresModel/scaleModel/scaleAxisRecalcer.d.ts +6 -6
- package/lib/model/featuresModel/scaleModel/scaleAxisRecalcer.js +23 -27
- package/lib/model/featuresModel/scaleModel/scaleDomainService.d.ts +5 -19
- package/lib/model/featuresModel/scaleModel/scaleDomainService.js +55 -44
- package/lib/model/featuresModel/scaleModel/scaleModel.d.ts +10 -10
- package/lib/model/featuresModel/scaleModel/scaleModel.js +50 -61
- package/lib/model/featuresModel/scaleModel/scaleModelServices.js +22 -15
- package/lib/model/featuresModel/titleModel.d.ts +1 -1
- package/lib/model/featuresModel/titleModel.js +14 -14
- package/lib/model/featuresModel/tooltipModel.d.ts +1 -1
- package/lib/model/featuresModel/tooltipModel.js +5 -5
- package/lib/model/featuresModel/valueLabelsModel/valueLabelsModel.d.ts +11 -23
- package/lib/model/featuresModel/valueLabelsModel/valueLabelsModel.js +51 -53
- package/lib/model/helpers/modelHelper.d.ts +7 -7
- package/lib/model/helpers/modelHelper.js +42 -38
- package/lib/model/helpers/twoDimensionalModelHelper.d.ts +9 -37
- package/lib/model/helpers/twoDimensionalModelHelper.js +125 -147
- package/lib/model/helpers/unitsFromConfigReader.js +4 -4
- package/lib/model/helpers/unitsReader.d.ts +2 -2
- package/lib/model/helpers/unitsReader.js +13 -11
- package/lib/model/margin/marginModel.d.ts +7 -7
- package/lib/model/margin/marginModel.js +20 -23
- package/lib/model/margin/twoDim/twoDimMarginModel.d.ts +13 -13
- package/lib/model/margin/twoDim/twoDimMarginModel.js +113 -184
- package/lib/model/model.d.ts +284 -315
- package/lib/model/model.js +4 -4
- package/lib/model/modelBuilder.d.ts +18 -27
- package/lib/model/modelBuilder.js +79 -85
- package/lib/model/modelInstance/canvasModel/canvasModel.d.ts +17 -17
- package/lib/model/modelInstance/canvasModel/canvasModel.js +43 -42
- package/lib/model/modelInstance/canvasModel/canvasSizesModel/canvasMarginModel.d.ts +7 -7
- package/lib/model/modelInstance/canvasModel/canvasSizesModel/canvasSizeModel.d.ts +2 -2
- package/lib/model/modelInstance/canvasModel/canvasSizesModel/marginModelService.d.ts +6 -6
- package/lib/model/modelInstance/canvasModel/canvasSizesModel/marginModelService.js +24 -24
- package/lib/model/modelInstance/canvasModel/legendCanvasModel.d.ts +4 -4
- package/lib/model/modelInstance/canvasModel/legendCanvasModel.js +11 -11
- package/lib/model/modelInstance/canvasModel/titleCanvas.d.ts +4 -4
- package/lib/model/modelInstance/canvasModel/titleCanvas.js +9 -9
- package/lib/model/modelInstance/chartBlockVersion/chartBlockVersion.d.ts +3 -3
- package/lib/model/modelInstance/chartBlockVersion/chartBlockVersion.js +6 -6
- package/lib/model/modelInstance/configReader.d.ts +23 -32
- package/lib/model/modelInstance/configReader.js +94 -125
- package/lib/model/modelInstance/dataModel/dataModel.d.ts +10 -10
- package/lib/model/modelInstance/dataModel/dataModel.js +25 -25
- package/lib/model/modelInstance/dataModel/dataRepository.d.ts +14 -14
- package/lib/model/modelInstance/dataModel/dataRepository.js +42 -42
- package/lib/model/modelInstance/modelInstance.d.ts +6 -11
- package/lib/model/modelInstance/modelInstance.js +16 -16
- package/lib/model/modelInstance/titleConfigReader.d.ts +8 -8
- package/lib/model/modelInstance/titleConfigReader.js +30 -37
- package/lib/model/notations/polar/donut/donutAggregatorService.d.ts +6 -9
- package/lib/model/notations/polar/donut/donutAggregatorService.js +37 -40
- package/lib/model/notations/polar/donut/donutModel.d.ts +5 -9
- package/lib/model/notations/polar/donut/donutModel.js +28 -28
- package/lib/model/notations/polar/donut/donutThicknessService.d.ts +3 -3
- package/lib/model/notations/polar/donut/donutThicknessService.js +15 -13
- package/lib/model/notations/polar/polarModel.d.ts +7 -18
- package/lib/model/notations/polar/polarModel.js +72 -79
- package/lib/model/notations/twoDimensional/styles.d.ts +7 -44
- package/lib/model/notations/twoDimensional/styles.js +125 -234
- package/lib/model/notations/twoDimensionalModel.d.ts +13 -23
- package/lib/model/notations/twoDimensionalModel.js +170 -330
- package/lib/optionsServices/publicOptionsService.d.ts +1 -1
- package/lib/optionsServices/publicOptionsService.js +4 -4
- package/lib/optionsServices/validators/sizeValidator.d.ts +2 -2
- package/lib/optionsServices/validators/sizeValidator.js +11 -10
- package/lib/style/charts-main.css +151 -150
- package/lib/style/charts-main.less +151 -150
- package/package.json +1 -1
- package/lib/engine/polarNotation/extenders/polarRecordOverflowAlert.d.ts +0 -15
- package/lib/engine/polarNotation/extenders/polarRecordOverflowAlert.js +0 -40
- package/lib/engine/twoDimensionalNotation/extenders/twoDimRecordOverflowAlert.d.ts +0 -15
- package/lib/engine/twoDimensionalNotation/extenders/twoDimRecordOverflowAlert.js +0 -32
|
@@ -3,42 +3,32 @@ import { DesignerConfig } from "../../designer/designerConfig";
|
|
|
3
3
|
import { LegendBlockModel } from "../model";
|
|
4
4
|
import { ModelInstance } from "../modelInstance/modelInstance";
|
|
5
5
|
export interface DataLegendParams {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
amount: number;
|
|
7
|
+
size: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
11
|
}
|
|
12
12
|
export declare class DataManagerModel {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Выводит количество элементов (преимущественно баров) в одной группе. Группа - один ключ
|
|
36
|
-
* @param configOptions
|
|
37
|
-
* @param chartsLength
|
|
38
|
-
*/
|
|
39
|
-
private static getElementsInGroupAmount;
|
|
40
|
-
private static getBarLikeChartsInGroupAmount;
|
|
41
|
-
private static getScopedData;
|
|
42
|
-
private static getScopedChartData;
|
|
43
|
-
private static getDataLimitByItemSize;
|
|
13
|
+
private static service;
|
|
14
|
+
private static polarMarginCalculator;
|
|
15
|
+
static getPreparedData(data: MdtChartsDataSource, allowableKeys: string[], config: MdtChartsConfig): MdtChartsDataSource;
|
|
16
|
+
static initDataScope(config: MdtChartsConfig, data: MdtChartsDataSource, designerConfig: DesignerConfig, legendBlock: LegendBlockModel, modelInstance: ModelInstance): void;
|
|
17
|
+
private static initScopedData;
|
|
18
|
+
static getDataValuesByKeyField(data: MdtChartsDataSource, dataSourceName: string, keyFieldName: string): string[];
|
|
19
|
+
private static initDataScopeFor2D;
|
|
20
|
+
private static initDataScopeForPolar;
|
|
21
|
+
private static getLegendDataParams;
|
|
22
|
+
private static getMaximumPossibleScope;
|
|
23
|
+
private static limitAllowableKeys;
|
|
24
|
+
/**
|
|
25
|
+
* Выводит количество элементов (преимущественно баров) в одной группе. Группа - один ключ
|
|
26
|
+
* @param configOptions
|
|
27
|
+
* @param chartsLength
|
|
28
|
+
*/
|
|
29
|
+
private static getElementsInGroupAmount;
|
|
30
|
+
private static getBarLikeChartsInGroupAmount;
|
|
31
|
+
private static getScopedData;
|
|
32
|
+
private static getScopedChartData;
|
|
33
|
+
private static getDataLimitByItemSize;
|
|
44
34
|
}
|
|
@@ -6,185 +6,134 @@ import { DataManagerModelService } from "./dataManagerModelService";
|
|
|
6
6
|
import { LegendPolarMarginCalculator } from "../featuresModel/legendModel/polarMarginCalculator";
|
|
7
7
|
import { styledElementValues } from "../modelBuilder";
|
|
8
8
|
export class DataManagerModel {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
static limitAllowableKeys(allowableKeys, hidedRecordsAmount, dataModel) {
|
|
138
|
-
return this.service.limitAllowableKeys(allowableKeys, hidedRecordsAmount, dataModel.getMaxRecordsAmount());
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Выводит количество элементов (преимущественно баров) в одной группе. Группа - один ключ
|
|
142
|
-
* @param configOptions
|
|
143
|
-
* @param chartsLength
|
|
144
|
-
*/
|
|
145
|
-
static getElementsInGroupAmount(configOptions) {
|
|
146
|
-
const bars = this.getBarLikeChartsInGroupAmount(configOptions.charts, "bar");
|
|
147
|
-
const dots = configOptions.charts.some((chart) => chart.type === "dot") ? 1 : 0;
|
|
148
|
-
return Math.max(bars, dots);
|
|
149
|
-
}
|
|
150
|
-
static getBarLikeChartsInGroupAmount(charts, type) {
|
|
151
|
-
let barsAmount = 0;
|
|
152
|
-
charts.forEach((chart) => {
|
|
153
|
-
if (chart.type === type && chart.isSegmented)
|
|
154
|
-
barsAmount += 1; // в сегментированном баре все valueFields находятся внутри одного бара, поэтому бар всегда один.
|
|
155
|
-
else if (chart.type === type) barsAmount += chart.data.valueFields.length;
|
|
156
|
-
});
|
|
157
|
-
return barsAmount;
|
|
158
|
-
}
|
|
159
|
-
static getScopedData(data, allowableKeys, dataOptions) {
|
|
160
|
-
const newData = {};
|
|
161
|
-
newData[dataOptions.dataSource] = this.getScopedChartData(
|
|
162
|
-
data[dataOptions.dataSource],
|
|
163
|
-
allowableKeys,
|
|
164
|
-
dataOptions.keyField.name
|
|
165
|
-
);
|
|
166
|
-
return newData;
|
|
167
|
-
}
|
|
168
|
-
static getScopedChartData(data, allowableKeys, keyFieldName) {
|
|
169
|
-
return data.filter((d) => allowableKeys.findIndex((key) => key === d[keyFieldName]) !== -1);
|
|
170
|
-
}
|
|
171
|
-
static getDataLimitByItemSize(elementsInGroupAmount, dataLength, axisLength, barOptions) {
|
|
172
|
-
let sumSize =
|
|
173
|
-
dataLength *
|
|
174
|
-
(elementsInGroupAmount * barOptions.minBarWidth +
|
|
175
|
-
(elementsInGroupAmount - 1) * barOptions.barDistance +
|
|
176
|
-
barOptions.groupMinDistance);
|
|
177
|
-
while (dataLength !== 0 && axisLength < sumSize) {
|
|
178
|
-
dataLength--;
|
|
179
|
-
// find whole space for bars in group + distance between bars + group distance
|
|
180
|
-
sumSize =
|
|
181
|
-
dataLength *
|
|
182
|
-
(elementsInGroupAmount * barOptions.minBarWidth +
|
|
183
|
-
(elementsInGroupAmount - 1) * barOptions.barDistance +
|
|
184
|
-
barOptions.groupMinDistance);
|
|
185
|
-
}
|
|
186
|
-
return dataLength;
|
|
187
|
-
}
|
|
9
|
+
static getPreparedData(data, allowableKeys, config) {
|
|
10
|
+
const scopedData = this.getScopedData(data, allowableKeys, config.options.data);
|
|
11
|
+
return scopedData;
|
|
12
|
+
}
|
|
13
|
+
static initDataScope(config, data, designerConfig, legendBlock, modelInstance) {
|
|
14
|
+
if (config.options.type === "2d") {
|
|
15
|
+
this.initDataScopeFor2D(config.options, modelInstance, data, designerConfig);
|
|
16
|
+
}
|
|
17
|
+
else if (config.options.type === "polar") {
|
|
18
|
+
this.initDataScopeForPolar(config.options, modelInstance, data, legendBlock, designerConfig.canvas.legendBlock);
|
|
19
|
+
}
|
|
20
|
+
this.initScopedData(data, modelInstance, config);
|
|
21
|
+
}
|
|
22
|
+
static initScopedData(data, modelInstance, config) {
|
|
23
|
+
const preparedData = DataManagerModel.getPreparedData(data, modelInstance.dataModel.getAllowableKeys(), config);
|
|
24
|
+
modelInstance.dataModel.repository.initScopedFullSource(preparedData);
|
|
25
|
+
}
|
|
26
|
+
static getDataValuesByKeyField(data, dataSourceName, keyFieldName) {
|
|
27
|
+
return data[dataSourceName].map((dataRow) => dataRow[keyFieldName]);
|
|
28
|
+
}
|
|
29
|
+
static initDataScopeFor2D(configOptions, modelInstance, data, designerConfig) {
|
|
30
|
+
modelInstance.dataModel.initMaxRecordsAmount(configOptions.data.maxRecordsAmount);
|
|
31
|
+
const axisLength = AxisModel.getAxisLength(configOptions.orientation, modelInstance.canvasModel);
|
|
32
|
+
const uniqueKeys = ModelHelper.getUniqueValues(data[configOptions.data.dataSource].map((d) => d[configOptions.data.keyField.name]));
|
|
33
|
+
const dataLength = uniqueKeys.length;
|
|
34
|
+
const limit = this.getDataLimitByItemSize(this.getElementsInGroupAmount(configOptions), dataLength, axisLength, designerConfig.canvas.chartOptions.bar);
|
|
35
|
+
const allowableKeys = uniqueKeys.slice(0, limit);
|
|
36
|
+
const hidedRecordsAmount = dataLength - allowableKeys.length;
|
|
37
|
+
modelInstance.dataModel.initScope(this.limitAllowableKeys(allowableKeys, hidedRecordsAmount, modelInstance.dataModel));
|
|
38
|
+
}
|
|
39
|
+
static initDataScopeForPolar(configOptions, modelInstance, data, legendBlock, legendCanvas) {
|
|
40
|
+
modelInstance.dataModel.initMaxRecordsAmount(configOptions.data.maxRecordsAmount);
|
|
41
|
+
const canvasModel = modelInstance.canvasModel;
|
|
42
|
+
const keyFieldName = configOptions.data.keyField.name;
|
|
43
|
+
const keys = data[configOptions.data.dataSource].map((dataRow) => dataRow[keyFieldName]);
|
|
44
|
+
if (!configOptions.legend.show) {
|
|
45
|
+
canvasModel.legendCanvas.setPosition("off");
|
|
46
|
+
modelInstance.dataModel.initScope(this.getMaximumPossibleScope(keys, modelInstance.dataModel));
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
let position = PolarModel.getLegendPositionByBlockSize(modelInstance.canvasModel);
|
|
50
|
+
let { amount: maxItemsNumber, size } = this.getLegendDataParams(position, keys, legendCanvas, canvasModel, legendBlock);
|
|
51
|
+
if (position === "right" &&
|
|
52
|
+
!PolarModel.doesChartBlockHasEnoughWidthForContainsLegend(canvasModel.getChartBlockWidth(), size.width, legendBlock.coordinate)) {
|
|
53
|
+
const doesFreeSpaceExist = PolarModel.doesChartBlockHasEnoughHeightForContainsLegend(canvasModel.getChartBlockHeight(), legendBlock.coordinate);
|
|
54
|
+
if (doesFreeSpaceExist) {
|
|
55
|
+
const newParams = this.getLegendDataParams("bottom", keys, legendCanvas, canvasModel, legendBlock);
|
|
56
|
+
position = "bottom";
|
|
57
|
+
maxItemsNumber = newParams.amount;
|
|
58
|
+
size = newParams.size;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//TODO: global refactor of method
|
|
62
|
+
const allowableKeys = keys.slice(0, maxItemsNumber);
|
|
63
|
+
const hidedRecordsAmount = keys.length - maxItemsNumber;
|
|
64
|
+
canvasModel.legendCanvas.setPosition(position);
|
|
65
|
+
this.polarMarginCalculator.updateMargin(position, canvasModel, legendBlock, position === "bottom" ? size.height : size.width);
|
|
66
|
+
modelInstance.dataModel.initScope(this.limitAllowableKeys(allowableKeys, hidedRecordsAmount, modelInstance.dataModel));
|
|
67
|
+
}
|
|
68
|
+
//TODO: position type
|
|
69
|
+
static getLegendDataParams(position, keys, legendCanvas, canvasModel, legendBlock) {
|
|
70
|
+
const legendItemContentOptions = keys.map((k) => ({
|
|
71
|
+
text: k,
|
|
72
|
+
markerSize: styledElementValues.defaultLegendMarkerSizes,
|
|
73
|
+
wrapperSize: { marginRightPx: styledElementValues.legend.inlineDynamicItemWrapperMarginRightPx }
|
|
74
|
+
}));
|
|
75
|
+
if (position === "right") {
|
|
76
|
+
return LegendCanvasModel.findElementsAmountByLegendSize(legendItemContentOptions, position, this.polarMarginCalculator.getMaxLegendWidth(legendCanvas, canvasModel.getBlockSize().width), canvasModel.getChartBlockHeight() - legendBlock.coordinate.right.margin.bottom);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return LegendCanvasModel.findElementsAmountByLegendSize(legendItemContentOptions, position, canvasModel.getChartBlockWidth() -
|
|
80
|
+
legendBlock.coordinate.bottom.margin.left -
|
|
81
|
+
legendBlock.coordinate.bottom.margin.right, canvasModel.getChartBlockHeight() -
|
|
82
|
+
legendBlock.coordinate.bottom.margin.bottom -
|
|
83
|
+
legendBlock.coordinate.bottom.margin.top -
|
|
84
|
+
MIN_DONUT_BLOCK_SIZE);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
static getMaximumPossibleScope(keys, dataModel) {
|
|
88
|
+
return this.service.getMaximumPossibleAmount(keys, dataModel.getMaxRecordsAmount());
|
|
89
|
+
}
|
|
90
|
+
static limitAllowableKeys(allowableKeys, hidedRecordsAmount, dataModel) {
|
|
91
|
+
return this.service.limitAllowableKeys(allowableKeys, hidedRecordsAmount, dataModel.getMaxRecordsAmount());
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Выводит количество элементов (преимущественно баров) в одной группе. Группа - один ключ
|
|
95
|
+
* @param configOptions
|
|
96
|
+
* @param chartsLength
|
|
97
|
+
*/
|
|
98
|
+
static getElementsInGroupAmount(configOptions) {
|
|
99
|
+
const bars = this.getBarLikeChartsInGroupAmount(configOptions.charts, "bar");
|
|
100
|
+
const dots = configOptions.charts.some((chart) => chart.type === "dot") ? 1 : 0;
|
|
101
|
+
return Math.max(bars, dots);
|
|
102
|
+
}
|
|
103
|
+
static getBarLikeChartsInGroupAmount(charts, type) {
|
|
104
|
+
let barsAmount = 0;
|
|
105
|
+
charts.forEach((chart) => {
|
|
106
|
+
if (chart.type === type && chart.isSegmented)
|
|
107
|
+
barsAmount += 1; // в сегментированном баре все valueFields находятся внутри одного бара, поэтому бар всегда один.
|
|
108
|
+
else if (chart.type === type)
|
|
109
|
+
barsAmount += chart.data.valueFields.length;
|
|
110
|
+
});
|
|
111
|
+
return barsAmount;
|
|
112
|
+
}
|
|
113
|
+
static getScopedData(data, allowableKeys, dataOptions) {
|
|
114
|
+
const newData = {};
|
|
115
|
+
newData[dataOptions.dataSource] = this.getScopedChartData(data[dataOptions.dataSource], allowableKeys, dataOptions.keyField.name);
|
|
116
|
+
return newData;
|
|
117
|
+
}
|
|
118
|
+
static getScopedChartData(data, allowableKeys, keyFieldName) {
|
|
119
|
+
return data.filter((d) => allowableKeys.findIndex((key) => key === d[keyFieldName]) !== -1);
|
|
120
|
+
}
|
|
121
|
+
static getDataLimitByItemSize(elementsInGroupAmount, dataLength, axisLength, barOptions) {
|
|
122
|
+
let sumSize = dataLength *
|
|
123
|
+
(elementsInGroupAmount * barOptions.minBarWidth +
|
|
124
|
+
(elementsInGroupAmount - 1) * barOptions.barDistance +
|
|
125
|
+
barOptions.groupMinDistance);
|
|
126
|
+
while (dataLength !== 0 && axisLength < sumSize) {
|
|
127
|
+
dataLength--;
|
|
128
|
+
// find whole space for bars in group + distance between bars + group distance
|
|
129
|
+
sumSize =
|
|
130
|
+
dataLength *
|
|
131
|
+
(elementsInGroupAmount * barOptions.minBarWidth +
|
|
132
|
+
(elementsInGroupAmount - 1) * barOptions.barDistance +
|
|
133
|
+
barOptions.groupMinDistance);
|
|
134
|
+
}
|
|
135
|
+
return dataLength;
|
|
136
|
+
}
|
|
188
137
|
}
|
|
189
138
|
DataManagerModel.service = new DataManagerModelService();
|
|
190
139
|
DataManagerModel.polarMarginCalculator = new LegendPolarMarginCalculator();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataScope } from "../model";
|
|
2
2
|
export declare class DataManagerModelService {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
getMaximumPossibleAmount(keys: string[], maxPossibleAmount: number): DataScope;
|
|
4
|
+
limitAllowableKeys(allowableKeys: string[], hidedRecordsAmount: number, globalRecordsMaxAmount: number): DataScope;
|
|
5
5
|
}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
export class DataManagerModelService {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
getMaximumPossibleAmount(keys, maxPossibleAmount) {
|
|
3
|
+
if (maxPossibleAmount >= keys.length) {
|
|
4
|
+
return {
|
|
5
|
+
allowableKeys: keys,
|
|
6
|
+
hidedRecordsAmount: 0
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
return {
|
|
11
|
+
allowableKeys: keys.slice(0, maxPossibleAmount),
|
|
12
|
+
hidedRecordsAmount: keys.length - maxPossibleAmount
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
limitAllowableKeys(allowableKeys, hidedRecordsAmount, globalRecordsMaxAmount) {
|
|
17
|
+
if (allowableKeys.length <= globalRecordsMaxAmount) {
|
|
18
|
+
return {
|
|
19
|
+
allowableKeys,
|
|
20
|
+
hidedRecordsAmount
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
allowableKeys: allowableKeys.slice(0, globalRecordsMaxAmount),
|
|
25
|
+
hidedRecordsAmount: hidedRecordsAmount + allowableKeys.length - globalRecordsMaxAmount
|
|
26
|
+
};
|
|
27
|
+
}
|
|
27
28
|
}
|
|
@@ -1,80 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AxisPosition,
|
|
3
|
-
ChartOrientation,
|
|
4
|
-
MdtChartsDataSource,
|
|
5
|
-
NumberAxisOptions,
|
|
6
|
-
AxisLabelPosition,
|
|
7
|
-
MdtChartsTwoDimensionalOptions,
|
|
8
|
-
DiscreteAxisOptions,
|
|
9
|
-
NumberSecondaryAxisOptions,
|
|
10
|
-
AxisLabelFormatter
|
|
11
|
-
} from "../../config/config";
|
|
1
|
+
import { AxisPosition, ChartOrientation, MdtChartsDataSource, NumberAxisOptions, AxisLabelPosition, MdtChartsTwoDimensionalOptions, DiscreteAxisOptions, NumberSecondaryAxisOptions, AxisLabelFormatter } from "../../config/config";
|
|
12
2
|
import { AxisModelOptions, Orient, ScaleValueModel, TickAmountPolicy } from "../model";
|
|
13
3
|
import { AxisType } from "../modelBuilder";
|
|
14
4
|
import { AxisLabelCanvas, TooltipSettings } from "../../designer/designerConfig";
|
|
15
5
|
import { CanvasModel } from "../modelInstance/canvasModel/canvasModel";
|
|
16
6
|
export interface LabelSize {
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
19
9
|
}
|
|
20
10
|
export declare const MINIMAL_VERTICAL_STEP_SIZE = 60;
|
|
21
11
|
export declare const MINIMAL_HORIZONTAL_STEP_SIZE = 100;
|
|
22
12
|
export declare const LABEL_ELEMENT_HEIGHT_PX = 17;
|
|
23
13
|
export declare class AxisModel {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
canvasModel: CanvasModel,
|
|
40
|
-
scaleInfo: ScaleValueModel
|
|
41
|
-
): AxisModelOptions;
|
|
42
|
-
static getSecondaryValueAxis(
|
|
43
|
-
defaultFormatter: AxisLabelFormatter,
|
|
44
|
-
orient: ChartOrientation,
|
|
45
|
-
mainAxisPosition: AxisPosition,
|
|
46
|
-
axisConfig: NumberSecondaryAxisOptions,
|
|
47
|
-
labelConfig: AxisLabelCanvas,
|
|
48
|
-
canvasModel: CanvasModel,
|
|
49
|
-
scaleInfo: ScaleValueModel
|
|
50
|
-
): AxisModelOptions;
|
|
51
|
-
private static getValueAxis;
|
|
52
|
-
static getAxisLength(chartOrientation: ChartOrientation, canvasModel: CanvasModel): number;
|
|
53
|
-
static getAxisOrient(axisType: AxisType, chartOrientation: ChartOrientation, axisPosition: AxisPosition): Orient;
|
|
54
|
-
static getAxisTranslateX(
|
|
55
|
-
axisType: AxisType,
|
|
56
|
-
chartOrientation: ChartOrientation,
|
|
57
|
-
axisPosition: AxisPosition,
|
|
58
|
-
canvasModel: CanvasModel
|
|
59
|
-
): number;
|
|
60
|
-
static getAxisTranslateY(
|
|
61
|
-
axisType: AxisType,
|
|
62
|
-
chartOrientation: ChartOrientation,
|
|
63
|
-
axisPosition: AxisPosition,
|
|
64
|
-
canvasModel: CanvasModel
|
|
65
|
-
): number;
|
|
66
|
-
static getKeyAxisLabelPosition(
|
|
67
|
-
canvasModel: CanvasModel,
|
|
68
|
-
scopedDataLength: number,
|
|
69
|
-
axisConfig?: DiscreteAxisOptions
|
|
70
|
-
): AxisLabelPosition;
|
|
71
|
-
static getLabelSize(labelMaxWidth: number, labelTexts: string[]): LabelSize;
|
|
72
|
-
static getRoundValue(value: number): number;
|
|
73
|
-
static getTickAmountPolicy(
|
|
74
|
-
orient: ChartOrientation,
|
|
75
|
-
axisConfig: NumberAxisOptions | NumberSecondaryAxisOptions,
|
|
76
|
-
scaleInfo: ScaleValueModel
|
|
77
|
-
): TickAmountPolicy;
|
|
78
|
-
private static getKeyAxisTranslateModel;
|
|
79
|
-
private static getTickStep;
|
|
14
|
+
private static service;
|
|
15
|
+
static getKeyAxis(options: MdtChartsTwoDimensionalOptions, data: MdtChartsDataSource, labelConfig: AxisLabelCanvas, canvasModel: CanvasModel, tooltipSettings: TooltipSettings, getZeroCoordinate?: () => number): AxisModelOptions;
|
|
16
|
+
static getMainValueAxis(defaultFormatter: AxisLabelFormatter, orient: ChartOrientation, position: AxisPosition, axisConfig: NumberAxisOptions, labelConfig: AxisLabelCanvas, canvasModel: CanvasModel, scaleInfo: ScaleValueModel): AxisModelOptions;
|
|
17
|
+
static getSecondaryValueAxis(defaultFormatter: AxisLabelFormatter, orient: ChartOrientation, mainAxisPosition: AxisPosition, axisConfig: NumberSecondaryAxisOptions, labelConfig: AxisLabelCanvas, canvasModel: CanvasModel, scaleInfo: ScaleValueModel): AxisModelOptions;
|
|
18
|
+
private static getValueAxis;
|
|
19
|
+
static getAxisLength(chartOrientation: ChartOrientation, canvasModel: CanvasModel): number;
|
|
20
|
+
static getAxisOrient(axisType: AxisType, chartOrientation: ChartOrientation, axisPosition: AxisPosition): Orient;
|
|
21
|
+
static getAxisTranslateX(axisType: AxisType, chartOrientation: ChartOrientation, axisPosition: AxisPosition, canvasModel: CanvasModel): number;
|
|
22
|
+
static getAxisTranslateY(axisType: AxisType, chartOrientation: ChartOrientation, axisPosition: AxisPosition, canvasModel: CanvasModel): number;
|
|
23
|
+
static getKeyAxisLabelPosition(canvasModel: CanvasModel, scopedDataLength: number, axisConfig?: DiscreteAxisOptions): AxisLabelPosition;
|
|
24
|
+
static getLabelSize(labelMaxWidth: number, labelTexts: string[]): LabelSize;
|
|
25
|
+
static getRoundValue(value: number): number;
|
|
26
|
+
static getTickAmountPolicy(orient: ChartOrientation, axisConfig: NumberAxisOptions | NumberSecondaryAxisOptions, scaleInfo: ScaleValueModel): TickAmountPolicy;
|
|
27
|
+
private static getKeyAxisTranslateModel;
|
|
28
|
+
private static getTickStep;
|
|
80
29
|
}
|