W3C home > Mailing lists > Public > www-svg@w3.org > July 2009

Re: SVG in technical drawings

From: Doug Schepers <schepers@w3.org>
Date: Thu, 23 Jul 2009 03:21:18 -0400
Message-ID: <4A680F6E.5050504@w3.org>
To: Paul Williams <pwilliams@infotrustgroup.com>
CC: "www-svg@w3.org" <www-svg@w3.org>
Hi, Paul-

Paul Williams wrote (on 7/23/09 1:10 AM):
> This is my first post; please excuse me if I cover well trod ground.
> I work in an environment which makes heavy use of technical drawings.
> Most of our drawing sources are in CGM4 or WebCGM format, which is
> troublesome because the tools available to support these documents
> are not widely available.  I'd like to consider use of SVG to support
> these drawings in a web presentation mode, but unfortunately SVG
> doesn't seem to support a key feature.  Most technical drawings
> require the line width to remain constant regardless of the zoom
> level.  I couldn't find anything in the stroke styling that indicates
> rendering behavior could be affected that way.  Am I missing a part
> of the spec that covers technical line/stroke width behavior?  Is
> anyone aware of others who are trying to solve this problem?

SVG 1.1 did not cover this use case.

SVG Tiny 1.2 does cover it with the 'NonScalingStroke' value of the new 
@vector-effect attribute.  Unfortunately, most browsers are targeting 
SVG 1.1 for their implementations right now.  It does work in Opera 10. [2]

The SVG WG plans to publish a new module which could be implemented on 
top of SVG 1.1 or SVG Tiny 1.2, which would add this and other new 
stroke effects to implementations.  It is currently in Editor's Draft 
form.  [3]  This functionality is planned to be included in the upcoming 
SVG 2.0 spec, as well.

I hope this addresses your needs... let us know if you have similar 
requirements.  Letting other browser vendors know about your use case 
might also help them prioritize implementing this feature.

[1] http://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke
[2] http://schepers.cc/svg/vectoreffects/nonscalingstroke.svg
[3] http://dev.w3.org/SVG/modules/vectoreffects/master/SVGVectorEffects.html

-Doug Schepers
W3C Team Contact, SVG and WebApps WGs
Received on Thursday, 23 July 2009 07:34:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:23 UTC