SceneLayout3.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. 'use strict';
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: Storytelling (C) Copyright IBM Corp. 2018, 2019
  5. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. */
  7. define(['storytelling/nls/StringResources', 'baglass/core-client/js/core-client/utils/UniqueId'], function (stringResources, UniqueId) {
  8. return {
  9. get: function get() {
  10. var _widgets;
  11. var titleId = UniqueId.get('title_');
  12. var vis1Id = UniqueId.get('vis1_');
  13. var vis2Id = UniqueId.get('vis2_');
  14. return {
  15. layout: {
  16. type: 'container',
  17. templateName: 'Template1',
  18. items: [{
  19. type: 'genericPage',
  20. layoutPositioning: 'relative',
  21. css: 'templateBox aspectRatio_default',
  22. items: [{
  23. type: 'templateIndicator',
  24. style: {
  25. 'top': '0%',
  26. 'left': '0%',
  27. 'right': '0%',
  28. 'bottom': '0%'
  29. }
  30. }, {
  31. id: titleId,
  32. type: 'widget',
  33. style: {
  34. width: '98.00%',
  35. height: '20.00%',
  36. top: '1.82%',
  37. left: '1.00%'
  38. }
  39. }, {
  40. id: vis1Id,
  41. type: 'widget',
  42. style: {
  43. width: '48.50%',
  44. height: '74.54%',
  45. top: '23.64%',
  46. left: '1.00%'
  47. }
  48. }, {
  49. id: vis2Id,
  50. type: 'widget',
  51. style: {
  52. left: '50.50%',
  53. top: '23.64%',
  54. height: '74.54%',
  55. width: '48.5%'
  56. }
  57. }]
  58. }]
  59. },
  60. widgets: (_widgets = {}, _widgets[titleId] = {
  61. id: titleId,
  62. type: 'text',
  63. isResponsive: true,
  64. placeholder: {
  65. showIcon: false,
  66. text: stringResources.get('titleWidgetPlaceholderText')
  67. },
  68. content: '<div class="staticContent"><span class="textFitted responsiveColor responsiveFontSize responsiveFontFamily"><p style="text-align: center;"><br></p></span></div>',
  69. name: stringResources.get('titleWidgetPlaceholderText'),
  70. defaults: {
  71. justifyCenter: true
  72. }
  73. }, _widgets[vis1Id] = {
  74. id: vis1Id,
  75. type: 'multipurpose',
  76. placeholder: {
  77. iconType: 'vis'
  78. }
  79. }, _widgets[vis2Id] = {
  80. id: vis2Id,
  81. type: 'multipurpose',
  82. placeholder: {
  83. iconType: 'vis'
  84. }
  85. }, _widgets)
  86. };
  87. }
  88. };
  89. });
  90. //# sourceMappingURL=SceneLayout3.js.map