Zoom: method getLevels

Hello,

In this page :
https://docs.dhtmlx.com/gantt/desktop__zoom.html#methods

we have :

  • getLevels (): void - allows getting all zooming levels
gantt.ext.zoom.getLevels();

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 ?

Thanks

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.