LayoutAPI.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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, 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @typedef {Object} layoutRenderOptions
  10. * @property {Boolean} isBackgrounRun - Indicate that the rendering is non-interactive, for example thumbnail rendering
  11. */
  12. /**
  13. * @class LayoutAPI
  14. * @hideconstructor
  15. * @classdesc
  16. */
  17. define([], function () {
  18. var LayoutAPI = function () {
  19. function LayoutAPI() {
  20. _classCallCheck(this, LayoutAPI);
  21. }
  22. /**
  23. * @deprecated Should use {@link LayoutAPI#getChildrenList} instead
  24. */
  25. LayoutAPI.prototype.getChildren = function getChildren() {};
  26. /**
  27. * @function LayoutApi#getId
  28. * @deprecated Should not be exposed going forward.
  29. */
  30. LayoutAPI.prototype.getId = function getId() {};
  31. /**
  32. * Get layout ratio from parent layout
  33. * @deprecated Should not be exposed going forward. Can be done by getting the parent layout and then
  34. * dividing 1 by the length of the getChildrenList response
  35. */
  36. LayoutAPI.prototype.getSelfRatio = function getSelfRatio() {};
  37. /**
  38. * Get the widget API for the widget inside this layout
  39. * @return {WidgetAPI} Null is returned if the layout does not contain a widget
  40. * @deprecated use {@link LayoutAPI#getWidget} instead
  41. */
  42. LayoutAPI.prototype.getWidgetAPI = function getWidgetAPI() {};
  43. return LayoutAPI;
  44. }();
  45. return LayoutAPI;
  46. });
  47. //# sourceMappingURL=LayoutAPI.js.map