mdt-charts 1.11.0 → 1.11.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
CHANGED
|
@@ -16,7 +16,7 @@ export interface MdtChartsDataSource {
|
|
|
16
16
|
}
|
|
17
17
|
export interface MdtChartsConfig {
|
|
18
18
|
canvas: ChartBlockCanvas;
|
|
19
|
-
options:
|
|
19
|
+
options: MdtChartsPolarOptions | MdtChartsTwoDimensionalOptions | IntervalOptions;
|
|
20
20
|
}
|
|
21
21
|
export interface ChartBlockCanvas {
|
|
22
22
|
size: Size;
|
|
@@ -37,14 +37,14 @@ interface Options {
|
|
|
37
37
|
selectable: boolean;
|
|
38
38
|
tooltip?: TooltipOptions;
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
40
|
+
export interface MdtChartsTwoDimensionalOptions extends Options {
|
|
41
41
|
type: '2d';
|
|
42
42
|
axis: TwoDimensionalAxis;
|
|
43
43
|
additionalElements: AdditionalElements;
|
|
44
44
|
charts: TwoDimensionalChart[];
|
|
45
45
|
orientation: ChartOrientation;
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
47
|
+
export interface MdtChartsPolarOptions extends Options {
|
|
48
48
|
type: 'polar';
|
|
49
49
|
chart: PolarChart;
|
|
50
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScaleKeyModel, ScaleKeyType, ScaleValueModel, ScaleValueType } from "../model";
|
|
2
|
-
import { AxisPosition, NumberDomain, IntervalChart, TwoDimensionalChart,
|
|
2
|
+
import { AxisPosition, NumberDomain, IntervalChart, TwoDimensionalChart, MdtChartsTwoDimensionalOptions, ChartOrientation, MdtChartsDataSource } from "../../config/config";
|
|
3
3
|
import { CanvasModel } from "../modelInstance/canvasModel/canvasModel";
|
|
4
4
|
export declare enum ScaleType {
|
|
5
5
|
Key = 0,
|
|
@@ -7,10 +7,10 @@ export declare enum ScaleType {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class ScaleModel {
|
|
9
9
|
static getScaleKey(allowableKeys: string[], orient: ChartOrientation, canvasModel: CanvasModel, charts: TwoDimensionalChart[], barCharts: TwoDimensionalChart[]): ScaleKeyModel;
|
|
10
|
-
static getScaleLinear(options:
|
|
10
|
+
static getScaleLinear(options: MdtChartsTwoDimensionalOptions, data: MdtChartsDataSource, canvasModel: CanvasModel): ScaleValueModel;
|
|
11
11
|
static getRangePeek(scaleType: ScaleType, chartOrientation: string, canvasModel: CanvasModel): number;
|
|
12
12
|
static getDateValueDomain(data: MdtChartsDataSource, chart: IntervalChart, keyAxisPosition: AxisPosition, dataSource: string): [Date, Date];
|
|
13
|
-
static getLinearDomain(configDomain: NumberDomain, data: MdtChartsDataSource, configOptions:
|
|
13
|
+
static getLinearDomain(configDomain: NumberDomain, data: MdtChartsDataSource, configOptions: MdtChartsTwoDimensionalOptions): [number, number];
|
|
14
14
|
static getScaleKeyType(charts: TwoDimensionalChart[]): ScaleKeyType;
|
|
15
15
|
static getScaleValueType(charts: TwoDimensionalChart[] | IntervalChart[]): ScaleValueType;
|
|
16
16
|
static getElementsAmount(barCharts: TwoDimensionalChart[]): number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MdtChartsDataSource,
|
|
1
|
+
import { MdtChartsDataSource, MdtChartsPolarOptions } from "../../config/config";
|
|
2
2
|
import { DesignerConfig } from "../../designer/designerConfig";
|
|
3
3
|
import { PolarOptionsModel } from "../model";
|
|
4
4
|
import { ModelInstance } from "../modelInstance/modelInstance";
|
|
5
5
|
export declare class PolarModel {
|
|
6
|
-
static getOptions(options:
|
|
6
|
+
static getOptions(options: MdtChartsPolarOptions, data: MdtChartsDataSource, designerConfig: DesignerConfig, modelInstance: ModelInstance): PolarOptionsModel;
|
|
7
7
|
private static getDonutSettings;
|
|
8
8
|
private static getChartsModel;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChartOrientation, MdtChartsDataSource, TwoDimensionalChart,
|
|
1
|
+
import { ChartOrientation, MdtChartsDataSource, TwoDimensionalChart, MdtChartsTwoDimensionalOptions } from "../../config/config";
|
|
2
2
|
import { BarOptionsCanvas, DesignerConfig } from "../../designer/designerConfig";
|
|
3
3
|
import { DataScope, TwoDimensionalOptionsModel, TwoDimChartElementsSettings } from "../model";
|
|
4
4
|
import { ModelInstance } from "../modelInstance/modelInstance";
|
|
5
5
|
export declare class TwoDimensionalModel {
|
|
6
|
-
static getOptions(options:
|
|
6
|
+
static getOptions(options: MdtChartsTwoDimensionalOptions, designerConfig: DesignerConfig, dataScope: DataScope, data: MdtChartsDataSource, modelInstance: ModelInstance): TwoDimensionalOptionsModel;
|
|
7
7
|
static getChartsEmbeddedLabelsFlag(charts: TwoDimensionalChart[], chartOrientation: ChartOrientation): boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Сортирует список чартов в порядке: area - bar - line.
|