Hi Kevin,
Lacking experience with raphael i have to go out on a limb.
To me it seems that the "transform .5" is more of a lucky coincidence. SVG are by design set up to be rendered by
the browser and by design there is no set relation between the coordinate system and the pixels to align them on the display.
That is to say its governed by the viewbox and the width and the height. By choosing these wisely one probably can tweak any svg to an optimal presentation on a predetermined screen.
Explantion:
http://sarasoueidan.com/blog/svg-coordinate-systems/Demo:
http://sarasoueidan.com/demos/interactive-svg-coordinate-system/index.htmlTo be "pixel perfect' you would want to make sure the width and the height of
your svg match your "screen" ( no resizing in css etc).
Because lines / shapes are drawn on the exact coordinates within an svg,
and the "width" of the stroke is applied equally to the "left" and the "right" in
svg1.1 ( there are new options comming in svg 2) a "single pixel" is smeared,
This can be compensate with viewbox x and y by setting the x and y to 0.5
Marco
IMPORTANT:
The contents of this email and any attachments are confidential. They
are intended for the named recipient(s) only. If you have received this
email by mistake, please notify the sender immediately and do not
disclose the contents to anyone or make copies thereof.