On Tue, Jun 2, 2015 at 9:58 PM, stepharo <stepharo@free.fr> wrote:


Le 14/5/15 22:43, Peter Uhnák a écrit :
You can also use bezier lines or SVG

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| v e1 e2 l s p1 p2 path svg|
v := RTView new.

path := 'M -150 150 Q -75 150 -75 75 Q -75 0 0 0'.
svg := RTSVGPath new borderColor: Color red; path: path; element.

I do not understand why roassal still has SVG path in its model.

this code should be

| v e1 e2 l s p1 p2 path svg|
v := RTView new.
path := 'M -150 150 Q -75 150 -75 75 Q -75 0 0 0'.
arc := RTSVGPathImporter new path: path.
arc borderColor: Color red; path: path.

To me having svg inside the Roassal domain.

This is not particularly friendly to change; if I want to modify or update it after it has been create it wouldn't be possible. (Not that Roassal is keen to such changes but I can at least force it.)

Also, what is the actual benefit of having an importer?

Peter