Skip to Content

徒手绘图

此示例演示了如何在 React Flow 应用中实现徒手绘图功能。用户可以在窗格上绘制平滑曲线,这在注释或在现有节点周围绘制草图时非常有用。绘图将转换为自定义节点,可以像常规节点一样设置样式和操作。

¥This example demonstrates how to implement freehand drawing capabilities in your React Flow application. Users can draw smooth curves on the pane, which can be useful for annotations or sketching around existing nodes. Drawings get converted into custom nodes that can be styled and manipulated like regular nodes.

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

Last updated on