Skip to Content
参考手册类型

MiniMapNodeProps

GitHub 上的源代码 

¥Source on GitHub 

MiniMapNodeProps 类型定义了 MiniMap 组件中节点的 props。这仅在你将自定义节点类型传递给 MiniMap 时才有意义。

¥The MiniMapNodeProps type defines the props for nodes in the MiniMap component. This is only relevant if you pass a custom node type to the MiniMap.

字段

¥Fields

NameTypeDefault
idstring
xnumber
ynumber
widthnumber
heightnumber
borderRadiusnumber
classNamestring
colorstring
shapeRenderingstring
strokeColorstring
strokeWidthnumber
styleCSSProperties
selectedboolean
onClick(event: MouseEvent<Element, MouseEvent>, id: string) => void
Last updated on