SceneLayout2.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. return {
  14. layout: {
  15. type: 'container',
  16. templateName: 'Template1',
  17. items: [{
  18. type: 'genericPage',
  19. layoutPositioning: 'relative',
  20. css: 'templateBox aspectRatio_default',
  21. items: [{
  22. type: 'templateIndicator',
  23. style: {
  24. 'top': '0%',
  25. 'left': '0%',
  26. 'right': '0%',
  27. 'bottom': '0%'
  28. }
  29. }, {
  30. id: titleId,
  31. type: 'widget',
  32. style: {
  33. width: '98.00%',
  34. height: '20.00%',
  35. top: '1.82%',
  36. left: '1.00%'
  37. }
  38. }, {
  39. id: vis1Id,
  40. type: 'widget',
  41. style: {
  42. width: '98.00%',
  43. height: '74.54%',
  44. top: '23.64%',
  45. left: '1.00%'
  46. }
  47. }]
  48. }]
  49. },
  50. widgets: (_widgets = {}, _widgets[titleId] = {
  51. id: titleId,
  52. type: 'text',
  53. isResponsive: true,
  54. placeholder: {
  55. text: stringResources.get('titleWidgetPlaceholderText')
  56. },
  57. content: '<div class="staticContent"><span class="textFitted responsiveColor responsiveFontSize responsiveFontFamily"><p style="text-align: center;"><br></p></span></div>',
  58. name: stringResources.get('titleWidgetPlaceholderText'),
  59. defaults: {
  60. justifyCenter: true
  61. }
  62. }, _widgets[vis1Id] = {
  63. id: vis1Id,
  64. type: 'multipurpose',
  65. placeholder: {
  66. iconType: 'vis'
  67. }
  68. }, _widgets)
  69. };
  70. }
  71. };
  72. });
  73. //# sourceMappingURL=SceneLayout2.js.map