DnDProviderAPI.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class DnDProviderAPI
  10. * @hideconstructor
  11. * @classdesc API class that handles drag and drop of metadata to create a visualization.
  12. */
  13. define([], function () {
  14. return function () {
  15. function DnDProviderAPI() {
  16. _classCallCheck(this, DnDProviderAPI);
  17. }
  18. /**
  19. * @public
  20. * @function DnDProviderAPI#accepts
  21. * @param {Object} payload the drag and drop payload
  22. * @description called by the DnD manager to check whether to accept the dragged object or not
  23. * @returns {Boolean}
  24. */
  25. DnDProviderAPI.prototype.accepts = function accepts() {};
  26. /**
  27. * @public
  28. * @function DnDProviderAPI#onDrop
  29. * @param {Object} payload the drag and drop payload
  30. * @param {Object} targetNode the DOM target node to accept the drop
  31. * @param {Object} event the jQuery event object
  32. * @description process the on drop action of drag and drop
  33. */
  34. DnDProviderAPI.prototype.onDrop = function onDrop() {};
  35. return DnDProviderAPI;
  36. }();
  37. });
  38. //# sourceMappingURL=DnDProviderAPI.js.map