MCPcopy Create free account

hub / github.com/Shitanshukumar607/Drawspace / functions

Functions62 in github.com/Shitanshukumar607/Drawspace

↓ 10 callersFunctiongetPointerPositionRelativeToStage
( stage: Konva.Stage )
hooks/getPointerPosition.ts:3
↓ 7 callersFunctiongetDefaultForTool
( tool: keyof ToolPropertiesMap )
context/toolPropertiesStore.ts:112
↓ 5 callersFunctioncreateShapeId
()
hooks/createShapeId.ts:3
↓ 2 callersFunctionbuildInitialProperties
()
context/toolPropertiesStore.ts:163
↓ 2 callersFunctionmergeWithDefaults
( tool: K, existing?: Partial<ToolPropertiesMap[K]> )
context/toolPropertiesStore.ts:180
↓ 1 callersFunctioncreateCheckboard
()
components/ToolSettingsSidebar.tsx:31
↓ 1 callersFunctioncreateEmptyState
()
context/historyStore.ts:34
↓ 1 callersFunctiongetCursorForTool
()
components/CanvasComponent.tsx:66
↓ 1 callersFunctionhandleResize
()
components/CanvasComponent.tsx:37
↓ 1 callersFunctionhandleStageDragMove
(e: KonvaEventObject<DragEvent>)
components/CanvasComponent.tsx:211
↓ 1 callersFunctionhandleToolClick
(toolId: selectedToolType)
components/FloatingToolbar.tsx:87
↓ 1 callersFunctionisPropertyTool
(tool: string)
components/ToolSettingsSidebar.tsx:39
↓ 1 callersFunctionuseDrawArrowTool
()
hooks/DrawArrowTool.ts:11
↓ 1 callersFunctionuseDrawLineTool
()
hooks/DrawLineTool.ts:11
↓ 1 callersFunctionuseDrawRectangleTool
()
hooks/DrawRectangleTool.ts:13
↓ 1 callersFunctionuseEllipseTool
()
hooks/DrawEllipseTool.ts:11
↓ 1 callersFunctionuseFreeDrawingTool
()
hooks/FreeDrawingTool.ts:12
FunctionArrowShapes
({ arrows, selectedShapeId, isPointerTool, onSelect, onDragEnd, registerRef, }: ArrowShapesProps)
components/CanvasShapeRenderers.tsx:201
FunctionCanvasComponent
()
components/CanvasComponent.tsx:28
FunctionEllipseShapes
({ ellipses, isPointerTool, onSelect, onDragEnd, onTransformEnd, registerRef, selectedShapeId, }
components/CanvasShapeRenderers.tsx:84
FunctionFloatingToolbar
()
components/FloatingToolbar.tsx:36
FunctionFreeDrawingLines
({ lines }: { lines: FreeDrawingLine[] })
components/CanvasShapeRenderers.tsx:169
FunctionHome
()
app/page.tsx:6
FunctionLineShapes
({ lines, selectedShapeId, isPointerTool, onSelect, onDragEnd, registerRef, }: LineShapesProps)
components/CanvasShapeRenderers.tsx:133
FunctionRectangleShapes
({ rectangles, isPointerTool, onSelect, onDragEnd, onTransformEnd, registerRef, selectedShapeId,
components/CanvasShapeRenderers.tsx:40
FunctionRootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:20
FunctionToolButton
({ icon: Icon, label, isSelected, onClick, isLockTool = false, })
components/ToolButton.tsx:12
FunctionToolInstructions
()
components/ToolInstructions.tsx:22
FunctionToolSettingsSidebar
()
components/ToolSettingsSidebar.tsx:45
FunctionhandleArrowDragEnd
(id: string, e: KonvaEventObject<Event>)
components/CanvasComponent.tsx:298
FunctionhandleEllipseDragEnd
(id: string, e: KonvaEventObject<Event>)
components/CanvasComponent.tsx:272
FunctionhandleEllipseTransformEnd
( id: string, e: KonvaEventObject<Event> )
components/CanvasComponent.tsx:277
FunctionhandleLineDragEnd
(id: string, e: KonvaEventObject<Event>)
components/CanvasComponent.tsx:253
FunctionhandlePointerDown
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawRectangleTool.ts:33
FunctionhandlePointerDown
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawLineTool.ts:25
FunctionhandlePointerDown
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawEllipseTool.ts:29
FunctionhandlePointerDown
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/FreeDrawingTool.ts:31
FunctionhandlePointerDown
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawArrowTool.ts:25
FunctionhandlePointerMove
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawRectangleTool.ts:62
FunctionhandlePointerMove
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawLineTool.ts:52
FunctionhandlePointerMove
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawEllipseTool.ts:57
FunctionhandlePointerMove
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/FreeDrawingTool.ts:66
FunctionhandlePointerMove
(e: KonvaEventObject<MouseEvent | TouchEvent>)
hooks/DrawArrowTool.ts:51
FunctionhandlePointerUp
()
hooks/DrawRectangleTool.ts:81
FunctionhandlePointerUp
()
hooks/DrawLineTool.ts:64
FunctionhandlePointerUp
()
hooks/DrawEllipseTool.ts:76
FunctionhandlePointerUp
()
hooks/FreeDrawingTool.ts:62
FunctionhandlePointerUp
()
hooks/DrawArrowTool.ts:68
FunctionhandleRectangleDragEnd
(id: string, e: KonvaEventObject<Event>)
components/CanvasComponent.tsx:227
FunctionhandleRectangleTransformEnd
( id: string, e: KonvaEventObject<Event> )
components/CanvasComponent.tsx:232
FunctionhandleShapeSelect
(id: string, type: TransformerSelectionType)
components/CanvasComponent.tsx:118
FunctionhandleStageDragEnd
(e: KonvaEventObject<DragEvent>)
components/CanvasComponent.tsx:222
FunctionhandleStageDragStart
()
components/CanvasComponent.tsx:216
FunctionhandleStagePointerDown
( e: KonvaEventObject<MouseEvent | TouchEvent> )
components/CanvasComponent.tsx:162
FunctionhandleStagePointerMove
( e: KonvaEventObject<MouseEvent | TouchEvent> )
components/CanvasComponent.tsx:172
FunctionhandleStagePointerUp
()
components/CanvasComponent.tsx:178
FunctionhandleStageWheel
(e: KonvaEventObject<WheelEvent>)
components/CanvasComponent.tsx:182
FunctionregisterShapeRef
(id, node)
components/CanvasComponent.tsx:110
FunctionupdateArrow
(id: string, updates: Partial<ArrowShapeWithProps>)
hooks/DrawArrowTool.ts:73
FunctionupdateEllipse
( id: string, updates: Partial<EllipseShapeWithProps> )
hooks/DrawEllipseTool.ts:81
FunctionupdateLine
(id: string, updates: Partial<LineShapeWithProps>)
hooks/DrawLineTool.ts:69
FunctionupdateRectangle
( id: string, updates: Partial<RectangleShapeWithProps> )
hooks/DrawRectangleTool.ts:86