12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- "use strict";
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /**
- * Licensed Materials - Property of IBM
- * IBM Business Analytics (C) Copyright IBM Corp. 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @class CanvasDnDAPI
- * @hideconstructor
- * @classdesc API class that handles drag and drop on a canvas
- */
- define([], function () {
- return function () {
- function CanvasDnDAPI() {
- _classCallCheck(this, CanvasDnDAPI);
- }
- /**
- * @function CanvasDnDAPI#registerProvider
- * @description Register a provider to handle drag and drop
- * @param {provider} provider provider to handle drag and drop
- */
- CanvasDnDAPI.prototype.registerProvider = function registerProvider() {};
- /**
- * @public
- * @function CanvasDnDAPI#accepts
- * @param {Object} payload the drag and drop payload
- * @description called by the DnD manager to check whether to accept the dragged object or not
- * @returns {Boolean}
- */
- CanvasDnDAPI.prototype.accepts = function accepts() {};
- /**
- * @public
- * @function CanvasDnDAPI#onDrop
- * @param {Object} payload the drag and drop payload
- * @param {Object} targetNode the DOM target node to accept the drop
- * @param {Object} event the jQuery event object
- * @description process the on drop action of drag and drop
- */
- CanvasDnDAPI.prototype.onDrop = function onDrop() {};
- return CanvasDnDAPI;
- }();
- });
- //# sourceMappingURL=CanvasDnDAPI.js.map
|