- From: Kevin Lindsey <kevin@kevlindev.com>
- Date: Fri, 11 Jun 2004 13:14:14 -0500
- To: <www-svg@w3.org>
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