itnifl
asked on
Sticking text to shapes in Raphael.js
I was looking at Raphael.js to illustrate chains. I see that I have to pick up a book to really learn this, but as a start I would like to get to know how to attach text to a shape that I can drag around.
To get started I replicated this example and used it to generate the chain I wanted:
http://dmitrybaranovskiy.github.io/raphael/graffle.html
But I need text with each shape that moves around with the shape when I drag it.
Anyone here knows how to?
Here is a fiddle to play around with:
https://jsfiddle.net/atle_holm/t7v818nk/
To get started I replicated this example and used it to generate the chain I wanted:
http://dmitrybaranovskiy.github.io/raphael/graffle.html
But I need text with each shape that moves around with the shape when I drag it.
Anyone here knows how to?
Here is a fiddle to play around with:
https://jsfiddle.net/atle_holm/t7v818nk/
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks! Perfect! :)
Open in new window