形状
此示例展示了如何实现可以渲染不同形状的 自定义节点,例如流程图中常用的圆形、菱形或六边形。它还展示了如何实现侧边栏组件、自定义小地图节点和节点工具栏以更改形状的颜色。
¥This example shows how to implement a custom node that can render different shapes like a circle, diamond or hexagon that are commonly used in flow charts. It also shows how to implement a sidebar component, custom minimap nodes and a node toolbar to change the color of the shapes.
This is a Pro example. Get all pro examples, templates, 1:1 support from the xyflow team and prioritized Github issues with a React Flow Pro subscription.
关于此 Pro 示例
¥About this Pro Example