简体   繁体   中英

Drawing Straight line in react between two components

我想在两个组件之间画一条直线。这条线应该是水平的或垂直的。当从一个组件绘制到另一个组件时,该线应该将其方向从水平变为垂直,反之亦然。我不知道如何实现这一点.请帮我提供代码或相关材料

try this https://github.com/embiem/react-canvas-draw/tree/master .

This allows drawing a line or any other drawing

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM