Hi Guilhelm, Im trying to implemente the sprites approach but, something that is not clear from the documentation is: do i need to set the position of a Sprite after attaching it to a node? Why am i asking it? Because i’m having some problems, whenever i click on the node, the first object clicked is the Sprite, and if i try to move the node, the Sprite is moved and taken of the node, as you can see on the image attached. Is this the normal behaviour? At the beggining of the render, all the sprites were where they are supposed to be, but when i click on the node (small black circle), the thing im able to move is first the Sprite, and than the node. Att. De: guilhelm savin Hi Matheus, You can set the css property text-background-mode to plain, and you can set the color of the box using text-background-color. Do not forget to use the advanced viewer gs-ui. Maybe you will have to play with text padding and offset to customize the rendering. Another way could be to set the shape of the node to rounded-box, with size set to fit, and an icon, but icon alignment at bottom is not implemented. You can also add sprites and attach it to nodes. Have a look to the css reference here maybe : http://graphstream-project.org/doc/Advanced-Concepts/GraphStream-CSS-Reference/ Cheers. 2016-07-22 17:01 GMT+02:00 Matheus Silva <matheus.g.unicamp AT gmail.com>:
Guilhelm Savin LITIS, University of Le Havre http://d3-project.org |
Archives gérées par MHonArc 2.6.16.