@codebolt/litegraph 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/litegraph.es.js
CHANGED
|
@@ -11398,7 +11398,7 @@ class LGraphCanvas {
|
|
|
11398
11398
|
if (this.bgcanvas == this.canvas) {
|
|
11399
11399
|
this.drawBackCanvas();
|
|
11400
11400
|
} else {
|
|
11401
|
-
const scale =
|
|
11401
|
+
const scale = 1;
|
|
11402
11402
|
ctx.drawImage(
|
|
11403
11403
|
this.bgcanvas,
|
|
11404
11404
|
0,
|
|
@@ -11478,7 +11478,7 @@ class LGraphCanvas {
|
|
|
11478
11478
|
ctx.strokeStyle = "#FFF";
|
|
11479
11479
|
if (eDown && eMove) {
|
|
11480
11480
|
const transform = ctx.getTransform();
|
|
11481
|
-
const ratio =
|
|
11481
|
+
const ratio = 1;
|
|
11482
11482
|
ctx.setTransform(ratio, 0, 0, ratio, 0, 0);
|
|
11483
11483
|
const x2 = eDown.safeOffsetX;
|
|
11484
11484
|
const y = eDown.safeOffsetY;
|
|
@@ -11637,7 +11637,7 @@ class LGraphCanvas {
|
|
|
11637
11637
|
}
|
|
11638
11638
|
const bg_already_painted = this.onRenderBackground ? this.onRenderBackground(canvas2, ctx) : false;
|
|
11639
11639
|
if (!this.viewport) {
|
|
11640
|
-
const scale =
|
|
11640
|
+
const scale = 1;
|
|
11641
11641
|
ctx.restore();
|
|
11642
11642
|
ctx.setTransform(scale, 0, 0, scale, 0, 0);
|
|
11643
11643
|
}
|