Comments (7)
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.
from rough-notation.
I had thought of arrows. Never hashed out the details of it though .
From an API perspective should the arrow go from one element to another?
Describing all the properties of the arrow - shape, direction, thickness, length, etc
from rough-notation.
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.
from rough-notation.
RoughAnnotationConfig
should be the common properties, and those arrow
only properties maybe should be wrapped in arrowOptions
?
from rough-notation.
Just wanted to say how awesome this would be.
from rough-notation.
+1
from rough-notation.
i like this!
from rough-notation.
Related Issues (20)
- Bracket annotation
- On scroll delay? HOT 5
- A changelog HOT 2
- Animation on hide() HOT 2
- Add Right-To-Left Support
- Notation becomes visible only after resizing window with Chrome and MS Edge HOT 1
- Uncaught ReferenceError: annotate is not defined HOT 1
- Idea: callback after animation
- Question: Delay annotate or annotationGroup from running HOT 1
- Underline loads on incorrect location, adjusts to a correct one on scroll HOT 3
- Question: Usage of Selectors HOT 3
- Question: Z-Index of Annotation HOT 2
- -
- Redundant statement in `RoughAnnotationImpl.show()` HOT 1
- Can anyone help me debug why it Rought-notation doesn't run in some text but it does in others?
- Roughness HOT 1
- [Bug] Positioning is wrong when transform: scale() is used HOT 1
- W3C Web Annotations, Web Archiving; Linked Data
- Alternate styles - "Sun Lines" - Is it possible?
- Cannot use import statement outside a module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rough-notation.