How to panning outside the canvas?

Panning or zooming will not cause nodes on the edge of canvas to go outside if the canvas can hold all the nodes without scroll bar by default strategy in gojs. In other words, nodes positions will be reset in the canvas after zooming, and panning will not allow nodes exceeding bounds of the canvas. How can I changes these?

http://gojs.net/latest/api/symbols/Diagram.html#scrollMode

Thanks, but I have to use the previous released gojs which does not have the “scrollMode” property. Is there any way to get this feature?

Try enlarging the Diagram.padding.