two.js icon indicating copy to clipboard operation
two.js copied to clipboard

Changes gradientUnits default value to objectBoundingBox

Open fabionuno opened this issue 8 years ago • 1 comments

According to the W3C recommendation the default value of gradientUnits attribute is objectBoundingBox if not specified.

This PR changes SVG render to use objectBoundingBox as default value instead userSpaceOnUse.

fabionuno avatar Apr 22 '17 00:04 fabionuno

I appreciate you trying to add parity with the W3C.., however I've found that userSpaceOnUse is actually more useful and intuitive than objectBoudningBox which is why I changed it. Do you have any examples using objectBoundingBox instead of userSpaceOnUser? It would help clarify justification. Thanks!

jonobr1 avatar Apr 26 '17 17:04 jonobr1