Skip to content
  1. API
  2. Types

LocateOptions

Type: object

Properties

  • duration(optional) number[=0] Duration of the camera movement, in milliseconds.
  • easing(optional) EasingFunction[="quadraticInOut"] Easing function applied to the movement of the camera.
  • ignoreZoomLimits(optional) boolean[=false] If true, the options interactions.zoom.minValue and interactions.zoom.maxValue are ignored.
  • maxNodeSizeOnScreen(optional) number[=200] Additional restriction on the zoom that makes sure no node is displayed with a diameter greater than this value, in pixels. Set to 0 to disable this feature.
  • padding(optional) object|number If a number, indicates the padding for the four sides.
    • bottom(optional) number[=40] Bottom padding (in pixels).
    • left(optional) number[=40] Left padding (in pixels).
    • right(optional) number[=40] Right padding (in pixels).
    • top(optional) number[=40] Top padding (in pixels).