Skip to Content
参考类型

MiniMapNodeProps

GitHub上的源代码 

MiniMapNodeProps 类型定义了 MiniMap 组件中节点的属性。这仅在你向 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