Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature 可以有优雅的曲线 #1

Open
gggin opened this issue Jul 18, 2019 · 3 comments
Open

feature 可以有优雅的曲线 #1

gggin opened this issue Jul 18, 2019 · 3 comments

Comments

@gggin
Copy link

gggin commented Jul 18, 2019

只是一个提议。类似于imindmap的曲线,并且可以拖动到任意位置。

@Mongkii
Copy link
Owner

Mongkii commented Jul 19, 2019

谢谢你的建议~

我也想画优雅的曲线,可惜本人是个贝塞尔曲线菜鸡😭,贝塞尔曲线的绘制路径详见 src/methods/drawCanvas.js 文件中的 drawBezier() 方法,你可以自己试着改改~

至于拖动到任意位置,我个人觉得固定位置体验更好就把它写死了,要修改的话相关函数是 src/methods/drawCanvas.js 文件中的 drawDragCanvas() /src/methods/getDragEvents.js 的 return 值中, type: drag 这一项的相应 listener 函数

@zouxiaochaun
Copy link

建议用拖拽代替滚动条

@Sapphire2k
Copy link

会不会有Vue版的呢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants