Cytoscape.js: How do I use the SVG renderer instead of canvas?

1,171 views
Skip to first unread message

George D

unread,
Aug 1, 2013, 6:19:01 AM8/1/13
to cytoscap...@googlegroups.com
Dear Cytoscape.js community,

I'm trying to use the SVG renderer provided in the Cytoscape.js extensions. I've included it in the Makefile in the list of extensions and then built cytoscape.js. However, when I create an instance of Cytoscape.js with the option renderer = { name: "svg" }, it doesn't recognize the renderer, producing the error "Can not initialise: No such renderer `%s` found; did you include its JS file?". I thought this was strange since the SVG renderer extension code is in the cytoscape.js file I'm using, and the SVG renderer seems to register itself at the end of the extension code.

Could someone please give me some tips on how to use the SVG renderer? Is there a way to use it without building it as part of the cytoscape.js file?

Thank you. As a side note, using renderer = { name: "canvas" } does work.

Max

unread,
Aug 1, 2013, 2:27:22 PM8/1/13
to cytoscap...@googlegroups.com
The SVG renderer was the original renderer we built.  Although easier to implement, it did not fit our performance requirements etc, so we moved on to the canvas renderer -- which now has better performance and new features.  The SVG renderer will not work without a nontrivial amount of work on it. -Max 
--
You received this message because you are subscribed to the Google Groups "cytoscape-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-disc...@googlegroups.com.
To post to this group, send email to cytoscap...@googlegroups.com.
Visit this group at http://groups.google.com/group/cytoscape-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages