How to make Circle and Text both clickable as well set to same function?

78 views
Skip to first unread message

Mohamed Arif

unread,
Nov 5, 2012, 6:13:27 AM11/5/12
to raph...@googlegroups.com
HI, I made a circle, and it has the text as well. now my issues is, how can i set cursor as "pointer" to both, and make on click to same function?

    circleRed = pHolder.circle(xPos(), yPos(), param.pCircle).attr(dAttr);
    circleText = pHolder.text(circleRed.attr('cx') - (circleRed.attr('r') / 2 - param.pStroke) , yPos(), "Content")
    .attr({'text-anchor':'end','font-size':16,'fill':'#fff','cursor': 'pointer'});

that mean how to make both together as a single element?


charles thomas

unread,
Nov 5, 2012, 7:35:11 AM11/5/12
to raph...@googlegroups.com


From: Mohamed Arif <3gweb...@gmail.com>
To: raph...@googlegroups.com
Sent: Monday, November 5, 2012 11:13:27 AM
Subject: How to make Circle and Text both clickable as well set to same function?

--
You received this message because you are subscribed to the Google Groups "Raphaël" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/raphaeljs/-/2C1cTl6NeugJ.
To post to this group, send an email to raph...@googlegroups.com.
To unsubscribe from this group, send email to raphaeljs+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/raphaeljs?hl=en-GB.


Reply all
Reply to author
Forward
0 new messages