- From: Samad Aghaei via GitHub <sysbot+gh@w3.org>
- Date: Thu, 02 May 2019 05:07:22 +0000
- To: public-houdini-archive@w3.org
samad-aghaei has just created a new issue for https://github.com/w3c/css-houdini-drafts: == `[css-paint-api]` Any way to pass JS Object/Var or Set property as return value? == Consider the following code: paint(ctx, geom, styleMap) { const circle = new Path2D(); circle.arc(150, 75, 50, 0, 2 * Math.PI); ctx.fillStyle = 'red'; if(ctx.isPointInPath(circle, 105, 75)){ /* Is there any way to let the outer JS function know that this is "TRUE"? */ } } It seems that there is no relation between paint class inside of registerPaint and the globalScope, and styleMap is readOnly. How could we get the returned values? Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/881 using your GitHub account
Received on Thursday, 2 May 2019 05:07:23 UTC