import { ChartStyle } from '@shujujiang/schemas/widget/style'; import { ItemStyle } from '@shujujiang/schemas/widget/style/item'; import { LabelTextStyle } from '@shujujiang/schemas/widget/style/label'; import { ShadowStyle } from '@shujujiang/schemas/widget/style/shadow'; import { Spacing } from '@shujujiang/schemas/widget/style/spacing'; import { TooltipBase } from '@shujujiang/schemas/widget/style/tooltip'; export declare class Sankey { /** * 控制节点拖拽的交互,默认开启 * @title 允许节点拖拽 * @order 0 */ draggable?: boolean; /** * 距离左侧位置 * @title 左侧位置 * @order 1 */ left?: number | string; /** * 距离右侧位置 * @title 右侧位置 * @order 2 */ right?: number | string; /** * 距离顶部位置 * @title 顶部位置 * @order 3 */ top?: number | string; /** * 距离底部位置 * @title 底部位置 * @order 4 */ bottom?: number | string; /** * 节点的宽度 * @title 节点宽度 * @order 10 */ nodeWidth?: number; /** * 节点的间隙 * @title 节点间隙 * @order 20 */ nodeGap?: number; /** * 桑基图中节点的对齐方式,默认是双端对齐,可以设置为左对齐或右对齐 * @title 对齐方式 * @order 30 */ nodeAlign?: 'left' | 'right' | 'justify'; /** * 桑基图中节点的布局方向,可以是水平的从左往右,也可以是垂直的从上往下 * @title 布局方向 * @order 40 */ orient?: 'horizontal' | 'vertical'; /** * 布局的迭代次数,目的是不断迭代优化图中节点和边的位置,以减少节点和边之间的相互遮盖,默认值是 32 * @title 迭代次数 * @order 50 */ layoutIterations?: number; } export declare class NodeItemStyle extends ItemStyle { } export declare class NodeLabel { /** * 是否显示节点标签 * @order 0 * @title 显示节点标签 */ enabled?: boolean; /** * 标签文本位置 * @title 位置 * @order 10 * @enumsOrder ["top", "left", "right", "bottom", "inside", "insideTop", "insideLeft", "insideRight", "insideBottom", "insideTopLeft", "insideTopRight", "insideBottomLeft", "insideBottomRight"] */ position?: 'top' | 'left' | 'right' | 'bottom' | 'inside' | 'insideTop' | 'insideLeft' | 'insideRight' | 'insideBottom' | 'insideTopLeft' | 'insideTopRight' | 'insideBottomLeft' | 'insideBottomRight'; /** * 距离图形元素的距离。 * @order 15 * @title 距离 */ distance?: number; /** * 数据点标签文本 * @title 文本 * @order 20 */ textStyle?: LabelTextStyle; } export declare class EdgeLineStyle { /** * 颜色填充方式 * @title 颜色填充 * @order -1 */ colorMode?: 'source' | 'target' | 'manual'; /** * 边的颜色 * @title 边的线条颜色 * @renderer color * @order 0 */ color?: string; /** * 边的曲度 * @title 边的曲度 * @order 10 */ curveness?: number; /** * 透明度。支持从 0 到 1 的数字 * @title 透明度 * @order 20 */ opacity?: number; /** * 阴影 * @title 阴影 * @order 30 * @rendererOption {"inlineSection": "80%"} */ shadow?: ShadowStyle; } export declare class EdgeLabel { /** * 是否显示节点标签 * @order 0 * @title 显示节点标签 */ enabled?: boolean; /** * 数据点标签文本 * @title 文本 * @order 20 */ textStyle?: LabelTextStyle; } export declare class NodeStyle { /** * 节点样式设置 * @title 节点 * @order 0 */ itemStyle?: NodeItemStyle; /** * 数据点标签 * @title 标签 * @order 10 */ label?: NodeLabel; } export declare class EdgeStyle { /** * 线条样式设置 * @title 线条 * @order 0 */ lineStyle?: EdgeLineStyle; } export declare class Style extends ChartStyle { /** * 组件实际绘制空间 * @title 边距 * @order 25 * @ignore */ spacing?: Spacing; /** * 桑基图样式设置 * @title 桑基图 * @order 80 */ sankey?: Sankey; /** * 节点样式设置 * @title 节点 * @order 80 */ nodes?: NodeStyle; /** * 连线样式设置 * @title 连线 * @order 80 */ edges?: EdgeStyle; /** * 提示文本 * @title 提示 * @order 120 */ tooltip?: TooltipBase; }