Comments (6)
The parsing of the xdot file (Canviz.parse()) is already separate from the
drawing (Canviz.draw()); drawing the
graph repeatedly will not need to re-parse the xdot file. However, it's true
that parsing the draw attributes
(CanvizEntity.parseDrawingCommands()) is done every time the graph is drawn,
and I do want to take that out
and make it happen only once at graph loading time, by converting the drawing
commands into Path objects. I
appear not to have filed a ticket for this before so thanks for doing so.
Original comment by [email protected]
on 24 Mar 2010 at 5:42
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from canviz.
Great. I'll see if I can whip up a Python version of the parser producing
"canviz"
so that this can be used if desired.
Original comment by [email protected]
on 24 Mar 2010 at 6:37
from canviz.
I'm not certain what you mean for this to do. I consider Canviz a client-side
in-browser xdot renderer, agnostic
of any server-side scripting language that may be in use to build the graph and
feed it to Graphviz. Though I
have considered a server-side script for converting xdot into a more-efficient
JSON representation for over-the-
wire transmission; see issue #56. Is this what you're thinking of? Or, what
kind of output are you thinking your
Python script would generate?
Original comment by [email protected]
on 24 Mar 2010 at 10:38
from canviz.
I think we're on the same lines - I wasn't sure whether the representation
would be
JSON or something Canvas-specific - it should just be possible to generate it
outside of Canviz.
You're right, of course, that it should be possible to generate the JSON
directly
from a graph structure without an xdot intermediary. I've always generated dot
code
node-by-node and let Graphviz handle the target formats. Once the format is
defined
it would be easy possible to make it a target for Graphviz in situations where
as
much as possible should happen on the server.
Original comment by [email protected]
on 24 Mar 2010 at 10:49
from canviz.
Well, the Graphviz developers have mentioned thinking about having a JSON
output format built into Graphviz.
But until they do, I see no alternative but to have Graphviz generate xdot,
then writing a script to turn the xdot
into JSON. Thinking back to prior discussions, I think I remember now that the
concern wasn't the size of the
output, but the processing time for the browser to read the xdot.
Original comment by [email protected]
on 25 Mar 2010 at 12:58
from canviz.
That is my concern as well. For interactive graph manipulation there probably
isn't
anyway around this but I imagine there will be many cases where server-side
parsing
will be of significant benefit.
Original comment by [email protected]
on 25 Mar 2010 at 10:23
from canviz.
Related Issues (20)
- subgraph render fail HOT 1
- Makefile fails if "dot" is not found in the $PATH HOT 1
- Project missing resources HOT 2
- Hello World example shows canviz div doesn't properly unclear itself HOT 3
- Links not working properly on large garphs HOT 2
- I think the BB is computing wrong HOT 3
- allow response to graph loaded
- Don't require Prototype; allow using jQuery or other libraries HOT 21
- Error 127 when compiling when dot is not in the path HOT 1
- Use Prototype from Google APIs HOT 2
- edges div-tag overlaps nodes a-tag HOT 2
- Remove global debug function from library
- Canviz does not compile in debian sid HOT 1
- I cannot make Canviz work on IE (9 or 10) and Chrome
- Support for xdot1.5? HOT 1
- Move to GitHub? HOT 3
- Feedback from first time user HOT 1
- Suggest drawing nodes after edges in class CanvizGraph
- Clearly indicate which files are required HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canviz.