W3C home > Mailing lists > Public > www-svg@w3.org > May 2000

Selectable origin for rect other shapes

From: Curt Arnold <carnold@houston.rr.com>
Date: Sun, 14 May 2000 14:34:04 -0500
Message-ID: <000701bfbddb$5d34eba0$0d44a018@houston.rr.com>
To: <www-svg@w3.org>
Unfortunately, I'm not able to research this as much as I would like as I
really need to pack for a flight in a few hours, but I would like to share a
frustration with using SVG for traditional X-Y plots.

When doing X-Y plots, it is convienient to represent the paths and the
positions of data point symbols with the coordinates from the data and then
use a transform to properly scale and position it with regards to the axii
(?).  However, you would like to use explict pixel sizes for the data point
symbols.  The problem comes when the symbols' coordinates do not represent
the center of the symbol and then you have to tweak the coordinates of the
symbol so that the center of the symbol appears at the desired location.

If it were possible to state for rectangles and some of the other shape that
the coordinate should be the center of the shape and not the default, then
it would be possible to easily change the range of the data displayed by
manipulating the transform.  Something like:

<rect x="-273.15" y="0" width="3px" height="3px" origin="center"/>
Received on Sunday, 14 May 2000 15:34:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:48 UTC