StoryAPI.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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 StoryAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to control the behaviour of a storytelling instance
  12. */
  13. define([], function () {
  14. var StoryAPI = function () {
  15. function StoryAPI() {
  16. _classCallCheck(this, StoryAPI);
  17. }
  18. /**
  19. * @function StoryAPI#addScene
  20. * @param {string} [sceneType=SceneLayout1]
  21. * @param {string} [title=null]
  22. */
  23. StoryAPI.prototype.addScene = function addScene(sceneType, title) {
  24. void sceneType;
  25. void title;
  26. };
  27. /**
  28. * @function StoryAPI#deleteScene
  29. * @param id
  30. */
  31. StoryAPI.prototype.deleteScene = function deleteScene(id) {
  32. void id;
  33. };
  34. /**
  35. * @function StoryAPI#duplicateScene
  36. * @param id
  37. */
  38. StoryAPI.prototype.duplicateScene = function duplicateScene(id) {
  39. void id;
  40. };
  41. /**
  42. * @function StoryAPI#enterShareState
  43. * @param slideout {Object} The share panel slideout
  44. */
  45. StoryAPI.prototype.enterShareState = function enterShareState(slideout) {
  46. void slideout;
  47. };
  48. /**
  49. * @function StoryAPI#getCurrentSceneInfo
  50. */
  51. StoryAPI.prototype.getCurrentSceneInfo = function getCurrentSceneInfo() {};
  52. /**
  53. * @function StoryAPI#getCurrentTime
  54. */
  55. StoryAPI.prototype.getCurrentTime = function getCurrentTime() {};
  56. /**
  57. * @function StoryAPI#getDuration
  58. */
  59. StoryAPI.prototype.getDuration = function getDuration() {};
  60. /**
  61. * @function StoryAPI#getSceneCount
  62. */
  63. StoryAPI.prototype.getSceneCount = function getSceneCount() {};
  64. /**
  65. * @function StoryAPI#getSelectedSceneIndex
  66. */
  67. StoryAPI.prototype.getSelectedSceneIndex = function getSelectedSceneIndex() {};
  68. /**
  69. * @function StoryAPI#getSceneId
  70. * @param index
  71. */
  72. StoryAPI.prototype.getSceneId = function getSceneId(index) {
  73. void index;
  74. };
  75. /**
  76. * @function StoryAPI#getTimelineAPI
  77. * @param index
  78. */
  79. StoryAPI.prototype.getTimelineAPI = function getTimelineAPI() {};
  80. /**
  81. * @function StoryAPI#isPlaying
  82. */
  83. StoryAPI.prototype.isPlaying = function isPlaying() {};
  84. /**
  85. * @function StoryAPI#isStartOverview
  86. */
  87. StoryAPI.prototype.isStartOverview = function isStartOverview() {};
  88. /**
  89. * @function StoryAPI#isEndOverview
  90. */
  91. StoryAPI.prototype.isEndOverview = function isEndOverview() {};
  92. /**
  93. * @function StoryAPI#isAtStartOfScene
  94. */
  95. StoryAPI.prototype.isAtStartOfScene = function isAtStartOfScene() {};
  96. /**
  97. * @function StoryAPI#isAtEndOfScene
  98. */
  99. StoryAPI.prototype.isAtEndOfScene = function isAtEndOfScene() {};
  100. /**
  101. * @function StoryAPI#toggleKioskMode
  102. */
  103. StoryAPI.prototype.toggleKioskMode = function toggleKioskMode() {};
  104. /**
  105. * @function StoryAPI#toggleNavigateMarkers
  106. */
  107. StoryAPI.prototype.toggleNavigateMarkers = function toggleNavigateMarkers() {};
  108. /**
  109. * @function StoryAPI#togglePlayThrough
  110. */
  111. StoryAPI.prototype.togglePlayThrough = function togglePlayThrough() {};
  112. /**
  113. * @function StoryAPI#isNavigateMarkers
  114. */
  115. StoryAPI.prototype.isNavigateMarkers = function isNavigateMarkers() {};
  116. /**
  117. * @function StoryAPI#isScenePopulated
  118. * @param sceneId
  119. */
  120. StoryAPI.prototype.isScenePopulated = function isScenePopulated(sceneId) {
  121. void sceneId;
  122. };
  123. /**
  124. * @function StoryAPI#play
  125. */
  126. StoryAPI.prototype.play = function play() {};
  127. /**
  128. * @function StoryAPI#stop
  129. */
  130. StoryAPI.prototype.stop = function stop() {};
  131. /**
  132. * @function StoryAPI#leaveShareState
  133. */
  134. StoryAPI.prototype.leaveShareState = function leaveShareState() {};
  135. /**
  136. * @function StoryAPI#moveSceneLeft
  137. * @param id
  138. */
  139. StoryAPI.prototype.moveSceneLeft = function moveSceneLeft(id) {
  140. void id;
  141. };
  142. /**
  143. * @function StoryAPI#moveSceneRight
  144. * @param id
  145. */
  146. StoryAPI.prototype.moveSceneRight = function moveSceneRight(id) {
  147. void id;
  148. };
  149. /**
  150. * @function StoryAPI#nextScene
  151. * @param options
  152. */
  153. StoryAPI.prototype.nextScene = function nextScene(options) {
  154. void options;
  155. };
  156. /**
  157. * @function StoryAPI#previousScene
  158. */
  159. StoryAPI.prototype.previousScene = function previousScene() {};
  160. /**
  161. * @function StoryAPI#renameScene
  162. * @param id
  163. * @param title
  164. */
  165. StoryAPI.prototype.renameScene = function renameScene(id, title) {
  166. void id;
  167. void title;
  168. };
  169. /**
  170. * @function StoryAPI#selectScene
  171. * @param options
  172. */
  173. StoryAPI.prototype.selectScene = function selectScene(options) {
  174. void options;
  175. };
  176. /**
  177. * @function StoryAPI#setCurrentTime
  178. * @param time
  179. */
  180. StoryAPI.prototype.setCurrentTime = function setCurrentTime(time) {
  181. void time;
  182. };
  183. /**
  184. * @function StoryAPI#enterPrintMode
  185. */
  186. StoryAPI.prototype.enterPrintMode = function enterPrintMode() {};
  187. /**
  188. * @function StoryAPI#leavePrintMode
  189. * @param sceneTime
  190. */
  191. StoryAPI.prototype.leavePrintMode = function leavePrintMode(sceneTime) {
  192. void sceneTime;
  193. };
  194. return StoryAPI;
  195. }();
  196. return StoryAPI;
  197. });
  198. //# sourceMappingURL=StoryAPI.js.map