-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Idea: Arrows #40
Comments
I had thought of arrows. Never hashed out the details of it though . |
Hi @pshihn, the easiest is to go from one element to the other and then add thing incrementally. Since your API is based on object, it is quite extensible. I would think the API would be something like: annotate(e, {
type: 'arrow',
from: 'element'
}); that will draw a straight arrow, or with more options: annotate(e, {
type: 'arrow',
from: 'element',
bents: [['10%', +10, -20]],
start: () => {},
end: () => {}
}); Just a sketchy idea. Thanks. |
|
There are a lot of things to consider if arrow is "bound" to 2 elements. As the elements move around or change in size due to layout, updating the arrow could be tricky. A simpler first step would be to just annotate arrows bound an element. Specify direction and length. It would be nice to document some discrete examples or use cases for this. |
Just wanted to say how awesome this would be. |
+1 |
i like this! |
Hi, thanks for this great library. I've been searching for hand drawn arrow for many years and this looks a great potential to do it.
Will be useful for libraries such as tourjs or introjs.
Thanks!
The text was updated successfully, but these errors were encountered: