Re: [geometry] Dictionary argument for DOMQuad constructor

On Wed, 25 Mar 2015 13:55:04 +0100, Domenic Denicola <> wrote:

> I think a better solution might be a single constructor (no overloads)  
> plus static factory methods. So something like
>     [Constructor(optional DOMPointInit p1, ...)]
>     interface DOMQuad {
>         ...
>         static fromRect(optional DOMRectInit);
>         static fromQuad(optional DOMQuadInit);
>     }

I've started to implement this suggestion in the spec.

DOMMatrix constructor still has overloads, which I intend to convert to  
fromX also. It happens to already have toFloat32Array, toFloat64Array, and  
toString, so fromFloat32Array, fromFloat64Array and fromString would  
neatly mirror those.

Simon Pieters
Opera Software

Received on Wednesday, 8 April 2015 12:38:38 UTC