MCPcopy Create free account

hub / github.com/boostcampwm-2024/web30-stop-troublepainter / functions

Functions253 in github.com/boostcampwm-2024/web30-stop-troublepainter

↓ 61 callersFunctioncn
(...inputs: ClassValue[])
client/src/utils/cn.ts:53
↓ 17 callersMethodmerge
(remoteState: MapState)
core/crdt/LWWMap.ts:123
↓ 16 callersFunctioncreateTestStroke
(color: string = '#000000', width: number = 2)
core/crdt/test/LWWMap.test.ts:5
↓ 15 callersMethodaddStroke
(stroke: DrawingData)
core/crdt/LWWMap.ts:67
↓ 13 callersFunctiongetCanvasContext
(canvasRef: RefObject<HTMLCanvasElement>)
client/src/utils/getCanvasContext.ts:25
↓ 13 callersMethodset
(value: T)
core/crdt/LWWRegister.ts:24
↓ 12 callersFunctioncreateTestStroke
(color: string = '#000000', width: number = 2)
core/crdt/test/LWWRegister.test.ts:5
↓ 10 callersMethodgetRoom
(roomId: string)
server/src/game/game.repository.ts:17
↓ 8 callersMethodgetRoomPlayers
(roomId: string)
server/src/game/game.repository.ts:60
↓ 7 callersMethodupdateRoom
(roomId: string, room: Partial<Room>)
server/src/game/game.repository.ts:30
↓ 6 callersMethodhset
(key: string, value: Record<string, any>)
server/src/redis/redis.service.ts:16
↓ 6 callersMethodsetDeactivated
(value: boolean)
core/crdt/LWWRegister.ts:33
↓ 5 callersFunctionconvertCoordinate
({ x, y }: Point)
client/src/hooks/useCoordinateScale.ts:47
↓ 5 callersMethoddeleteStroke
(id: string)
core/crdt/LWWMap.ts:83
↓ 5 callersMethodgetRoomSettings
(roomId: string)
server/src/game/game.repository.ts:46
↓ 5 callersMethodhgetall
(key: string)
server/src/redis/redis.service.ts:25
↓ 5 callersMethodinsertSortedStroke
(id: string, stroke: DrawingData)
core/crdt/LWWMap.ts:55
↓ 5 callersMethodupdatePlayer
(roomId: string, playerId: string, data: Partial<Player>)
server/src/game/game.service.ts:214
↓ 5 callersMethodupdateRoomSettings
(roomId: string, settings: Partial<RoomSettings>)
server/src/game/game.repository.ts:56
↓ 5 callersFunctionuseModal
(autoCloseDelay?: number)
client/src/hooks/useModal.ts:28
↓ 4 callersMethodcatch
(exception: any, host: ArgumentsHost)
server/src/filters/ws-exception.filter.ts:8
↓ 4 callersMethoddeactivateStroke
(id: string)
core/crdt/LWWMap.ts:96
↓ 4 callersMethoddel
(key: string)
server/src/redis/redis.service.ts:30
↓ 4 callersMethodexists
(key: string)
server/src/redis/redis.service.ts:51
↓ 4 callersFunctiongetDrawPoint
( e: ReactTouchEvent<HTMLCanvasElement> | ReactMouseEvent<HTMLCanvasElement>, canvas: HTMLCanvasElement, )
client/src/utils/getDrawPoint.ts:43
↓ 4 callersMethodmulti
()
server/src/redis/redis.service.ts:55
↓ 4 callersFunctionopenModal
()
client/src/hooks/useModal.ts:35
↓ 4 callersMethodplaySound
* 미리 로드된 사운드를 재생합니다. * * @param id - 재생할 사운드의 식별자 * @param volume - 볼륨 레벨 (0.0에서 1.0), 기본값은 1입니다. * @returns 사운드가 재생되기 시작할 때까지 해결되는 Promis
client/src/utils/soundManager.ts:59
↓ 4 callersMethodrunTimer
(roomId: string, duration: number, timerType: TimerType)
server/src/game/game.gateway.ts:163
↓ 4 callersMethodstopGameTimer
(roomId: string)
server/src/common/services/timer.service.ts:40
↓ 4 callersFunctionuseShortcuts
(configs: ShortcutConfig[])
client/src/hooks/useShortcuts.ts:10
↓ 3 callersMethodactivateStroke
(id: string)
core/crdt/LWWMap.ts:109
↓ 3 callersFunctioncloseModal
()
client/src/hooks/useModal.ts:31
↓ 3 callersFunctioncreateSocket
(namespace: SocketNamespace, auth?: SocketAuth)
client/src/stores/socket/socket.config.ts:115
↓ 3 callersFunctionexecuteCallback
* 주어진 콜백 함수를 실행합니다. * `remainingTime`이 있을 경우에는 해당 값을 전달하고, 그렇지 않으면 콜백을 그냥 실행합니다. * @param callback - 실행할 콜백 함수 * @param remainingTime - 남은 시간(초) 값
client/src/utils/timer.ts:36
↓ 3 callersMethodgetInstance
* SoundManager의 싱글턴 인스턴스를 가져옵니다. * * @returns SoundManager 인스턴스
client/src/utils/soundManager.ts:27
↓ 3 callersFunctionhexToRGBA
(hex: string, alpha = 255)
client/src/utils/hexToRGBA.ts:19
↓ 3 callersMethodmergeRegister
( key: string, remoteRegisterState: RegisterState<DrawingData | null>, )
core/crdt/LWWMap.ts:141
↓ 3 callersMethodpreloadSound
* 나중에 재생할 사운드를 미리 로드합니다. * * @param id - 사운드의 고유 식별자 * @param src - 사운드 파일의 소스 URL
client/src/utils/soundManager.ts:40
↓ 2 callersMethodcheckAnswer
(roomId: string, playerId: string, answer: string)
server/src/game/game.service.ts:330
↓ 2 callersFunctionclearCanvas
(page: Page)
core/crdt/test/drawing-utils.ts:4
↓ 2 callersFunctionfillTargetColor
(index: number, targetColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/components/canvas/MainCanvas.tsx:28
↓ 2 callersFunctionfillTargetColor
(pos: number, fillColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/hooks/canvas/useDrawingOperation.ts:9
↓ 2 callersMethodgetActiveStrokes
()
core/crdt/LWWMap.ts:193
↓ 2 callersFunctiongetCanvasData
(page: Page)
core/crdt/test/test-utils.ts:7
↓ 2 callersFunctiongetDrawPoint
( e: ReactTouchEvent<HTMLCanvasElement> | ReactMouseEvent<HTMLCanvasElement>, canvas: HTMLCanvasElement, )
client/src/components/canvas/MainCanvas.tsx:17
↓ 2 callersFunctiongetPixelData
(page: Page)
core/crdt/test/test-utils.ts:42
↓ 2 callersFunctionhandleChangeToolMode
(modeNum: PenModeType)
client/src/components/canvas/CanvasToolbar.tsx:20
↓ 2 callersFunctionhandleCopyInvite
()
client/src/components/lobby/InviteButton.tsx:11
↓ 2 callersMethodinitializeGame
(roomId: string)
server/src/game/game.service.ts:187
↓ 2 callersMethodjoinRoom
(roomId: string)
server/src/game/game.service.ts:59
↓ 2 callersMethodreconnect
(roomId: string, playerId: string)
server/src/game/game.service.ts:143
↓ 2 callersMethodremovePlayerFromRoom
(roomId: string, playerId: string)
server/src/game/game.repository.ts:102
↓ 2 callersFunctionresetCommonState
()
client/src/stores/socket/gameSocket.store.ts:71
↓ 2 callersMethodsendMessage
(roomId: string, playerId: string, message: string)
server/src/chat/chat.service.ts:9
↓ 2 callersMethodstartNewRound
(roomId: string)
server/src/game/game.gateway.ts:101
↓ 2 callersMethodupdateSettings
(roomId: string, playerId: string, data: Partial<RoomSettings>)
server/src/game/game.service.ts:201
↓ 2 callersFunctionuseCoordinateScale
(resolutionWidth: number, canvas: RefObject<HTMLCanvasElement>)
client/src/hooks/useCoordinateScale.ts:26
↓ 1 callersMethodaddPlayerToRoom
(roomId: string, playerId: string, player: Player)
server/src/game/game.repository.ts:79
↓ 1 callersFunctionapplyFill
(drawingData: DrawingData)
client/src/hooks/canvas/useDrawingOperation.ts:122
↓ 1 callersFunctionbootstrap
()
server/src/main.ts:5
↓ 1 callersFunctioncalculateRemainingTime
* 현재 시간과 시작 시간, 지연 시간을 기준으로 남은 시간을 계산합니다. * @param currentTime - 현재 시간(밀리초 단위) * @param startTime - 타이머가 시작된 시간(밀리초 단위) * @param delay - 타이머의 전체 지속
client/src/utils/timer.ts:25
↓ 1 callersMethodcalculateScores
(players: Player[], winnerId: string)
server/src/game/game.service.ts:370
↓ 1 callersMethodcategorizePlayerRoles
(players: Player[])
server/src/game/game.service.ts:309
↓ 1 callersFunctioncheckColorisEqual
(nextIndex: number, beforeColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/components/canvas/MainCanvas.tsx:35
↓ 1 callersFunctioncheckColorisEqual
(pos: number, startColor: RGBA, pixelArray: Uint8ClampedArray)
client/src/hooks/canvas/useDrawingOperation.ts:16
↓ 1 callersFunctioncheckProduction
()
client/src/utils/checkProduction.ts:19
↓ 1 callersFunctioncheckTimerDifference
(time1: number, time2: number, threshold: number)
client/src/utils/checkTimerDifference.ts:25
↓ 1 callersFunctioncompareByPng
(basePage: Page, targetPage: Page)
core/crdt/test/test-utils.ts:72
↓ 1 callersFunctioncreateRoom
()
client/src/hooks/useCreateRoom.ts:36
↓ 1 callersMethodcreateRoom
()
server/src/game/game.service.ts:44
↓ 1 callersMethoddeleteRoom
(roomId: string)
server/src/game/game.repository.ts:34
↓ 1 callersMethoddetermineRole
(index: number)
server/src/game/game.service.ts:303
↓ 1 callersMethoddistributeRoles
(roomId: string, players: Player[])
server/src/game/game.service.ts:283
↓ 1 callersFunctiondrawStartPath
(ctx: CanvasRenderingContext2D, drawX: number, drawY: number)
client/src/components/canvas/MainCanvas.tsx:104
↓ 1 callersFunctiondrawWithFillMode
(page: Page, point: { x: number; y: number })
core/crdt/test/drawing-utils.ts:16
↓ 1 callersMethodexistsPlayer
(roomId: string, playerId: string)
server/src/chat/chat.service.ts:29
↓ 1 callersMethodexistsPlayer
(roomId: string, playerId: string)
server/src/drawing/drawing.service.ts:12
↓ 1 callersMethodexistsRoom
(roomId: string)
server/src/chat/chat.service.ts:25
↓ 1 callersMethodexistsRoom
(roomId: string)
server/src/drawing/drawing.service.ts:8
↓ 1 callersFunctionfetchApi
(endpoint: string, options?: RequestInit)
client/src/api/api.config.ts:97
↓ 1 callersMethodfetchWords
(totalRounds: number)
server/src/game/game.service.ts:241
↓ 1 callersMethodfindSortedInsertIndex
(newStroke: DrawingData)
core/crdt/LWWMap.ts:44
↓ 1 callersMethodgenerateNickname
()
server/src/game/game.service.ts:99
↓ 1 callersMethodgetDrawingWords
(difficulty: Difficulty, count: number)
server/src/common/clova-client.ts:22
↓ 1 callersFunctiongetErrorTitle
(namespace: SocketNamespace)
client/src/constants/socket-error-messages.ts:33
↓ 1 callersMethodgetPlayer
(roomId: string, playerId: string)
server/src/game/game.repository.ts:86
↓ 1 callersMethodgetPlayer
(roomId: string, playerId: string)
server/src/chat/chat.repository.ts:9
↓ 1 callersFunctiongetPlayerRole
(playerRole: PlayerRole | undefined, myRole: PlayerRole | null)
client/src/components/player/PlayerCardList.tsx:15
↓ 1 callersFunctiongetTouchPoint
(canvas: HTMLCanvasElement, e: TouchEvent)
client/src/components/canvas/MainCanvas.tsx:11
↓ 1 callersFunctiongetTouchPoint
(canvas: HTMLCanvasElement, e: TouchEvent)
client/src/utils/getDrawPoint.ts:19
↓ 1 callersFunctionhandleChange
(value: string)
client/src/components/ui/Dropdown.stories.tsx:49
↓ 1 callersFunctionhandleChangeLineWidth
(lineWidth: string)
client/src/components/canvas/CanvasToolbar.tsx:17
↓ 1 callersFunctionhandleChangeToolColor
(colorNum: number)
client/src/components/canvas/CanvasToolbar.tsx:14
↓ 1 callersFunctionhandleConfirmExit
()
client/src/components/modal/NavigationModal.tsx:12
↓ 1 callersFunctionhandleCreateRoom
()
client/src/pages/MainPage.tsx:19
↓ 1 callersMethodhandleDrawingTimeout
(roomId: string)
server/src/game/game.service.ts:321
↓ 1 callersMethodhandleGuessingTimeout
(roomId: string)
server/src/game/game.service.ts:387
↓ 1 callersFunctionhandleInCanvas
(canvasRef: RefObject<HTMLCanvasElement>, point: Point, brushSize: number)
client/src/handlers/canvas/cursorInOutHandler.ts:5
↓ 1 callersFunctionhandleOutCanvas
(canvasRef: RefObject<HTMLCanvasElement>)
client/src/handlers/canvas/cursorInOutHandler.ts:15
next →1–100 of 253, ranked by callers