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",
|
||||
state.original
|
||||
);
|
||||
commands.runCommand(
|
||||
"drawImage",
|
||||
"Image Transform Draw",
|
||||
state.selected
|
||||
);
|
||||
commands.runCommand("drawImage", "Image Transform Draw", {
|
||||
image: state.selected.image,
|
||||
x: Math.round(state.selected.x),
|
||||
y: Math.round(state.selected.y),
|
||||
w: Math.round(state.selected.w),
|
||||
h: Math.round(state.selected.h),
|
||||
});
|
||||
state.original = null;
|
||||
state.selected = null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue