徒手绘图
这个示例演示了如何在你的 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
- 依赖: @xyflow/react , perfect-freehand
- 许可证:xyflow Pro 许可证
Last updated on