@nivo/sankey
Version:
50 lines • 2.21 kB
TypeScript
import { sankeyCenter, sankeyJustify, sankeyLeft, sankeyRight } from 'd3-sankey';
import { SankeyLayerId, SankeyNodeDatum, SankeyAlignType } from './types';
import { InheritedColorConfig } from '@nivo/colors';
export declare const sankeyAlignmentPropMapping: {
center: typeof sankeyCenter;
justify: typeof sankeyJustify;
start: typeof sankeyLeft;
end: typeof sankeyRight;
};
export declare const sankeyAlignmentPropKeys: SankeyAlignType[];
export declare const sankeyAlignmentFromProp: (prop: SankeyAlignType) => typeof sankeyCenter | typeof sankeyJustify | typeof sankeyLeft | typeof sankeyRight;
export declare const svgDefaultProps: {
layout: "horizontal";
align: "center";
sort: "auto";
colors: {
scheme: "nivo";
};
nodeOpacity: number;
nodeHoverOpacity: number;
nodeHoverOthersOpacity: number;
nodeThickness: number;
nodeSpacing: number;
nodeInnerPadding: number;
nodeBorderWidth: number;
nodeBorderColor: InheritedColorConfig<SankeyNodeDatum<any, any>>;
nodeBorderRadius: number;
linkOpacity: number;
linkHoverOpacity: number;
linkHoverOthersOpacity: number;
linkContract: number;
linkBlendMode: "multiply";
enableLinkGradient: boolean;
enableLabels: boolean;
label: string;
labelPosition: "inside";
labelPadding: number;
labelOrientation: "horizontal";
labelTextColor: InheritedColorConfig<SankeyNodeDatum<any, any>>;
labelComponent: ({ style: fullStyle, children, ...attributes }: import("@nivo/text").TextProps) => import("react/jsx-runtime").JSX.Element;
isInteractive: boolean;
nodeTooltip: <N extends import("./types").DefaultNode, L extends import("./types").DefaultLink>({ node, }: import("./SankeyNodeTooltip").SankeyNodeTooltipProps<N, L>) => import("react/jsx-runtime").JSX.Element;
linkTooltip: <N extends import("./types").DefaultNode, L extends import("./types").DefaultLink>({ link, }: import("./SankeyLinkTooltip").SankeyLinkTooltipProps<N, L>) => import("react/jsx-runtime").JSX.Element;
legends: never[];
layers: SankeyLayerId[];
role: string;
animate: boolean;
motionConfig: string;
};
//# sourceMappingURL=props.d.ts.map