You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by lizhi <sl...@qq.com> on 2016/01/14 13:49:05 UTC

js.swc ispointinpath

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath

boolean ctx.isPointInPath(x, y);
boolean ctx.isPointInPath(x, y, fillRule);

boolean ctx.isPointInPath(path, x, y);
boolean ctx.isPointInPath(path, x, y, fillRule);

where is the 3,4line?



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/js-swc-ispointinpath-tp51273.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: js.swc ispointinpath

Posted by Alex Harui <ah...@adobe.com>.
On 1/14/16, 4:49 AM, "lizhi" <sl...@qq.com> wrote:

>https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/
>isPointInPath
>
>boolean ctx.isPointInPath(x, y);
>boolean ctx.isPointInPath(x, y, fillRule);
>
>boolean ctx.isPointInPath(path, x, y);
>boolean ctx.isPointInPath(path, x, y, fillRule);
>
>where is the 3,4line?
>

ActionScript doesn't currently allow method overloading, so the choices
would be to strongly type the parameters or loosely type them.

-Alex