* feat: New minimap * imporved preview * better start values * smarter destructure * getNodesInside refactor * refactor(minimap): add maskColor and nodeBorderRadius props * refactor(gitignore): add dist * refactor(minimap): show empty minimap when there are no nodes closes #39
11 lines
426 B
TypeScript
11 lines
426 B
TypeScript
import React from 'react';
|
|
import { Node } from '../../types';
|
|
declare type StringFunc = (node: Node) => string;
|
|
interface MiniMapProps extends React.HTMLAttributes<SVGSVGElement> {
|
|
nodeColor: string | StringFunc;
|
|
nodeBorderRadius: number;
|
|
maskColor: string;
|
|
}
|
|
declare const _default: ({ style, className, nodeColor, nodeBorderRadius, maskColor, }: MiniMapProps) => JSX.Element;
|
|
export default _default;
|