javascript - Can two jcanvas layer masks exist on the same canvas? -


is possible create 2 layer independent layer masks on same canvas? i've tried, without success. suspect it's due masks affecting layer indexes. i've highlighted enabling masking on mouseover (see here). if mouseover layer mask, other layer masks disappears. if draw layer mask:true property 1 layer mask appear. might thinking "why not make separate canvas each layer mask?" can't because intend on using $("canvas").getcanvasimage(); render canvas composite jpeg (which difficult 2 canvases).

the end goal canvas split vertically 2 panes. each pane filled draggable image. users move image in pane "crop" , render result composite image. this example comes close, dragging green box under right pane creates deadspace in pane.

thanks assistance.

yes, it's possible jcanvas. sure call restorecanvas() method whenever wish restore mask, so:

$("canvas").restorecanvas({     layer: true }); 

here's an example made uses 2 masks split canvas 2 panes.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -