W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2014

[whatwg] Canvas Path.addPath SVGMatrix not optimal?

From: Dirk Schulze <dschulze@adobe.com>
Date: Wed, 19 Mar 2014 20:46:13 +0000
To: whatwg <whatwg@lists.whatwg.org>
Message-ID: <CE08235E-C01E-4001-BA46-4CACA2E6D6FC@adobe.com>
Hi, 

I just looked at the definition of Path.addPath[1]:

    void addPath(Path path, SVGMatrix? transformation);

SVGMatrix is nullable but can not be omitted all together. Why isnít it optional as well? I think it should be optional, especially because creating an SVGMatrix at the moment means writing:

    var matrix = document.createElementNS('http://www.w3.org/2000/svg','svg').createSVGMatrix();

Greetings,
Dirk

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path
Received on Wednesday, 19 March 2014 20:48:06 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:17 UTC