芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/dnd-core/dist/cjs/actions/dragDrop/endDrag.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createEndDrag; var _invariant = require("@react-dnd/invariant"); var _types = require("./types"); function createEndDrag(manager) { return function endDrag() { var monitor = manager.getMonitor(); var registry = manager.getRegistry(); verifyIsDragging(monitor); var sourceId = monitor.getSourceId(); var source = registry.getSource(sourceId, true); source.endDrag(monitor, sourceId); registry.unpinSource(); return { type: _types.END_DRAG }; }; } function verifyIsDragging(monitor) { (0, _invariant.invariant)(monitor.isDragging(), 'Cannot call endDrag while not dragging.'); }