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