setCameraManipulatorOptions method

  1. @JSExport()
JSPromise<JSAny?> setCameraManipulatorOptions({
  1. int mode = 0,
  2. double orbitSpeedX = 0.01,
  3. double orbitSpeedY = 0.01,
  4. double zoomSpeed = 0.01,
})

Implementation

@JSExport()
JSPromise setCameraManipulatorOptions({
  int mode = 0,
  double orbitSpeedX = 0.01,
  double orbitSpeedY = 0.01,
  double zoomSpeed = 0.01,
}) =>
    viewer
        .setCameraManipulatorOptions(
          mode: ManipulatorMode.values[mode],
          orbitSpeedX: orbitSpeedX,
          orbitSpeedY: orbitSpeedY,
          zoomSpeed: zoomSpeed,
        )
        .toJS;