[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-dev] Re: SVG import



Neil Howe wrote:
> Sandro – can you email this list please with a brief overview of what works
> and what doesn’t in the current version.

The current version (in SVN) implements at least the following:
* all the shapes (lines, rectangles, polylines, paths, etc.)
* transformations (e.g. transform="rotate(30) translate(50, 20)" property)
* flat fills

What is currently not implemented:
* linear, radial fills (implemented in the next commit)
* line styles (linecap, linejoin etc.)
* included bitmaps
* texts

Some of the problems that will be fixed in next commit:

The SVG paths parser currently doesn't handle arcs, witch were
defined in SVG 1.1 but not in SVG 1.2 (I noticed this in the past,
but while referencing to the SVG 1.2 specification I didn't recall).
If you see strange shapes, or no shape at al, it's 99% because of this.

There is a bug in transformations that makes some shapes appear in the
wrong position (like the tiger sample) or completely outside the drawing canvas.

Opacity (transparency) is not handled correctly.

> Let us know when you reach the stage where you’d like bug reports on
> specific areas and we will submit bugs into bugzilla under the new
> “SVGimport” category of the Xara LX project.

Ok.

> One issue I notice is that designs seem to be imported above and to the
> right of the current view. So if you are ‘zoomed to page’ and you import
> SVG it appears somewhere to the right of and above the page, almost out of
> view. Whereas if you import a PNG (for example) it appears in the middle of
> the view. Gerry – do you think this a problem with the filter or with Xara
> LX?
>

I noticed this also.  Oddly enough, if you convert the SVG document
by command line to XAR and you open it, the geometry (boundings)
appears correct, but if you import it into an existing document, it will
not be centered into the view.

Maybe there is some wrong value in the generated XAR header, I'll investigate
more into this.

Sandro