| 2 | import type { DragDropMonitor, DragSource, Identifier } from '../interfaces.js' |
| 3 | |
| 4 | export class DragSourceImpl implements DragSource { |
| 5 | public canDrag(_monitor: DragDropMonitor, _targetId: Identifier): boolean { |
| 6 | return true |
| 7 | } |
| 8 | |
| 9 | public isDragging(monitor: DragDropMonitor, targetId: Identifier): boolean { |
| 10 | return targetId === monitor.getSourceId() |
| 11 | } |
| 12 | |
| 13 | public beginDrag(_monitor: DragDropMonitor, _targetId: Identifier): void { |
| 14 | // empty on purpose |
| 15 | } |
| 16 | |
| 17 | public endDrag(_monitor: DragDropMonitor, _targetId: Identifier): void { |
| 18 | // empty on purpose |
| 19 | } |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…