Zoom: method getLevels


In this page :

we have :

  • getLevels (): void - allows getting all zooming levels

Returns an array of zooming levels (ZoomLevels[]) passed to the init() method that initializes the extension.

It returns void or ZoomLevels[] ?
in the typescript definition its void, so how I can the zoom levels ?


Hello David,

gantt.ext.zoom.getLevels() method returns an array of zooming levels.

Thank you for your noticing. We will update the information in the documentation and ts definition file ASAP.