fix border mask rendering
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
bc19de9c4e
commit
059c0759fe
1 changed files with 36 additions and 34 deletions
|
@ -307,6 +307,7 @@ const img2imgTool = () =>
|
||||||
|
|
||||||
state.mousemovecb = (evn) => {
|
state.mousemovecb = (evn) => {
|
||||||
_reticle_draw(evn, state.snapToGrid);
|
_reticle_draw(evn, state.snapToGrid);
|
||||||
|
if (evn.target.id === "overlayCanvas") {
|
||||||
const bb = getBoundingBox(
|
const bb = getBoundingBox(
|
||||||
evn.x,
|
evn.x,
|
||||||
evn.y,
|
evn.y,
|
||||||
|
@ -343,6 +344,7 @@ const img2imgTool = () =>
|
||||||
ovCtx.globalAlpha = 0.4;
|
ovCtx.globalAlpha = 0.4;
|
||||||
ovCtx.drawImage(auxCanvas, bb.x, bb.y);
|
ovCtx.drawImage(auxCanvas, bb.x, bb.y);
|
||||||
ovCtx.globalAlpha = tmp;
|
ovCtx.globalAlpha = tmp;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
state.dreamcb = (evn) => {
|
state.dreamcb = (evn) => {
|
||||||
dream_img2img_callback(evn, state);
|
dream_img2img_callback(evn, state);
|
||||||
|
|
Loading…
Reference in a new issue