dom-to-image generates an image larger than the element it captured with empty space
So I have a set of nested elements and I want to capture the resulting image to store in the clipboard. dom-to-image
does a great job but it generates the image but the canvas has more space than it is intended to occupy.