@vived/app 4.27.1 → 4.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (904) hide show
  1. package/lib/Components/Babylon/Factories/index.d.ts +1 -0
  2. package/lib/{PresentationManagers/SceneModel → Components/Babylon/Factories}/index.js +1 -1
  3. package/lib/Components/Babylon/Factories/setupBabylon.d.ts +2 -0
  4. package/lib/Components/Babylon/Factories/setupBabylon.js +11 -0
  5. package/lib/Components/Babylon/index.d.ts +2 -0
  6. package/lib/Components/Babylon/index.js +2 -0
  7. package/lib/Components/BaseApp/Adapters/index.d.ts +4 -0
  8. package/lib/Components/BaseApp/Adapters/index.js +16 -0
  9. package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.d.ts +2 -0
  10. package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.js +23 -0
  11. package/lib/Components/BaseApp/Adapters/isReviewingAdapter.d.ts +2 -0
  12. package/lib/Components/BaseApp/Adapters/isReviewingAdapter.js +23 -0
  13. package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.d.ts +3 -0
  14. package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.js +23 -0
  15. package/lib/Components/BaseApp/Adapters/slideTextAdapter.d.ts +2 -0
  16. package/lib/Components/BaseApp/Adapters/slideTextAdapter.js +23 -0
  17. package/lib/Components/BaseApp/Controller/clickContinue.d.ts +2 -0
  18. package/lib/Components/BaseApp/Controller/clickContinue.js +13 -0
  19. package/lib/Components/BaseApp/Controller/clickEditSlideText.d.ts +2 -0
  20. package/lib/Components/BaseApp/Controller/clickEditSlideText.js +13 -0
  21. package/lib/Components/BaseApp/Controller/index.d.ts +5 -0
  22. package/lib/Components/BaseApp/Controller/index.js +17 -0
  23. package/lib/Components/BaseApp/Controller/removeRenderCanvas.d.ts +2 -0
  24. package/lib/Components/BaseApp/Controller/removeRenderCanvas.js +13 -0
  25. package/lib/Components/BaseApp/Controller/submitRenderCanvas.d.ts +2 -0
  26. package/lib/Components/BaseApp/Controller/submitRenderCanvas.js +13 -0
  27. package/lib/Components/BaseApp/Controller/updateContentSize.d.ts +2 -0
  28. package/lib/Components/BaseApp/Controller/updateContentSize.js +13 -0
  29. package/lib/Components/BaseApp/Entity/BaseAppState.d.ts +20 -0
  30. package/lib/Components/BaseApp/Entity/BaseAppState.js +68 -0
  31. package/lib/Components/BaseApp/Entity/index.d.ts +1 -0
  32. package/lib/Components/{zSpace/Controllers → BaseApp/Entity}/index.js +1 -1
  33. package/lib/Components/BaseApp/Factories/index.d.ts +1 -0
  34. package/lib/{PresentationManagers/SceneObject → Components/BaseApp/Factories}/index.js +1 -1
  35. package/lib/Components/BaseApp/Factories/setupBaseApp.d.ts +2 -0
  36. package/lib/Components/BaseApp/Factories/setupBaseApp.js +22 -0
  37. package/lib/Components/BaseApp/Mocks/IsAuthoringMock.d.ts +8 -0
  38. package/lib/Components/BaseApp/Mocks/IsAuthoringMock.js +15 -0
  39. package/lib/Components/BaseApp/Mocks/IsReviewingMock.d.ts +8 -0
  40. package/lib/Components/BaseApp/Mocks/IsReviewingMock.js +15 -0
  41. package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.d.ts +10 -0
  42. package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.js +16 -0
  43. package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.d.ts +10 -0
  44. package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.js +16 -0
  45. package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.d.ts +9 -0
  46. package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.js +15 -0
  47. package/lib/Components/BaseApp/Mocks/SlideNavigationMock.d.ts +8 -0
  48. package/lib/Components/BaseApp/Mocks/SlideNavigationMock.js +15 -0
  49. package/lib/Components/BaseApp/Mocks/SlideTextMock.d.ts +8 -0
  50. package/lib/Components/BaseApp/Mocks/SlideTextMock.js +15 -0
  51. package/lib/Components/BaseApp/Mocks/index.d.ts +7 -0
  52. package/lib/Components/BaseApp/Mocks/index.js +19 -0
  53. package/lib/Components/BaseApp/PM/IsAuthoringPM.d.ts +6 -0
  54. package/lib/Components/BaseApp/PM/IsAuthoringPM.js +39 -0
  55. package/lib/Components/BaseApp/PM/IsReviewingPM.d.ts +6 -0
  56. package/lib/Components/BaseApp/PM/IsReviewingPM.js +39 -0
  57. package/lib/Components/BaseApp/PM/SlideNavigationPM.d.ts +12 -0
  58. package/lib/Components/BaseApp/PM/SlideNavigationPM.js +49 -0
  59. package/lib/Components/BaseApp/PM/SlideTextPM.d.ts +6 -0
  60. package/lib/Components/BaseApp/PM/SlideTextPM.js +34 -0
  61. package/lib/Components/BaseApp/PM/index.d.ts +4 -0
  62. package/lib/Components/BaseApp/PM/index.js +16 -0
  63. package/lib/Components/BaseApp/UC/AppRenderingUC.d.ts +7 -0
  64. package/lib/Components/BaseApp/UC/AppRenderingUC.js +9 -0
  65. package/lib/Components/BaseApp/UC/EditSlideTextUC.d.ts +10 -0
  66. package/lib/Components/BaseApp/UC/EditSlideTextUC.js +57 -0
  67. package/lib/Components/BaseApp/UC/RenderCanvasUC.d.ts +10 -0
  68. package/lib/Components/BaseApp/UC/RenderCanvasUC.js +88 -0
  69. package/lib/Components/BaseApp/UC/SerializeBaseAppState.d.ts +17 -0
  70. package/lib/Components/BaseApp/UC/SerializeBaseAppState.js +59 -0
  71. package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.d.ts +11 -0
  72. package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.js +43 -0
  73. package/lib/Components/BaseApp/UC/UpdateContentSizeUC.d.ts +7 -0
  74. package/lib/Components/BaseApp/UC/UpdateContentSizeUC.js +33 -0
  75. package/lib/Components/BaseApp/UC/index.d.ts +7 -0
  76. package/lib/Components/BaseApp/UC/index.js +19 -0
  77. package/lib/Components/BaseApp/index.d.ts +7 -0
  78. package/lib/Components/BaseApp/index.js +19 -0
  79. package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.d.ts +3 -0
  80. package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.js +23 -0
  81. package/lib/Components/Callouts/Adapters/calloutListAdapter.d.ts +2 -0
  82. package/lib/Components/Callouts/Adapters/calloutListAdapter.js +23 -0
  83. package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.d.ts +3 -0
  84. package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.js +23 -0
  85. package/lib/Components/Callouts/Adapters/calloutSizeAdapter.d.ts +2 -0
  86. package/lib/Components/Callouts/Adapters/calloutSizeAdapter.js +23 -0
  87. package/lib/Components/Callouts/Adapters/index.d.ts +4 -0
  88. package/lib/Components/Callouts/Adapters/index.js +16 -0
  89. package/lib/Components/Callouts/Controller/MouseAddCalloutMC.d.ts +13 -0
  90. package/lib/Components/Callouts/Controller/MouseAddCalloutMC.js +43 -0
  91. package/lib/Components/Callouts/Controller/MouseCalloutRoll.d.ts +9 -0
  92. package/lib/Components/Callouts/Controller/MouseCalloutRoll.js +27 -0
  93. package/lib/Components/Callouts/Controller/TouchAddCalloutTC.d.ts +13 -0
  94. package/lib/Components/Callouts/Controller/TouchAddCalloutTC.js +47 -0
  95. package/lib/Components/Callouts/Controller/deleteAllCallouts.d.ts +2 -0
  96. package/lib/Components/Callouts/Controller/deleteAllCallouts.js +13 -0
  97. package/lib/Components/Callouts/Controller/deleteCallout.d.ts +2 -0
  98. package/lib/Components/Callouts/Controller/deleteCallout.js +13 -0
  99. package/lib/Components/Callouts/Controller/index.d.ts +6 -0
  100. package/lib/Components/Callouts/Controller/index.js +18 -0
  101. package/lib/Components/Callouts/Controller/submitCalloutSize.d.ts +2 -0
  102. package/lib/Components/Callouts/Controller/submitCalloutSize.js +13 -0
  103. package/lib/Components/Callouts/Controller/updateCalloutSize.d.ts +2 -0
  104. package/lib/Components/Callouts/Controller/updateCalloutSize.js +13 -0
  105. package/lib/Components/Callouts/Entities/CalloutEntity.d.ts +51 -0
  106. package/lib/Components/Callouts/Entities/CalloutEntity.js +141 -0
  107. package/lib/Components/Callouts/Entities/CalloutGlobals.d.ts +11 -0
  108. package/lib/Components/Callouts/Entities/CalloutGlobals.js +29 -0
  109. package/lib/Components/Callouts/Entities/CalloutRepo.d.ts +15 -0
  110. package/lib/Components/Callouts/Entities/CalloutRepo.js +57 -0
  111. package/lib/Components/Callouts/Entities/index.d.ts +3 -0
  112. package/lib/{AppObjectComponents/ChannelModel → Components/Callouts/Entities}/index.js +3 -2
  113. package/lib/Components/Callouts/Factories/calloutFactory.d.ts +3 -0
  114. package/lib/Components/Callouts/Factories/calloutFactory.js +42 -0
  115. package/lib/Components/Callouts/Factories/calloutRepoFactory.d.ts +3 -0
  116. package/lib/Components/Callouts/Factories/calloutRepoFactory.js +19 -0
  117. package/lib/Components/Callouts/Factories/index.d.ts +3 -0
  118. package/lib/{AppObjectComponents/Enablement → Components/Callouts/Factories}/index.js +3 -2
  119. package/lib/Components/Callouts/Factories/setupCallouts.d.ts +2 -0
  120. package/lib/Components/Callouts/Factories/setupCallouts.js +24 -0
  121. package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.d.ts +7 -0
  122. package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.js +11 -0
  123. package/lib/Components/Callouts/Mocks/CalloutListPmMock.d.ts +7 -0
  124. package/lib/Components/Callouts/Mocks/CalloutListPmMock.js +11 -0
  125. package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.d.ts +7 -0
  126. package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.js +11 -0
  127. package/lib/Components/Callouts/Mocks/CalloutSizePmMock.d.ts +7 -0
  128. package/lib/Components/Callouts/Mocks/CalloutSizePmMock.js +11 -0
  129. package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.d.ts +8 -0
  130. package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.js +12 -0
  131. package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.d.ts +7 -0
  132. package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.js +11 -0
  133. package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.d.ts +7 -0
  134. package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.js +11 -0
  135. package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.d.ts +8 -0
  136. package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.js +12 -0
  137. package/lib/Components/Callouts/Mocks/TryAddCalloutMock.d.ts +14 -0
  138. package/lib/Components/Callouts/Mocks/TryAddCalloutMock.js +21 -0
  139. package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.d.ts +9 -0
  140. package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.js +13 -0
  141. package/lib/Components/Callouts/Mocks/index.d.ts +8 -0
  142. package/lib/Components/Callouts/Mocks/index.js +20 -0
  143. package/lib/Components/Callouts/PM/CalloutLinePointsPM.d.ts +7 -0
  144. package/lib/Components/Callouts/PM/CalloutLinePointsPM.js +97 -0
  145. package/lib/Components/Callouts/PM/CalloutListPM.d.ts +6 -0
  146. package/lib/Components/Callouts/PM/CalloutListPM.js +49 -0
  147. package/lib/Components/Callouts/PM/CalloutOffsetPM.d.ts +7 -0
  148. package/lib/Components/Callouts/PM/CalloutOffsetPM.js +37 -0
  149. package/lib/Components/Callouts/PM/CalloutSizePM.d.ts +6 -0
  150. package/lib/Components/Callouts/PM/CalloutSizePM.js +41 -0
  151. package/lib/Components/Callouts/PM/index.d.ts +4 -0
  152. package/lib/Components/Callouts/PM/index.js +16 -0
  153. package/lib/Components/Callouts/UC/CalloutScaleHook.d.ts +11 -0
  154. package/lib/Components/Callouts/UC/CalloutScaleHook.js +48 -0
  155. package/lib/Components/Callouts/UC/CreateCalloutUC.d.ts +11 -0
  156. package/lib/Components/Callouts/UC/CreateCalloutUC.js +64 -0
  157. package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.d.ts +10 -0
  158. package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.js +36 -0
  159. package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.d.ts +8 -0
  160. package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.js +43 -0
  161. package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.d.ts +10 -0
  162. package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.js +40 -0
  163. package/lib/Components/Callouts/UC/DeleteCallout.d.ts +8 -0
  164. package/lib/Components/Callouts/UC/DeleteCallout.js +38 -0
  165. package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.d.ts +10 -0
  166. package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.js +36 -0
  167. package/lib/Components/Callouts/UC/LookAtCameraUC.d.ts +7 -0
  168. package/lib/Components/Callouts/UC/LookAtCameraUC.js +104 -0
  169. package/lib/Components/Callouts/UC/MoveCalloutToCamUC.d.ts +14 -0
  170. package/lib/Components/Callouts/UC/MoveCalloutToCamUC.js +35 -0
  171. package/lib/Components/Callouts/UC/SerializeCallouts.d.ts +17 -0
  172. package/lib/Components/Callouts/UC/SerializeCallouts.js +94 -0
  173. package/lib/Components/Callouts/UC/SetCalloutSizeUC.d.ts +9 -0
  174. package/lib/Components/Callouts/UC/SetCalloutSizeUC.js +63 -0
  175. package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.d.ts +15 -0
  176. package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.js +28 -0
  177. package/lib/Components/Callouts/UC/TryAddCallout.d.ts +14 -0
  178. package/lib/Components/Callouts/UC/TryAddCallout.js +111 -0
  179. package/lib/Components/Callouts/UC/TryBumpLabelUC.d.ts +9 -0
  180. package/lib/Components/Callouts/UC/TryBumpLabelUC.js +61 -0
  181. package/lib/Components/Callouts/UC/TryPanLabelUC.d.ts +3 -0
  182. package/lib/Components/Callouts/UC/TryPanLabelUC.js +38 -0
  183. package/lib/Components/Callouts/UC/index.d.ts +13 -0
  184. package/lib/Components/Callouts/UC/index.js +25 -0
  185. package/lib/Components/Callouts/index.d.ts +7 -0
  186. package/lib/Components/Callouts/index.js +19 -0
  187. package/lib/Components/Camera/Adapters/cameraAdapter.d.ts +3 -0
  188. package/lib/Components/Camera/Adapters/cameraAdapter.js +19 -0
  189. package/lib/Components/Camera/Adapters/index.d.ts +1 -0
  190. package/lib/{AppObjectComponents/Mesh → Components/Camera/Adapters}/index.js +1 -1
  191. package/lib/Components/Camera/Factories/index.d.ts +1 -0
  192. package/lib/Components/Camera/Factories/index.js +13 -0
  193. package/lib/Components/Camera/Factories/setupCamera.d.ts +2 -0
  194. package/lib/Components/Camera/Factories/setupCamera.js +15 -0
  195. package/lib/Components/Camera/Mocks/CameraPmMock.d.ts +8 -0
  196. package/lib/Components/Camera/Mocks/CameraPmMock.js +15 -0
  197. package/lib/Components/Camera/Mocks/index.d.ts +1 -0
  198. package/lib/Components/Camera/Mocks/index.js +13 -0
  199. package/lib/Components/Camera/PM/CameraPM.d.ts +1 -0
  200. package/lib/Components/Camera/PM/CameraPM.js +8 -1
  201. package/lib/Components/Camera/index.d.ts +3 -0
  202. package/lib/Components/Camera/index.js +3 -0
  203. package/lib/Components/Challenge/Adapters/challengeAuthorHelpHookAdapter.d.ts +2 -2
  204. package/lib/Components/Challenge/Adapters/challengeConsumerHelpHookAdapter.d.ts +2 -2
  205. package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.d.ts +2 -2
  206. package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.js +20 -26
  207. package/lib/Components/Challenge/Controller/setChallenge.d.ts +1 -1
  208. package/lib/Components/Challenge/Entities/ChallengeEntity.d.ts +19 -26
  209. package/lib/Components/Challenge/Entities/ChallengeEntity.js +43 -53
  210. package/lib/Components/Challenge/Factories/index.d.ts +1 -0
  211. package/lib/Components/Challenge/Factories/index.js +13 -0
  212. package/lib/Components/Challenge/Factories/setupChallenge.d.ts +2 -0
  213. package/lib/Components/Challenge/Factories/setupChallenge.js +46 -0
  214. package/lib/Components/Challenge/Mocks/ChallengeEntityMock.d.ts +17 -0
  215. package/lib/Components/Challenge/Mocks/ChallengeEntityMock.js +38 -0
  216. package/lib/Components/Challenge/Mocks/ChallengeMock.d.ts +11 -0
  217. package/lib/Components/Challenge/Mocks/ChallengeMock.js +13 -0
  218. package/lib/Components/Challenge/Mocks/MockSelectedChallengePM.d.ts +2 -2
  219. package/lib/Components/Challenge/Mocks/MockSetChallengeUC.d.ts +2 -2
  220. package/lib/Components/Challenge/Mocks/index.d.ts +2 -0
  221. package/lib/Components/Challenge/Mocks/index.js +2 -0
  222. package/lib/Components/Challenge/PMs/ChallengeAuthorHelpPM.d.ts +1 -1
  223. package/lib/Components/Challenge/PMs/ChallengeAuthorHelpPM.js +6 -7
  224. package/lib/Components/Challenge/PMs/ChallengeConsumerHelpPM.d.ts +1 -1
  225. package/lib/Components/Challenge/PMs/ChallengeConsumerHelpPM.js +13 -16
  226. package/lib/Components/Challenge/PMs/SelectedChallengePM.d.ts +7 -6
  227. package/lib/Components/Challenge/PMs/SelectedChallengePM.js +14 -11
  228. package/lib/Components/Challenge/UCs/SerializeChallenge.d.ts +1 -1
  229. package/lib/Components/Challenge/UCs/SerializeChallenge.js +3 -7
  230. package/lib/Components/Challenge/UCs/SetChallengeUC.d.ts +4 -4
  231. package/lib/Components/Challenge/UCs/SetChallengeUC.js +23 -9
  232. package/lib/Components/Challenge/UCs/ShowChallengeHelpUC.d.ts +1 -1
  233. package/lib/Components/Challenge/UCs/ShowChallengeHelpUC.js +2 -2
  234. package/lib/Components/Challenge/UCs/TryChallengeAgainUC.d.ts +2 -1
  235. package/lib/Components/Challenge/UCs/TryChallengeAgainUC.js +25 -1
  236. package/lib/Components/Challenge/UCs/index.d.ts +0 -1
  237. package/lib/Components/Challenge/UCs/index.js +0 -1
  238. package/lib/Components/Challenge/index.d.ts +1 -0
  239. package/lib/Components/Challenge/index.js +1 -0
  240. package/lib/Components/ChannelModel/Adapters/channelModelAdapter.js +2 -0
  241. package/lib/Components/ChannelModel/Adapters/index.d.ts +2 -0
  242. package/lib/Components/ChannelModel/Adapters/index.js +2 -0
  243. package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.d.ts +2 -0
  244. package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.js +27 -0
  245. package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.d.ts +2 -0
  246. package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.js +27 -0
  247. package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.d.ts +2 -0
  248. package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.js +23 -0
  249. package/lib/Components/ChannelModel/Controllers/index.d.ts +1 -0
  250. package/lib/Components/ChannelModel/Controllers/index.js +1 -0
  251. package/lib/Components/ChannelModel/Controllers/setModelObjectLabel.js +1 -1
  252. package/lib/Components/ChannelModel/Factories/channelModelFactory.d.ts +3 -0
  253. package/lib/Components/ChannelModel/Factories/channelModelFactory.js +14 -0
  254. package/lib/Components/ChannelModel/Factories/channelObjectFactory.d.ts +3 -0
  255. package/lib/Components/ChannelModel/Factories/channelObjectFactory.js +19 -0
  256. package/lib/Components/ChannelModel/Factories/index.d.ts +3 -0
  257. package/lib/{AppObjectComponents/Hideable → Components/ChannelModel/Factories}/index.js +3 -2
  258. package/lib/Components/ChannelModel/Factories/setupChannelModels.d.ts +2 -0
  259. package/lib/Components/ChannelModel/Factories/setupChannelModels.js +25 -0
  260. package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.d.ts +7 -0
  261. package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.js +11 -0
  262. package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.d.ts +7 -0
  263. package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.js +11 -0
  264. package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.d.ts +7 -0
  265. package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.js +11 -0
  266. package/lib/Components/ChannelModel/Mocks/ValidateChannelModelMock.d.ts +8 -0
  267. package/lib/Components/ChannelModel/Mocks/ValidateChannelModelMock.js +15 -0
  268. package/lib/Components/ChannelModel/Mocks/ValidateObjectPickUcMock.d.ts +8 -0
  269. package/lib/Components/ChannelModel/Mocks/ValidateObjectPickUcMock.js +15 -0
  270. package/lib/Components/ChannelModel/Mocks/index.d.ts +4 -0
  271. package/lib/Components/ChannelModel/Mocks/index.js +4 -0
  272. package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.d.ts +6 -0
  273. package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.js +47 -0
  274. package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.d.ts +6 -0
  275. package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.js +58 -0
  276. package/lib/Components/ChannelModel/PMs/index.d.ts +2 -0
  277. package/lib/Components/ChannelModel/PMs/index.js +2 -0
  278. package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.d.ts +13 -0
  279. package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.js +37 -0
  280. package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.d.ts +7 -0
  281. package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.js +53 -0
  282. package/lib/Components/ChannelModel/UC/ValidateChannelModel.d.ts +8 -0
  283. package/lib/Components/ChannelModel/UC/ValidateChannelModel.js +48 -0
  284. package/lib/Components/ChannelModel/UC/index.d.ts +3 -0
  285. package/lib/Components/ChannelModel/UC/index.js +3 -0
  286. package/lib/Components/ChannelModel/index.d.ts +1 -0
  287. package/lib/Components/ChannelModel/index.js +1 -0
  288. package/lib/Components/Dispatcher/Factories/index.d.ts +1 -0
  289. package/lib/Components/Dispatcher/Factories/index.js +13 -0
  290. package/lib/Components/Dispatcher/Factories/setupDispatchers.d.ts +3 -0
  291. package/lib/Components/Dispatcher/Factories/setupDispatchers.js +35 -0
  292. package/lib/Components/Dispatcher/UC/DispatchStateChangeUC.js +1 -1
  293. package/lib/Components/Dispatcher/index.d.ts +1 -0
  294. package/lib/Components/Dispatcher/index.js +1 -0
  295. package/lib/Components/GLBModel/Factories/glbModelFactory.d.ts +3 -0
  296. package/lib/Components/GLBModel/Factories/glbModelFactory.js +12 -0
  297. package/lib/Components/GLBModel/Factories/index.d.ts +2 -0
  298. package/lib/Components/{XR/Mocks → GLBModel/Factories}/index.js +2 -2
  299. package/lib/Components/GLBModel/Factories/setupGLBModel.d.ts +2 -0
  300. package/lib/Components/GLBModel/Factories/setupGLBModel.js +11 -0
  301. package/lib/Components/GLBModel/index.d.ts +1 -0
  302. package/lib/Components/GLBModel/index.js +1 -0
  303. package/lib/Components/Hideable/Adapters/isHiddenAdapter.js +2 -0
  304. package/lib/Components/KeyboardInput/Factories/index.d.ts +1 -0
  305. package/lib/Components/KeyboardInput/Factories/index.js +13 -0
  306. package/lib/Components/KeyboardInput/Factories/setupKeyboard.d.ts +2 -0
  307. package/lib/Components/KeyboardInput/Factories/setupKeyboard.js +9 -0
  308. package/lib/Components/KeyboardInput/index.d.ts +1 -0
  309. package/lib/Components/KeyboardInput/index.js +1 -0
  310. package/lib/Components/Label/Adapters/labelAdapter.js +2 -0
  311. package/lib/Components/Label/Entities/Label.d.ts +2 -1
  312. package/lib/Components/Label/Entities/Label.js +6 -0
  313. package/lib/Components/LabelDrop/Adapters/index.d.ts +6 -0
  314. package/lib/{UseCases/QuestionChallenge → Components/LabelDrop/Adapters}/index.js +6 -4
  315. package/lib/Components/LabelDrop/Adapters/labelDropDragItemAdapter.d.ts +3 -0
  316. package/lib/Components/LabelDrop/Adapters/labelDropDragItemAdapter.js +19 -0
  317. package/lib/Components/LabelDrop/Adapters/labelDropEditingIdAdapter.d.ts +3 -0
  318. package/lib/Components/LabelDrop/Adapters/labelDropEditingIdAdapter.js +19 -0
  319. package/lib/Components/LabelDrop/Adapters/labelDropListAdapter.d.ts +3 -0
  320. package/lib/Components/LabelDrop/Adapters/labelDropListAdapter.js +19 -0
  321. package/lib/Components/LabelDrop/Adapters/labelDropReviewAdapter.d.ts +3 -0
  322. package/lib/Components/LabelDrop/Adapters/labelDropReviewAdapter.js +19 -0
  323. package/lib/Components/LabelDrop/Adapters/labelDropTargetsAdapter.d.ts +3 -0
  324. package/lib/Components/LabelDrop/Adapters/labelDropTargetsAdapter.js +23 -0
  325. package/lib/Components/LabelDrop/Adapters/remainingLabelDropListAdapter.d.ts +3 -0
  326. package/lib/Components/LabelDrop/Adapters/remainingLabelDropListAdapter.js +19 -0
  327. package/lib/Components/LabelDrop/Controller/MouseLabelDropAuthor.d.ts +7 -0
  328. package/lib/Components/LabelDrop/Controller/MouseLabelDropAuthor.js +31 -0
  329. package/lib/Components/LabelDrop/Controller/StylusLabelDrop.d.ts +9 -0
  330. package/lib/Components/LabelDrop/Controller/StylusLabelDrop.js +61 -0
  331. package/lib/Components/LabelDrop/Controller/TouchLabelDropAuthor.d.ts +7 -0
  332. package/lib/Components/LabelDrop/Controller/TouchLabelDropAuthor.js +31 -0
  333. package/lib/Components/LabelDrop/Controller/addNewLabelDropAnswer.d.ts +2 -0
  334. package/lib/Components/LabelDrop/Controller/addNewLabelDropAnswer.js +13 -0
  335. package/lib/Components/LabelDrop/Controller/deleteAllLabelDropAnswers.d.ts +2 -0
  336. package/lib/Components/LabelDrop/Controller/deleteAllLabelDropAnswers.js +13 -0
  337. package/lib/Components/LabelDrop/Controller/deleteLabelDropAnswer.d.ts +2 -0
  338. package/lib/Components/LabelDrop/Controller/deleteLabelDropAnswer.js +13 -0
  339. package/lib/Components/LabelDrop/Controller/discardEditLabelDropAnswer.d.ts +2 -0
  340. package/lib/Components/LabelDrop/Controller/discardEditLabelDropAnswer.js +19 -0
  341. package/lib/Components/LabelDrop/Controller/dragLabelDropAnswerItemScreen.d.ts +2 -0
  342. package/lib/Components/LabelDrop/Controller/dragLabelDropAnswerItemScreen.js +14 -0
  343. package/lib/Components/LabelDrop/Controller/editLabelDropAnswerItem.d.ts +2 -0
  344. package/lib/Components/LabelDrop/Controller/editLabelDropAnswerItem.js +13 -0
  345. package/lib/Components/LabelDrop/Controller/index.d.ts +15 -0
  346. package/lib/Components/LabelDrop/Controller/index.js +27 -0
  347. package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItem.d.ts +2 -0
  348. package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItem.js +14 -0
  349. package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItemWorld.d.ts +2 -0
  350. package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItemWorld.js +19 -0
  351. package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemScreen.d.ts +2 -0
  352. package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemScreen.js +28 -0
  353. package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemWorld.d.ts +2 -0
  354. package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemWorld.js +19 -0
  355. package/lib/Components/LabelDrop/Controller/saveEditLabelDropAnswer.d.ts +2 -0
  356. package/lib/Components/LabelDrop/Controller/saveEditLabelDropAnswer.js +13 -0
  357. package/lib/Components/LabelDrop/Controller/toggleLabelDropItemTarget.d.ts +2 -0
  358. package/lib/Components/LabelDrop/Controller/toggleLabelDropItemTarget.js +13 -0
  359. package/lib/Components/LabelDrop/Entities/LabelDropItemEntity.d.ts +33 -0
  360. package/lib/Components/LabelDrop/Entities/LabelDropItemEntity.js +88 -0
  361. package/lib/Components/LabelDrop/Entities/LabelDropRepo.d.ts +51 -0
  362. package/lib/Components/LabelDrop/Entities/LabelDropRepo.js +193 -0
  363. package/lib/Components/LabelDrop/Entities/index.d.ts +2 -0
  364. package/lib/{PresentationManagers/HoverLabels → Components/LabelDrop/Entities}/index.js +2 -2
  365. package/lib/Components/LabelDrop/Factories/index.d.ts +2 -0
  366. package/lib/Components/LabelDrop/Factories/index.js +14 -0
  367. package/lib/Components/LabelDrop/Factories/labelDropItemFactory.d.ts +3 -0
  368. package/lib/Components/LabelDrop/Factories/labelDropItemFactory.js +24 -0
  369. package/lib/Components/LabelDrop/Factories/setupLabelDrop.d.ts +2 -0
  370. package/lib/Components/LabelDrop/Factories/setupLabelDrop.js +51 -0
  371. package/lib/Components/LabelDrop/Mocks/DeleteLabelDropUcMock.d.ts +8 -0
  372. package/lib/Components/LabelDrop/Mocks/DeleteLabelDropUcMock.js +15 -0
  373. package/lib/Components/LabelDrop/Mocks/EditLabelDropUcMock.d.ts +10 -0
  374. package/lib/Components/LabelDrop/Mocks/EditLabelDropUcMock.js +17 -0
  375. package/lib/Components/LabelDrop/Mocks/LabelDropAnswerItemDetailsPmMock.d.ts +7 -0
  376. package/lib/Components/LabelDrop/Mocks/LabelDropAnswerItemDetailsPmMock.js +11 -0
  377. package/lib/Components/LabelDrop/Mocks/LabelDropDragItemPmMock.d.ts +8 -0
  378. package/lib/Components/LabelDrop/Mocks/LabelDropDragItemPmMock.js +15 -0
  379. package/lib/Components/LabelDrop/Mocks/LabelDropEditingIdPmMock.d.ts +8 -0
  380. package/lib/Components/LabelDrop/Mocks/LabelDropEditingIdPmMock.js +15 -0
  381. package/lib/Components/LabelDrop/Mocks/LabelDropListPmMock.d.ts +8 -0
  382. package/lib/Components/LabelDrop/Mocks/LabelDropListPmMock.js +15 -0
  383. package/lib/Components/LabelDrop/Mocks/LabelDropReviewPmMock.d.ts +8 -0
  384. package/lib/Components/LabelDrop/Mocks/LabelDropReviewPmMock.js +15 -0
  385. package/lib/Components/LabelDrop/Mocks/MockCorrectAnimation.d.ts +12 -0
  386. package/lib/Components/LabelDrop/Mocks/MockCorrectAnimation.js +19 -0
  387. package/lib/Components/LabelDrop/Mocks/MockDragLabelDropUC.d.ts +12 -0
  388. package/lib/Components/LabelDrop/Mocks/MockDragLabelDropUC.js +19 -0
  389. package/lib/Components/LabelDrop/Mocks/MockDragLabelDropWorldUC.d.ts +13 -0
  390. package/lib/Components/LabelDrop/Mocks/MockDragLabelDropWorldUC.js +20 -0
  391. package/lib/Components/LabelDrop/Mocks/MockDropAnimation.d.ts +15 -0
  392. package/lib/Components/LabelDrop/Mocks/MockDropAnimation.js +22 -0
  393. package/lib/Components/LabelDrop/Mocks/MockIncorrectAnimation.d.ts +14 -0
  394. package/lib/Components/LabelDrop/Mocks/MockIncorrectAnimation.js +21 -0
  395. package/lib/Components/LabelDrop/Mocks/RemainingLabelDropListPmMock.d.ts +8 -0
  396. package/lib/Components/LabelDrop/Mocks/RemainingLabelDropListPmMock.js +15 -0
  397. package/lib/Components/LabelDrop/Mocks/ToggleLabelDropTargetUcMock.d.ts +10 -0
  398. package/lib/Components/LabelDrop/Mocks/ToggleLabelDropTargetUcMock.js +17 -0
  399. package/lib/Components/LabelDrop/Mocks/ValidateLabelDropUc.d.ts +8 -0
  400. package/lib/Components/LabelDrop/Mocks/ValidateLabelDropUc.js +15 -0
  401. package/lib/Components/LabelDrop/Mocks/index.d.ts +15 -0
  402. package/lib/Components/LabelDrop/Mocks/index.js +27 -0
  403. package/lib/Components/LabelDrop/PM/LabelDropDragItemPM.d.ts +18 -0
  404. package/lib/Components/LabelDrop/PM/LabelDropDragItemPM.js +84 -0
  405. package/lib/Components/LabelDrop/PM/LabelDropEditingIDPM.d.ts +11 -0
  406. package/lib/Components/LabelDrop/PM/LabelDropEditingIDPM.js +46 -0
  407. package/lib/Components/LabelDrop/PM/LabelDropListPM.d.ts +11 -0
  408. package/lib/Components/LabelDrop/PM/LabelDropListPM.js +56 -0
  409. package/lib/Components/LabelDrop/PM/LabelDropReviewPM.d.ts +11 -0
  410. package/lib/Components/LabelDrop/PM/LabelDropReviewPM.js +57 -0
  411. package/lib/Components/LabelDrop/PM/LabelDropTargetsPM.d.ts +11 -0
  412. package/lib/Components/LabelDrop/PM/LabelDropTargetsPM.js +55 -0
  413. package/lib/Components/LabelDrop/PM/RemainingLabelDropListPM.d.ts +10 -0
  414. package/lib/Components/LabelDrop/PM/RemainingLabelDropListPM.js +56 -0
  415. package/lib/Components/LabelDrop/PM/index.d.ts +6 -0
  416. package/lib/Components/LabelDrop/PM/index.js +18 -0
  417. package/lib/Components/LabelDrop/UseCases/CorrectAnimationUC.d.ts +12 -0
  418. package/lib/Components/LabelDrop/UseCases/CorrectAnimationUC.js +72 -0
  419. package/lib/Components/LabelDrop/UseCases/DeleteAllLabelDropUC.d.ts +7 -0
  420. package/lib/Components/LabelDrop/UseCases/DeleteAllLabelDropUC.js +62 -0
  421. package/lib/Components/LabelDrop/UseCases/DeleteLabelDropUC.d.ts +7 -0
  422. package/lib/Components/LabelDrop/UseCases/DeleteLabelDropUC.js +61 -0
  423. package/lib/Components/LabelDrop/UseCases/DragLabelDropUC.d.ts +11 -0
  424. package/lib/Components/LabelDrop/UseCases/DragLabelDropUC.js +171 -0
  425. package/lib/Components/LabelDrop/UseCases/DragLabelDropWorldUC.d.ts +11 -0
  426. package/lib/Components/LabelDrop/UseCases/DragLabelDropWorldUC.js +181 -0
  427. package/lib/Components/LabelDrop/UseCases/DropOnNothingAnimationUC.d.ts +13 -0
  428. package/lib/Components/LabelDrop/UseCases/DropOnNothingAnimationUC.js +84 -0
  429. package/lib/Components/LabelDrop/UseCases/EditLabelDropUC.d.ts +9 -0
  430. package/lib/Components/LabelDrop/UseCases/EditLabelDropUC.js +149 -0
  431. package/lib/Components/LabelDrop/UseCases/IncorrectAnimationUC.d.ts +14 -0
  432. package/lib/Components/LabelDrop/UseCases/IncorrectAnimationUC.js +86 -0
  433. package/lib/Components/LabelDrop/UseCases/InitializeLabelDropLabelHook.d.ts +7 -0
  434. package/lib/Components/LabelDrop/UseCases/InitializeLabelDropLabelHook.js +36 -0
  435. package/lib/Components/LabelDrop/UseCases/LabelDropAnimation.d.ts +5 -0
  436. package/lib/Components/LabelDrop/UseCases/SerializeLabelDrop.d.ts +21 -0
  437. package/lib/Components/LabelDrop/UseCases/SerializeLabelDrop.js +69 -0
  438. package/lib/Components/LabelDrop/UseCases/ToggleLabelDropTargetUC.d.ts +10 -0
  439. package/lib/Components/LabelDrop/UseCases/ToggleLabelDropTargetUC.js +66 -0
  440. package/lib/Components/LabelDrop/UseCases/ValidateLabelDrop.d.ts +9 -0
  441. package/lib/Components/LabelDrop/UseCases/ValidateLabelDrop.js +59 -0
  442. package/lib/Components/LabelDrop/UseCases/index.d.ts +14 -0
  443. package/lib/Components/LabelDrop/UseCases/index.js +26 -0
  444. package/lib/Components/LabelDrop/UseCases/labelDropLabelValidator.d.ts +1 -0
  445. package/lib/Components/LabelDrop/UseCases/labelDropLabelValidator.js +16 -0
  446. package/lib/Components/LabelDrop/index.d.ts +7 -0
  447. package/lib/Components/LabelDrop/index.js +19 -0
  448. package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.d.ts +2 -0
  449. package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.js +19 -0
  450. package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.d.ts +2 -0
  451. package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.js +19 -0
  452. package/lib/Components/Landmarks/Factories/index.d.ts +3 -0
  453. package/lib/{AppObjectComponents/Label → Components/Landmarks/Factories}/index.js +3 -2
  454. package/lib/Components/Landmarks/Factories/landmarkFactory.d.ts +3 -0
  455. package/lib/Components/Landmarks/Factories/landmarkFactory.js +40 -0
  456. package/lib/Components/Landmarks/Factories/landmarkRepoFactory.d.ts +3 -0
  457. package/lib/Components/Landmarks/Factories/landmarkRepoFactory.js +16 -0
  458. package/lib/Components/Landmarks/Factories/setupLandmarks.d.ts +2 -0
  459. package/lib/Components/Landmarks/Factories/setupLandmarks.js +32 -0
  460. package/lib/Components/Landmarks/UseCases/AddLandmarkUC.js +1 -1
  461. package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.d.ts +2 -2
  462. package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.js +2 -2
  463. package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.d.ts +2 -2
  464. package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.js +2 -2
  465. package/lib/Components/Landmarks/index.d.ts +1 -0
  466. package/lib/Components/Landmarks/index.js +1 -0
  467. package/lib/Components/ObjectPick/Adapters/index.d.ts +1 -0
  468. package/lib/Components/ObjectPick/Adapters/index.js +13 -0
  469. package/lib/Components/ObjectPick/Adapters/objectPickAdapter.d.ts +3 -0
  470. package/lib/Components/ObjectPick/Adapters/objectPickAdapter.js +19 -0
  471. package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.d.ts +11 -0
  472. package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.js +45 -0
  473. package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.d.ts +9 -0
  474. package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.js +30 -0
  475. package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.d.ts +11 -0
  476. package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.js +42 -0
  477. package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.d.ts +2 -0
  478. package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.js +13 -0
  479. package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.d.ts +2 -0
  480. package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.js +13 -0
  481. package/lib/Components/ObjectPick/Controllers/index.d.ts +7 -0
  482. package/lib/{AppObjectComponents/OverlayColor → Components/ObjectPick/Controllers}/index.js +7 -2
  483. package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.d.ts +2 -0
  484. package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.js +13 -0
  485. package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.d.ts +2 -0
  486. package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.js +14 -0
  487. package/lib/Components/ObjectPick/Entities/ObjectPickEntity.d.ts +22 -0
  488. package/lib/Components/ObjectPick/Entities/ObjectPickEntity.js +82 -0
  489. package/lib/Components/ObjectPick/Entities/index.d.ts +1 -0
  490. package/lib/Components/ObjectPick/Entities/index.js +13 -0
  491. package/lib/Components/ObjectPick/Factories/index.d.ts +1 -0
  492. package/lib/Components/ObjectPick/Factories/index.js +13 -0
  493. package/lib/Components/ObjectPick/Factories/setupObjectPick.d.ts +2 -0
  494. package/lib/Components/ObjectPick/Factories/setupObjectPick.js +26 -0
  495. package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.d.ts +8 -0
  496. package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.js +15 -0
  497. package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.d.ts +8 -0
  498. package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.js +15 -0
  499. package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.d.ts +8 -0
  500. package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.js +15 -0
  501. package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.d.ts +8 -0
  502. package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.js +15 -0
  503. package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.d.ts +9 -0
  504. package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.js +16 -0
  505. package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.d.ts +9 -0
  506. package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.js +16 -0
  507. package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.d.ts +8 -0
  508. package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.js +15 -0
  509. package/lib/Components/ObjectPick/Mocks/index.d.ts +7 -0
  510. package/lib/Components/ObjectPick/Mocks/index.js +19 -0
  511. package/lib/Components/ObjectPick/PM/ObjectPickPM.d.ts +14 -0
  512. package/lib/Components/ObjectPick/PM/ObjectPickPM.js +72 -0
  513. package/lib/Components/ObjectPick/PM/index.d.ts +1 -0
  514. package/lib/Components/ObjectPick/PM/index.js +13 -0
  515. package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.d.ts +7 -0
  516. package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.js +48 -0
  517. package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.d.ts +7 -0
  518. package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.js +55 -0
  519. package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.d.ts +7 -0
  520. package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.js +48 -0
  521. package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.d.ts +16 -0
  522. package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.js +54 -0
  523. package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.d.ts +9 -0
  524. package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.js +83 -0
  525. package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.d.ts +9 -0
  526. package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.js +69 -0
  527. package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.d.ts +10 -0
  528. package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.js +62 -0
  529. package/lib/Components/ObjectPick/UseCases/index.d.ts +7 -0
  530. package/lib/Components/ObjectPick/UseCases/index.js +19 -0
  531. package/lib/Components/ObjectPick/index.d.ts +7 -0
  532. package/lib/Components/ObjectPick/index.js +19 -0
  533. package/lib/Components/Question/Entities/QuestionEntity.d.ts +7 -1
  534. package/lib/Components/Question/Entities/QuestionEntity.js +8 -0
  535. package/lib/Components/Question/Mocks/MockValidateQuestion.d.ts +1 -1
  536. package/lib/Components/Question/Mocks/MockValidateQuestion.js +3 -3
  537. package/lib/Components/Question/Mocks/index.d.ts +2 -0
  538. package/lib/{AppObjectComponents/StoredView → Components/Question/Mocks}/index.js +2 -2
  539. package/lib/Components/Question/PM/QuestionChallengePM.js +2 -2
  540. package/lib/Components/Question/UC/SubmitQuestionAnswerUC.js +2 -2
  541. package/lib/Components/Question/UC/ValidateQuestionChallengeStateUC.js +2 -2
  542. package/lib/Components/Question/UC/registerQuestionChallenge.d.ts +2 -0
  543. package/lib/Components/Question/UC/registerQuestionChallenge.js +20 -0
  544. package/lib/Components/Question/index.d.ts +1 -0
  545. package/lib/Components/Question/index.js +1 -0
  546. package/lib/Components/RequestHandler/Factories/index.d.ts +1 -0
  547. package/lib/Components/RequestHandler/Factories/index.js +13 -0
  548. package/lib/Components/RequestHandler/Factories/setupAppHandlers.d.ts +3 -0
  549. package/lib/Components/RequestHandler/Factories/setupAppHandlers.js +20 -0
  550. package/lib/Components/RequestHandler/UC/SetAppStateUC.js +1 -1
  551. package/lib/Components/RequestHandler/UC/SetIsAuthoringUC.js +2 -2
  552. package/lib/Components/RequestHandler/UC/StartAppUC.js +2 -2
  553. package/lib/Components/RequestHandler/UC/StopAppUC.js +2 -2
  554. package/lib/Components/RequestHandler/index.d.ts +1 -0
  555. package/lib/Components/RequestHandler/index.js +1 -0
  556. package/lib/Components/StateMachine/Factories/index.d.ts +1 -0
  557. package/lib/Components/StateMachine/Factories/index.js +13 -0
  558. package/lib/Components/StateMachine/Factories/setupStateMachine.d.ts +2 -0
  559. package/lib/Components/StateMachine/Factories/setupStateMachine.js +12 -0
  560. package/lib/Components/StateMachine/index.d.ts +1 -0
  561. package/lib/Components/StateMachine/index.js +1 -0
  562. package/lib/Components/ThemeColors/Factories/index.d.ts +1 -0
  563. package/lib/Components/ThemeColors/Factories/index.js +13 -0
  564. package/lib/Components/ThemeColors/Factories/setupTheme.d.ts +2 -0
  565. package/lib/Components/ThemeColors/Factories/setupTheme.js +12 -0
  566. package/lib/Components/ThemeColors/index.d.ts +1 -0
  567. package/lib/Components/ThemeColors/index.js +1 -0
  568. package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.d.ts +13 -0
  569. package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.js +51 -0
  570. package/lib/Components/Transform3D/Controllers/Mouse/index.d.ts +1 -0
  571. package/lib/Components/Transform3D/Controllers/Mouse/index.js +1 -0
  572. package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.d.ts +12 -0
  573. package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.js +53 -0
  574. package/lib/Components/Transform3D/Controllers/Touch/index.d.ts +1 -0
  575. package/lib/Components/Transform3D/Controllers/Touch/index.js +1 -0
  576. package/lib/Components/Transform3D/Mocks/MockPanTransformUC.d.ts +1 -0
  577. package/lib/Components/Transform3D/Mocks/MockPanTransformUC.js +1 -0
  578. package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.d.ts +13 -0
  579. package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.js +17 -0
  580. package/lib/Components/Transform3D/Mocks/index.d.ts +1 -0
  581. package/lib/Components/Transform3D/Mocks/index.js +1 -0
  582. package/lib/Components/Transform3D/UC/PanTransformUC.d.ts +3 -1
  583. package/lib/Components/Transform3D/UC/PanTransformUC.js +24 -6
  584. package/lib/Components/Transform3D/UC/StylusMoveTransformUC.js +10 -10
  585. package/lib/Components/Transform3D/UC/TryPanTransformUC.d.ts +27 -0
  586. package/lib/Components/Transform3D/UC/TryPanTransformUC.js +79 -0
  587. package/lib/Components/Transform3D/UC/index.d.ts +1 -0
  588. package/lib/Components/Transform3D/UC/index.js +1 -0
  589. package/lib/Components/index.d.ts +4 -1
  590. package/lib/Components/index.js +4 -1
  591. package/lib/ValueObjects/Quaternion.d.ts +1 -0
  592. package/lib/ValueObjects/Quaternion.js +11 -0
  593. package/package.json +1 -1
  594. package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.d.ts +0 -42
  595. package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.js +0 -99
  596. package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.d.ts +0 -12
  597. package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.js +0 -45
  598. package/lib/AppObjectComponents/ChannelModel/index.d.ts +0 -2
  599. package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.d.ts +0 -16
  600. package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.js +0 -40
  601. package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.d.ts +0 -5
  602. package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.js +0 -25
  603. package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.d.ts +0 -10
  604. package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.js +0 -44
  605. package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.d.ts +0 -10
  606. package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.js +0 -44
  607. package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.d.ts +0 -10
  608. package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.js +0 -44
  609. package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.d.ts +0 -10
  610. package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.js +0 -44
  611. package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.d.ts +0 -10
  612. package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.js +0 -54
  613. package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.d.ts +0 -10
  614. package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.js +0 -54
  615. package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.d.ts +0 -10
  616. package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.js +0 -54
  617. package/lib/AppObjectComponents/Dispatcher/index.d.ts +0 -9
  618. package/lib/AppObjectComponents/Dispatcher/index.js +0 -21
  619. package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.d.ts +0 -16
  620. package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.js +0 -28
  621. package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.d.ts +0 -14
  622. package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.js +0 -41
  623. package/lib/AppObjectComponents/Enablement/index.d.ts +0 -2
  624. package/lib/AppObjectComponents/Hideable/Entities/Hideable.d.ts +0 -10
  625. package/lib/AppObjectComponents/Hideable/Entities/Hideable.js +0 -31
  626. package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.d.ts +0 -12
  627. package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.js +0 -43
  628. package/lib/AppObjectComponents/Hideable/index.d.ts +0 -2
  629. package/lib/AppObjectComponents/Label/Entities/Label.d.ts +0 -17
  630. package/lib/AppObjectComponents/Label/Entities/Label.js +0 -58
  631. package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.d.ts +0 -19
  632. package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.js +0 -62
  633. package/lib/AppObjectComponents/Label/index.d.ts +0 -2
  634. package/lib/AppObjectComponents/Mesh/Entities/Mesh.d.ts +0 -21
  635. package/lib/AppObjectComponents/Mesh/Entities/Mesh.js +0 -45
  636. package/lib/AppObjectComponents/Mesh/index.d.ts +0 -1
  637. package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.d.ts +0 -25
  638. package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.js +0 -59
  639. package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.d.ts +0 -13
  640. package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.js +0 -43
  641. package/lib/AppObjectComponents/OverlayColor/index.d.ts +0 -2
  642. package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.d.ts +0 -31
  643. package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.js +0 -106
  644. package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.d.ts +0 -31
  645. package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.js +0 -109
  646. package/lib/AppObjectComponents/SceneRoot/index.d.ts +0 -2
  647. package/lib/AppObjectComponents/SceneRoot/index.js +0 -14
  648. package/lib/AppObjectComponents/StoredView/Entities/StoredView.d.ts +0 -13
  649. package/lib/AppObjectComponents/StoredView/Entities/StoredView.js +0 -64
  650. package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.d.ts +0 -27
  651. package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.js +0 -82
  652. package/lib/AppObjectComponents/StoredView/index.d.ts +0 -2
  653. package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.d.ts +0 -45
  654. package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.js +0 -226
  655. package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.d.ts +0 -12
  656. package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.js +0 -46
  657. package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.d.ts +0 -19
  658. package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.js +0 -60
  659. package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.d.ts +0 -20
  660. package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.js +0 -67
  661. package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.d.ts +0 -14
  662. package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.js +0 -53
  663. package/lib/AppObjectComponents/Transform3D/index.d.ts +0 -5
  664. package/lib/AppObjectComponents/Transform3D/index.js +0 -17
  665. package/lib/AppObjectComponents/index.d.ts +0 -10
  666. package/lib/AppObjectComponents/index.js +0 -22
  667. package/lib/Components/App/PM/HasNextPreviousStatePM.d.ts +0 -15
  668. package/lib/Components/App/PM/HasNextPreviousStatePM.js +0 -44
  669. package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.d.ts +0 -6
  670. package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.js +0 -9
  671. package/lib/Components/ChannelModel/UC/SetupChannelModelUC.d.ts +0 -10
  672. package/lib/Components/ChannelModel/UC/SetupChannelModelUC.js +0 -141
  673. package/lib/Components/SceneRoot/Controllers/StylusMove.d.ts +0 -14
  674. package/lib/Components/SceneRoot/Controllers/StylusMove.js +0 -56
  675. package/lib/Components/SceneRoot/Controllers/StylusScale.d.ts +0 -14
  676. package/lib/Components/SceneRoot/Controllers/StylusScale.js +0 -58
  677. package/lib/Components/Selection/Controller/StylusHoverOnAppObject.d.ts +0 -11
  678. package/lib/Components/Selection/Controller/StylusHoverOnAppObject.js +0 -42
  679. package/lib/Components/Selection/Controller/StylusPressOnAppObject.d.ts +0 -18
  680. package/lib/Components/Selection/Controller/StylusPressOnAppObject.js +0 -77
  681. package/lib/Components/Selection/Controller/StylusSelectAppObject.d.ts +0 -11
  682. package/lib/Components/Selection/Controller/StylusSelectAppObject.js +0 -44
  683. package/lib/Components/XR/Mocks/index.d.ts +0 -2
  684. package/lib/Components/zSpace/Controllers/EmulateStylus.d.ts +0 -9
  685. package/lib/Components/zSpace/Controllers/EmulateStylus.js +0 -100
  686. package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.d.ts +0 -14
  687. package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.js +0 -57
  688. package/lib/Components/zSpace/Controllers/index.d.ts +0 -1
  689. package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.d.ts +0 -27
  690. package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.js +0 -111
  691. package/lib/Components/zSpace/PM/StylusColorLengthPM.d.ts +0 -13
  692. package/lib/Components/zSpace/PM/StylusColorLengthPM.js +0 -77
  693. package/lib/Components/zSpace/PM/StylusIsInUsePM.d.ts +0 -6
  694. package/lib/Components/zSpace/PM/StylusIsInUsePM.js +0 -42
  695. package/lib/Controllers/HoverLabelMouse.d.ts +0 -10
  696. package/lib/Controllers/HoverLabelMouse.js +0 -23
  697. package/lib/Controllers/HoverLabelTouch.d.ts +0 -14
  698. package/lib/Controllers/HoverLabelTouch.js +0 -41
  699. package/lib/Controllers/ToolHotkeys.d.ts +0 -6
  700. package/lib/Controllers/ToolHotkeys.js +0 -25
  701. package/lib/Controllers/index.d.ts +0 -3
  702. package/lib/Controllers/index.js +0 -15
  703. package/lib/Entities/AppBoundary.d.ts +0 -6
  704. package/lib/Entities/AppDispatcher.d.ts +0 -63
  705. package/lib/Entities/AppDispatcher.js +0 -336
  706. package/lib/Entities/AppHandler.d.ts +0 -20
  707. package/lib/Entities/AppHandler.js +0 -94
  708. package/lib/Entities/Babylon.d.ts +0 -48
  709. package/lib/Entities/Babylon.js +0 -146
  710. package/lib/Entities/BaseApp.d.ts +0 -9
  711. package/lib/Entities/BaseApp.js +0 -30
  712. package/lib/Entities/DevicePreview.d.ts +0 -11
  713. package/lib/Entities/DevicePreview.js +0 -49
  714. package/lib/Entities/FocusCamera.d.ts +0 -70
  715. package/lib/Entities/FocusCamera.js +0 -272
  716. package/lib/Entities/FramedScreen.d.ts +0 -15
  717. package/lib/Entities/FramedScreen.js +0 -58
  718. package/lib/Entities/FramedScreenContainer.d.ts +0 -12
  719. package/lib/Entities/FramedScreenContainer.js +0 -41
  720. package/lib/Entities/HoverLabels.d.ts +0 -42
  721. package/lib/Entities/HoverLabels.js +0 -82
  722. package/lib/Entities/KeyboardInput.d.ts +0 -13
  723. package/lib/Entities/KeyboardInput.js +0 -68
  724. package/lib/Entities/Memoized/MemoizedAngle.d.ts +0 -9
  725. package/lib/Entities/Memoized/MemoizedAngle.js +0 -22
  726. package/lib/Entities/Memoized/MemoizedBoolean.d.ts +0 -8
  727. package/lib/Entities/Memoized/MemoizedBoolean.js +0 -22
  728. package/lib/Entities/Memoized/MemoizedColor.d.ts +0 -9
  729. package/lib/Entities/Memoized/MemoizedColor.js +0 -23
  730. package/lib/Entities/Memoized/MemoizedNumber.d.ts +0 -8
  731. package/lib/Entities/Memoized/MemoizedNumber.js +0 -22
  732. package/lib/Entities/Memoized/MemoizedQuaternion.d.ts +0 -9
  733. package/lib/Entities/Memoized/MemoizedQuaternion.js +0 -23
  734. package/lib/Entities/Memoized/MemoizedString.d.ts +0 -8
  735. package/lib/Entities/Memoized/MemoizedString.js +0 -22
  736. package/lib/Entities/Memoized/MemoizedVector2.d.ts +0 -9
  737. package/lib/Entities/Memoized/MemoizedVector2.js +0 -23
  738. package/lib/Entities/Memoized/MemoizedVector3.d.ts +0 -9
  739. package/lib/Entities/Memoized/MemoizedVector3.js +0 -23
  740. package/lib/Entities/MeshModel.d.ts +0 -68
  741. package/lib/Entities/MeshModel.js +0 -174
  742. package/lib/Entities/ModelObject.d.ts +0 -10
  743. package/lib/Entities/ModelObject.js +0 -42
  744. package/lib/Entities/MouseInput.d.ts +0 -21
  745. package/lib/Entities/MouseInput.js +0 -127
  746. package/lib/Entities/ObservableEntityRepo.d.ts +0 -20
  747. package/lib/Entities/ObservableEntityRepo.js +0 -80
  748. package/lib/Entities/QuestionChallenge.d.ts +0 -21
  749. package/lib/Entities/QuestionChallenge.js +0 -103
  750. package/lib/Entities/QuestionChallengeAnswer.d.ts +0 -32
  751. package/lib/Entities/QuestionChallengeAnswer.js +0 -51
  752. package/lib/Entities/SceneModel.d.ts +0 -85
  753. package/lib/Entities/SceneModel.js +0 -202
  754. package/lib/Entities/SceneModelMesh.d.ts +0 -40
  755. package/lib/Entities/SceneModelMesh.js +0 -75
  756. package/lib/Entities/SceneModelRepo.d.ts +0 -11
  757. package/lib/Entities/SceneModelRepo.js +0 -48
  758. package/lib/Entities/SceneObject.d.ts +0 -23
  759. package/lib/Entities/SceneObject.js +0 -79
  760. package/lib/Entities/SceneObjectsRepo.d.ts +0 -12
  761. package/lib/Entities/SceneObjectsRepo.js +0 -58
  762. package/lib/Entities/SceneRoot.d.ts +0 -29
  763. package/lib/Entities/SceneRoot.js +0 -145
  764. package/lib/Entities/StateMachine.d.ts +0 -29
  765. package/lib/Entities/StateMachine.js +0 -98
  766. package/lib/Entities/Tool.d.ts +0 -81
  767. package/lib/Entities/Tool.js +0 -94
  768. package/lib/Entities/ToolRepository.d.ts +0 -46
  769. package/lib/Entities/ToolRepository.js +0 -118
  770. package/lib/Entities/TouchInput.d.ts +0 -28
  771. package/lib/Entities/TouchInput.js +0 -144
  772. package/lib/Entities/UndoRedo.d.ts +0 -22
  773. package/lib/Entities/UndoRedo.js +0 -61
  774. package/lib/PresentationManagers/DevicePreviewPM.d.ts +0 -14
  775. package/lib/PresentationManagers/DevicePreviewPM.js +0 -30
  776. package/lib/PresentationManagers/FocusCameraPM.d.ts +0 -15
  777. package/lib/PresentationManagers/FocusCameraPM.js +0 -31
  778. package/lib/PresentationManagers/FocusCameraPosRotPM.d.ts +0 -13
  779. package/lib/PresentationManagers/FocusCameraPosRotPM.js +0 -28
  780. package/lib/PresentationManagers/FramedScreenContainerPM.d.ts +0 -18
  781. package/lib/PresentationManagers/FramedScreenContainerPM.js +0 -55
  782. package/lib/PresentationManagers/HasRedoPM.d.ts +0 -9
  783. package/lib/PresentationManagers/HasRedoPM.js +0 -22
  784. package/lib/PresentationManagers/HasUndoPM.d.ts +0 -9
  785. package/lib/PresentationManagers/HasUndoPM.js +0 -22
  786. package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.d.ts +0 -9
  787. package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.js +0 -19
  788. package/lib/PresentationManagers/HoverLabels/HoverLabelPM.d.ts +0 -17
  789. package/lib/PresentationManagers/HoverLabels/HoverLabelPM.js +0 -32
  790. package/lib/PresentationManagers/HoverLabels/index.d.ts +0 -2
  791. package/lib/PresentationManagers/IsAuthoringPM.d.ts +0 -9
  792. package/lib/PresentationManagers/IsAuthoringPM.js +0 -20
  793. package/lib/PresentationManagers/PresentationManager.d.ts +0 -8
  794. package/lib/PresentationManagers/PresentationManager.js +0 -16
  795. package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.d.ts +0 -24
  796. package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.js +0 -65
  797. package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.d.ts +0 -17
  798. package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.js +0 -46
  799. package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.d.ts +0 -17
  800. package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.js +0 -51
  801. package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.d.ts +0 -15
  802. package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.js +0 -34
  803. package/lib/PresentationManagers/QuestionChallenge/index.d.ts +0 -4
  804. package/lib/PresentationManagers/QuestionChallenge/index.js +0 -16
  805. package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.d.ts +0 -15
  806. package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.js +0 -34
  807. package/lib/PresentationManagers/SceneModel/SceneModelPM.d.ts +0 -15
  808. package/lib/PresentationManagers/SceneModel/SceneModelPM.js +0 -36
  809. package/lib/PresentationManagers/SceneModel/index.d.ts +0 -1
  810. package/lib/PresentationManagers/SceneObject/SceneObjectPM.d.ts +0 -22
  811. package/lib/PresentationManagers/SceneObject/SceneObjectPM.js +0 -57
  812. package/lib/PresentationManagers/SceneObject/index.d.ts +0 -1
  813. package/lib/PresentationManagers/ShowBabylonInspectorPM.d.ts +0 -9
  814. package/lib/PresentationManagers/ShowBabylonInspectorPM.js +0 -24
  815. package/lib/PresentationManagers/ToolPM.d.ts +0 -17
  816. package/lib/PresentationManagers/ToolPM.js +0 -35
  817. package/lib/PresentationManagers/TransformNodePM.d.ts +0 -14
  818. package/lib/PresentationManagers/TransformNodePM.js +0 -23
  819. package/lib/PresentationManagers/index.d.ts +0 -13
  820. package/lib/PresentationManagers/index.js +0 -25
  821. package/lib/Types/ChannelModelData.d.ts +0 -68
  822. package/lib/Types/ChannelModelData.js +0 -21
  823. package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.d.ts +0 -17
  824. package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.js +0 -64
  825. package/lib/UseCases/FocusCamera/LerpFocusCamera.d.ts +0 -36
  826. package/lib/UseCases/FocusCamera/LerpFocusCamera.js +0 -71
  827. package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.d.ts +0 -11
  828. package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.js +0 -36
  829. package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.d.ts +0 -11
  830. package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.js +0 -36
  831. package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.d.ts +0 -11
  832. package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.js +0 -26
  833. package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.d.ts +0 -11
  834. package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.js +0 -33
  835. package/lib/UseCases/FocusCamera/SerializeFocusCamera.d.ts +0 -22
  836. package/lib/UseCases/FocusCamera/SerializeFocusCamera.js +0 -81
  837. package/lib/UseCases/FocusCamera/index.d.ts +0 -7
  838. package/lib/UseCases/FocusCamera/index.js +0 -19
  839. package/lib/UseCases/Handlers/DisposeAppBase.d.ts +0 -8
  840. package/lib/UseCases/Handlers/DisposeAppBase.js +0 -24
  841. package/lib/UseCases/Handlers/SetAppStateBase.d.ts +0 -10
  842. package/lib/UseCases/Handlers/SetAppStateBase.js +0 -32
  843. package/lib/UseCases/Handlers/SetDevicePreviewBase.d.ts +0 -10
  844. package/lib/UseCases/Handlers/SetDevicePreviewBase.js +0 -32
  845. package/lib/UseCases/Handlers/SetIsAuthoringBase.d.ts +0 -10
  846. package/lib/UseCases/Handlers/SetIsAuthoringBase.js +0 -32
  847. package/lib/UseCases/Handlers/ShowBabylonInspectorBase.d.ts +0 -10
  848. package/lib/UseCases/Handlers/ShowBabylonInspectorBase.js +0 -32
  849. package/lib/UseCases/Handlers/StartAppBase.d.ts +0 -10
  850. package/lib/UseCases/Handlers/StartAppBase.js +0 -32
  851. package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +0 -10
  852. package/lib/UseCases/Handlers/StartZSpaceBase.js +0 -35
  853. package/lib/UseCases/Handlers/StopAppBase.d.ts +0 -8
  854. package/lib/UseCases/Handlers/StopAppBase.js +0 -24
  855. package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +0 -8
  856. package/lib/UseCases/Handlers/StopZSpaceBase.js +0 -24
  857. package/lib/UseCases/Handlers/index.d.ts +0 -9
  858. package/lib/UseCases/Handlers/index.js +0 -21
  859. package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.d.ts +0 -14
  860. package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.js +0 -35
  861. package/lib/UseCases/HoverLabels/trySetHoverLabel.d.ts +0 -3
  862. package/lib/UseCases/HoverLabels/trySetHoverLabel.js +0 -12
  863. package/lib/UseCases/LerpVector3.d.ts +0 -26
  864. package/lib/UseCases/LerpVector3.js +0 -66
  865. package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.d.ts +0 -25
  866. package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.js +0 -70
  867. package/lib/UseCases/QuestionChallenge/index.d.ts +0 -4
  868. package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.d.ts +0 -2
  869. package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.js +0 -16
  870. package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.d.ts +0 -2
  871. package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.js +0 -16
  872. package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.d.ts +0 -2
  873. package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.js +0 -16
  874. package/lib/UseCases/SceneModel/SerializeActiveModel.d.ts +0 -18
  875. package/lib/UseCases/SceneModel/SerializeActiveModel.js +0 -74
  876. package/lib/UseCases/SceneModel/SetMeshesEnabledHook.d.ts +0 -7
  877. package/lib/UseCases/SceneModel/SetMeshesEnabledHook.js +0 -22
  878. package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.d.ts +0 -2
  879. package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.js +0 -13
  880. package/lib/UseCases/SceneModel/index.d.ts +0 -5
  881. package/lib/UseCases/SceneModel/index.js +0 -17
  882. package/lib/UseCases/SceneModel/loadNewModel.d.ts +0 -2
  883. package/lib/UseCases/SceneModel/loadNewModel.js +0 -84
  884. package/lib/UseCases/SceneModel/modelDataLoader.d.ts +0 -3
  885. package/lib/UseCases/SceneModel/modelDataLoader.js +0 -33
  886. package/lib/UseCases/SceneObjects/PeelSceneObject.d.ts +0 -18
  887. package/lib/UseCases/SceneObjects/PeelSceneObject.js +0 -61
  888. package/lib/UseCases/SceneObjects/index.d.ts +0 -1
  889. package/lib/UseCases/SceneObjects/index.js +0 -13
  890. package/lib/UseCases/SceneRoot/SerializeSceneRoot.d.ts +0 -33
  891. package/lib/UseCases/SceneRoot/SerializeSceneRoot.js +0 -67
  892. package/lib/UseCases/SceneRoot/index.d.ts +0 -2
  893. package/lib/UseCases/SceneRoot/index.js +0 -14
  894. package/lib/UseCases/SceneRoot/setupSceneRoot.d.ts +0 -2
  895. package/lib/UseCases/SceneRoot/setupSceneRoot.js +0 -11
  896. package/lib/UseCases/index.d.ts +0 -7
  897. package/lib/UseCases/index.js +0 -19
  898. package/lib/UseCases/setDevicePreview.d.ts +0 -2
  899. package/lib/UseCases/setDevicePreview.js +0 -14
  900. package/lib/UseCases/setupStandardAppObjects.d.ts +0 -2
  901. package/lib/UseCases/setupStandardAppObjects.js +0 -10
  902. package/lib/ValueObjects/Result.d.ts +0 -30
  903. package/lib/ValueObjects/Result.js +0 -45
  904. /package/lib/{Entities/AppBoundary.js → Components/LabelDrop/UseCases/LabelDropAnimation.js} +0 -0
