capturing the space tree as a png image on a button click
154 views
Skip to first unread message
venkatesh kavuluri
unread,
Nov 14, 2009, 11:20:39 PM11/14/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javascript-information...@googlegroups.com
Hi guys,
Is there any straightforward way to capture a the spacetree being currently shown as a PNG image upon a button click! For reporting purposes it will be useful.
Thank you for the suggestions, Venkatesh
Nico Garcia Belmonte
unread,
Nov 15, 2009, 6:47:11 AM11/15/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You won't be able to save the text within the Spacetree nodes however, since they're html labels on top of the canvas tag.
You could however implement a new node rendering function that does exactly the same as the current node rendering function but also prints with the canvas text api the text in the node instead of using the html labels (you'd use that just when the user wants to print an image from the canvas).
For more info. about that there's ST.Plot.NodeTypes