mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 12:06:58 +03:00
html: fix negative not applied correctly after saving reference
This commit is contained in:
@@ -748,9 +748,6 @@
|
||||
context.save();
|
||||
|
||||
negative = document.getElementById("negative").checked;
|
||||
if (negative) {
|
||||
context.filter = 'invert(1)';
|
||||
}
|
||||
|
||||
if (isActReference)
|
||||
{
|
||||
@@ -758,6 +755,9 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
if (negative) {
|
||||
context.filter = 'invert(1)';
|
||||
}
|
||||
context.translate(canvas.width/2,canvas.height/2);
|
||||
context.rotate(degrees*Math.PI/180);
|
||||
if (mirror) {
|
||||
|
||||
Reference in New Issue
Block a user