Skip to content

Commit ee166d3

Browse files
committed
Fixed bug in Save as Png
1 parent 4c73ed4 commit ee166d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- When edges have the same source and target the edges no longer overlap.
66
- A popup is now shown when the mouse pointer is hovered above an edge or a node.
77
- It is now possible to click a node in the graphs to open the file the node is associated with.
8+
- Bugfix: Save as Png is now working correctly
89

910
## Version 1.8.2
1011

templates/showHierarchy_Template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222

223223
function getBoundingBox() {
224224
const ctx = graphCanvas.getContext('2d');
225-
const imgData = ctx.getImageData(0, 0, graphCanvas.width, graphCanvas.height);
225+
const imgData = ctx.getImageData(0, 0, ctx.canvas.width, ctx.canvas.height);
226226
const bytesPerPixels = 4;
227227
const cWidth = graphCanvas.width * bytesPerPixels;
228228
const cHeight = graphCanvas.height;

0 commit comments

Comments
 (0)