Initial Zoom & Location

Implementing initial zoom & location to a Svelvet application is now possible! To access this feature, simply add the prop initialZoom and set it equal to a number from 0 to 10, 0 being the most zoomed out and 10 being the most zoomed in. To access the initial location feature, add the prop initialLocation and set it equal to an object with an x and y property like so x: 100, y:100 or initialNodes[1].position would set it to default at that node's position.

Implementing Initial Zoom & Location

See the Code Sandbox below to see implementation!