Home » Eclipse Projects » Sirius » Anchorage points on SVG elements(Set anchorage points on SVG elements)
| |
Re: Anchorage points on SVG elements [message #1718656 is a reply to message #1718620] |
Mon, 28 December 2015 18:58 |
|
Hi,
In fact, we want to force the link connection on some specific locations on the edge. For example, if you have a triangle in SVG, we want to force the link to be connected on the apex only, or only on the middle of the segments.
Is this possible, by modifying the SVG format ? Or programmatically, even after the link creation ?
Regards,
Jonathan
ALL4TEC
|
|
|
Re: Anchorage points on SVG elements [message #1718682 is a reply to message #1718656] |
Tue, 29 December 2015 08:16 |
Esteban Dugueperoux Messages: 472 Registered: July 2009 |
Senior Member |
|
|
From Sirius 3.0 it is possible, see [1].
If you cannot do it, could you provide an example with scenario or a
little screencast?
[1] http://cedric.brun.io/eclipse/sirius-3.0M6-anchors/
Le 28/12/2015 19:58, Jonathan Dumont a écrit :
> Hi,
>
> In fact, we want to force the link connection on some specific locations
> on the edge. For example, if you have a triangle in SVG, we want to
> force the link to be connected on the apex only, or only on the middle
> of the segments.
> Is this possible, by modifying the SVG format ? Or programmatically,
> even after the link creation ?
>
> Regards,
>
> Jonathan
--
Esteban Dugueperoux - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Anchorage points on SVG elements [message #1718684 is a reply to message #1718682] |
Tue, 29 December 2015 08:29 |
Esteban Dugueperoux Messages: 472 Registered: July 2009 |
Senior Member |
|
|
To do it programmatically after edge creation, you must modify the
org.eclipse.gmf.runtime.notation.Anchor of the GMF Edge.
Best Regards.
Le 29/12/2015 09:16, Esteban Dugueperoux a écrit :
> From Sirius 3.0 it is possible, see [1].
> If you cannot do it, could you provide an example with scenario or a
> little screencast?
>
> [1] http://cedric.brun.io/eclipse/sirius-3.0M6-anchors/
>
> Le 28/12/2015 19:58, Jonathan Dumont a écrit :
>> Hi,
>>
>> In fact, we want to force the link connection on some specific locations
>> on the edge. For example, if you have a triangle in SVG, we want to
>> force the link to be connected on the apex only, or only on the middle
>> of the segments.
>> Is this possible, by modifying the SVG format ? Or programmatically,
>> even after the link creation ?
>>
>> Regards,
>>
>> Jonathan
>
>
>
--
Esteban Dugueperoux - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Anchorage points on SVG elements [message #1718723 is a reply to message #1718684] |
Tue, 29 December 2015 12:49 |
|
Hi,
We are using Sirius 3.x and what is described in this example works correctly : the transparent pixels are not considered as the path of the shape. But this is not what I need. To continue with the given example, what I need is to force the link to be connected with the left and right apex (in the red circles in my picture). Is it possible by modifying the SVG shape properties ? Or to define the anchors in the odesign model ?
Regards,
Jonathan
ALL4TEC
|
|
|
Re: Anchorage points on SVG elements [message #1718726 is a reply to message #1718723] |
Tue, 29 December 2015 13:15 |
Esteban Dugueperoux Messages: 472 Registered: July 2009 |
Senior Member |
|
|
Hi,
Ok I understand better, the layout of the edge depends of the router
used, the bendpoints and the anchors defined in the notation model. The
router can be defined in the odesign model and can be customized in the
diagram editor through the tabbar or properties view. For example the
tree router could be useful for your need. In addition in odesign model,
you can use "Ends Centering" property available on Edge Style to have
always the edge centered on source, target or both.
Best Regards.
Le 29/12/2015 13:49, Jonathan Dumont a écrit :
> Hi,
>
> We are using Sirius 3.x and what is described in this example works correctly : the transparent pixels are not considered as the path of the shape. But this is not what I need. To continue with the given example, what I need is to force the link to be connected with the left and right apex (in the red circles in my picture). Is it possible by modifying the SVG shape properties ? Or to define the anchors in the odesign model ?
>
> Regards,
>
> Jonathan
>
--
Esteban Dugueperoux - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Goto Forum:
Current Time: Fri Apr 19 06:06:13 GMT 2024
Powered by FUDForum. Page generated in 0.02414 seconds
|