-
Notifications
You must be signed in to change notification settings - Fork 95
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
Experiment with draw2D #46
Comments
@jdittrich zooming to mouse cursor must be solved now in AlaaSarhan@571f965 you were correct about using |
Some open questions around raft:
|
In current version (commit AlaaSarhan@a6e9c0c), I tried to implement a first version of quickMockup approach, in which an element would belong to the container it is dropped inside. It works basically, but it seems to suffer from performance issues sometimes as well as some odd behavior in combination with Gotta give it a third try, probably with Raft-like approach of calculating contained elements on relevant events only, but unlike Raft, it would add them as children and remove them eventually when event is over. |
first iteration of adding elements by drag&drop AlaaSarhan#1 |
I'm starting to like this idea a lot, at least in concept.. thinking about it technically for now, perhaps I'll attempt to implement it soon |
To make the code more clean and enable functions like zooming or snapping, we could use draw2Dtouch
@AlaaSarhan is doing some work on it
Small things to try out
canvas.installEditPolicy( new draw2d.policy.canvas.CanvasPolicy({onDragStart
). The event handler gets the figure as parameter on which you can call "toFront()" (see example)mid size things to try out
canvas.installEditPolicy(new draw2d.policy.canvas.
SnapToGeometryEditPolicy())
however, the lines are directly drawn on canvas, not over the elements, so on a raft they are drawn behind the raft.Big things to try out in draw2D
Bigger things to think about in general
The text was updated successfully, but these errors were encountered: