fix pixel alingment on select for scaling
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
3701eb110b
commit
458df53fac
1 changed files with 7 additions and 5 deletions
|
@ -354,11 +354,13 @@ const selectTransformTool = () =>
|
||||||
"Image Transform Erase",
|
"Image Transform Erase",
|
||||||
state.original
|
state.original
|
||||||
);
|
);
|
||||||
commands.runCommand(
|
commands.runCommand("drawImage", "Image Transform Draw", {
|
||||||
"drawImage",
|
image: state.selected.image,
|
||||||
"Image Transform Draw",
|
x: Math.round(state.selected.x),
|
||||||
state.selected
|
y: Math.round(state.selected.y),
|
||||||
);
|
w: Math.round(state.selected.w),
|
||||||
|
h: Math.round(state.selected.h),
|
||||||
|
});
|
||||||
state.original = null;
|
state.original = null;
|
||||||
state.selected = null;
|
state.selected = null;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue