(sourceId)
| 64 | } |
| 65 | |
| 66 | canDragSource(sourceId) { |
| 67 | const source = this.registry.getSource(sourceId); |
| 68 | invariant(source, 'Expected to find a valid source.'); |
| 69 | |
| 70 | if (this.isDragging()) { |
| 71 | return false; |
| 72 | } |
| 73 | |
| 74 | return source.canDrag(this, sourceId); |
| 75 | } |
| 76 | |
| 77 | canDropOnTarget(targetId) { |
| 78 | const target = this.registry.getTarget(targetId); |
no test coverage detected