W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

[whatwg] [Canvas][WebIDL] Canvas .addText takes NoInterfaceObject argument

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 2 Jul 2013 21:42:54 -0700
To: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <A4EFE63B-938B-46E9-8B72-79F06049E4F1@adobe.com>

The methods addText() and addPathByStrokingText() [1] take the NoInterfaceObject CanvasDrawingStyle [2] as argument. I wonder if that is even possible for WebIDL since there is no way to create it and no binding to ECMAScript is exposed. Shouldn't it rather be a DrawingStyle object[3], which indeed is an interface? I didn't scan if that is the case in other places as well. The definition of NoInterfaceObject is here [4].


[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-path-addpathbystrokingtext
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasdrawingstyles
[3] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#drawingstyle
[4] http://www.w3.org/TR/WebIDL/#NoInterfaceObject
Received on Wednesday, 3 July 2013 04:43:46 UTC

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