@@ -1,145 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeSceneRoot = exports.SceneRoot = exports.SCENE_ROOT_ID = void 0;
4
- const ValueObjects_1 = require("../ValueObjects");
5
- const ObservableEntity_1 = require("./ObservableEntity");
6
- exports.SCENE_ROOT_ID = "scene-root";
7
- class SceneRoot extends ObservableEntity_1.ObservableEntity {
8
- }
9
- exports.SceneRoot = SceneRoot;
10
- function makeSceneRoot() {
11
- return new SceneRootImp();
12
- }
13
- exports.makeSceneRoot = makeSceneRoot;
14
- class SceneRootImp extends SceneRoot {
15
- constructor() {
16
- super(...arguments);
17
- this._defaultPosition = ValueObjects_1.Vector3.Zero();
18
- this._defaultRoation = ValueObjects_1.Quaternion.Identity();
19
- this._defaultScale = 1;
20
- this._minScale = 0.01;
21
- this._maxScale = 10;
22
- this.applyDefaultData = (data) => {
23
- this._defaultPosition = ValueObjects_1.Vector3.FromArray(data.position);
24
- this._defaultRoation = ValueObjects_1.Quaternion.FromArray(data.rotation);
25
- this._defaultScale = data.scale;
26
- this._maxScale = data.maxScale;
27
- this._minScale = data.minScale;
28
- };
29
- this.centerOnPoint = (point, durationMS, easeFn, onCompleted) => {
30
- if (!this.sceneObject) {
31
- console.warn("SceneRoot does not have a scene object");
32
- return;
33
- }
34
- const finalPosition = ValueObjects_1.Vector3.Subtract(this.sceneObject.transform.worldPosition, point);
35
- this.sceneObject.transform.lerp(durationMS, easeFn, finalPosition, undefined, undefined, onCompleted);
36
- };
37
- this.bumpScaleAboutPoint = (amount, worldPoint) => {
38
- if (!this.sceneObject) {
39
- console.warn("SceneRoot does not have a scene object");
40
- return;
41
- }
42
- const localPickOffset = this.sceneObject.transform.worldPointToLocal(worldPoint);
43
- const currentScale = this.sceneObject.transform.worldScale.x;
44
- let newScale = currentScale + amount;
45
- if (newScale < this.minScale) {
46
- newScale = this.minScale;
47
- }
48
- else if (newScale > this.maxScale) {
49
- newScale = this.maxScale;
50
- }
51
- this.sceneObject.transform.worldScale = new ValueObjects_1.Vector3(newScale, newScale, newScale);
52
- const worldPickOffset = this.sceneObject.transform.localPointToWorld(localPickOffset);
53
- const bump = ValueObjects_1.Vector3.Subtract(worldPoint, worldPickOffset);
54
- this.sceneObject.transform.worldPosition = ValueObjects_1.Vector3.Add(bump, this.sceneObject.transform.worldPosition);
55
- };
56
- this.lerpToDefault = (durationMS, easeFn, onCompleted) => {
57
- if (!this.sceneObject) {
58
- console.warn("SceneRoot does not have a scene object");
59
- return;
60
- }
61
- this.sceneObject.transform.lerp(durationMS, easeFn, this.defaultPosition, this.defaultRoation, new ValueObjects_1.Vector3(this.defaultScale, this.defaultScale, this.defaultScale), onCompleted);
62
- };
63
- }
64
- get position() {
65
- if (this.sceneObject) {
66
- return this.sceneObject.transform.localPosition;
67
- }
68
- else {
69
- console.warn("SceneRoot does not have a scene object");
70
- return ValueObjects_1.Vector3.Zero();
71
- }
72
- }
73
- set position(p) {
74
- if (this.sceneObject) {
75
- this.sceneObject.transform.localPosition = p;
76
- }
77
- else {
78
- console.warn("SceneRoot does not have a scene object");
79
- }
80
- }
81
- get rotation() {
82
- if (this.sceneObject) {
83
- return this.sceneObject.transform.localRotation;
84
- }
85
- else {
86
- console.warn("SceneRoot does not have a scene object");
87
- return ValueObjects_1.Quaternion.Identity();
88
- }
89
- }
90
- set rotation(r) {
91
- if (this.sceneObject) {
92
- this.sceneObject.transform.localRotation = r;
93
- }
94
- else {
95
- console.warn("SceneRoot does not have a scene object");
96
- }
97
- }
98
- get scale() {
99
- if (this.sceneObject) {
100
- return this.sceneObject.transform.localScale.x;
101
- }
102
- else {
103
- console.warn("SceneRoot does not have a scene object");
104
- return 1;
105
- }
106
- }
107
- set scale(s) {
108
- if (this.sceneObject) {
109
- this.sceneObject.transform.localScale = new ValueObjects_1.Vector3(s, s, s);
110
- }
111
- else {
112
- console.warn("SceneRoot does not have a scene object");
113
- }
114
- }
115
- get sceneObject() {
116
- return this._sceneObject;
117
- }
118
- set sceneObject(so) {
119
- if (this._sceneObject) {
120
- this._sceneObject.removeObserver(this.notify);
121
- }
122
- this._sceneObject = so;
123
- if (this._sceneObject) {
124
- this._sceneObject.addObserver(this.notify);
125
- }
126
- }
127
- get defaultPosition() {
128
- return this._defaultPosition;
129
- }
130
- get defaultRoation() {
131
- return this._defaultRoation;
132
- }
133
- get defaultScale() {
134
- return this._defaultScale;
135
- }
136
- get minScale() {
137
- return this._minScale;
138
- }
139
- get maxScale() {
140
- return this._maxScale;
141
- }
142
- get id() {
143
- return exports.SCENE_ROOT_ID;
144
- }
145
- }
@@ -1,29 +0,0 @@
1
- import { Result } from "../ValueObjects";
2
- export declare type OnStateHasBeenApplied = () => void;
3
- export interface SerializedStates {
4
- version: number;
5
- systems: SystemState[];
6
- }
7
- export interface SystemState {
8
- name: string;
9
- seriliziationVersion: number;
10
- state: object;
11
- }
12
- export interface SerializedSystem {
13
- name: string;
14
- seriliziationVersion: number;
15
- getSystemState(): object;
16
- applySystemState(state: object, version: number, transitionDuration: number): void;
17
- applyDefaultState(transitionDuration: number): void;
18
- }
19
- export interface StateMachine {
20
- transitionEaseFunction: (normalizedTime: number) => number;
21
- getSerializedStates(): SerializedStates;
22
- setSerializedStates(state: SerializedStates, transitionTime: number): Result<null, Error>;
23
- applySerializedStatesString: (state: string, duration?: number) => void;
24
- setDefaultState(transitionTime: number): void;
25
- registerSerializedSystem(serializedSystem: SerializedSystem): Result<null, Error>;
26
- addStateHasBeenAppliedObserver: (observer: OnStateHasBeenApplied) => void;
27
- removeStateHasBeenAppliedObserver: (observer: OnStateHasBeenApplied) => void;
28
- }
29
- export declare function makeStateMachine(): StateMachine;
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeStateMachine = void 0;
4
- const ValueObjects_1 = require("../ValueObjects");
5
- const ObserverList_1 = require("./ObserverList");
6
- function makeStateMachine() {
7
- return new StateMachineImp();
8
- }
9
- exports.makeStateMachine = makeStateMachine;
10
- class StateMachineImp {
11
- constructor() {
12
- this.serializedSystems = new Map();
13
- this.serilizationVersion = 2;
14
- this.stateAppliedObservers = new ObserverList_1.ObserverList();
15
- this.transitionEaseFunction = (normalizedTime) => {
16
- return normalizedTime; // default to a linear function
17
- };
18
- this.applySerializedStatesString = (state, duration = 0) => {
19
- if (state === "") {
20
- this.setDefaultState(duration);
21
- }
22
- else {
23
- try {
24
- const stateObj = JSON.parse(state);
25
- this.setSerializedStates(stateObj, duration);
26
- }
27
- catch (e) {
28
- this.setDefaultState(duration);
29
- console.warn("[StateMachine] Failed to deserialize state string: " + e);
30
- }
31
- }
32
- };
33
- this.registerSerializedSystem = (serializedSystem) => {
34
- if (this.serializedSystems.has(serializedSystem.name)) {
35
- const err = new Error(`[StateMachine] Duplicate stateable systems encountered: ${serializedSystem.name}`);
36
- console.error(err.message);
37
- return ValueObjects_1.reject(err);
38
- }
39
- this.serializedSystems.set(serializedSystem.name, serializedSystem);
40
- return ValueObjects_1.resolve(null);
41
- };
42
- this.getSerializedStates = () => {
43
- const systems = Array.from(this.serializedSystems.values());
44
- const serializedStates = systems.map((system) => {
45
- const state = system.getSystemState();
46
- return {
47
- seriliziationVersion: system.seriliziationVersion,
48
- name: system.name,
49
- state,
50
- };
51
- });
52
- return {
53
- version: this.serilizationVersion,
54
- systems: serializedStates,
55
- };
56
- };
57
- this.setSerializedStates = (state, duration) => {
58
- if (state.version === 2) {
59
- const appliedToSystems = [];
60
- state.systems.forEach((systemState) => {
61
- const seriliazableSystem = this.serializedSystems.get(systemState.name);
62
- if (seriliazableSystem) {
63
- seriliazableSystem.applySystemState(systemState.state, systemState.seriliziationVersion, duration);
64
- }
65
- else {
66
- console.warn("Unable to find seriarializedSystem " + systemState.name);
67
- }
68
- appliedToSystems.push(systemState.name);
69
- });
70
- this.serializedSystems.forEach((system) => {
71
- if (!appliedToSystems.includes(system.name)) {
72
- system.applyDefaultState(duration);
73
- }
74
- });
75
- this.stateAppliedObservers.notify();
76
- return ValueObjects_1.resolve(null);
77
- }
78
- // Here is where we will add support for future versions
79
- else {
80
- const err = new Error(`[StateMachine] Unsupported sereialized state encountered: ${state.version}`);
81
- console.error(err.message);
82
- return ValueObjects_1.reject(err);
83
- }
84
- };
85
- this.setDefaultState = (duration) => {
86
- this.serializedSystems.forEach((system) => {
87
- system.applyDefaultState(duration);
88
- });
89
- this.stateAppliedObservers.notify();
90
- };
91
- this.addStateHasBeenAppliedObserver = (observer) => {
92
- this.stateAppliedObservers.add(observer);
93
- };
94
- this.removeStateHasBeenAppliedObserver = (observer) => {
95
- this.stateAppliedObservers.remove(observer);
96
- };
97
- }
98
- }
@@ -1,81 +0,0 @@
1
- import { ObservableEntity } from "./ObservableEntity";
2
- export declare enum ToolState {
3
- HIDDEN = "HIDDEN",
4
- DISABLED = "DISABLED",
5
- ENABLED = "ENABLED",
6
- ACTIVE = "ACTIVE"
7
- }
8
- export interface ToolData<ToolTypes> {
9
- type: ToolTypes;
10
- isDefault: boolean;
11
- label: string;
12
- shortcutLabel: string;
13
- hotkeys: HotKey[];
14
- }
15
- export interface HotKey {
16
- keyCode: string;
17
- control?: boolean;
18
- shift?: boolean;
19
- meta?: boolean;
20
- alt?: boolean;
21
- }
22
- export declare abstract class Tool<ToolTypes> extends ObservableEntity {
23
- /**
24
- * The tool's type
25
- */
26
- abstract readonly type: ToolTypes;
27
- /**
28
- * Gets label for this tool. This will be human readable
29
- */
30
- abstract get label(): string;
31
- /**
32
- * Sets label for this tool. This should be human readable. A change will notify
33
- */
34
- abstract set label(toolLabel: string);
35
- /**
36
- * Is this the default tool? The default tool is what is initiall set Active and
37
- * is what will be set active if the currently active tool is hidden or disabled.
38
- */
39
- abstract readonly isDefault: boolean;
40
- /**
41
- * Gets the keyboard shorcut label. This will be displayed to the user via the tool tip
42
- * Example 'z'
43
- */
44
- abstract get shortcutLabel(): string;
45
- /**
46
- * Sets the keyboard shorcut label. This will be displayed to the user via the tool tip
47
- * Example 'z'. This will notify when changed
48
- */
49
- abstract set shortcutLabel(shorcut: string);
50
- /**
51
- * Get the current tool state
52
- */
53
- abstract get state(): ToolState;
54
- /**
55
- * Sets the current tool state. This will notify on change
56
- */
57
- abstract set state(val: ToolState);
58
- /**
59
- * The keyboard shortcuts for this tool
60
- */
61
- abstract readonly hotkeys: HotKey[];
62
- /**
63
- * Is this tool an action tool. In other words do you just click it and something should happen
64
- */
65
- abstract get isAction(): boolean;
66
- /**
67
- * If this is an action tool calling this will trigger any actions that have been registered
68
- */
69
- abstract triggerActions(): void;
70
- /**
71
- * Registers an action with this tool. This action will be called when this tool is triggered
72
- * @param action The action to call when this tool is triggered
73
- */
74
- abstract registerAction(action: () => void): void;
75
- /**
76
- * Returns a true if the passed hotkey is in my hotkey list
77
- * @param hotkey The Hotkey to chekc
78
- */
79
- abstract isMyHotkey(hotkey: HotKey): boolean;
80
- }
81
- export declare function makeTool<ToolTypes>(data: ToolData<ToolTypes>): Tool<ToolTypes>;
@@ -1,94 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeTool = exports.Tool = exports.ToolState = void 0;
4
- const MemoizedString_1 = require("./Memoized/MemoizedString");
5
- const ObservableEntity_1 = require("./ObservableEntity");
6
- var ToolState;
7
- (function (ToolState) {
8
- ToolState["HIDDEN"] = "HIDDEN";
9
- ToolState["DISABLED"] = "DISABLED";
10
- ToolState["ENABLED"] = "ENABLED";
11
- ToolState["ACTIVE"] = "ACTIVE";
12
- })(ToolState = exports.ToolState || (exports.ToolState = {}));
13
- class Tool extends ObservableEntity_1.ObservableEntity {
14
- }
15
- exports.Tool = Tool;
16
- function makeTool(data) {
17
- return new ToolImp(data);
18
- }
19
- exports.makeTool = makeTool;
20
- class ToolImp extends Tool {
21
- constructor(data) {
22
- super();
23
- this.memoizedState = new MemoizedString_1.MemoizedString(ToolState.ENABLED, this.notify);
24
- this.actions = [];
25
- this._isAction = false;
26
- this.registerAction = (action) => {
27
- this.actions.push(action);
28
- this._isAction = true;
29
- };
30
- this.triggerActions = () => {
31
- this.actions.forEach((action) => {
32
- action();
33
- });
34
- };
35
- this.isMyHotkey = (hotkey) => {
36
- let isMine = false;
37
- this.hotkeys.forEach((myHotkey) => {
38
- if (this.hotkeysMatch(myHotkey, hotkey)) {
39
- isMine = true;
40
- }
41
- });
42
- return isMine;
43
- };
44
- this.type = data.type;
45
- this.memoizedLabel = new MemoizedString_1.MemoizedString(data.label, this.notify);
46
- this.isDefault = data.isDefault;
47
- this.memoizedShortcut = new MemoizedString_1.MemoizedString(data.shortcutLabel, this.notify);
48
- this.hotkeys = data.hotkeys;
49
- }
50
- get label() {
51
- return this.memoizedLabel.val;
52
- }
53
- set label(toolLabel) {
54
- this.memoizedLabel.val = toolLabel;
55
- }
56
- get shortcutLabel() {
57
- return this.memoizedShortcut.val;
58
- }
59
- set shortcutLabel(shorcut) {
60
- this.memoizedShortcut.val = shorcut;
61
- }
62
- get state() {
63
- return this.memoizedState.val;
64
- }
65
- set state(val) {
66
- this.memoizedState.val = val;
67
- }
68
- get isAction() {
69
- return this._isAction;
70
- }
71
- hotkeysMatch(a, b) {
72
- if (a.keyCode !== b.keyCode)
73
- return false;
74
- const aComplete = this.fillInMissingModifiers(a);
75
- const bComplete = this.fillInMissingModifiers(b);
76
- if (aComplete.alt !== bComplete.alt)
77
- return false;
78
- if (aComplete.control !== bComplete.control)
79
- return false;
80
- if (aComplete.meta !== bComplete.meta)
81
- return false;
82
- if (aComplete.shift !== bComplete.shift)
83
- return false;
84
- return true;
85
- }
86
- fillInMissingModifiers(hotkey) {
87
- const rVal = Object.assign({}, hotkey);
88
- rVal.alt = hotkey.alt === undefined ? false : hotkey.alt;
89
- rVal.control = hotkey.control === undefined ? false : hotkey.control;
90
- rVal.meta = hotkey.meta === undefined ? false : hotkey.meta;
91
- rVal.shift = hotkey.shift === undefined ? false : hotkey.shift;
92
- return rVal;
93
- }
94
- }
@@ -1,46 +0,0 @@
1
- import { ObservableEntity } from "./ObservableEntity";
2
- import { HotKey, Tool, ToolData } from "./Tool";
3
- export declare abstract class ToolRepository<ToolTypes> extends ObservableEntity {
4
- /**
5
- * Retuns the active tool. If no tool is active it will return undefined.
6
- */
7
- abstract get activeTool(): Tool<ToolTypes> | undefined;
8
- /**
9
- * Returns all the tools.
10
- */
11
- abstract get allTools(): Tool<ToolTypes>[];
12
- /**
13
- * Set up the tools from a JSON data file. This should be called during construction.
14
- * It is assumed this is only called once.
15
- * @param toolData
16
- */
17
- abstract setupToolsFromData(toolData: ToolData<ToolTypes>[]): void;
18
- /**
19
- * Get's a tool by it's type. Retruns undefined if no tool could be found
20
- * @param toolType The tool type
21
- */
22
- abstract getTool(toolType: ToolTypes): Tool<ToolTypes> | undefined;
23
- /**
24
- * Returns the tool that has been assinged to a particular key code.
25
- * Will return undefined of no tool is found
26
- * @param hotkey Key Code
27
- */
28
- abstract getToolForHotkey(hotkey: HotKey): Tool<ToolTypes> | undefined;
29
- /**
30
- * Call this to set the default tool as active
31
- */
32
- abstract setDefaultToolActive(): void;
33
- /**
34
- * Triggers a tool of type
35
- * @param toolType Tool's type
36
- */
37
- abstract triggerTool(toolType: ToolTypes): void;
38
- /**
39
- * Toggls a tool between Hidden and shown.
40
- * If the tool is tool is currently Active, the default tool will be set active
41
- * The Default Tool cannot be toggled
42
- * @param toolType Tool's type
43
- */
44
- abstract toggleToolVisibility(toolType: ToolTypes): void;
45
- }
46
- export declare function makeToolRepo<ToolTypes>(): ToolRepository<ToolTypes>;
@@ -1,118 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeToolRepo = exports.ToolRepository = void 0;
4
- const ObservableEntity_1 = require("./ObservableEntity");
5
- const Tool_1 = require("./Tool");
6
- class ToolRepository extends ObservableEntity_1.ObservableEntity {
7
- }
8
- exports.ToolRepository = ToolRepository;
9
- function makeToolRepo() {
10
- return new ToolRepositoryImp();
11
- }
12
- exports.makeToolRepo = makeToolRepo;
13
- class ToolRepositoryImp extends ToolRepository {
14
- constructor() {
15
- super(...arguments);
16
- this.toolLookup = new Map();
17
- }
18
- get allTools() {
19
- return Array.from(this.toolLookup.values());
20
- }
21
- setDefaultToolActive() {
22
- if (this._defaultToolType !== undefined) {
23
- this.triggerTool(this._defaultToolType);
24
- }
25
- else {
26
- console.warn(`[ToolRepository] No default tools has been specified`);
27
- }
28
- }
29
- setupToolsFromData(toolDatas) {
30
- toolDatas.forEach((toolData) => {
31
- const type = toolData.type;
32
- if (this.toolLookup.has(type)) {
33
- console.warn(`[ToolRepository] A tool with the ID ${toolData.type} already exists. Replacing`);
34
- }
35
- const tool = Tool_1.makeTool(toolData);
36
- this.toolLookup.set(type, tool);
37
- if (toolData.isDefault) {
38
- if (this._defaultToolType) {
39
- console.warn(`[ToolRepository] More than one tools is marked as default. Replacing`);
40
- }
41
- this._defaultToolType = type;
42
- }
43
- });
44
- if (!this._defaultToolType) {
45
- console.warn(`[ToolRepository] No default tools was specified. Defaulting to the first tool in the list`);
46
- this._defaultToolType = Array.from(this.toolLookup.keys())[0];
47
- }
48
- if (this._defaultToolType) {
49
- this.triggerTool(this._defaultToolType);
50
- }
51
- }
52
- getTool(type) {
53
- return this.toolLookup.get(type);
54
- }
55
- getToolForHotkey(hotkey) {
56
- let tool;
57
- this.allTools.forEach((t) => {
58
- if (t.isMyHotkey(hotkey)) {
59
- tool = t;
60
- }
61
- });
62
- return tool;
63
- }
64
- get activeTool() {
65
- if (!this._activeToolType)
66
- return undefined;
67
- return this.getTool(this._activeToolType);
68
- }
69
- triggerTool(type) {
70
- if (this._activeToolType === type)
71
- return;
72
- const newActiveTool = this.toolLookup.get(type);
73
- if (!newActiveTool) {
74
- console.warn(`[ToolRepository] Unable to find tool ${type}`);
75
- return;
76
- }
77
- if (newActiveTool.isAction) {
78
- newActiveTool.triggerActions();
79
- return;
80
- }
81
- if (newActiveTool.state === Tool_1.ToolState.DISABLED) {
82
- return;
83
- }
84
- if (newActiveTool.state === Tool_1.ToolState.HIDDEN) {
85
- return;
86
- }
87
- this.toolLookup.forEach((tool) => {
88
- if (tool.type === type) {
89
- this._activeToolType = type;
90
- tool.state = Tool_1.ToolState.ACTIVE;
91
- }
92
- else if (tool.state === Tool_1.ToolState.ACTIVE) {
93
- tool.state = Tool_1.ToolState.ENABLED;
94
- }
95
- });
96
- this.notify();
97
- }
98
- toggleToolVisibility(type) {
99
- const tool = this.getTool(type);
100
- if (!tool) {
101
- console.warn(`[ToolRepository] Unable to find tool to toggle: ${type}`);
102
- return;
103
- }
104
- if (tool.type === this._defaultToolType) {
105
- console.warn(`[ToolRepository] The default tool's visibility cannot be toggled`);
106
- return;
107
- }
108
- if (tool.state === Tool_1.ToolState.HIDDEN) {
109
- tool.state = Tool_1.ToolState.ENABLED;
110
- }
111
- else {
112
- if (tool.state === Tool_1.ToolState.ACTIVE) {
113
- this.setDefaultToolActive();
114
- }
115
- tool.state = Tool_1.ToolState.HIDDEN;
116
- }
117
- }
118
- }
@@ -1,28 +0,0 @@
1
- import { Vector2 } from "../ValueObjects";
2
- export interface TouchInputEvent {
3
- touchCount: number;
4
- touchCenter: Vector2;
5
- touches: TouchData[];
6
- event: TouchEvent;
7
- }
8
- export interface TouchData {
9
- id: number;
10
- position: Vector2;
11
- touch?: Touch;
12
- }
13
- export interface TouchController {
14
- onTouchStart?: (e: TouchInputEvent) => void;
15
- onTouchMove?: (e: TouchInputEvent) => void;
16
- onTouchEnd?: (e: TouchInputEvent) => void;
17
- onTouchCancel?: (e: TouchInputEvent) => void;
18
- }
19
- export interface TouchInput {
20
- eventElement: HTMLElement | undefined;
21
- eventElementBounds?: DOMRect;
22
- setEventElement: (eventElement: HTMLElement) => void;
23
- clearInputElement: () => void;
24
- updateInputElementBounds: () => void;
25
- registerController: (controller: TouchController) => void;
26
- removeController: (controller: TouchController) => void;
27
- }
28
- export declare function makeTouchInput(): TouchInput;