Skip to content

Commit

Permalink
fix: enum => object
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Oct 4, 2023
1 parent 7e1d2ed commit b87633c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/controls/experimental/CameraControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b87633c

Please sign in to comment.