Re: "high-level" way to create SVG Elements of specific type?

Thomas DeWeese <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <CACTtnu06S2Ds1_rmwMczp52Ao00f5EuNu=xsL3-BHKWvWDbg9A@mail.gmail.com>
Hi Marco,
   I think you are wrong.  You can do something like:
     rect.x.baseVal.value = 10
or
    rect.x.baseVal.newValueSpecifiedUnits(SVG_LENGTHTYPE_PX, 10)

   The raises specifications in the IDL are because some instances of
SVGAnimatedLength
and SVGLength are readonly, so attempts to set those will result in
exceptions.

    Thomas

On Thu, Jun 28, 2012 at 7:26 AM, <[email protected]> wrote:

> > The SVG rect element makes x, y, width & height available as SVG Animated
> > lengths.  These are a bit more complex but can be used for this.
>
> Yes, but it only provides getters for these attributes. No setters.
>
> Regards
> Marco
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.