/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { HierarchyBaseEdgeInfo, HierarchyBaseNodeInfo, HierarchyGraphDef, HierarchyGraphEdgeDef, HierarchyGraphNodeDef, HierarchyGraphNodeInfo, HierarchyGraphOption } from '@nx-component/hierarchy-graph'; import { LayoutSetting } from '@nx-component/hierarchy-graph/dist/types'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; export interface NzGraphDataDef extends HierarchyGraphDef { nodes: NzGraphNodeDef[]; edges: NzGraphEdgeDef[]; } export interface NzGraphNodeDef extends HierarchyGraphNodeDef { label?: string; } export interface NzGraphEdgeDef extends HierarchyGraphEdgeDef { label?: string; } export interface NzGraphOption extends HierarchyGraphOption { } export declare type NzRankDirection = 'TB' | 'BT' | 'LR' | 'RL'; export interface NzGraphGroupNode extends HierarchyGraphNodeInfo { nodes: Array; edges: NzGraphEdge[]; [key: string]: NzSafeAny; } export interface NzGraphNode extends HierarchyBaseNodeInfo { id: NzSafeAny; name: NzSafeAny; label?: string; [key: string]: NzSafeAny; } export interface NzGraphEdge extends HierarchyBaseEdgeInfo { id: NzSafeAny; v: NzSafeAny; w: NzSafeAny; label?: string; } export interface NzLayoutSetting extends LayoutSetting { } export declare function nzTypeDefinition(): (item: unknown) => T; export declare type NzDeepPartial = { [P in keyof T]?: T[P] extends Array ? Array> : T[P] extends ReadonlyArray ? ReadonlyArray> : NzDeepPartial; }; export declare type NzGraphLayoutSetting = NzDeepPartial; export declare const NZ_GRAPH_LAYOUT_SETTING: NzLayoutSetting; export interface NzZoomTransform { x: number; y: number; k: number; } export interface RelativePositionInfo { topLeft: { x: number; y: number; }; bottomRight: { x: number; y: number; }; }