MCPcopy Create free account

hub / github.com/adrianhajdin/figma_clone / functions

Functions79 in github.com/adrianhajdin/figma_clone

↓ 30 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:37
↓ 3 callersFunctionhandleActiveElement
(elem: ActiveElement)
app/App.tsx:223
↓ 3 callersFunctionhandleInputChange
(property: string, value: string)
components/RightSidebar.tsx:22
↓ 3 callersFunctionisActive
(value: string | Array<ActiveElement>)
components/Navbar.tsx:15
↓ 2 callersFunctionRenderSelect
({ config, fontSize, fontWeight, fontFamily, handleInputChange, }: Props)
components/settings/Text.tsx:81
↓ 2 callersFunctioncreateSpecificShape
( shapeType: string, pointer: PointerEvent )
lib/shapes.ts:68
↓ 2 callersFunctionhandleCopy
(canvas: fabric.Canvas)
lib/key-events.ts:6
↓ 2 callersFunctionhandleDelete
( canvas: fabric.Canvas, deleteShapeFromStorage: (id: string) => void )
lib/key-events.ts:61
↓ 2 callersFunctionhandleKeyDown
({ e, canvas, undo, redo, syncShapeInStorage, deleteShapeFromStorage, }: { e: KeyboardEvent; c
lib/key-events.ts:81
↓ 2 callersFunctionhandleResize
({ canvas }: { canvas: fabric.Canvas | null })
lib/canvas.ts:385
↓ 2 callersFunctionuseInterval
(callback: () => void, delay: number)
hooks/useInterval.ts:5
↓ 2 callersFunctionuseMaxZIndex
()
lib/useMaxZIndex.ts:6
↓ 1 callersFunctioncreateCircle
(pointer: PointerEvent)
lib/shapes.ts:35
↓ 1 callersFunctioncreateLine
(pointer: PointerEvent)
lib/shapes.ts:45
↓ 1 callersFunctioncreateRectangle
(pointer: PointerEvent)
lib/shapes.ts:11
↓ 1 callersFunctioncreateText
(pointer: PointerEvent, text: string)
lib/shapes.ts:56
↓ 1 callersFunctioncreateTriangle
(pointer: PointerEvent)
lib/shapes.ts:24
↓ 1 callersFunctiongenerateRandomName
()
lib/utils.ts:41
↓ 1 callersFunctiongetShapeInfo
(shapeType: string)
lib/utils.ts:49
↓ 1 callersFunctionhandleCanvasMouseDown
({ options, canvas, selectedShapeRef, isDrawing, shapeRef, }: CanvasMouseDown)
lib/canvas.ts:41
↓ 1 callersFunctionhandleCanvasMouseUp
({ canvas, isDrawing, shapeRef, activeObjectRef, selectedShapeRef, syncShapeInStorage, setActive
lib/canvas.ts:174
↓ 1 callersFunctionhandleCanvasObjectModified
({ options, syncShapeInStorage, }: CanvasObjectModified)
lib/canvas.ts:203
↓ 1 callersFunctionhandleCanvasObjectMoving
({ options, }: { options: fabric.IEvent; })
lib/canvas.ts:236
↓ 1 callersFunctionhandleCanvasObjectScaling
({ options, setElementAttributes, }: CanvasObjectScaling)
lib/canvas.ts:315
↓ 1 callersFunctionhandleCanvasSelectionCreated
({ options, isEditingRef, setElementAttributes, }: CanvasSelectionCreated)
lib/canvas.ts:274
↓ 1 callersFunctionhandleCanvasZoom
({ options, canvas, }: { options: fabric.IEvent & { e: WheelEvent }; canvas: fabric.Canvas; })
lib/canvas.ts:398
↓ 1 callersFunctionhandleCanvaseMouseMove
({ options, canvas, isDrawing, selectedShapeRef, shapeRef, syncShapeInStorage, }: CanvasMouseMove)
lib/canvas.ts:106
↓ 1 callersFunctionhandleImageUpload
({ file, canvas, shapeRef, syncShapeInStorage, }: ImageUpload)
lib/shapes.ts:93
↓ 1 callersFunctionhandlePaste
( canvas: fabric.Canvas, syncShapeInStorage: (shape: fabric.Object) => void )
lib/key-events.ts:18
↓ 1 callersFunctionhandlePathCreated
({ options, syncShapeInStorage, }: CanvasPathCreated)
lib/canvas.ts:218
↓ 1 callersFunctioninitializeFabric
({ fabricRef, canvasRef, }: { fabricRef: React.MutableRefObject<fabric.Canvas | null>; canvasRef: Reac
lib/canvas.ts:18
↓ 1 callersFunctionmodifyShape
({ canvas, property, value, activeObjectRef, syncShapeInStorage, }: ModifyShape)
lib/shapes.ts:134
↓ 1 callersFunctionrenderCanvas
({ fabricRef, canvasObjects, activeObjectRef, }: RenderCanvas)
lib/canvas.ts:338
FunctionActiveUsers
()
components/users/ActiveUsers.tsx:10
FunctionAvatar
({ name, otherStyles }: Props)
components/users/Avatar.tsx:10
FunctionColor
({ inputRef, attribute, placeholder, attributeType, handleInputChange, }: Props)
components/settings/Color.tsx:11
FunctionComments
()
components/comments/Comments.tsx:7
FunctionCommentsOverlay
()
components/comments/CommentsOverlay.tsx:16
FunctionContextMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/context-menu.tsx:168
FunctionCursor
({ color, x, y, message }: Props)
components/cursor/Cursor.tsx:10
FunctionCursorChat
({ cursor, cursorState, setCursorState, updateMyPresence }: CursorChatProps)
components/cursor/CursorChat.tsx:4
FunctionCursorSVG
({ color }: { color: string })
public/assets/CursorSVG.tsx:1
FunctionDimensions
({ width, height, isEditingRef, handleInputChange }: Props)
components/settings/Dimensions.tsx:16
FunctionDropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
components/ui/dropdown-menu.tsx:171
FunctionExport
()
components/settings/Export.tsx:5
FunctionFlyingReaction
({ x, y, timestamp, value }: Props)
components/reaction/FlyingReaction.tsx:10
FunctionHome
()
app/App.tsx:27
FunctionLeftSidebar
({ allShapes }: { allShapes: Array<any> })
components/LeftSidebar.tsx:8
FunctionLive
({ canvasRef, undo, redo }: Props)
components/Live.tsx:20
FunctionLiveCursors
({ others }: LiveCursorProps)
components/cursor/LiveCursors.tsx:6
FunctionLoader
()
components/Loader.tsx:3
FunctionNavbar
({ activeElement, imageInputRef, handleImageUpload, handleActiveElement }: NavbarProps)
components/Navbar.tsx:14
FunctionNewThread
({ children }: Props)
components/comments/NewThread.tsx:27
FunctionNewThreadCursor
({ display }: { display: boolean })
components/comments/NewThreadCursor.tsx:9
FunctionOverlayThread
({ thread, maxZIndex }: OverlayThreadProps)
components/comments/CommentsOverlay.tsx:39
FunctionPinnedComposer
({ onComposerSubmit, ...props }: Props)
components/comments/PinnedComposer.tsx:10
FunctionPinnedThread
({ thread, onFocus, ...props }: Props)
components/comments/PinnedThread.tsx:15
FunctionReactionButton
({ reaction, onSelect }: ReactionButtonProps)
components/reaction/ReactionButton.tsx:26
FunctionReactionSelector
({ setReaction }: Props)
components/reaction/ReactionButton.tsx:7
FunctionRightSidebar
({ elementAttributes, setElementAttributes, fabricRef, activeObjectRef, isEditingRef, syncShapeInS
components/RightSidebar.tsx:11
FunctionRoom
({ children }: { children: React.ReactNode })
app/Room.tsx:9
FunctionRootLayout
({ children }: { children: React.ReactNode })
app/layout.tsx:20
FunctionShapesMenu
({ item, activeElement, handleActiveElement, handleImageUpload, imageInputRef, }: ShapesMenuProps)
components/ShapesMenu.tsx:10
FunctionText
({ fontFamily, fontSize, fontWeight, handleInputChange, }: TextProps)
components/settings/Text.tsx:36
FunctionbringElement
({ canvas, direction, syncShapeInStorage, }: ElementDirection)
lib/shapes.ts:163
FunctioncreateShape
( canvas: fabric.Canvas, pointer: PointerEvent, shapeType: string )
lib/shapes.ts:121
FunctionexportToPdf
()
lib/utils.ts:101
FunctionhandleChange
(e: React.ChangeEvent<HTMLInputElement>)
components/cursor/CursorChat.tsx:5
FunctionhandleContextMenu
(e: Event)
components/comments/NewThread.tsx:137
FunctionhandleKeyDown
(e: React.KeyboardEvent<HTMLInputElement>)
components/cursor/CursorChat.tsx:14
FunctionhandlePointerDown
(e: PointerEvent)
components/comments/NewThread.tsx:124
FunctionhandlePointerMove
(e: PointerEvent)
components/comments/NewThread.tsx:102
FunctionnewComment
(e: MouseEvent)
components/comments/NewThread.tsx:61
FunctiononKeyDown
(e: KeyboardEvent)
components/Live.tsx:120
FunctiononKeyUp
(e: KeyboardEvent)
components/Live.tsx:105
FunctionresolveMentionSuggestions
({ text, roomId })
liveblocks.config.ts:103
FunctionresolveUsers
({ userIds })
liveblocks.config.ts:90
Functiontick
()
hooks/useInterval.ts:15
FunctionupdatePosition
(e: MouseEvent)
components/comments/NewThreadCursor.tsx:16