|
From: <pl...@pi...> - 2008-12-29 20:39:17
|
Hi Ethan, I have the basic mechanics in place to add some interactivity to svg.trm, so I need to look at how to integrate this into the rest of gnuplot. One of the main needs is to sprinkle a few id=xxx markers into the various path and group elements so they can be identified and modified via js and the DOM. If I want to add another arguement to the functions made visisble in TERM_TABLE that would seem to mean changing every call and also the terminals that dont support the new features. While feasible, it seems a bit radical. It is generally a good idea to have at least one 'joker' arguement as a structure pointer in such interdependant interfaces. This allows for future expansion without altering the prototypes and reorganising the whole code structure. This is certainly a result of a long running project that has evolved well beyond it's original objectives. At some stage it may be worth adding such extra args. I had a look at the href patch which seems to work by adding a href variable to some structures and an SVG_href() function to output the xlink code. This works quite well for the labels and the command syntax is clear but it looks less robust for more general entities like plots , where trying to wrap it needs several flags to keep track of things. |