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

Boris Zbarsky bzbarsky at MIT.EDU
Tue Jul 2 23:14:49 PDT 2013


On 7/3/13 12:42 AM, Dirk Schulze wrote:
> The methods addText() and addPathByStrokingText() [1] take the NoInterfaceObject CanvasDrawingStyle [2] as argument.

[NoInterfaceObject] just means that window.CanvasDrawingStyle is 
undefined, basically.  It doesn't affect anything else.

addText, as an example, takes any object that implements the 
CanvasDrawingStyle interface.  That would include any DrawingStyle 
object and any CanvasRenderingContext2D object, at first glance.

-Boris



More information about the whatwg mailing list