DataCubeCanvasService.centerView Method

Centers the view on the canvas.
 

Parameters

viewModelOrAdapter

Type: Object - May be null
(Optional) The viewmodel or adapter to center the view on, if null, center on center of playground.
options

Type: Object - May be null
(Optional) Object containing the following options:
     centerTop        [type: "Boolean", default="false"] - True to always change view to the top.
     leftIfViewportTooSmall - [type:"Boolean" Default:false] Set vision to left most if the viewport cannot contain entire canvas width.
     topIfBackgroundTooLarge - [type: "Boolean" Default:false] Set vision to the top if the background is larger than the viewport.