Skip to content
Permalink
Browse files

feat(camera): unbind camera controller event: add unbindArcballCamera…

…ControllerPointScaleEvent api
  • Loading branch information...
yyc-git committed May 21, 2019
1 parent 2290309 commit 7346f4cf88444a58458c590ca58c9fa5929cb5a8
@@ -180,6 +180,12 @@ let unbindArcballCameraControllerEvent = (cameraController, state) =>
state,
);

let unbindArcballCameraControllerPointScaleEvent = (cameraController, state) =>
EventArcballCameraControllerMainService.unbindPointScaleEvent(
cameraController,
state,
);

let isBindArcballCameraControllerEvent = (cameraController, state) =>
EventArcballCameraControllerMainService.isBindEvent(
cameraController,
0 src/external/PromiseType.re 100644 → 100755
No changes.
0 src/service/atom/ImageService.re 100644 → 100755
No changes.
@@ -498,6 +498,9 @@ let unbindEvent = (cameraController, state) =>
|> _disposePointScaleEventHandleFuncListMap(cameraController)
|> _disposeKeyDownEventHandleFuncListMap(cameraController);

let unbindPointScaleEvent = (cameraController, state) =>
state |> _disposePointScaleEventHandleFuncListMap(cameraController);

let isBindEvent =
(cameraController, {arcballCameraControllerRecord} as state) => {
let {pointDragStartEventHandleFuncListMap} = arcballCameraControllerRecord;

0 comments on commit 7346f4c

Please sign in to comment.
You can’t perform that action at this time.