SceneLayout6.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: Storytelling (C) Copyright IBM Corp. 2018
  5. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. */
  7. define(['baglass/core-client/js/core-client/utils/UniqueId'], function (UniqueId) {
  8. return {
  9. get: function get() {
  10. var _widgets;
  11. var multi1Id = UniqueId.get('multi1_');
  12. var multi2Id = UniqueId.get('multi2_');
  13. var multi3Id = UniqueId.get('multi3_');
  14. var multi4Id = UniqueId.get('multi4_');
  15. return {
  16. layout: {
  17. type: 'container',
  18. templateName: 'Template1',
  19. items: [{
  20. type: 'genericPage',
  21. layoutPositioning: 'relative',
  22. css: 'templateBox aspectRatio_default',
  23. items: [{
  24. type: 'templateIndicator',
  25. style: {
  26. 'top': '0%',
  27. 'left': '0%',
  28. 'right': '0%',
  29. 'bottom': '0%'
  30. }
  31. }, {
  32. id: multi1Id,
  33. type: 'widget',
  34. style: {
  35. width: '49.00%',
  36. height: '48.18%',
  37. top: '1.82%',
  38. left: '1.00%'
  39. }
  40. }, {
  41. id: multi2Id,
  42. type: 'widget',
  43. style: {
  44. width: '49.00%',
  45. height: '48.18%',
  46. top: '1.82%',
  47. left: '50.00%'
  48. }
  49. }, {
  50. id: multi3Id,
  51. type: 'widget',
  52. style: {
  53. width: '49.00%',
  54. height: '48.18%',
  55. top: '50.00%',
  56. left: '1.00%'
  57. }
  58. }, {
  59. id: multi4Id,
  60. type: 'widget',
  61. style: {
  62. width: '49.00%',
  63. height: '48.18%',
  64. top: '50.00%',
  65. left: '50.00%'
  66. }
  67. }]
  68. }]
  69. },
  70. widgets: (_widgets = {}, _widgets[multi1Id] = {
  71. id: multi1Id,
  72. type: 'multipurpose'
  73. }, _widgets[multi2Id] = {
  74. id: multi2Id,
  75. type: 'multipurpose'
  76. }, _widgets[multi3Id] = {
  77. id: multi3Id,
  78. type: 'multipurpose'
  79. }, _widgets[multi4Id] = {
  80. id: multi4Id,
  81. type: 'multipurpose'
  82. }, _widgets)
  83. };
  84. }
  85. };
  86. });
  87. //# sourceMappingURL=SceneLayout6.js.map