RenderSequenceFeature.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 RenderSequenceFeature
  10. * @hideconstructor
  11. * @classdesc
  12. */
  13. define(['../../../lib/@waca/dashboard-common/dist/core/APIFactory', './impl/RenderSequenceImpl', './api/RenderSequenceAPI', './api/internal/RenderSequenceInternalAPI'], function (APIFactory, RenderSequenceImpl, RenderSequenceAPI, RenderSequenceInternalAPI) {
  14. var RenderSequenceFeature = function () {
  15. /**
  16. * TODO: remove the usage of internalAPI.__imp when the internal API mechanism is in place
  17. * @param {Object} options
  18. * @param {DashboardAPI} options.dashboardAPI
  19. * @param {ContentAPI} options.content
  20. */
  21. function RenderSequenceFeature(options) {
  22. _classCallCheck(this, RenderSequenceFeature);
  23. var impl = new RenderSequenceImpl(options);
  24. this._publicAPI = APIFactory.createAPI(impl, [RenderSequenceAPI]);
  25. this._internalAPI = APIFactory.createAPI(impl, [RenderSequenceAPI, RenderSequenceInternalAPI]);
  26. }
  27. RenderSequenceFeature.prototype.getAPI = function getAPI(type) {
  28. if (type === 'internal') {
  29. return this._internalAPI;
  30. } else {
  31. return this._publicAPI;
  32. }
  33. };
  34. return RenderSequenceFeature;
  35. }();
  36. return RenderSequenceFeature;
  37. });
  38. //# sourceMappingURL=RenderSequenceFeature.js.map