Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » CSS customization of edges?
CSS customization of edges? [message #1712510] Mon, 26 October 2015 09:02 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 169
Registered: January 2013
Location: Sweden
Senior Member
Hi,

Is it possible to totally change the apperence of an edge using CSS, ie no just the line style, color etc but replaceit with an svg image, like for some nodes?

/Patrik
Re: CSS customization of edges? [message #1712512 is a reply to message #1712510] Mon, 26 October 2015 09:09 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 915
Registered: February 2011
Senior Member
Hi Patrik,

This is currently not supported. For edges, we support Line Width, Line Style (Plain, Dashed, Dotted...), Line Color and it is also possible to hide the decoration at the end(s) of the line (But not possible to choose a different decoration).

Edge customization is must more complicated than it is for nodes, because we need to manage the anchors, bendpoints and routing algorithms, which might need to be changed when using an image rather than a line

Regards,
Camille


Camille Letavernier
Re: CSS customization of edges? [message #1712513 is a reply to message #1712510] Mon, 26 October 2015 09:10 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 168
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi,

Replacing with a shape works only for nodes. In fact, Shape replacement relies on the display of the shape in a given compartment with everything else hidden, and the edges do not have yet such compartments.

In a conceptual point of view, it is kind of hard to map the edge concept (from one source to one target for the simplest ones) to the concept of SVGs, that do not really have such source and target elements. Perhaps adding some information in the SVG, as the anchor points could be possible. The bendpoints (edge angles) would also be hard to manage in svg figures.

HTH,
RĂ©mi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: CSS customization of edges? [message #1712515 is a reply to message #1712513] Mon, 26 October 2015 09:16 Go to previous messageGo to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 169
Registered: January 2013
Location: Sweden
Senior Member
Quick answers Smile. I know this is a really odd question but my though was to superimpose an svg on top of the edge and hide the actual edge, similar to what you can do in a shape. But as Remi writes you need a compartment 'in/on' the edge.
Re: CSS customization of edges? [message #1747919 is a reply to message #1712515] Wed, 16 November 2016 18:10 Go to previous message
Vetle Volden-Freberg is currently offline Vetle Volden-FrebergFriend
Messages: 39
Registered: February 2016
Member
Any updates on this topic?

Regards, Vetle Vf.

[Updated on: Thu, 17 November 2016 09:47]

Report message to a moderator

Previous Topic:[toolsmith] Using the set values advice configuration
Next Topic:SysML requirement, how to add a satisfying element
Goto Forum:
  


Current Time: Fri Jan 17 21:31:24 GMT 2020

Powered by FUDForum. Page generated in 0.04933 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top