import { EasingFunctions } from "../utilities/Utilities" ; export const MISC = { } ; MISC . CLOSE_ENOUGH_M = 0.005 ; export const AVATAR = { } ; AVATAR . MIN_VOLUME_DB = - 96 ; AVATAR . MAX_VOLUME_DB = 0 ; AVATAR . MAX_VOLUME_DB_AVATAR_RADIUS_MULTIPLIER = 1.4 ; AVATAR . RADIUS_M = 0.20 ; AVATAR . TUTORIAL_RADIUS_M = AVATAR . RADIUS_M + 0.8 ; AVATAR . AVATAR_STROKE_HEX_MUTED = "#FF0000" ; AVATAR . AVATAR_TUTORIAL_GLOW_HEX = "#007AFF" ; AVATAR . AVATAR_LABEL_FONT = '14px Graphik' ; AVATAR . PROFILE_IMAGE_DIMENSIONS_MAX_PX = 170 ; AVATAR . DIRECTION_CIRCLE_RADIUS_M = AVATAR . RADIUS_M + 0.03 ; export const CONTROLS = { } ; CONTROLS . ESC_KEY_CODE = "Escape" ; CONTROLS . DIGIT1_KEY_CODE = "Digit1" ; CONTROLS . DIGIT2_KEY_CODE = "Digit2" ; CONTROLS . UP_ARROW_KEY_CODE = "ArrowUp" ; CONTROLS . W_KEY_CODE = "KeyW" ; CONTROLS . DOWN_ARROW_KEY_CODE = "ArrowDown" ; CONTROLS . S_KEY_CODE = "KeyS" ; CONTROLS . A_KEY_CODE = "KeyA" ; CONTROLS . LEFT_ARROW_KEY_CODE = "ArrowLeft" ; CONTROLS . D_KEY_CODE = "KeyD" ; CONTROLS . RIGHT_ARROW_KEY_CODE = "ArrowRight" ; CONTROLS . M_KEY_CODE = "KeyM" ; CONTROLS . P_KEY_CODE = "KeyP" ; CONTROLS . U_KEY_CODE = "KeyU" ; CONTROLS . T_KEY_CODE = "KeyT" ; CONTROLS . Q_KEY_CODE = "KeyQ" ; CONTROLS . E_KEY_CODE = "KeyE" ; CONTROLS . SPACE_KEY_CODE = "Space" ; CONTROLS . MINUS_KEY_CODE = "Minus" ; CONTROLS . NUMPAD_SUBTRACT_KEY_CODE = "NumpadSubtract" ; CONTROLS . EQUAL_KEY_CODE = "Equal" ; CONTROLS . NUMPAD_ADD_KEY_CODE = "NumpadAdd" ; CONTROLS . J_KEY_CODE = "KeyJ" ; CONTROLS . K_KEY_CODE = "KeyK" ; CONTROLS . L_KEY_CODE = "KeyL" ; CONTROLS . SLASH_KEY_CODE = "Slash" ; CONTROLS . RIGHT_CLICK_ROTATION_SENSITIVITY = 0.5 ; CONTROLS . MOUSE_WHEEL_ZOOM_FACTOR = 0.25 ; CONTROLS . FORWARD_VELOCITY_M_PER_SEC = 1.8 ; CONTROLS . BACKWARD_VELOCITY_M_PER_SEC = - CONTROLS . FORWARD_VELOCITY_M_PER_SEC ; CONTROLS . ROTATIONAL_VELOCITY_DEGREES_PER_SEC = ( Math . PI / 2 ) * 180 / Math . PI ; CONTROLS . FUZZY_LEFT_CLICK_DISTANCE_PX = 8 ; CONTROLS . PINCH_TO_ZOOM_FACTOR = 0.005 ; export const ROOM = { } ; ROOM . TABLE_STROKE_WIDTH_PX = 2.0 ; ROOM . TABLE_STROKE_HEX = "#FFFFFF" ; ROOM . SEAT_STROKE_WIDTH_PX = 3.0 ; ROOM . SEAT_RADIUS_IDLE_M = AVATAR . RADIUS_M - 0.10 ; ROOM . SEAT_RADIUS_HOVER_M = AVATAR . RADIUS_M - 0.05 ; ROOM . SEAT_COLOR_HEX = "#111111" ; ROOM . SEAT_STROKE_HEX = "#FFFFFF" ; ROOM . ROOM_LABEL_FONT = '16px Graphik-Bold' ; ROOM . ROOM_WITH_IMAGE_LABEL_COLOR = '#FFFFFF' ; export const UI = { } ; UI . TUTORIAL_TEXT_FONT = '18px Graphik-Bold' ; UI . TUTORIAL_TEXT_COLOR = '#FFFFFF' ; UI . TUTORIAL_TEXT_STROKE_COLOR = '#00000022' ; UI . TUTORIAL_TEXT_STROKE_WIDTH_PX = 1 ; UI . MY_AVATAR_Y_SCREEN_CENTER_OFFSET_RATIO = 0.35 ; UI . HOVER_HIGHLIGHT_RADIUS_ADDITION_M = AVATAR . RADIUS_M / 2 ; UI . HOVER_GLOW_HEX = "#FFFFFF" ; UI . CANVAS_SCRIM_OPACITY_DURING_MOTION = 0.8 ; UI . AVATAR_PADDING_FOR_CAMERA = 3 * AVATAR . RADIUS_M / 2 ; UI . MIN_SEAT_RADIUS_FOR_SEAT_VISIBILITY_PX = 22 ; UI . BUTTON_TEXT_CHANGE_TIMEOUT_MS = 1000 ; UI . SCREEN_SHARE_BG_ASPECT_RATIO = 1 ; UI . SCREEN_SHARE_ICON_RADIUS_M = AVATAR . RADIUS_M * 0.5 ; UI . SCREEN_SHARE_HEADER_TIMEOUT_MS = 3000 ; UI . SCREEN_SHARING_SHADOW_HEIGHT_PX = 7 ; UI . SCREEN_SHARE_HOVER_HIGHLIGHT_RADIUS_ADDITION_M = UI . SCREEN_SHARE_ICON_RADIUS_M / 2 ; export const PHYSICS = { } ; PHYSICS . PHYSICS_TICKRATE_MS = 16 ; PHYSICS . MIN_PX_PER_M = 35 ; PHYSICS . MAX_PX_PER_M = 1000 ; PHYSICS . PX_PER_M_STEP = 25 ; PHYSICS . SMOOTH_ZOOM_DURATION_NORMAL_MS = 500 ; PHYSICS . SMOOTH_ZOOM_DURATION_SWITCH_ROOMS_MS = 1000 ; PHYSICS . POSITION_TWEENING_DURATION_MS = 1500 ; PHYSICS . CONSTANT_VELOCITY_UPDATE_TAU = 1.0 ; export const SIGNALS = { } ; SIGNALS . RANDOM_START_DISTANCE_M = AVATAR . RADIUS_M * 2 ; SIGNALS . NEARBY_DISTANCE_M = 15 ; export const PARTICLES = { } ; PARTICLES . DEFAULT_LINEAR_VELOCITY_M_PER_SEC = 0.2 ; PARTICLES . MAX_LINEAR_VELOCITY_M_PER_SEC = 100 ; PARTICLES . CLOSE_ENOUGH_ADD_M = 25 ; export const TIME = { } ; TIME . MS_PER_SEC = 1000 ;