VisDnDAPI.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 VisDnDAPI
  10. * @hideconstructor
  11. *
  12. * @classdesc Handles drag and drop of metadata onto a viaualization vis recommender or vis slot view.
  13. */
  14. define([], function () {
  15. return function () {
  16. function VisDnDAPI() {
  17. _classCallCheck(this, VisDnDAPI);
  18. }
  19. /**
  20. * @public
  21. * @function VisDnDAPI#registerProviders
  22. * @param {String} targetType type of the drop target
  23. * @param {DnDProvider[]} array of product-specific Providers (eg: VisDnDLiveWidgetProvider, VisDnDColumnToSlotProvider etc.)
  24. */
  25. VisDnDAPI.prototype.registerProviders = function registerProviders() {};
  26. /**
  27. * @public
  28. * @function VisDnDAPI#accepts
  29. * @param {Object} source the drag source object
  30. * @param {Object} target the drop target object
  31. * @return true if this content can accept this payload.
  32. * @description process the on drop action of drag and drop
  33. */
  34. VisDnDAPI.prototype.accepts = function accepts() {};
  35. /**
  36. * @public
  37. * @function VisDnDAPI#onDrop
  38. * @param {Object} source the drag source object
  39. * @param {Object} target the drop target object
  40. * @description process the on drop action of drag and drop
  41. */
  42. VisDnDAPI.prototype.onDrop = function onDrop() {};
  43. return VisDnDAPI;
  44. }();
  45. });
  46. //# sourceMappingURL=VisDnDAPI.js.map