@visactor/vchart-types 1.6.3 → 1.6.4
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/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/chart/base-chart.d.ts +1 -1
- package/types/component/axis/cartesian/axis.d.ts +3 -0
- package/types/component/legend/base-legend.d.ts +1 -1
- package/types/component/legend/continuous/legend.d.ts +1 -1
- package/types/data/transforms/sankey.d.ts +3 -6
- package/types/series/sankey/sankey.d.ts +6 -1
|
@@ -82,7 +82,7 @@ export declare class BaseChart extends CompilableBase implements IChart {
|
|
|
82
82
|
onLayoutStart(option: IChartLayoutOption): void;
|
|
83
83
|
onLayoutEnd(option: IChartLayoutOption): void;
|
|
84
84
|
onEvaluateEnd(option: IChartEvaluateOption): void;
|
|
85
|
-
getLayoutElements(): (
|
|
85
|
+
getLayoutElements(): (ISeries | IComponent | IRegion)[];
|
|
86
86
|
getRegionsInIndex: (index?: number[]) => IRegion[];
|
|
87
87
|
getAllRegions: () => IRegion[];
|
|
88
88
|
getRegionsInIds: (ids: number[]) => IRegion[];
|
|
@@ -34,6 +34,9 @@ export declare abstract class CartesianAxis<T extends ICartesianAxisCommonSpec =
|
|
|
34
34
|
getOrient(): IOrientType;
|
|
35
35
|
get layoutOrient(): IOrientType;
|
|
36
36
|
set layoutOrient(v: IOrientType);
|
|
37
|
+
protected _autoIndentOnce: boolean;
|
|
38
|
+
protected _hasAutoIndent: boolean;
|
|
39
|
+
set autoIndentOnce(v: boolean);
|
|
37
40
|
protected _scales: IBaseScale[];
|
|
38
41
|
getScales(): IBaseScale[];
|
|
39
42
|
protected _theme: ICartesianAxisCommonTheme;
|
|
@@ -16,7 +16,7 @@ export declare abstract class BaseLegend<T extends ILegendCommonSpec> extends Ba
|
|
|
16
16
|
protected _visible: boolean;
|
|
17
17
|
get visible(): boolean;
|
|
18
18
|
protected _position: 'start' | 'middle' | 'end';
|
|
19
|
-
get position(): "
|
|
19
|
+
get position(): "start" | "middle" | "end";
|
|
20
20
|
get layoutOrient(): IOrientType;
|
|
21
21
|
set layoutOrient(v: IOrientType);
|
|
22
22
|
protected _legendData: CompilableData;
|
|
@@ -12,7 +12,7 @@ export declare class ContinuousLegend<T extends IColorLegendSpec | ISizeLegendSp
|
|
|
12
12
|
protected _theme: IColorLegendTheme;
|
|
13
13
|
private _field;
|
|
14
14
|
private _legendType;
|
|
15
|
-
static createComponent(spec: any, options: IComponentOption): ContinuousLegend<any
|
|
15
|
+
static createComponent(spec: any, options: IComponentOption): ILegend[] | ContinuousLegend<any>;
|
|
16
16
|
constructor(spec: T, options: IComponentOption);
|
|
17
17
|
setAttrFromSpec(): void;
|
|
18
18
|
init(option: IModelInitOption): void;
|
|
@@ -10,12 +10,9 @@ export interface ISankeyOpt extends SankeyOptions {
|
|
|
10
10
|
y1: number;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} | {
|
|
17
|
-
nodes: import("@visactor/vgrammar-sankey").HierarchyNodeDatum[];
|
|
18
|
-
} | {
|
|
13
|
+
export declare const collectHierarchyField: (set: Set<any>, data: any[], field: string) => void;
|
|
14
|
+
export declare const sankeyFormat: (data: any[]) => SankeyData[];
|
|
15
|
+
export declare const sankeyLayout: (data: SankeyData[], op: ISankeyOpt) => {
|
|
19
16
|
nodes: import("@visactor/vgrammar-sankey").SankeyNodeElement[];
|
|
20
17
|
links: import("@visactor/vgrammar-sankey").SankeyLinkElement[];
|
|
21
18
|
columns: import("@visactor/vgrammar-sankey").SankeyNodeElement[][];
|
|
@@ -53,7 +53,12 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
53
53
|
extractNamesFromTree(tree: any, categoryName: string): Set<unknown>;
|
|
54
54
|
getDimensionField(): string[];
|
|
55
55
|
getMeasureField(): string[];
|
|
56
|
-
|
|
56
|
+
getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
|
|
57
|
+
values?: any[];
|
|
58
|
+
min?: number;
|
|
59
|
+
max?: number;
|
|
60
|
+
};
|
|
61
|
+
private _collectByField;
|
|
57
62
|
onLayoutEnd(ctx: any): void;
|
|
58
63
|
getDefaultShapeType(): string;
|
|
59
64
|
protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
|