Re: SVGTransform and SVGMatrix

Jonathan,

> I'm looking for some clarification on:
>
> a) whether SVGMatrix is intended to be immutable

The SVGMatrix attributes are mutable

> b) why there is a setMatrix function for SVGTransform when its matrix
>     attribute is readonly
>
> What is the intention of the specification?

FWIW, I look at it this way. SVGTransform has a matrix attribute of type
SVGMatrix. That attribute cannot be altered, which means that you cannot
assign an SVGMatrix to the matrix attribute. However, an SVGMatrix is a
compound type with attributes that are mutable. So, you can alter the
attributes of the matrix attribute. setMatrix is a convenience function so
you don't have to write out 6 individual assignments to set the attributes
of the matrix attribute.

Kevin

Received on Friday, 11 June 2004 14:15:11 UTC