Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostcampwm-2024/web30-stop-troublepainter
/ functions
Functions
253 in github.com/boostcampwm-2024/web30-stop-troublepainter
⨍
Functions
253
◇
Types & classes
165
↓ 61 callers
Function
cn
(...inputs: ClassValue[])
client/src/utils/cn.ts:53
↓ 17 callers
Method
merge
(remoteState: MapState)
core/crdt/LWWMap.ts:123
↓ 16 callers
Function
createTestStroke
(color: string = '#000000', width: number = 2)
core/crdt/test/LWWMap.test.ts:5
↓ 15 callers
Method
addStroke
(stroke: DrawingData)
core/crdt/LWWMap.ts:67
↓ 13 callers
Function
getCanvasContext
(canvasRef: RefObject<HTMLCanvasElement>)
client/src/utils/getCanvasContext.ts:25
↓ 13 callers
Method
set
(value: T)
core/crdt/LWWRegister.ts:24
↓ 12 callers
Function
createTestStroke
(color: string = '#000000', width: number = 2)
core/crdt/test/LWWRegister.test.ts:5
↓ 10 callers
Method
getRoom
(roomId: string)
server/src/game/game.repository.ts:17
↓ 8 callers
Method
getRoomPlayers
(roomId: string)
server/src/game/game.repository.ts:60
↓ 7 callers
Method
updateRoom
(roomId: string, room: Partial<Room>)
server/src/game/game.repository.ts:30
↓ 6 callers
Method
hset
(key: string, value: Record<string, any>)
server/src/redis/redis.service.ts:16
↓ 6 callers
Method
setDeactivated
(value: boolean)
core/crdt/LWWRegister.ts:33
↓ 5 callers
Function
convertCoordinate
({ x, y }: Point)
client/src/hooks/useCoordinateScale.ts:47
↓ 5 callers
Method
deleteStroke
(id: string)
core/crdt/LWWMap.ts:83
↓ 5 callers
Method
getRoomSettings
(roomId: string)
server/src/game/game.repository.ts:46
↓ 5 callers
Method
hgetall
(key: string)
server/src/redis/redis.service.ts:25
↓ 5 callers
Method
insertSortedStroke
(id: string, stroke: DrawingData)
core/crdt/LWWMap.ts:55
↓ 5 callers
Method
updatePlayer
(roomId: string, playerId: string, data: Partial<Player>)
server/src/game/game.service.ts:214
↓ 5 callers
Method
updateRoomSettings
(roomId: string, settings: Partial<RoomSettings>)
server/src/game/game.repository.ts:56
↓ 5 callers
Function
useModal
(autoCloseDelay?: number)
client/src/hooks/useModal.ts:28
↓ 4 callers
Method
catch
(exception: any, host: ArgumentsHost)
server/src/filters/ws-exception.filter.ts:8
↓ 4 callers
Method
deactivateStroke
(id: string)
core/crdt/LWWMap.ts:96
↓ 4 callers
Method
del
(key: string)
server/src/redis/redis.service.ts:30
↓ 4 callers
Method
exists
(key: string)
server/src/redis/redis.service.ts:51
↓ 4 callers
Function
getDrawPoint
( e: ReactTouchEvent<HTMLCanvasElement> | ReactMouseEvent<HTMLCanvasElement>, canvas: HTMLCanvasElement, )
client/src/utils/getDrawPoint.ts:43
↓ 4 callers
Method
multi
()
server/src/redis/redis.service.ts:55
↓ 4 callers
Function
openModal
()
client/src/hooks/useModal.ts:35
↓ 4 callers
Method
playSound
* 미리 로드된 사운드를 재생합니다. * * @param id - 재생할 사운드의 식별자 * @param volume - 볼륨 레벨 (0.0에서 1.0), 기본값은 1입니다. * @returns 사운드가 재생되기 시작할 때까지 해결되는 Promis
client/src/utils/soundManager.ts:59
↓ 4 callers
Method
runTimer
(roomId: string, duration: number, timerType: TimerType)
server/src/game/game.gateway.ts:163
↓ 4 callers
Method
stopGameTimer
(roomId: string)
server/src/common/services/timer.service.ts:40
↓ 4 callers
Function
useShortcuts
(configs: ShortcutConfig[])
client/src/hooks/useShortcuts.ts:10
↓ 3 callers
Method
activateStroke
(id: string)
core/crdt/LWWMap.ts:109
↓ 3 callers
Function
closeModal
()
client/src/hooks/useModal.ts:31
↓ 3 callers
Function
createSocket
(namespace: SocketNamespace, auth?: SocketAuth)
client/src/stores/socket/socket.config.ts:115
↓ 3 callers
Function
executeCallback
* 주어진 콜백 함수를 실행합니다. * `remainingTime`이 있을 경우에는 해당 값을 전달하고, 그렇지 않으면 콜백을 그냥 실행합니다. * @param callback - 실행할 콜백 함수 * @param remainingTime - 남은 시간(초) 값
client/src/utils/timer.ts:36
↓ 3 callers
Method
getInstance
* SoundManager의 싱글턴 인스턴스를 가져옵니다. * * @returns SoundManager 인스턴스
client/src/utils/soundManager.ts:27
↓ 3 callers
Function
hexToRGBA
(hex: string, alpha = 255)
client/src/utils/hexToRGBA.ts:19
↓ 3 callers
Method
mergeRegister
( key: string, remoteRegisterState: RegisterState<DrawingData | null>, )
core/crdt/LWWMap.ts:141
↓ 3 callers
Method
preloadSound
* 나중에 재생할 사운드를 미리 로드합니다. * * @param id - 사운드의 고유 식별자 * @param src - 사운드 파일의 소스 URL
client/src/utils/soundManager.ts:40
↓ 2 callers
Method
checkAnswer
(roomId: string, playerId: string, answer: string)
server/src/game/game.service.ts:330
↓ 2 callers
Function
clearCanvas
(page: Page)
core/crdt/test/drawing-utils.ts:4
↓ 2 callers
Function
fillTargetColor
(index: number, targetColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/components/canvas/MainCanvas.tsx:28
↓ 2 callers
Function
fillTargetColor
(pos: number, fillColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/hooks/canvas/useDrawingOperation.ts:9
↓ 2 callers
Method
getActiveStrokes
()
core/crdt/LWWMap.ts:193
↓ 2 callers
Function
getCanvasData
(page: Page)
core/crdt/test/test-utils.ts:7
↓ 2 callers
Function
getDrawPoint
( e: ReactTouchEvent<HTMLCanvasElement> | ReactMouseEvent<HTMLCanvasElement>, canvas: HTMLCanvasElement, )
client/src/components/canvas/MainCanvas.tsx:17
↓ 2 callers
Function
getPixelData
(page: Page)
core/crdt/test/test-utils.ts:42
↓ 2 callers
Function
handleChangeToolMode
(modeNum: PenModeType)
client/src/components/canvas/CanvasToolbar.tsx:20
↓ 2 callers
Function
handleCopyInvite
()
client/src/components/lobby/InviteButton.tsx:11
↓ 2 callers
Method
initializeGame
(roomId: string)
server/src/game/game.service.ts:187
↓ 2 callers
Method
joinRoom
(roomId: string)
server/src/game/game.service.ts:59
↓ 2 callers
Method
reconnect
(roomId: string, playerId: string)
server/src/game/game.service.ts:143
↓ 2 callers
Method
removePlayerFromRoom
(roomId: string, playerId: string)
server/src/game/game.repository.ts:102
↓ 2 callers
Function
resetCommonState
()
client/src/stores/socket/gameSocket.store.ts:71
↓ 2 callers
Method
sendMessage
(roomId: string, playerId: string, message: string)
server/src/chat/chat.service.ts:9
↓ 2 callers
Method
startNewRound
(roomId: string)
server/src/game/game.gateway.ts:101
↓ 2 callers
Method
updateSettings
(roomId: string, playerId: string, data: Partial<RoomSettings>)
server/src/game/game.service.ts:201
↓ 2 callers
Function
useCoordinateScale
(resolutionWidth: number, canvas: RefObject<HTMLCanvasElement>)
client/src/hooks/useCoordinateScale.ts:26
↓ 1 callers
Method
addPlayerToRoom
(roomId: string, playerId: string, player: Player)
server/src/game/game.repository.ts:79
↓ 1 callers
Function
applyFill
(drawingData: DrawingData)
client/src/hooks/canvas/useDrawingOperation.ts:122
↓ 1 callers
Function
bootstrap
()
server/src/main.ts:5
↓ 1 callers
Function
calculateRemainingTime
* 현재 시간과 시작 시간, 지연 시간을 기준으로 남은 시간을 계산합니다. * @param currentTime - 현재 시간(밀리초 단위) * @param startTime - 타이머가 시작된 시간(밀리초 단위) * @param delay - 타이머의 전체 지속
client/src/utils/timer.ts:25
↓ 1 callers
Method
calculateScores
(players: Player[], winnerId: string)
server/src/game/game.service.ts:370
↓ 1 callers
Method
categorizePlayerRoles
(players: Player[])
server/src/game/game.service.ts:309
↓ 1 callers
Function
checkColorisEqual
(nextIndex: number, beforeColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/components/canvas/MainCanvas.tsx:35
↓ 1 callers
Function
checkColorisEqual
(pos: number, startColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/hooks/canvas/useDrawingOperation.ts:16
↓ 1 callers
Function
checkProduction
()
client/src/utils/checkProduction.ts:19
↓ 1 callers
Function
checkTimerDifference
(time1: number, time2: number, threshold: number)
client/src/utils/checkTimerDifference.ts:25
↓ 1 callers
Function
compareByPng
(basePage: Page, targetPage: Page)
core/crdt/test/test-utils.ts:72
↓ 1 callers
Function
createRoom
()
client/src/hooks/useCreateRoom.ts:36
↓ 1 callers
Method
createRoom
()
server/src/game/game.service.ts:44
↓ 1 callers
Method
deleteRoom
(roomId: string)
server/src/game/game.repository.ts:34
↓ 1 callers
Method
determineRole
(index: number)
server/src/game/game.service.ts:303
↓ 1 callers
Method
distributeRoles
(roomId: string, players: Player[])
server/src/game/game.service.ts:283
↓ 1 callers
Function
drawStartPath
(ctx: CanvasRenderingContext2D, drawX: number, drawY: number)
client/src/components/canvas/MainCanvas.tsx:104
↓ 1 callers
Function
drawWithFillMode
(page: Page, point: { x: number; y: number })
core/crdt/test/drawing-utils.ts:16
↓ 1 callers
Method
existsPlayer
(roomId: string, playerId: string)
server/src/chat/chat.service.ts:29
↓ 1 callers
Method
existsPlayer
(roomId: string, playerId: string)
server/src/drawing/drawing.service.ts:12
↓ 1 callers
Method
existsRoom
(roomId: string)
server/src/chat/chat.service.ts:25
↓ 1 callers
Method
existsRoom
(roomId: string)
server/src/drawing/drawing.service.ts:8
↓ 1 callers
Function
fetchApi
(endpoint: string, options?: RequestInit)
client/src/api/api.config.ts:97
↓ 1 callers
Method
fetchWords
(totalRounds: number)
server/src/game/game.service.ts:241
↓ 1 callers
Method
findSortedInsertIndex
(newStroke: DrawingData)
core/crdt/LWWMap.ts:44
↓ 1 callers
Method
generateNickname
()
server/src/game/game.service.ts:99
↓ 1 callers
Method
getDrawingWords
(difficulty: Difficulty, count: number)
server/src/common/clova-client.ts:22
↓ 1 callers
Function
getErrorTitle
(namespace: SocketNamespace)
client/src/constants/socket-error-messages.ts:33
↓ 1 callers
Method
getPlayer
(roomId: string, playerId: string)
server/src/game/game.repository.ts:86
↓ 1 callers
Method
getPlayer
(roomId: string, playerId: string)
server/src/chat/chat.repository.ts:9
↓ 1 callers
Function
getPlayerRole
(playerRole: PlayerRole | undefined, myRole: PlayerRole | null)
client/src/components/player/PlayerCardList.tsx:15
↓ 1 callers
Function
getTouchPoint
(canvas: HTMLCanvasElement, e: TouchEvent)
client/src/components/canvas/MainCanvas.tsx:11
↓ 1 callers
Function
getTouchPoint
(canvas: HTMLCanvasElement, e: TouchEvent)
client/src/utils/getDrawPoint.ts:19
↓ 1 callers
Function
handleChange
(value: string)
client/src/components/ui/Dropdown.stories.tsx:49
↓ 1 callers
Function
handleChangeLineWidth
(lineWidth: string)
client/src/components/canvas/CanvasToolbar.tsx:17
↓ 1 callers
Function
handleChangeToolColor
(colorNum: number)
client/src/components/canvas/CanvasToolbar.tsx:14
↓ 1 callers
Function
handleConfirmExit
()
client/src/components/modal/NavigationModal.tsx:12
↓ 1 callers
Function
handleCreateRoom
()
client/src/pages/MainPage.tsx:19
↓ 1 callers
Method
handleDrawingTimeout
(roomId: string)
server/src/game/game.service.ts:321
↓ 1 callers
Method
handleGuessingTimeout
(roomId: string)
server/src/game/game.service.ts:387
↓ 1 callers
Function
handleInCanvas
(canvasRef: RefObject<HTMLCanvasElement>, point: Point, brushSize: number)
client/src/handlers/canvas/cursorInOutHandler.ts:5
↓ 1 callers
Function
handleOutCanvas
(canvasRef: RefObject<HTMLCanvasElement>)
client/src/handlers/canvas/cursorInOutHandler.ts:15
next →
1–100 of 253, ranked by callers