Diagram.makeImageData({scale: 1}) not export entire image

The exported image only shows part of the content.

This is the exported picture:

This is the whole diagram:

maxSize: new Size(Infinity, Infinity)