import type { FC } from 'react'; import { Select, Divider } from 'antd'; import { PlusOutlined, MinusOutlined, FileAddOutlined } from '@ant-design/icons' import clsx from 'clsx' import { Node } from '@antv/x6'; import type { GraphRef } from '../types' interface CanvasToolbarProps { /** Currently selected node */ selectedNode: Node | null; miniMapRef: React.RefObject; graphRef: GraphRef; isHandMode: boolean; setIsHandMode: React.Dispatch>; zoomLevel: number; addNotes: () => void; } const CanvasToolbar: FC = ({ selectedNode, miniMapRef, graphRef, zoomLevel, // canUndo, // canRedo, // onUndo, // onRedo, addNotes, }) => { return ( <> {/* 小地图 */}
{/* 缩放控制按钮 */}
graphRef.current?.zoom(-0.1)} />