Feat/minimap (#44)
* 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
This commit is contained in:
Vendored
+5
-4
@@ -1,9 +1,10 @@
|
||||
import React from 'react';
|
||||
import { Node } from '../../types';
|
||||
declare type StringFunc = (node: Node) => string;
|
||||
interface MiniMapProps extends React.HTMLAttributes<HTMLCanvasElement> {
|
||||
bgColor?: string;
|
||||
nodeColor?: string | StringFunc;
|
||||
interface MiniMapProps extends React.HTMLAttributes<SVGSVGElement> {
|
||||
nodeColor: string | StringFunc;
|
||||
nodeBorderRadius: number;
|
||||
maskColor: string;
|
||||
}
|
||||
declare const _default: ({ style, className, bgColor, nodeColor, }: MiniMapProps) => JSX.Element;
|
||||
declare const _default: ({ style, className, nodeColor, nodeBorderRadius, maskColor, }: MiniMapProps) => JSX.Element;
|
||||
export default _default;
|
||||
|
||||
Reference in New Issue
Block a user