--- In svg-developers@yahoogroups.com, "kanmac1" <[EMAIL PROTECTED]> wrote:
> we've got a major problem with SVGs. It may have an absolutely
> distroying impact on our application. We use Adobe SVG Viewer 3.0 in
> the IE6.0.
> Our charts have fixed width and height given in real world units (like
> mm or px, - whatever) and they must be displayed exactly so on the
> screen - independent of the screen resolution or the display device
> parameters. Look at this.
> 
> <svg width="200mm" height="200mm" viewBox="0 0 200 200">
> <rect x="50" y="50" width="100" height="100" style="fill:red"/>
> </svg>
> 
> I expected the ASV to show me always!!! a rectangle which is 10cm wide
> and 10 cm high and which starts exactly 5cm (on x-axis and y-axis)
> from the (0,0) point of the SVG coordinate system.

These sound like fairly odd requirements; I generally want my charts
to take up the same *percentage* of the screen area, no matter how
large or small the display is -- from a 12" laptop to a 20" desktop.
I've determined the information I want to show, and I want to the user
to see all of that information as it was intended. SVG excels at this,
by using percentage width and heights or an appropriate viewBox.

However, if indeed you are graphing something where you are displaying
actual units of length, and need to have perfectly calibrated
real-world units on the monitor, this is not possible to do
automatically. Not for the ASV plugin, not for IE or any other
browser, not even for a Java or native C app on most OS platforms. 

If you want true calibration, you'll need to provide the user with a
tool to indicate (by clicking and dragging next to a ruler on their
monitor?) what "10cm" really represents on their display. You can then
calculate a px to mm conversion factor, and store that on the server
for each user. Think of the palm digitizer calibration tool as an example.

Thanks,
  --kirby





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to