From b87633c99fdbfd45c8748f72ecfd08f2f287132c Mon Sep 17 00:00:00 2001 From: Cody Bennett <23324155+CodyJasonBennett@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:18:30 -0500 Subject: [PATCH] fix: enum => object --- src/controls/experimental/CameraControls.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/controls/experimental/CameraControls.ts b/src/controls/experimental/CameraControls.ts index 811b0018..8d70954a 100644 --- a/src/controls/experimental/CameraControls.ts +++ b/src/controls/experimental/CameraControls.ts @@ -15,15 +15,15 @@ export type CHANGE_EVENT = { type: 'change' | 'start' | 'end' } -export enum STATE { - NONE = -1, - ROTATE = 0, - DOLLY = 1, - PAN = 2, - TOUCH_ROTATE = 3, - TOUCH_PAN = 4, - TOUCH_DOLLY_PAN = 5, - TOUCH_DOLLY_ROTATE = 6, +export const STATE = { + NONE: -1, + ROTATE: 0, + DOLLY: 1, + PAN: 2, + TOUCH_ROTATE: 3, + TOUCH_PAN: 4, + TOUCH_DOLLY_PAN: 5, + TOUCH_DOLLY_ROTATE: 6, } class CameraControls extends EventDispatcher {