Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdolescentJou/react-dnd-demo
/ functions
Functions
63 in github.com/AdolescentJou/react-dnd-demo
⨍
Functions
63
◇
Types & classes
17
↓ 2 callers
Function
drop
(_item: any, monitor: any)
src/components/arbitrarilyDrag/Classification.tsx:8
↓ 2 callers
Function
isSelectItem
(id: any)
src/components/multiDrag/Drag.tsx:60
↓ 2 callers
Method
removeDropItemById
(itemId: any, dropCardList: any)
src/components/cardAssemble/index.tsx:88
↓ 2 callers
Function
updateList
(each: any)
src/components/multiDrag/Drag.tsx:45
↓ 1 callers
Function
canMoveKnight
(toX: number, toY: number, knightPosition: [number, number])
src/components/Chess/utils.ts:1
↓ 1 callers
Method
dragItemBack
(dragId: number)
src/components/cardAssemble/index.tsx:77
↓ 1 callers
Function
getItemStyles
( initialOffset: XYCoord | null, currentOffset: XYCoord | null, isSnapToGrid: boolean )
src/components/dragPreviewDom/customDragerLayer.tsx:21
↓ 1 callers
Function
handleChangeRoute
(url: string)
src/components/base/nav/index.tsx:9
↓ 1 callers
Method
removeDragItemById
(itemId: any, dragCardList: any)
src/components/cardAssemble/index.tsx:103
↓ 1 callers
Method
render
()
src/components/Chess/index.tsx:18
↓ 1 callers
Function
renderItem
()
src/components/dragPreviewDom/customDragerLayer.tsx:59
↓ 1 callers
Function
renderPiece
(x: any, y: any, knightPosition = [])
src/components/Chess/board.tsx:19
↓ 1 callers
Function
renderSquare
(i: any, knightPosition: any, moveKnight: any)
src/components/Chess/board.tsx:7
↓ 1 callers
Function
reportWebVitals
(onPerfEntry?: ReportHandler)
src/reportWebVitals.ts:3
↓ 1 callers
Function
snapToGrid
(x: number, y: number)
src/components/dragPreviewDom/customDragerLayer.tsx:5
Function
App
({ ...props })
src/components/App.tsx:7
Function
Board
({ knightPosition, moveKnight }: any)
src/components/Chess/board.tsx:26
Function
BoardSquare
({ x, y, knightPosition, children, moveKnight }: any)
src/components/Chess/boardSquare.tsx:24
Function
Box
({ bg, text, dropCardList, updateDragAndDrop }: any)
src/components/listSort/box.tsx:7
Function
Card
({ bg, text, index, moveCard, id, updateDragAndDrop, dropCardList }: any)
src/components/listSort/card.tsx:11
Function
Card
({ text, id, index, changePosition }: any)
src/components/cardSort/card.tsx:4
Function
Classification
({ type, title }: any)
src/components/arbitrarilyDrag/Classification.tsx:4
Function
CustomDragLayer
(props: any)
src/components/dragPreviewDom/customDragerLayer.tsx:49
Function
Drag
()
src/components/multiDrag/Drag.tsx:23
Function
DragCard
({ text, id, index, updateDragAndDrop, isHovering }: any)
src/components/cardAssemble/dragCard.tsx:4
Function
DragPreviewDom
()
src/components/dragPreviewDom/dragPreviewDom.tsx:5
Function
DragPreviewImg
()
src/components/dragPreviewImg/dragPreviewImg.tsx:5
Function
DragSquare
({ dragCardList, updateDragAndDrop }: any)
src/components/cardAssemble/dragSquare.tsx:3
Function
DragSquare
({ dragCardList, dropCardList, updateDragAndDrop }: any)
src/components/listSort/dragSquare.tsx:3
Function
DropPlace
({ innerDrag, updateCardList, index, id, updateDragAndDrop }: any)
src/components/cardAssemble/dropPlace.tsx:4
Function
DropSquare
({ dropCardList, updateDragAndDrop }: any)
src/components/cardAssemble/dropSquare.tsx:2
Function
DropSquare
({ dropCardList, updateDragAndDrop }: any)
src/components/listSort/dropSquare.tsx:6
Function
DropSquare
({ dropCardList, updateDragAndDrop }: any)
src/components/multiDrag/Drop.tsx:3
Function
Knight
()
src/components/Chess/knight.tsx:5
Function
Nav
()
src/components/base/nav/index.tsx:6
Function
Overlay
({ color }: any)
src/components/Chess/boardSquare.tsx:7
Function
Square
({ black, children }: any)
src/components/Chess/square.tsx:3
Function
Word
({ type, text, id, ...props }: any)
src/components/arbitrarilyDrag/word.tsx:4
Method
changePosition
(dragIndex: string | number, hoverIndex: string | number)
src/components/cardSort/index.tsx:43
Method
componentDidMount
()
src/components/cardSort/index.tsx:39
Method
constructor
(props: any)
src/components/cardAssemble/index.tsx:40
Method
constructor
(props: any)
src/components/arbitrarilyDrag/index.tsx:40
Method
constructor
(props: any)
src/components/dragPreviewDom/index.tsx:9
Method
constructor
(props: any)
src/components/listSort/index.tsx:18
Method
constructor
(props: any)
src/components/Chess/index.tsx:6
Method
constructor
(props: any)
src/components/dragPreviewImg/index.tsx:8
Method
constructor
(props: any)
src/components/multiDrag/index.tsx:8
Method
constructor
(props: any)
src/components/cardSort/index.tsx:31
Function
end
(item, monitor)
src/components/arbitrarilyDrag/word.tsx:10
Function
end
(item: any, monitor: DragSourceMonitor)
src/components/listSort/card.tsx:23
Function
end
(_: unknown, monitor: DragSourceMonitor)
src/components/listSort/box.tsx:29
Function
hover
(item: any, monitor: DropTargetMonitor)
src/components/listSort/card.tsx:40
Function
item
()
src/components/listSort/box.tsx:19
Method
moveKnight
(toX: number, toY: number)
src/components/Chess/index.tsx:14
Method
render
()
src/components/cardAssemble/index.tsx:115
Method
render
()
src/components/arbitrarilyDrag/index.tsx:45
Method
render
()
src/components/dragPreviewDom/index.tsx:14
Method
render
()
src/components/listSort/index.tsx:31
Method
render
()
src/components/dragPreviewImg/index.tsx:13
Method
render
()
src/components/multiDrag/index.tsx:13
Method
render
()
src/components/cardSort/index.tsx:52
Method
updateDragAndDrop
(dragId: any, dropId?: any)
src/components/cardAssemble/index.tsx:49
Method
updateDragAndDrop
(newCardList: any)
src/components/listSort/index.tsx:27