RenderContextImpl.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 RenderContextImpl
  10. * @hideconstructor
  11. * @classdesc Implements {@link RenderContextAPI}
  12. */
  13. define([], function () {
  14. var RenderContextImpl = function () {
  15. /**
  16. *
  17. * @param {Object} options - init paramaters
  18. * @param {Object} options.renderContext - renderContext used internally
  19. */
  20. function RenderContextImpl(options) {
  21. _classCallCheck(this, RenderContextImpl);
  22. this._renderContext = options.renderContext;
  23. this._logger = options.logger;
  24. }
  25. /**
  26. * @implements RenderContextAPI.getSequenceId
  27. */
  28. RenderContextImpl.prototype.getSequenceId = function getSequenceId() {
  29. return this._renderContext.id;
  30. };
  31. /**
  32. * @implements RenderContextAPI.getData
  33. */
  34. RenderContextImpl.prototype.getData = function getData(name) {
  35. return this._renderContext[name];
  36. };
  37. return RenderContextImpl;
  38. }();
  39. return RenderContextImpl;
  40. });
  41. //# sourceMappingURL=RenderContextImpl.js.map