@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.
- package/lib/Components/Babylon/Factories/index.d.ts +1 -0
- package/lib/{PresentationManagers/SceneModel → Components/Babylon/Factories}/index.js +1 -1
- package/lib/Components/Babylon/Factories/setupBabylon.d.ts +2 -0
- package/lib/Components/Babylon/Factories/setupBabylon.js +11 -0
- package/lib/Components/Babylon/index.d.ts +2 -0
- package/lib/Components/Babylon/index.js +2 -0
- package/lib/Components/BaseApp/Adapters/index.d.ts +4 -0
- package/lib/Components/BaseApp/Adapters/index.js +16 -0
- package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.d.ts +2 -0
- package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.js +23 -0
- package/lib/Components/BaseApp/Adapters/isReviewingAdapter.d.ts +2 -0
- package/lib/Components/BaseApp/Adapters/isReviewingAdapter.js +23 -0
- package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.d.ts +3 -0
- package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.js +23 -0
- package/lib/Components/BaseApp/Adapters/slideTextAdapter.d.ts +2 -0
- package/lib/Components/BaseApp/Adapters/slideTextAdapter.js +23 -0
- package/lib/Components/BaseApp/Controller/clickContinue.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/clickContinue.js +13 -0
- package/lib/Components/BaseApp/Controller/clickEditSlideText.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/clickEditSlideText.js +13 -0
- package/lib/Components/BaseApp/Controller/index.d.ts +5 -0
- package/lib/Components/BaseApp/Controller/index.js +17 -0
- package/lib/Components/BaseApp/Controller/removeRenderCanvas.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/removeRenderCanvas.js +13 -0
- package/lib/Components/BaseApp/Controller/submitRenderCanvas.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/submitRenderCanvas.js +13 -0
- package/lib/Components/BaseApp/Controller/updateContentSize.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/updateContentSize.js +13 -0
- package/lib/Components/BaseApp/Entity/BaseAppState.d.ts +20 -0
- package/lib/Components/BaseApp/Entity/BaseAppState.js +68 -0
- package/lib/Components/BaseApp/Entity/index.d.ts +1 -0
- package/lib/Components/{zSpace/Controllers → BaseApp/Entity}/index.js +1 -1
- package/lib/Components/BaseApp/Factories/index.d.ts +1 -0
- package/lib/{PresentationManagers/SceneObject → Components/BaseApp/Factories}/index.js +1 -1
- package/lib/Components/BaseApp/Factories/setupBaseApp.d.ts +2 -0
- package/lib/Components/BaseApp/Factories/setupBaseApp.js +22 -0
- package/lib/Components/BaseApp/Mocks/IsAuthoringMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/IsAuthoringMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/IsReviewingMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/IsReviewingMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.d.ts +10 -0
- package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.js +16 -0
- package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.d.ts +10 -0
- package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.js +16 -0
- package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.d.ts +9 -0
- package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.js +15 -0
- package/lib/Components/BaseApp/Mocks/SlideNavigationMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/SlideNavigationMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/SlideTextMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/SlideTextMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/index.d.ts +7 -0
- package/lib/Components/BaseApp/Mocks/index.js +19 -0
- package/lib/Components/BaseApp/PM/IsAuthoringPM.d.ts +6 -0
- package/lib/Components/BaseApp/PM/IsAuthoringPM.js +39 -0
- package/lib/Components/BaseApp/PM/IsReviewingPM.d.ts +6 -0
- package/lib/Components/BaseApp/PM/IsReviewingPM.js +39 -0
- package/lib/Components/BaseApp/PM/SlideNavigationPM.d.ts +12 -0
- package/lib/Components/BaseApp/PM/SlideNavigationPM.js +49 -0
- package/lib/Components/BaseApp/PM/SlideTextPM.d.ts +6 -0
- package/lib/Components/BaseApp/PM/SlideTextPM.js +34 -0
- package/lib/Components/BaseApp/PM/index.d.ts +4 -0
- package/lib/Components/BaseApp/PM/index.js +16 -0
- package/lib/Components/BaseApp/UC/AppRenderingUC.d.ts +7 -0
- package/lib/Components/BaseApp/UC/AppRenderingUC.js +9 -0
- package/lib/Components/BaseApp/UC/EditSlideTextUC.d.ts +10 -0
- package/lib/Components/BaseApp/UC/EditSlideTextUC.js +57 -0
- package/lib/Components/BaseApp/UC/RenderCanvasUC.d.ts +10 -0
- package/lib/Components/BaseApp/UC/RenderCanvasUC.js +88 -0
- package/lib/Components/BaseApp/UC/SerializeBaseAppState.d.ts +17 -0
- package/lib/Components/BaseApp/UC/SerializeBaseAppState.js +59 -0
- package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.d.ts +11 -0
- package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.js +43 -0
- package/lib/Components/BaseApp/UC/UpdateContentSizeUC.d.ts +7 -0
- package/lib/Components/BaseApp/UC/UpdateContentSizeUC.js +33 -0
- package/lib/Components/BaseApp/UC/index.d.ts +7 -0
- package/lib/Components/BaseApp/UC/index.js +19 -0
- package/lib/Components/BaseApp/index.d.ts +7 -0
- package/lib/Components/BaseApp/index.js +19 -0
- package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.d.ts +3 -0
- package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/calloutListAdapter.d.ts +2 -0
- package/lib/Components/Callouts/Adapters/calloutListAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.d.ts +3 -0
- package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/calloutSizeAdapter.d.ts +2 -0
- package/lib/Components/Callouts/Adapters/calloutSizeAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/index.d.ts +4 -0
- package/lib/Components/Callouts/Adapters/index.js +16 -0
- package/lib/Components/Callouts/Controller/MouseAddCalloutMC.d.ts +13 -0
- package/lib/Components/Callouts/Controller/MouseAddCalloutMC.js +43 -0
- package/lib/Components/Callouts/Controller/MouseCalloutRoll.d.ts +9 -0
- package/lib/Components/Callouts/Controller/MouseCalloutRoll.js +27 -0
- package/lib/Components/Callouts/Controller/TouchAddCalloutTC.d.ts +13 -0
- package/lib/Components/Callouts/Controller/TouchAddCalloutTC.js +47 -0
- package/lib/Components/Callouts/Controller/deleteAllCallouts.d.ts +2 -0
- package/lib/Components/Callouts/Controller/deleteAllCallouts.js +13 -0
- package/lib/Components/Callouts/Controller/deleteCallout.d.ts +2 -0
- package/lib/Components/Callouts/Controller/deleteCallout.js +13 -0
- package/lib/Components/Callouts/Controller/index.d.ts +6 -0
- package/lib/Components/Callouts/Controller/index.js +18 -0
- package/lib/Components/Callouts/Controller/submitCalloutSize.d.ts +2 -0
- package/lib/Components/Callouts/Controller/submitCalloutSize.js +13 -0
- package/lib/Components/Callouts/Controller/updateCalloutSize.d.ts +2 -0
- package/lib/Components/Callouts/Controller/updateCalloutSize.js +13 -0
- package/lib/Components/Callouts/Entities/CalloutEntity.d.ts +51 -0
- package/lib/Components/Callouts/Entities/CalloutEntity.js +141 -0
- package/lib/Components/Callouts/Entities/CalloutGlobals.d.ts +11 -0
- package/lib/Components/Callouts/Entities/CalloutGlobals.js +29 -0
- package/lib/Components/Callouts/Entities/CalloutRepo.d.ts +15 -0
- package/lib/Components/Callouts/Entities/CalloutRepo.js +57 -0
- package/lib/Components/Callouts/Entities/index.d.ts +3 -0
- package/lib/{AppObjectComponents/ChannelModel → Components/Callouts/Entities}/index.js +3 -2
- package/lib/Components/Callouts/Factories/calloutFactory.d.ts +3 -0
- package/lib/Components/Callouts/Factories/calloutFactory.js +42 -0
- package/lib/Components/Callouts/Factories/calloutRepoFactory.d.ts +3 -0
- package/lib/Components/Callouts/Factories/calloutRepoFactory.js +19 -0
- package/lib/Components/Callouts/Factories/index.d.ts +3 -0
- package/lib/{AppObjectComponents/Enablement → Components/Callouts/Factories}/index.js +3 -2
- package/lib/Components/Callouts/Factories/setupCallouts.d.ts +2 -0
- package/lib/Components/Callouts/Factories/setupCallouts.js +24 -0
- package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CalloutListPmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutListPmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CalloutSizePmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutSizePmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.d.ts +8 -0
- package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.js +12 -0
- package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.js +11 -0
- package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.js +11 -0
- package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.d.ts +8 -0
- package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.js +12 -0
- package/lib/Components/Callouts/Mocks/TryAddCalloutMock.d.ts +14 -0
- package/lib/Components/Callouts/Mocks/TryAddCalloutMock.js +21 -0
- package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.d.ts +9 -0
- package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.js +13 -0
- package/lib/Components/Callouts/Mocks/index.d.ts +8 -0
- package/lib/Components/Callouts/Mocks/index.js +20 -0
- package/lib/Components/Callouts/PM/CalloutLinePointsPM.d.ts +7 -0
- package/lib/Components/Callouts/PM/CalloutLinePointsPM.js +97 -0
- package/lib/Components/Callouts/PM/CalloutListPM.d.ts +6 -0
- package/lib/Components/Callouts/PM/CalloutListPM.js +49 -0
- package/lib/Components/Callouts/PM/CalloutOffsetPM.d.ts +7 -0
- package/lib/Components/Callouts/PM/CalloutOffsetPM.js +37 -0
- package/lib/Components/Callouts/PM/CalloutSizePM.d.ts +6 -0
- package/lib/Components/Callouts/PM/CalloutSizePM.js +41 -0
- package/lib/Components/Callouts/PM/index.d.ts +4 -0
- package/lib/Components/Callouts/PM/index.js +16 -0
- package/lib/Components/Callouts/UC/CalloutScaleHook.d.ts +11 -0
- package/lib/Components/Callouts/UC/CalloutScaleHook.js +48 -0
- package/lib/Components/Callouts/UC/CreateCalloutUC.d.ts +11 -0
- package/lib/Components/Callouts/UC/CreateCalloutUC.js +64 -0
- package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.d.ts +10 -0
- package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.js +36 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.d.ts +8 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.js +43 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.d.ts +10 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.js +40 -0
- package/lib/Components/Callouts/UC/DeleteCallout.d.ts +8 -0
- package/lib/Components/Callouts/UC/DeleteCallout.js +38 -0
- package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.d.ts +10 -0
- package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.js +36 -0
- package/lib/Components/Callouts/UC/LookAtCameraUC.d.ts +7 -0
- package/lib/Components/Callouts/UC/LookAtCameraUC.js +104 -0
- package/lib/Components/Callouts/UC/MoveCalloutToCamUC.d.ts +14 -0
- package/lib/Components/Callouts/UC/MoveCalloutToCamUC.js +35 -0
- package/lib/Components/Callouts/UC/SerializeCallouts.d.ts +17 -0
- package/lib/Components/Callouts/UC/SerializeCallouts.js +94 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUC.d.ts +9 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUC.js +63 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.d.ts +15 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.js +28 -0
- package/lib/Components/Callouts/UC/TryAddCallout.d.ts +14 -0
- package/lib/Components/Callouts/UC/TryAddCallout.js +111 -0
- package/lib/Components/Callouts/UC/TryBumpLabelUC.d.ts +9 -0
- package/lib/Components/Callouts/UC/TryBumpLabelUC.js +61 -0
- package/lib/Components/Callouts/UC/TryPanLabelUC.d.ts +3 -0
- package/lib/Components/Callouts/UC/TryPanLabelUC.js +38 -0
- package/lib/Components/Callouts/UC/index.d.ts +13 -0
- package/lib/Components/Callouts/UC/index.js +25 -0
- package/lib/Components/Callouts/index.d.ts +7 -0
- package/lib/Components/Callouts/index.js +19 -0
- package/lib/Components/Camera/Adapters/cameraAdapter.d.ts +3 -0
- package/lib/Components/Camera/Adapters/cameraAdapter.js +19 -0
- package/lib/Components/Camera/Adapters/index.d.ts +1 -0
- package/lib/{AppObjectComponents/Mesh → Components/Camera/Adapters}/index.js +1 -1
- package/lib/Components/Camera/Factories/index.d.ts +1 -0
- package/lib/Components/Camera/Factories/index.js +13 -0
- package/lib/Components/Camera/Factories/setupCamera.d.ts +2 -0
- package/lib/Components/Camera/Factories/setupCamera.js +15 -0
- package/lib/Components/Camera/Mocks/CameraPmMock.d.ts +8 -0
- package/lib/Components/Camera/Mocks/CameraPmMock.js +15 -0
- package/lib/Components/Camera/Mocks/index.d.ts +1 -0
- package/lib/Components/Camera/Mocks/index.js +13 -0
- package/lib/Components/Camera/PM/CameraPM.d.ts +1 -0
- package/lib/Components/Camera/PM/CameraPM.js +8 -1
- package/lib/Components/Camera/index.d.ts +3 -0
- package/lib/Components/Camera/index.js +3 -0
- package/lib/Components/Challenge/Adapters/challengeAuthorHelpHookAdapter.d.ts +2 -2
- package/lib/Components/Challenge/Adapters/challengeConsumerHelpHookAdapter.d.ts +2 -2
- package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.d.ts +2 -2
- package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.js +20 -26
- package/lib/Components/Challenge/Controller/setChallenge.d.ts +1 -1
- package/lib/Components/Challenge/Entities/ChallengeEntity.d.ts +19 -26
- package/lib/Components/Challenge/Entities/ChallengeEntity.js +43 -53
- package/lib/Components/Challenge/Factories/index.d.ts +1 -0
- package/lib/Components/Challenge/Factories/index.js +13 -0
- package/lib/Components/Challenge/Factories/setupChallenge.d.ts +2 -0
- package/lib/Components/Challenge/Factories/setupChallenge.js +46 -0
- package/lib/Components/Challenge/Mocks/ChallengeEntityMock.d.ts +17 -0
- package/lib/Components/Challenge/Mocks/ChallengeEntityMock.js +38 -0
- package/lib/Components/Challenge/Mocks/ChallengeMock.d.ts +11 -0
- package/lib/Components/Challenge/Mocks/ChallengeMock.js +13 -0
- package/lib/Components/Challenge/Mocks/MockSelectedChallengePM.d.ts +2 -2
- package/lib/Components/Challenge/Mocks/MockSetChallengeUC.d.ts +2 -2
- package/lib/Components/Challenge/Mocks/index.d.ts +2 -0
- package/lib/Components/Challenge/Mocks/index.js +2 -0
- package/lib/Components/Challenge/PMs/ChallengeAuthorHelpPM.d.ts +1 -1
- package/lib/Components/Challenge/PMs/ChallengeAuthorHelpPM.js +6 -7
- package/lib/Components/Challenge/PMs/ChallengeConsumerHelpPM.d.ts +1 -1
- package/lib/Components/Challenge/PMs/ChallengeConsumerHelpPM.js +13 -16
- package/lib/Components/Challenge/PMs/SelectedChallengePM.d.ts +7 -6
- package/lib/Components/Challenge/PMs/SelectedChallengePM.js +14 -11
- package/lib/Components/Challenge/UCs/SerializeChallenge.d.ts +1 -1
- package/lib/Components/Challenge/UCs/SerializeChallenge.js +3 -7
- package/lib/Components/Challenge/UCs/SetChallengeUC.d.ts +4 -4
- package/lib/Components/Challenge/UCs/SetChallengeUC.js +23 -9
- package/lib/Components/Challenge/UCs/ShowChallengeHelpUC.d.ts +1 -1
- package/lib/Components/Challenge/UCs/ShowChallengeHelpUC.js +2 -2
- package/lib/Components/Challenge/UCs/TryChallengeAgainUC.d.ts +2 -1
- package/lib/Components/Challenge/UCs/TryChallengeAgainUC.js +25 -1
- package/lib/Components/Challenge/UCs/index.d.ts +0 -1
- package/lib/Components/Challenge/UCs/index.js +0 -1
- package/lib/Components/Challenge/index.d.ts +1 -0
- package/lib/Components/Challenge/index.js +1 -0
- package/lib/Components/ChannelModel/Adapters/channelModelAdapter.js +2 -0
- package/lib/Components/ChannelModel/Adapters/index.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/index.js +2 -0
- package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.js +27 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.js +27 -0
- package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.d.ts +2 -0
- package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.js +23 -0
- package/lib/Components/ChannelModel/Controllers/index.d.ts +1 -0
- package/lib/Components/ChannelModel/Controllers/index.js +1 -0
- package/lib/Components/ChannelModel/Controllers/setModelObjectLabel.js +1 -1
- package/lib/Components/ChannelModel/Factories/channelModelFactory.d.ts +3 -0
- package/lib/Components/ChannelModel/Factories/channelModelFactory.js +14 -0
- package/lib/Components/ChannelModel/Factories/channelObjectFactory.d.ts +3 -0
- package/lib/Components/ChannelModel/Factories/channelObjectFactory.js +19 -0
- package/lib/Components/ChannelModel/Factories/index.d.ts +3 -0
- package/lib/{AppObjectComponents/Hideable → Components/ChannelModel/Factories}/index.js +3 -2
- package/lib/Components/ChannelModel/Factories/setupChannelModels.d.ts +2 -0
- package/lib/Components/ChannelModel/Factories/setupChannelModels.js +25 -0
- package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/ValidateChannelModelMock.d.ts +8 -0
- package/lib/Components/ChannelModel/Mocks/ValidateChannelModelMock.js +15 -0
- package/lib/Components/ChannelModel/Mocks/ValidateObjectPickUcMock.d.ts +8 -0
- package/lib/Components/ChannelModel/Mocks/ValidateObjectPickUcMock.js +15 -0
- package/lib/Components/ChannelModel/Mocks/index.d.ts +4 -0
- package/lib/Components/ChannelModel/Mocks/index.js +4 -0
- package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.d.ts +6 -0
- package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.js +47 -0
- package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.d.ts +6 -0
- package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.js +58 -0
- package/lib/Components/ChannelModel/PMs/index.d.ts +2 -0
- package/lib/Components/ChannelModel/PMs/index.js +2 -0
- package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.d.ts +13 -0
- package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.js +37 -0
- package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.d.ts +7 -0
- package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.js +53 -0
- package/lib/Components/ChannelModel/UC/ValidateChannelModel.d.ts +8 -0
- package/lib/Components/ChannelModel/UC/ValidateChannelModel.js +48 -0
- package/lib/Components/ChannelModel/UC/index.d.ts +3 -0
- package/lib/Components/ChannelModel/UC/index.js +3 -0
- package/lib/Components/ChannelModel/index.d.ts +1 -0
- package/lib/Components/ChannelModel/index.js +1 -0
- package/lib/Components/Dispatcher/Factories/index.d.ts +1 -0
- package/lib/Components/Dispatcher/Factories/index.js +13 -0
- package/lib/Components/Dispatcher/Factories/setupDispatchers.d.ts +3 -0
- package/lib/Components/Dispatcher/Factories/setupDispatchers.js +35 -0
- package/lib/Components/Dispatcher/UC/DispatchStateChangeUC.js +1 -1
- package/lib/Components/Dispatcher/index.d.ts +1 -0
- package/lib/Components/Dispatcher/index.js +1 -0
- package/lib/Components/GLBModel/Factories/glbModelFactory.d.ts +3 -0
- package/lib/Components/GLBModel/Factories/glbModelFactory.js +12 -0
- package/lib/Components/GLBModel/Factories/index.d.ts +2 -0
- package/lib/Components/{XR/Mocks → GLBModel/Factories}/index.js +2 -2
- package/lib/Components/GLBModel/Factories/setupGLBModel.d.ts +2 -0
- package/lib/Components/GLBModel/Factories/setupGLBModel.js +11 -0
- package/lib/Components/GLBModel/index.d.ts +1 -0
- package/lib/Components/GLBModel/index.js +1 -0
- package/lib/Components/Hideable/Adapters/isHiddenAdapter.js +2 -0
- package/lib/Components/KeyboardInput/Factories/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/Factories/index.js +13 -0
- package/lib/Components/KeyboardInput/Factories/setupKeyboard.d.ts +2 -0
- package/lib/Components/KeyboardInput/Factories/setupKeyboard.js +9 -0
- package/lib/Components/KeyboardInput/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/index.js +1 -0
- package/lib/Components/Label/Adapters/labelAdapter.js +2 -0
- package/lib/Components/Label/Entities/Label.d.ts +2 -1
- package/lib/Components/Label/Entities/Label.js +6 -0
- package/lib/Components/LabelDrop/Adapters/index.d.ts +6 -0
- package/lib/{UseCases/QuestionChallenge → Components/LabelDrop/Adapters}/index.js +6 -4
- package/lib/Components/LabelDrop/Adapters/labelDropDragItemAdapter.d.ts +3 -0
- package/lib/Components/LabelDrop/Adapters/labelDropDragItemAdapter.js +19 -0
- package/lib/Components/LabelDrop/Adapters/labelDropEditingIdAdapter.d.ts +3 -0
- package/lib/Components/LabelDrop/Adapters/labelDropEditingIdAdapter.js +19 -0
- package/lib/Components/LabelDrop/Adapters/labelDropListAdapter.d.ts +3 -0
- package/lib/Components/LabelDrop/Adapters/labelDropListAdapter.js +19 -0
- package/lib/Components/LabelDrop/Adapters/labelDropReviewAdapter.d.ts +3 -0
- package/lib/Components/LabelDrop/Adapters/labelDropReviewAdapter.js +19 -0
- package/lib/Components/LabelDrop/Adapters/labelDropTargetsAdapter.d.ts +3 -0
- package/lib/Components/LabelDrop/Adapters/labelDropTargetsAdapter.js +23 -0
- package/lib/Components/LabelDrop/Adapters/remainingLabelDropListAdapter.d.ts +3 -0
- package/lib/Components/LabelDrop/Adapters/remainingLabelDropListAdapter.js +19 -0
- package/lib/Components/LabelDrop/Controller/MouseLabelDropAuthor.d.ts +7 -0
- package/lib/Components/LabelDrop/Controller/MouseLabelDropAuthor.js +31 -0
- package/lib/Components/LabelDrop/Controller/StylusLabelDrop.d.ts +9 -0
- package/lib/Components/LabelDrop/Controller/StylusLabelDrop.js +61 -0
- package/lib/Components/LabelDrop/Controller/TouchLabelDropAuthor.d.ts +7 -0
- package/lib/Components/LabelDrop/Controller/TouchLabelDropAuthor.js +31 -0
- package/lib/Components/LabelDrop/Controller/addNewLabelDropAnswer.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/addNewLabelDropAnswer.js +13 -0
- package/lib/Components/LabelDrop/Controller/deleteAllLabelDropAnswers.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/deleteAllLabelDropAnswers.js +13 -0
- package/lib/Components/LabelDrop/Controller/deleteLabelDropAnswer.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/deleteLabelDropAnswer.js +13 -0
- package/lib/Components/LabelDrop/Controller/discardEditLabelDropAnswer.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/discardEditLabelDropAnswer.js +19 -0
- package/lib/Components/LabelDrop/Controller/dragLabelDropAnswerItemScreen.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/dragLabelDropAnswerItemScreen.js +14 -0
- package/lib/Components/LabelDrop/Controller/editLabelDropAnswerItem.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/editLabelDropAnswerItem.js +13 -0
- package/lib/Components/LabelDrop/Controller/index.d.ts +15 -0
- package/lib/Components/LabelDrop/Controller/index.js +27 -0
- package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItem.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItem.js +14 -0
- package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItemWorld.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/initializeDragLabelDropAnswerItemWorld.js +19 -0
- package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemScreen.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemScreen.js +28 -0
- package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemWorld.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/releaseLabelDropAnswerItemWorld.js +19 -0
- package/lib/Components/LabelDrop/Controller/saveEditLabelDropAnswer.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/saveEditLabelDropAnswer.js +13 -0
- package/lib/Components/LabelDrop/Controller/toggleLabelDropItemTarget.d.ts +2 -0
- package/lib/Components/LabelDrop/Controller/toggleLabelDropItemTarget.js +13 -0
- package/lib/Components/LabelDrop/Entities/LabelDropItemEntity.d.ts +33 -0
- package/lib/Components/LabelDrop/Entities/LabelDropItemEntity.js +88 -0
- package/lib/Components/LabelDrop/Entities/LabelDropRepo.d.ts +51 -0
- package/lib/Components/LabelDrop/Entities/LabelDropRepo.js +193 -0
- package/lib/Components/LabelDrop/Entities/index.d.ts +2 -0
- package/lib/{PresentationManagers/HoverLabels → Components/LabelDrop/Entities}/index.js +2 -2
- package/lib/Components/LabelDrop/Factories/index.d.ts +2 -0
- package/lib/Components/LabelDrop/Factories/index.js +14 -0
- package/lib/Components/LabelDrop/Factories/labelDropItemFactory.d.ts +3 -0
- package/lib/Components/LabelDrop/Factories/labelDropItemFactory.js +24 -0
- package/lib/Components/LabelDrop/Factories/setupLabelDrop.d.ts +2 -0
- package/lib/Components/LabelDrop/Factories/setupLabelDrop.js +51 -0
- package/lib/Components/LabelDrop/Mocks/DeleteLabelDropUcMock.d.ts +8 -0
- package/lib/Components/LabelDrop/Mocks/DeleteLabelDropUcMock.js +15 -0
- package/lib/Components/LabelDrop/Mocks/EditLabelDropUcMock.d.ts +10 -0
- package/lib/Components/LabelDrop/Mocks/EditLabelDropUcMock.js +17 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropAnswerItemDetailsPmMock.d.ts +7 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropAnswerItemDetailsPmMock.js +11 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropDragItemPmMock.d.ts +8 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropDragItemPmMock.js +15 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropEditingIdPmMock.d.ts +8 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropEditingIdPmMock.js +15 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropListPmMock.d.ts +8 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropListPmMock.js +15 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropReviewPmMock.d.ts +8 -0
- package/lib/Components/LabelDrop/Mocks/LabelDropReviewPmMock.js +15 -0
- package/lib/Components/LabelDrop/Mocks/MockCorrectAnimation.d.ts +12 -0
- package/lib/Components/LabelDrop/Mocks/MockCorrectAnimation.js +19 -0
- package/lib/Components/LabelDrop/Mocks/MockDragLabelDropUC.d.ts +12 -0
- package/lib/Components/LabelDrop/Mocks/MockDragLabelDropUC.js +19 -0
- package/lib/Components/LabelDrop/Mocks/MockDragLabelDropWorldUC.d.ts +13 -0
- package/lib/Components/LabelDrop/Mocks/MockDragLabelDropWorldUC.js +20 -0
- package/lib/Components/LabelDrop/Mocks/MockDropAnimation.d.ts +15 -0
- package/lib/Components/LabelDrop/Mocks/MockDropAnimation.js +22 -0
- package/lib/Components/LabelDrop/Mocks/MockIncorrectAnimation.d.ts +14 -0
- package/lib/Components/LabelDrop/Mocks/MockIncorrectAnimation.js +21 -0
- package/lib/Components/LabelDrop/Mocks/RemainingLabelDropListPmMock.d.ts +8 -0
- package/lib/Components/LabelDrop/Mocks/RemainingLabelDropListPmMock.js +15 -0
- package/lib/Components/LabelDrop/Mocks/ToggleLabelDropTargetUcMock.d.ts +10 -0
- package/lib/Components/LabelDrop/Mocks/ToggleLabelDropTargetUcMock.js +17 -0
- package/lib/Components/LabelDrop/Mocks/ValidateLabelDropUc.d.ts +8 -0
- package/lib/Components/LabelDrop/Mocks/ValidateLabelDropUc.js +15 -0
- package/lib/Components/LabelDrop/Mocks/index.d.ts +15 -0
- package/lib/Components/LabelDrop/Mocks/index.js +27 -0
- package/lib/Components/LabelDrop/PM/LabelDropDragItemPM.d.ts +18 -0
- package/lib/Components/LabelDrop/PM/LabelDropDragItemPM.js +84 -0
- package/lib/Components/LabelDrop/PM/LabelDropEditingIDPM.d.ts +11 -0
- package/lib/Components/LabelDrop/PM/LabelDropEditingIDPM.js +46 -0
- package/lib/Components/LabelDrop/PM/LabelDropListPM.d.ts +11 -0
- package/lib/Components/LabelDrop/PM/LabelDropListPM.js +56 -0
- package/lib/Components/LabelDrop/PM/LabelDropReviewPM.d.ts +11 -0
- package/lib/Components/LabelDrop/PM/LabelDropReviewPM.js +57 -0
- package/lib/Components/LabelDrop/PM/LabelDropTargetsPM.d.ts +11 -0
- package/lib/Components/LabelDrop/PM/LabelDropTargetsPM.js +55 -0
- package/lib/Components/LabelDrop/PM/RemainingLabelDropListPM.d.ts +10 -0
- package/lib/Components/LabelDrop/PM/RemainingLabelDropListPM.js +56 -0
- package/lib/Components/LabelDrop/PM/index.d.ts +6 -0
- package/lib/Components/LabelDrop/PM/index.js +18 -0
- package/lib/Components/LabelDrop/UseCases/CorrectAnimationUC.d.ts +12 -0
- package/lib/Components/LabelDrop/UseCases/CorrectAnimationUC.js +72 -0
- package/lib/Components/LabelDrop/UseCases/DeleteAllLabelDropUC.d.ts +7 -0
- package/lib/Components/LabelDrop/UseCases/DeleteAllLabelDropUC.js +62 -0
- package/lib/Components/LabelDrop/UseCases/DeleteLabelDropUC.d.ts +7 -0
- package/lib/Components/LabelDrop/UseCases/DeleteLabelDropUC.js +61 -0
- package/lib/Components/LabelDrop/UseCases/DragLabelDropUC.d.ts +11 -0
- package/lib/Components/LabelDrop/UseCases/DragLabelDropUC.js +171 -0
- package/lib/Components/LabelDrop/UseCases/DragLabelDropWorldUC.d.ts +11 -0
- package/lib/Components/LabelDrop/UseCases/DragLabelDropWorldUC.js +181 -0
- package/lib/Components/LabelDrop/UseCases/DropOnNothingAnimationUC.d.ts +13 -0
- package/lib/Components/LabelDrop/UseCases/DropOnNothingAnimationUC.js +84 -0
- package/lib/Components/LabelDrop/UseCases/EditLabelDropUC.d.ts +9 -0
- package/lib/Components/LabelDrop/UseCases/EditLabelDropUC.js +149 -0
- package/lib/Components/LabelDrop/UseCases/IncorrectAnimationUC.d.ts +14 -0
- package/lib/Components/LabelDrop/UseCases/IncorrectAnimationUC.js +86 -0
- package/lib/Components/LabelDrop/UseCases/InitializeLabelDropLabelHook.d.ts +7 -0
- package/lib/Components/LabelDrop/UseCases/InitializeLabelDropLabelHook.js +36 -0
- package/lib/Components/LabelDrop/UseCases/LabelDropAnimation.d.ts +5 -0
- package/lib/Components/LabelDrop/UseCases/SerializeLabelDrop.d.ts +21 -0
- package/lib/Components/LabelDrop/UseCases/SerializeLabelDrop.js +69 -0
- package/lib/Components/LabelDrop/UseCases/ToggleLabelDropTargetUC.d.ts +10 -0
- package/lib/Components/LabelDrop/UseCases/ToggleLabelDropTargetUC.js +66 -0
- package/lib/Components/LabelDrop/UseCases/ValidateLabelDrop.d.ts +9 -0
- package/lib/Components/LabelDrop/UseCases/ValidateLabelDrop.js +59 -0
- package/lib/Components/LabelDrop/UseCases/index.d.ts +14 -0
- package/lib/Components/LabelDrop/UseCases/index.js +26 -0
- package/lib/Components/LabelDrop/UseCases/labelDropLabelValidator.d.ts +1 -0
- package/lib/Components/LabelDrop/UseCases/labelDropLabelValidator.js +16 -0
- package/lib/Components/LabelDrop/index.d.ts +7 -0
- package/lib/Components/LabelDrop/index.js +19 -0
- package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.js +19 -0
- package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.js +19 -0
- package/lib/Components/Landmarks/Factories/index.d.ts +3 -0
- package/lib/{AppObjectComponents/Label → Components/Landmarks/Factories}/index.js +3 -2
- package/lib/Components/Landmarks/Factories/landmarkFactory.d.ts +3 -0
- package/lib/Components/Landmarks/Factories/landmarkFactory.js +40 -0
- package/lib/Components/Landmarks/Factories/landmarkRepoFactory.d.ts +3 -0
- package/lib/Components/Landmarks/Factories/landmarkRepoFactory.js +16 -0
- package/lib/Components/Landmarks/Factories/setupLandmarks.d.ts +2 -0
- package/lib/Components/Landmarks/Factories/setupLandmarks.js +32 -0
- package/lib/Components/Landmarks/UseCases/AddLandmarkUC.js +1 -1
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.d.ts +2 -2
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.js +2 -2
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.d.ts +2 -2
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.js +2 -2
- package/lib/Components/Landmarks/index.d.ts +1 -0
- package/lib/Components/Landmarks/index.js +1 -0
- package/lib/Components/ObjectPick/Adapters/index.d.ts +1 -0
- package/lib/Components/ObjectPick/Adapters/index.js +13 -0
- package/lib/Components/ObjectPick/Adapters/objectPickAdapter.d.ts +3 -0
- package/lib/Components/ObjectPick/Adapters/objectPickAdapter.js +19 -0
- package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.d.ts +11 -0
- package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.js +45 -0
- package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.d.ts +9 -0
- package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.js +30 -0
- package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.d.ts +11 -0
- package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.js +42 -0
- package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.js +13 -0
- package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.js +13 -0
- package/lib/Components/ObjectPick/Controllers/index.d.ts +7 -0
- package/lib/{AppObjectComponents/OverlayColor → Components/ObjectPick/Controllers}/index.js +7 -2
- package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.js +13 -0
- package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.js +14 -0
- package/lib/Components/ObjectPick/Entities/ObjectPickEntity.d.ts +22 -0
- package/lib/Components/ObjectPick/Entities/ObjectPickEntity.js +82 -0
- package/lib/Components/ObjectPick/Entities/index.d.ts +1 -0
- package/lib/Components/ObjectPick/Entities/index.js +13 -0
- package/lib/Components/ObjectPick/Factories/index.d.ts +1 -0
- package/lib/Components/ObjectPick/Factories/index.js +13 -0
- package/lib/Components/ObjectPick/Factories/setupObjectPick.d.ts +2 -0
- package/lib/Components/ObjectPick/Factories/setupObjectPick.js +26 -0
- package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.d.ts +9 -0
- package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.js +16 -0
- package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.d.ts +9 -0
- package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.js +16 -0
- package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/index.d.ts +7 -0
- package/lib/Components/ObjectPick/Mocks/index.js +19 -0
- package/lib/Components/ObjectPick/PM/ObjectPickPM.d.ts +14 -0
- package/lib/Components/ObjectPick/PM/ObjectPickPM.js +72 -0
- package/lib/Components/ObjectPick/PM/index.d.ts +1 -0
- package/lib/Components/ObjectPick/PM/index.js +13 -0
- package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.js +48 -0
- package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.js +55 -0
- package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.js +48 -0
- package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.d.ts +16 -0
- package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.js +54 -0
- package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.d.ts +9 -0
- package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.js +83 -0
- package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.d.ts +9 -0
- package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.js +69 -0
- package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.d.ts +10 -0
- package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.js +62 -0
- package/lib/Components/ObjectPick/UseCases/index.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/index.js +19 -0
- package/lib/Components/ObjectPick/index.d.ts +7 -0
- package/lib/Components/ObjectPick/index.js +19 -0
- package/lib/Components/Question/Entities/QuestionEntity.d.ts +7 -1
- package/lib/Components/Question/Entities/QuestionEntity.js +8 -0
- package/lib/Components/Question/Mocks/MockValidateQuestion.d.ts +1 -1
- package/lib/Components/Question/Mocks/MockValidateQuestion.js +3 -3
- package/lib/Components/Question/Mocks/index.d.ts +2 -0
- package/lib/{AppObjectComponents/StoredView → Components/Question/Mocks}/index.js +2 -2
- package/lib/Components/Question/PM/QuestionChallengePM.js +2 -2
- package/lib/Components/Question/UC/SubmitQuestionAnswerUC.js +2 -2
- package/lib/Components/Question/UC/ValidateQuestionChallengeStateUC.js +2 -2
- package/lib/Components/Question/UC/registerQuestionChallenge.d.ts +2 -0
- package/lib/Components/Question/UC/registerQuestionChallenge.js +20 -0
- package/lib/Components/Question/index.d.ts +1 -0
- package/lib/Components/Question/index.js +1 -0
- package/lib/Components/RequestHandler/Factories/index.d.ts +1 -0
- package/lib/Components/RequestHandler/Factories/index.js +13 -0
- package/lib/Components/RequestHandler/Factories/setupAppHandlers.d.ts +3 -0
- package/lib/Components/RequestHandler/Factories/setupAppHandlers.js +20 -0
- package/lib/Components/RequestHandler/UC/SetAppStateUC.js +1 -1
- package/lib/Components/RequestHandler/UC/SetIsAuthoringUC.js +2 -2
- package/lib/Components/RequestHandler/UC/StartAppUC.js +2 -2
- package/lib/Components/RequestHandler/UC/StopAppUC.js +2 -2
- package/lib/Components/RequestHandler/index.d.ts +1 -0
- package/lib/Components/RequestHandler/index.js +1 -0
- package/lib/Components/StateMachine/Factories/index.d.ts +1 -0
- package/lib/Components/StateMachine/Factories/index.js +13 -0
- package/lib/Components/StateMachine/Factories/setupStateMachine.d.ts +2 -0
- package/lib/Components/StateMachine/Factories/setupStateMachine.js +12 -0
- package/lib/Components/StateMachine/index.d.ts +1 -0
- package/lib/Components/StateMachine/index.js +1 -0
- package/lib/Components/ThemeColors/Factories/index.d.ts +1 -0
- package/lib/Components/ThemeColors/Factories/index.js +13 -0
- package/lib/Components/ThemeColors/Factories/setupTheme.d.ts +2 -0
- package/lib/Components/ThemeColors/Factories/setupTheme.js +12 -0
- package/lib/Components/ThemeColors/index.d.ts +1 -0
- package/lib/Components/ThemeColors/index.js +1 -0
- package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.d.ts +13 -0
- package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.js +51 -0
- package/lib/Components/Transform3D/Controllers/Mouse/index.d.ts +1 -0
- package/lib/Components/Transform3D/Controllers/Mouse/index.js +1 -0
- package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.d.ts +12 -0
- package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.js +53 -0
- package/lib/Components/Transform3D/Controllers/Touch/index.d.ts +1 -0
- package/lib/Components/Transform3D/Controllers/Touch/index.js +1 -0
- package/lib/Components/Transform3D/Mocks/MockPanTransformUC.d.ts +1 -0
- package/lib/Components/Transform3D/Mocks/MockPanTransformUC.js +1 -0
- package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.d.ts +13 -0
- package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.js +17 -0
- package/lib/Components/Transform3D/Mocks/index.d.ts +1 -0
- package/lib/Components/Transform3D/Mocks/index.js +1 -0
- package/lib/Components/Transform3D/UC/PanTransformUC.d.ts +3 -1
- package/lib/Components/Transform3D/UC/PanTransformUC.js +24 -6
- package/lib/Components/Transform3D/UC/StylusMoveTransformUC.js +10 -10
- package/lib/Components/Transform3D/UC/TryPanTransformUC.d.ts +27 -0
- package/lib/Components/Transform3D/UC/TryPanTransformUC.js +79 -0
- package/lib/Components/Transform3D/UC/index.d.ts +1 -0
- package/lib/Components/Transform3D/UC/index.js +1 -0
- package/lib/Components/index.d.ts +4 -1
- package/lib/Components/index.js +4 -1
- package/lib/ValueObjects/Quaternion.d.ts +1 -0
- package/lib/ValueObjects/Quaternion.js +11 -0
- package/package.json +1 -1
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.d.ts +0 -42
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.js +0 -99
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.d.ts +0 -12
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.js +0 -45
- package/lib/AppObjectComponents/ChannelModel/index.d.ts +0 -2
- package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.d.ts +0 -16
- package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.js +0 -40
- package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.d.ts +0 -5
- package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.js +0 -25
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/index.d.ts +0 -9
- package/lib/AppObjectComponents/Dispatcher/index.js +0 -21
- package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.d.ts +0 -16
- package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.js +0 -28
- package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.d.ts +0 -14
- package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.js +0 -41
- package/lib/AppObjectComponents/Enablement/index.d.ts +0 -2
- package/lib/AppObjectComponents/Hideable/Entities/Hideable.d.ts +0 -10
- package/lib/AppObjectComponents/Hideable/Entities/Hideable.js +0 -31
- package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.d.ts +0 -12
- package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.js +0 -43
- package/lib/AppObjectComponents/Hideable/index.d.ts +0 -2
- package/lib/AppObjectComponents/Label/Entities/Label.d.ts +0 -17
- package/lib/AppObjectComponents/Label/Entities/Label.js +0 -58
- package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.d.ts +0 -19
- package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.js +0 -62
- package/lib/AppObjectComponents/Label/index.d.ts +0 -2
- package/lib/AppObjectComponents/Mesh/Entities/Mesh.d.ts +0 -21
- package/lib/AppObjectComponents/Mesh/Entities/Mesh.js +0 -45
- package/lib/AppObjectComponents/Mesh/index.d.ts +0 -1
- package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.d.ts +0 -25
- package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.js +0 -59
- package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.d.ts +0 -13
- package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.js +0 -43
- package/lib/AppObjectComponents/OverlayColor/index.d.ts +0 -2
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.d.ts +0 -31
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.js +0 -106
- package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.d.ts +0 -31
- package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.js +0 -109
- package/lib/AppObjectComponents/SceneRoot/index.d.ts +0 -2
- package/lib/AppObjectComponents/SceneRoot/index.js +0 -14
- package/lib/AppObjectComponents/StoredView/Entities/StoredView.d.ts +0 -13
- package/lib/AppObjectComponents/StoredView/Entities/StoredView.js +0 -64
- package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.d.ts +0 -27
- package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.js +0 -82
- package/lib/AppObjectComponents/StoredView/index.d.ts +0 -2
- package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.d.ts +0 -45
- package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.js +0 -226
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.d.ts +0 -12
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.js +0 -46
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.d.ts +0 -19
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.js +0 -60
- package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.d.ts +0 -20
- package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.js +0 -67
- package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.d.ts +0 -14
- package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.js +0 -53
- package/lib/AppObjectComponents/Transform3D/index.d.ts +0 -5
- package/lib/AppObjectComponents/Transform3D/index.js +0 -17
- package/lib/AppObjectComponents/index.d.ts +0 -10
- package/lib/AppObjectComponents/index.js +0 -22
- package/lib/Components/App/PM/HasNextPreviousStatePM.d.ts +0 -15
- package/lib/Components/App/PM/HasNextPreviousStatePM.js +0 -44
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.d.ts +0 -6
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.js +0 -9
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.d.ts +0 -10
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.js +0 -141
- package/lib/Components/SceneRoot/Controllers/StylusMove.d.ts +0 -14
- package/lib/Components/SceneRoot/Controllers/StylusMove.js +0 -56
- package/lib/Components/SceneRoot/Controllers/StylusScale.d.ts +0 -14
- package/lib/Components/SceneRoot/Controllers/StylusScale.js +0 -58
- package/lib/Components/Selection/Controller/StylusHoverOnAppObject.d.ts +0 -11
- package/lib/Components/Selection/Controller/StylusHoverOnAppObject.js +0 -42
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.d.ts +0 -18
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.js +0 -77
- package/lib/Components/Selection/Controller/StylusSelectAppObject.d.ts +0 -11
- package/lib/Components/Selection/Controller/StylusSelectAppObject.js +0 -44
- package/lib/Components/XR/Mocks/index.d.ts +0 -2
- package/lib/Components/zSpace/Controllers/EmulateStylus.d.ts +0 -9
- package/lib/Components/zSpace/Controllers/EmulateStylus.js +0 -100
- package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.d.ts +0 -14
- package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.js +0 -57
- package/lib/Components/zSpace/Controllers/index.d.ts +0 -1
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.d.ts +0 -27
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.js +0 -111
- package/lib/Components/zSpace/PM/StylusColorLengthPM.d.ts +0 -13
- package/lib/Components/zSpace/PM/StylusColorLengthPM.js +0 -77
- package/lib/Components/zSpace/PM/StylusIsInUsePM.d.ts +0 -6
- package/lib/Components/zSpace/PM/StylusIsInUsePM.js +0 -42
- package/lib/Controllers/HoverLabelMouse.d.ts +0 -10
- package/lib/Controllers/HoverLabelMouse.js +0 -23
- package/lib/Controllers/HoverLabelTouch.d.ts +0 -14
- package/lib/Controllers/HoverLabelTouch.js +0 -41
- package/lib/Controllers/ToolHotkeys.d.ts +0 -6
- package/lib/Controllers/ToolHotkeys.js +0 -25
- package/lib/Controllers/index.d.ts +0 -3
- package/lib/Controllers/index.js +0 -15
- package/lib/Entities/AppBoundary.d.ts +0 -6
- package/lib/Entities/AppDispatcher.d.ts +0 -63
- package/lib/Entities/AppDispatcher.js +0 -336
- package/lib/Entities/AppHandler.d.ts +0 -20
- package/lib/Entities/AppHandler.js +0 -94
- package/lib/Entities/Babylon.d.ts +0 -48
- package/lib/Entities/Babylon.js +0 -146
- package/lib/Entities/BaseApp.d.ts +0 -9
- package/lib/Entities/BaseApp.js +0 -30
- package/lib/Entities/DevicePreview.d.ts +0 -11
- package/lib/Entities/DevicePreview.js +0 -49
- package/lib/Entities/FocusCamera.d.ts +0 -70
- package/lib/Entities/FocusCamera.js +0 -272
- package/lib/Entities/FramedScreen.d.ts +0 -15
- package/lib/Entities/FramedScreen.js +0 -58
- package/lib/Entities/FramedScreenContainer.d.ts +0 -12
- package/lib/Entities/FramedScreenContainer.js +0 -41
- package/lib/Entities/HoverLabels.d.ts +0 -42
- package/lib/Entities/HoverLabels.js +0 -82
- package/lib/Entities/KeyboardInput.d.ts +0 -13
- package/lib/Entities/KeyboardInput.js +0 -68
- package/lib/Entities/Memoized/MemoizedAngle.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedAngle.js +0 -22
- package/lib/Entities/Memoized/MemoizedBoolean.d.ts +0 -8
- package/lib/Entities/Memoized/MemoizedBoolean.js +0 -22
- package/lib/Entities/Memoized/MemoizedColor.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedColor.js +0 -23
- package/lib/Entities/Memoized/MemoizedNumber.d.ts +0 -8
- package/lib/Entities/Memoized/MemoizedNumber.js +0 -22
- package/lib/Entities/Memoized/MemoizedQuaternion.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedQuaternion.js +0 -23
- package/lib/Entities/Memoized/MemoizedString.d.ts +0 -8
- package/lib/Entities/Memoized/MemoizedString.js +0 -22
- package/lib/Entities/Memoized/MemoizedVector2.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedVector2.js +0 -23
- package/lib/Entities/Memoized/MemoizedVector3.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedVector3.js +0 -23
- package/lib/Entities/MeshModel.d.ts +0 -68
- package/lib/Entities/MeshModel.js +0 -174
- package/lib/Entities/ModelObject.d.ts +0 -10
- package/lib/Entities/ModelObject.js +0 -42
- package/lib/Entities/MouseInput.d.ts +0 -21
- package/lib/Entities/MouseInput.js +0 -127
- package/lib/Entities/ObservableEntityRepo.d.ts +0 -20
- package/lib/Entities/ObservableEntityRepo.js +0 -80
- package/lib/Entities/QuestionChallenge.d.ts +0 -21
- package/lib/Entities/QuestionChallenge.js +0 -103
- package/lib/Entities/QuestionChallengeAnswer.d.ts +0 -32
- package/lib/Entities/QuestionChallengeAnswer.js +0 -51
- package/lib/Entities/SceneModel.d.ts +0 -85
- package/lib/Entities/SceneModel.js +0 -202
- package/lib/Entities/SceneModelMesh.d.ts +0 -40
- package/lib/Entities/SceneModelMesh.js +0 -75
- package/lib/Entities/SceneModelRepo.d.ts +0 -11
- package/lib/Entities/SceneModelRepo.js +0 -48
- package/lib/Entities/SceneObject.d.ts +0 -23
- package/lib/Entities/SceneObject.js +0 -79
- package/lib/Entities/SceneObjectsRepo.d.ts +0 -12
- package/lib/Entities/SceneObjectsRepo.js +0 -58
- package/lib/Entities/SceneRoot.d.ts +0 -29
- package/lib/Entities/SceneRoot.js +0 -145
- package/lib/Entities/StateMachine.d.ts +0 -29
- package/lib/Entities/StateMachine.js +0 -98
- package/lib/Entities/Tool.d.ts +0 -81
- package/lib/Entities/Tool.js +0 -94
- package/lib/Entities/ToolRepository.d.ts +0 -46
- package/lib/Entities/ToolRepository.js +0 -118
- package/lib/Entities/TouchInput.d.ts +0 -28
- package/lib/Entities/TouchInput.js +0 -144
- package/lib/Entities/UndoRedo.d.ts +0 -22
- package/lib/Entities/UndoRedo.js +0 -61
- package/lib/PresentationManagers/DevicePreviewPM.d.ts +0 -14
- package/lib/PresentationManagers/DevicePreviewPM.js +0 -30
- package/lib/PresentationManagers/FocusCameraPM.d.ts +0 -15
- package/lib/PresentationManagers/FocusCameraPM.js +0 -31
- package/lib/PresentationManagers/FocusCameraPosRotPM.d.ts +0 -13
- package/lib/PresentationManagers/FocusCameraPosRotPM.js +0 -28
- package/lib/PresentationManagers/FramedScreenContainerPM.d.ts +0 -18
- package/lib/PresentationManagers/FramedScreenContainerPM.js +0 -55
- package/lib/PresentationManagers/HasRedoPM.d.ts +0 -9
- package/lib/PresentationManagers/HasRedoPM.js +0 -22
- package/lib/PresentationManagers/HasUndoPM.d.ts +0 -9
- package/lib/PresentationManagers/HasUndoPM.js +0 -22
- package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.d.ts +0 -9
- package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.js +0 -19
- package/lib/PresentationManagers/HoverLabels/HoverLabelPM.d.ts +0 -17
- package/lib/PresentationManagers/HoverLabels/HoverLabelPM.js +0 -32
- package/lib/PresentationManagers/HoverLabels/index.d.ts +0 -2
- package/lib/PresentationManagers/IsAuthoringPM.d.ts +0 -9
- package/lib/PresentationManagers/IsAuthoringPM.js +0 -20
- package/lib/PresentationManagers/PresentationManager.d.ts +0 -8
- package/lib/PresentationManagers/PresentationManager.js +0 -16
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.d.ts +0 -24
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.js +0 -65
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.d.ts +0 -17
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.js +0 -46
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.d.ts +0 -17
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.js +0 -51
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.d.ts +0 -15
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.js +0 -34
- package/lib/PresentationManagers/QuestionChallenge/index.d.ts +0 -4
- package/lib/PresentationManagers/QuestionChallenge/index.js +0 -16
- package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.d.ts +0 -15
- package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.js +0 -34
- package/lib/PresentationManagers/SceneModel/SceneModelPM.d.ts +0 -15
- package/lib/PresentationManagers/SceneModel/SceneModelPM.js +0 -36
- package/lib/PresentationManagers/SceneModel/index.d.ts +0 -1
- package/lib/PresentationManagers/SceneObject/SceneObjectPM.d.ts +0 -22
- package/lib/PresentationManagers/SceneObject/SceneObjectPM.js +0 -57
- package/lib/PresentationManagers/SceneObject/index.d.ts +0 -1
- package/lib/PresentationManagers/ShowBabylonInspectorPM.d.ts +0 -9
- package/lib/PresentationManagers/ShowBabylonInspectorPM.js +0 -24
- package/lib/PresentationManagers/ToolPM.d.ts +0 -17
- package/lib/PresentationManagers/ToolPM.js +0 -35
- package/lib/PresentationManagers/TransformNodePM.d.ts +0 -14
- package/lib/PresentationManagers/TransformNodePM.js +0 -23
- package/lib/PresentationManagers/index.d.ts +0 -13
- package/lib/PresentationManagers/index.js +0 -25
- package/lib/Types/ChannelModelData.d.ts +0 -68
- package/lib/Types/ChannelModelData.js +0 -21
- package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.d.ts +0 -17
- package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.js +0 -64
- package/lib/UseCases/FocusCamera/LerpFocusCamera.d.ts +0 -36
- package/lib/UseCases/FocusCamera/LerpFocusCamera.js +0 -71
- package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.js +0 -36
- package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.js +0 -36
- package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.js +0 -26
- package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.js +0 -33
- package/lib/UseCases/FocusCamera/SerializeFocusCamera.d.ts +0 -22
- package/lib/UseCases/FocusCamera/SerializeFocusCamera.js +0 -81
- package/lib/UseCases/FocusCamera/index.d.ts +0 -7
- package/lib/UseCases/FocusCamera/index.js +0 -19
- package/lib/UseCases/Handlers/DisposeAppBase.d.ts +0 -8
- package/lib/UseCases/Handlers/DisposeAppBase.js +0 -24
- package/lib/UseCases/Handlers/SetAppStateBase.d.ts +0 -10
- package/lib/UseCases/Handlers/SetAppStateBase.js +0 -32
- package/lib/UseCases/Handlers/SetDevicePreviewBase.d.ts +0 -10
- package/lib/UseCases/Handlers/SetDevicePreviewBase.js +0 -32
- package/lib/UseCases/Handlers/SetIsAuthoringBase.d.ts +0 -10
- package/lib/UseCases/Handlers/SetIsAuthoringBase.js +0 -32
- package/lib/UseCases/Handlers/ShowBabylonInspectorBase.d.ts +0 -10
- package/lib/UseCases/Handlers/ShowBabylonInspectorBase.js +0 -32
- package/lib/UseCases/Handlers/StartAppBase.d.ts +0 -10
- package/lib/UseCases/Handlers/StartAppBase.js +0 -32
- package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +0 -10
- package/lib/UseCases/Handlers/StartZSpaceBase.js +0 -35
- package/lib/UseCases/Handlers/StopAppBase.d.ts +0 -8
- package/lib/UseCases/Handlers/StopAppBase.js +0 -24
- package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +0 -8
- package/lib/UseCases/Handlers/StopZSpaceBase.js +0 -24
- package/lib/UseCases/Handlers/index.d.ts +0 -9
- package/lib/UseCases/Handlers/index.js +0 -21
- package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.d.ts +0 -14
- package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.js +0 -35
- package/lib/UseCases/HoverLabels/trySetHoverLabel.d.ts +0 -3
- package/lib/UseCases/HoverLabels/trySetHoverLabel.js +0 -12
- package/lib/UseCases/LerpVector3.d.ts +0 -26
- package/lib/UseCases/LerpVector3.js +0 -66
- package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.d.ts +0 -25
- package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.js +0 -70
- package/lib/UseCases/QuestionChallenge/index.d.ts +0 -4
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.d.ts +0 -2
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.js +0 -16
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.d.ts +0 -2
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.js +0 -16
- package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.d.ts +0 -2
- package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.js +0 -16
- package/lib/UseCases/SceneModel/SerializeActiveModel.d.ts +0 -18
- package/lib/UseCases/SceneModel/SerializeActiveModel.js +0 -74
- package/lib/UseCases/SceneModel/SetMeshesEnabledHook.d.ts +0 -7
- package/lib/UseCases/SceneModel/SetMeshesEnabledHook.js +0 -22
- package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.d.ts +0 -2
- package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.js +0 -13
- package/lib/UseCases/SceneModel/index.d.ts +0 -5
- package/lib/UseCases/SceneModel/index.js +0 -17
- package/lib/UseCases/SceneModel/loadNewModel.d.ts +0 -2
- package/lib/UseCases/SceneModel/loadNewModel.js +0 -84
- package/lib/UseCases/SceneModel/modelDataLoader.d.ts +0 -3
- package/lib/UseCases/SceneModel/modelDataLoader.js +0 -33
- package/lib/UseCases/SceneObjects/PeelSceneObject.d.ts +0 -18
- package/lib/UseCases/SceneObjects/PeelSceneObject.js +0 -61
- package/lib/UseCases/SceneObjects/index.d.ts +0 -1
- package/lib/UseCases/SceneObjects/index.js +0 -13
- package/lib/UseCases/SceneRoot/SerializeSceneRoot.d.ts +0 -33
- package/lib/UseCases/SceneRoot/SerializeSceneRoot.js +0 -67
- package/lib/UseCases/SceneRoot/index.d.ts +0 -2
- package/lib/UseCases/SceneRoot/index.js +0 -14
- package/lib/UseCases/SceneRoot/setupSceneRoot.d.ts +0 -2
- package/lib/UseCases/SceneRoot/setupSceneRoot.js +0 -11
- package/lib/UseCases/index.d.ts +0 -7
- package/lib/UseCases/index.js +0 -19
- package/lib/UseCases/setDevicePreview.d.ts +0 -2
- package/lib/UseCases/setDevicePreview.js +0 -14
- package/lib/UseCases/setupStandardAppObjects.d.ts +0 -2
- package/lib/UseCases/setupStandardAppObjects.js +0 -10
- package/lib/ValueObjects/Result.d.ts +0 -30
- package/lib/ValueObjects/Result.js +0 -45
- /package/lib/{Entities/AppBoundary.js → Components/LabelDrop/UseCases/LabelDropAnimation.js} +0 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.makeDragLabelDropUC = exports.DragLabelDropUC = void 0;
|
|
13
|
+
const AppObject_1 = require("../../../AppObject");
|
|
14
|
+
const Utilities_1 = require("../../../Utilities");
|
|
15
|
+
const lerpNumber_1 = require("../../../Utilities/lerpNumber");
|
|
16
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
17
|
+
const SceneRayPickUC_1 = require("../../Babylon/UC/SceneRayPickUC");
|
|
18
|
+
const BaseAppState_1 = require("../../BaseApp/Entity/BaseAppState");
|
|
19
|
+
const ChallengeEntity_1 = require("../../Challenge/Entities/ChallengeEntity");
|
|
20
|
+
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
|
|
21
|
+
class DragLabelDropUC extends AppObject_1.AppObjectUC {
|
|
22
|
+
static get(appObjects) {
|
|
23
|
+
return AppObject_1.getSingletonComponent(DragLabelDropUC.type, appObjects);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.DragLabelDropUC = DragLabelDropUC;
|
|
27
|
+
DragLabelDropUC.type = "DragLabelDropUC";
|
|
28
|
+
function makeDragLabelDropUC(appObject) {
|
|
29
|
+
return new DragLabelDropUCImp(appObject);
|
|
30
|
+
}
|
|
31
|
+
exports.makeDragLabelDropUC = makeDragLabelDropUC;
|
|
32
|
+
class DragLabelDropUCImp extends DragLabelDropUC {
|
|
33
|
+
constructor(appObject) {
|
|
34
|
+
super(appObject, DragLabelDropUC.type);
|
|
35
|
+
this.isDragging = false;
|
|
36
|
+
this.appObjectID = undefined;
|
|
37
|
+
this.hitObject = false;
|
|
38
|
+
this.initialPosition = ValueObjects_1.Vector2.Zero();
|
|
39
|
+
this.endPosition = ValueObjects_1.Vector2.Zero();
|
|
40
|
+
this.delta = 10;
|
|
41
|
+
this.currentPercent = 0;
|
|
42
|
+
this.correctFadeDurationMS = 200;
|
|
43
|
+
this.incorrectFadeDurationMS = 300;
|
|
44
|
+
this.doNothingFadeDurationMS = 500;
|
|
45
|
+
this.onFinishRelease = () => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
if (!this.repo)
|
|
47
|
+
return;
|
|
48
|
+
if (this.interval) {
|
|
49
|
+
clearInterval(this.interval);
|
|
50
|
+
}
|
|
51
|
+
this.currentPercent = 0;
|
|
52
|
+
this.endPosition = this.repo.screenPosition;
|
|
53
|
+
if (!this.hitObject) {
|
|
54
|
+
// no hit
|
|
55
|
+
this.interval = setInterval(() => {
|
|
56
|
+
this.animateLabelDrop(this.doNothingFadeDurationMS);
|
|
57
|
+
}, this.delta);
|
|
58
|
+
}
|
|
59
|
+
else if (this.repo.resultIsCorrect) {
|
|
60
|
+
// correct
|
|
61
|
+
yield new Promise((resolve) => setTimeout(resolve, 1000));
|
|
62
|
+
this.initialPosition = this.endPosition;
|
|
63
|
+
this.interval = setInterval(() => {
|
|
64
|
+
this.animateLabelDrop(this.correctFadeDurationMS);
|
|
65
|
+
}, this.delta);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
// incorrect
|
|
69
|
+
yield new Promise((resolve) => setTimeout(resolve, 1000));
|
|
70
|
+
this.interval = setInterval(() => {
|
|
71
|
+
this.animateLabelDrop(this.incorrectFadeDurationMS);
|
|
72
|
+
}, this.delta);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
this.animateLabelDrop = (duration) => {
|
|
76
|
+
if (!this.baseApp)
|
|
77
|
+
return;
|
|
78
|
+
if (!this.repo)
|
|
79
|
+
return;
|
|
80
|
+
if (!this.interval)
|
|
81
|
+
return;
|
|
82
|
+
const difference = 1 / (duration / this.delta);
|
|
83
|
+
this.currentPercent = this.currentPercent + difference;
|
|
84
|
+
const newValue = Utilities_1.cubicOut(this.currentPercent);
|
|
85
|
+
if (newValue >= 1) {
|
|
86
|
+
this.repo.draggingID = undefined;
|
|
87
|
+
this.repo.dragAlpha = 0;
|
|
88
|
+
this.repo.resultIsCorrect = undefined;
|
|
89
|
+
clearInterval(this.interval);
|
|
90
|
+
if (this.repo.getRemainingLabelDrops().length === 0) {
|
|
91
|
+
this.baseApp.isReviewing = true;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
this.repo.dragAlpha = 1 - newValue;
|
|
96
|
+
const newX = lerpNumber_1.lerpNumber(this.endPosition.x, this.initialPosition.x, newValue);
|
|
97
|
+
const newY = lerpNumber_1.lerpNumber(this.endPosition.y, this.initialPosition.y, newValue);
|
|
98
|
+
this.repo.screenPosition = new ValueObjects_1.Vector2(newX, newY);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
get repo() {
|
|
103
|
+
return this.getCachedSingleton(LabelDropRepo_1.LabelDropRepo.type);
|
|
104
|
+
}
|
|
105
|
+
get challenge() {
|
|
106
|
+
return this.getCachedSingleton(ChallengeEntity_1.ChallengeEntity.type);
|
|
107
|
+
}
|
|
108
|
+
get baseApp() {
|
|
109
|
+
return this.getCachedSingleton(BaseAppState_1.BaseAppState.type);
|
|
110
|
+
}
|
|
111
|
+
initialize(labelDropID, pos) {
|
|
112
|
+
var _a;
|
|
113
|
+
if (!this.repo || !this.challenge)
|
|
114
|
+
return;
|
|
115
|
+
if (this.challenge.selectedChallenge !== "LABEL_DROP")
|
|
116
|
+
return;
|
|
117
|
+
if (((_a = this.baseApp) === null || _a === void 0 ? void 0 : _a.isAuthoring) === true)
|
|
118
|
+
return;
|
|
119
|
+
this.repo.draggingID = labelDropID;
|
|
120
|
+
this.repo.dragMode = LabelDropRepo_1.LabelDropDragMode.SCREEN;
|
|
121
|
+
this.repo.dragAlpha = 1;
|
|
122
|
+
this.initialPosition = pos;
|
|
123
|
+
this.repo.screenPosition = new ValueObjects_1.Vector2(pos.x, pos.y);
|
|
124
|
+
this.isDragging = true;
|
|
125
|
+
}
|
|
126
|
+
setPosition2D(pos) {
|
|
127
|
+
var _a;
|
|
128
|
+
if (!this.isDragging)
|
|
129
|
+
return;
|
|
130
|
+
if (!this.repo || !this.challenge)
|
|
131
|
+
return;
|
|
132
|
+
if (this.challenge.selectedChallenge !== "LABEL_DROP")
|
|
133
|
+
return;
|
|
134
|
+
if (((_a = this.baseApp) === null || _a === void 0 ? void 0 : _a.isAuthoring) === true)
|
|
135
|
+
return;
|
|
136
|
+
this.repo.screenPosition = new ValueObjects_1.Vector2(pos.x, pos.y);
|
|
137
|
+
}
|
|
138
|
+
release(ray) {
|
|
139
|
+
var _a, _b;
|
|
140
|
+
if (!this.isDragging)
|
|
141
|
+
return;
|
|
142
|
+
this.isDragging = false;
|
|
143
|
+
if (!this.repo || !this.challenge)
|
|
144
|
+
return;
|
|
145
|
+
if (this.challenge.selectedChallenge !== "LABEL_DROP")
|
|
146
|
+
return;
|
|
147
|
+
if (((_a = this.baseApp) === null || _a === void 0 ? void 0 : _a.isAuthoring) === true)
|
|
148
|
+
return;
|
|
149
|
+
if (!this.repo.draggingID) {
|
|
150
|
+
this.warn("Trying to release a label drop without an ID");
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const scenePick = (_b = SceneRayPickUC_1.SceneRayPickUC.get(this.appObjects)) === null || _b === void 0 ? void 0 : _b.sceneRayPick(ray);
|
|
154
|
+
this.appObjectID = undefined;
|
|
155
|
+
this.hitObject = true;
|
|
156
|
+
if (!scenePick ||
|
|
157
|
+
!scenePick.worldPickPoint ||
|
|
158
|
+
scenePick.hit === false ||
|
|
159
|
+
!scenePick.normal ||
|
|
160
|
+
!scenePick.objectPickMeta) {
|
|
161
|
+
this.hitObject = false;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.appObjectID = scenePick.objectPickMeta.appObjectID;
|
|
165
|
+
}
|
|
166
|
+
if (this.hitObject && this.appObjectID) {
|
|
167
|
+
this.repo.submitLabelDrop(this.repo.draggingID, this.appObjectID);
|
|
168
|
+
}
|
|
169
|
+
this.onFinishRelease();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { ParametricLine } from "../../../ValueObjects";
|
|
3
|
+
export declare abstract class DragLabelDropWorldUC extends AppObjectUC {
|
|
4
|
+
static readonly type = "DragLabelDropWorldUC";
|
|
5
|
+
abstract percentOfPickDepth: number;
|
|
6
|
+
abstract initializeDrag(labelDropID: string, ray: ParametricLine): void;
|
|
7
|
+
abstract updateDrag(ray: ParametricLine): void;
|
|
8
|
+
abstract releaseDrag(ray: ParametricLine): void;
|
|
9
|
+
static get(appObjects: AppObjectRepo): DragLabelDropWorldUC | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function makeDragLabelDropWorldUC(appObject: AppObject): DragLabelDropWorldUC;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.makeDragLabelDropWorldUC = exports.DragLabelDropWorldUC = void 0;
|
|
13
|
+
const AppObject_1 = require("../../../AppObject");
|
|
14
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
15
|
+
const SceneRayPickUC_1 = require("../../Babylon/UC/SceneRayPickUC");
|
|
16
|
+
const BaseAppState_1 = require("../../BaseApp/Entity/BaseAppState");
|
|
17
|
+
const ChallengeEntity_1 = require("../../Challenge/Entities/ChallengeEntity");
|
|
18
|
+
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
|
|
19
|
+
const CorrectAnimationUC_1 = require("./CorrectAnimationUC");
|
|
20
|
+
const DropOnNothingAnimationUC_1 = require("./DropOnNothingAnimationUC");
|
|
21
|
+
const IncorrectAnimationUC_1 = require("./IncorrectAnimationUC");
|
|
22
|
+
class DragLabelDropWorldUC extends AppObject_1.AppObjectUC {
|
|
23
|
+
static get(appObjects) {
|
|
24
|
+
return AppObject_1.getSingletonComponent(DragLabelDropWorldUC.type, appObjects);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.DragLabelDropWorldUC = DragLabelDropWorldUC;
|
|
28
|
+
DragLabelDropWorldUC.type = "DragLabelDropWorldUC";
|
|
29
|
+
function makeDragLabelDropWorldUC(appObject) {
|
|
30
|
+
return new DragLabelDropWorldUCImp(appObject);
|
|
31
|
+
}
|
|
32
|
+
exports.makeDragLabelDropWorldUC = makeDragLabelDropWorldUC;
|
|
33
|
+
class DragLabelDropWorldUCImp extends DragLabelDropWorldUC {
|
|
34
|
+
constructor(appObject) {
|
|
35
|
+
super(appObject, DragLabelDropWorldUC.type);
|
|
36
|
+
this.percentOfPickDepth = 0.95;
|
|
37
|
+
this.isDragging = false;
|
|
38
|
+
this.dragStartPosition = ValueObjects_1.Vector3.Zero();
|
|
39
|
+
}
|
|
40
|
+
get repo() {
|
|
41
|
+
return this.getCachedSingleton(LabelDropRepo_1.LabelDropRepo.type);
|
|
42
|
+
}
|
|
43
|
+
get challenge() {
|
|
44
|
+
return this.getCachedSingleton(ChallengeEntity_1.ChallengeEntity.type);
|
|
45
|
+
}
|
|
46
|
+
get baseApp() {
|
|
47
|
+
return this.getCachedSingleton(BaseAppState_1.BaseAppState.type);
|
|
48
|
+
}
|
|
49
|
+
initializeDrag(labelDropID, ray) {
|
|
50
|
+
var _a;
|
|
51
|
+
if (!this.repo || !this.challenge)
|
|
52
|
+
return;
|
|
53
|
+
if (this.challenge.selectedChallenge !== "LABEL_DROP")
|
|
54
|
+
return;
|
|
55
|
+
if (((_a = this.baseApp) === null || _a === void 0 ? void 0 : _a.isAuthoring) === true)
|
|
56
|
+
return;
|
|
57
|
+
if (this.currentAnimation) {
|
|
58
|
+
this.currentAnimation.cancel();
|
|
59
|
+
this.repo.resultIsCorrect = undefined;
|
|
60
|
+
this.repo.draggingID = undefined;
|
|
61
|
+
}
|
|
62
|
+
const pick = this.doPick(ray);
|
|
63
|
+
if (!pick)
|
|
64
|
+
return;
|
|
65
|
+
this.positionHelper(pick);
|
|
66
|
+
this.positionDragLabelFromHelper();
|
|
67
|
+
this.repo.draggingID = labelDropID;
|
|
68
|
+
this.repo.dragMode = LabelDropRepo_1.LabelDropDragMode.WORLD;
|
|
69
|
+
this.repo.dragAlpha = 1;
|
|
70
|
+
this.dragStartPosition = pick;
|
|
71
|
+
this.isDragging = true;
|
|
72
|
+
}
|
|
73
|
+
positionHelper(worldPosition) {
|
|
74
|
+
if (!this.repo)
|
|
75
|
+
return;
|
|
76
|
+
const helper = this.repo.dragHelperTransform;
|
|
77
|
+
helper.worldPosition = worldPosition;
|
|
78
|
+
const localZ = helper.localPosition.z * this.percentOfPickDepth;
|
|
79
|
+
helper.localPosition = new ValueObjects_1.Vector3(0, 0, localZ);
|
|
80
|
+
helper.localRotation = ValueObjects_1.Quaternion.Identity();
|
|
81
|
+
}
|
|
82
|
+
doPick(ray) {
|
|
83
|
+
const scenePick = SceneRayPickUC_1.sceneRayPick(ray, this.appObjects);
|
|
84
|
+
if (scenePick && scenePick.worldPickPoint) {
|
|
85
|
+
return scenePick.worldPickPoint;
|
|
86
|
+
}
|
|
87
|
+
const zeroParallaxPlane = ValueObjects_1.ParametricPlane.FromPointNormal(ValueObjects_1.Vector3.Zero(), ValueObjects_1.Vector3.Forward());
|
|
88
|
+
const zeroParallaxPick = zeroParallaxPlane.intersectLine(ray);
|
|
89
|
+
return zeroParallaxPick;
|
|
90
|
+
}
|
|
91
|
+
positionDragLabelFromHelper() {
|
|
92
|
+
if (!this.repo)
|
|
93
|
+
return;
|
|
94
|
+
this.repo.dragLabelTransform.worldPosition = this.repo.dragHelperTransform.worldPosition;
|
|
95
|
+
this.repo.dragLabelTransform.worldRotation = this.repo.dragHelperTransform.worldRotation;
|
|
96
|
+
}
|
|
97
|
+
updateDrag(ray) {
|
|
98
|
+
var _a;
|
|
99
|
+
if (!this.isDragging)
|
|
100
|
+
return;
|
|
101
|
+
if (!this.repo || !this.challenge)
|
|
102
|
+
return;
|
|
103
|
+
if (this.challenge.selectedChallenge !== "LABEL_DROP")
|
|
104
|
+
return;
|
|
105
|
+
if (((_a = this.baseApp) === null || _a === void 0 ? void 0 : _a.isAuthoring) === true)
|
|
106
|
+
return;
|
|
107
|
+
const pick = this.doPick(ray);
|
|
108
|
+
if (!pick)
|
|
109
|
+
return;
|
|
110
|
+
this.positionHelper(pick);
|
|
111
|
+
this.positionDragLabelFromHelper();
|
|
112
|
+
}
|
|
113
|
+
releaseDrag(ray) {
|
|
114
|
+
var _a, _b;
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
if (!this.baseApp)
|
|
117
|
+
return;
|
|
118
|
+
if (!this.isDragging)
|
|
119
|
+
return;
|
|
120
|
+
this.isDragging = false;
|
|
121
|
+
if (!this.repo || !this.challenge)
|
|
122
|
+
return;
|
|
123
|
+
if (this.challenge.selectedChallenge !== "LABEL_DROP")
|
|
124
|
+
return;
|
|
125
|
+
if (((_a = this.baseApp) === null || _a === void 0 ? void 0 : _a.isAuthoring) === true)
|
|
126
|
+
return;
|
|
127
|
+
if (!this.repo.draggingID) {
|
|
128
|
+
this.warn("Trying to release a label drop without an ID");
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const pickID = (_b = SceneRayPickUC_1.sceneRayPick(ray, this.appObjects)) === null || _b === void 0 ? void 0 : _b.appObjectID;
|
|
132
|
+
if (!pickID) {
|
|
133
|
+
const animationUC = DropOnNothingAnimationUC_1.LabelDropOnNothingAnimationUC.get(this.appObjects);
|
|
134
|
+
if (!animationUC) {
|
|
135
|
+
this.warn("Unable to find LabelDropOnNothingAnimationUC");
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this.currentAnimation = animationUC;
|
|
139
|
+
animationUC.desiredFinalPosition = this.dragStartPosition;
|
|
140
|
+
const didComplete = yield animationUC.start();
|
|
141
|
+
if (didComplete)
|
|
142
|
+
this.onAnimationComplete();
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const isCorrect = this.repo.submitLabelDrop(this.repo.draggingID, pickID);
|
|
146
|
+
if (isCorrect) {
|
|
147
|
+
const animationUC = CorrectAnimationUC_1.LabelDropCorrectAnimationUC.get(this.appObjects);
|
|
148
|
+
if (!animationUC) {
|
|
149
|
+
this.warn("Unable to find LabelDropCorrectAnimationUC");
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
this.currentAnimation = animationUC;
|
|
153
|
+
const didComplete = yield animationUC.start();
|
|
154
|
+
if (didComplete)
|
|
155
|
+
this.onAnimationComplete();
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
const animationUC = IncorrectAnimationUC_1.LabelDropIncorrectAnimationUC.get(this.appObjects);
|
|
159
|
+
if (!animationUC) {
|
|
160
|
+
this.warn("Unable to find LabelDropIncorrectAnimationUC");
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.currentAnimation = animationUC;
|
|
164
|
+
animationUC.desiredFinalPosition = this.dragStartPosition;
|
|
165
|
+
const didComplete = yield animationUC.start();
|
|
166
|
+
if (didComplete)
|
|
167
|
+
this.onAnimationComplete();
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
onAnimationComplete() {
|
|
172
|
+
this.currentAnimation = undefined;
|
|
173
|
+
if (!this.repo || !this.baseApp)
|
|
174
|
+
return;
|
|
175
|
+
this.repo.draggingID = undefined;
|
|
176
|
+
this.repo.resultIsCorrect = undefined;
|
|
177
|
+
if (this.repo.getRemainingLabelDrops().length === 0) {
|
|
178
|
+
this.baseApp.isReviewing = true;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { Vector3 } from "../../../ValueObjects";
|
|
3
|
+
import { LabelDropAnimationI } from "./LabelDropAnimation";
|
|
4
|
+
export declare abstract class LabelDropOnNothingAnimationUC extends AppObjectUC implements LabelDropAnimationI {
|
|
5
|
+
static type: string;
|
|
6
|
+
abstract animationDurationMS: number;
|
|
7
|
+
abstract getIsAnimating(): boolean;
|
|
8
|
+
abstract desiredFinalPosition: Vector3;
|
|
9
|
+
abstract start: () => Promise<boolean>;
|
|
10
|
+
abstract cancel: () => void;
|
|
11
|
+
static get(appObject: AppObjectRepo): LabelDropOnNothingAnimationUC | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare function makeLabelDropOnNothingAnimationUC(appObject: AppObject): LabelDropOnNothingAnimationUC;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeLabelDropOnNothingAnimationUC = exports.LabelDropOnNothingAnimationUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const Utilities_1 = require("../../../Utilities");
|
|
6
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
7
|
+
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
|
|
8
|
+
class LabelDropOnNothingAnimationUC extends AppObject_1.AppObjectUC {
|
|
9
|
+
static get(appObject) {
|
|
10
|
+
return AppObject_1.getSingletonComponent(LabelDropOnNothingAnimationUC.type, appObject);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.LabelDropOnNothingAnimationUC = LabelDropOnNothingAnimationUC;
|
|
14
|
+
LabelDropOnNothingAnimationUC.type = "LabelDropOnNothingAnimationUC";
|
|
15
|
+
function makeLabelDropOnNothingAnimationUC(appObject) {
|
|
16
|
+
return new LabelDropOnNothingAnimationUCImp(appObject);
|
|
17
|
+
}
|
|
18
|
+
exports.makeLabelDropOnNothingAnimationUC = makeLabelDropOnNothingAnimationUC;
|
|
19
|
+
class LabelDropOnNothingAnimationUCImp extends LabelDropOnNothingAnimationUC {
|
|
20
|
+
constructor(appObject) {
|
|
21
|
+
super(appObject, LabelDropOnNothingAnimationUC.type);
|
|
22
|
+
this.animationDurationMS = 500;
|
|
23
|
+
this.desiredFinalPosition = ValueObjects_1.Vector3.Zero();
|
|
24
|
+
this._isAnimating = false;
|
|
25
|
+
this.intervalDeltaMS = 10;
|
|
26
|
+
this.cancelAnimation = false;
|
|
27
|
+
this.start = () => {
|
|
28
|
+
if (!this.labelDropEntity) {
|
|
29
|
+
return Promise.reject(new Error("No label drop entity"));
|
|
30
|
+
}
|
|
31
|
+
return new Promise((resolve) => {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
const startTime = Date.now();
|
|
34
|
+
const endTime = startTime + this.animationDurationMS;
|
|
35
|
+
this._isAnimating = true;
|
|
36
|
+
const startPosition = (_b = (_a = this.labelDropEntity) === null || _a === void 0 ? void 0 : _a.dragLabelTransform.worldPosition) !== null && _b !== void 0 ? _b : ValueObjects_1.Vector3.Zero();
|
|
37
|
+
const interval = setInterval(() => {
|
|
38
|
+
if (!this.labelDropEntity)
|
|
39
|
+
return;
|
|
40
|
+
if (this.cancelAnimation) {
|
|
41
|
+
clearInterval(interval);
|
|
42
|
+
this.cancelAnimation = false;
|
|
43
|
+
resolve(false);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const currentTime = Date.now();
|
|
47
|
+
if (currentTime >= endTime) {
|
|
48
|
+
this._isAnimating = false;
|
|
49
|
+
this.labelDropEntity.dragAlpha = 0;
|
|
50
|
+
this.labelDropEntity.dragLabelTransform.worldPosition =
|
|
51
|
+
this.desiredFinalPosition;
|
|
52
|
+
clearInterval(interval);
|
|
53
|
+
resolve(true);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const animationPercent = (currentTime - startTime) / this.animationDurationMS;
|
|
57
|
+
const acceleratorValue = 1.5;
|
|
58
|
+
let alpha = 1 - acceleratorValue * animationPercent;
|
|
59
|
+
if (alpha < 0)
|
|
60
|
+
alpha = 0;
|
|
61
|
+
this.labelDropEntity.dragAlpha = alpha;
|
|
62
|
+
const easedPercent = Utilities_1.cubicOut(animationPercent);
|
|
63
|
+
const lerpedPos = ValueObjects_1.Vector3.Lerp(startPosition, this.desiredFinalPosition, easedPercent);
|
|
64
|
+
this.labelDropEntity.dragLabelTransform.worldPosition = lerpedPos;
|
|
65
|
+
}
|
|
66
|
+
}, this.intervalDeltaMS);
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
this.cancel = () => {
|
|
70
|
+
if (!this.getIsAnimating) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this.cancelAnimation = true;
|
|
74
|
+
};
|
|
75
|
+
this.labelDropEntity = appObject.getComponent(LabelDropRepo_1.LabelDropRepo.type);
|
|
76
|
+
if (!this.labelDropEntity) {
|
|
77
|
+
this.error("UC added to an app object that does not have a LabelDropEntity");
|
|
78
|
+
}
|
|
79
|
+
this.appObjects.registerSingleton(this);
|
|
80
|
+
}
|
|
81
|
+
getIsAnimating() {
|
|
82
|
+
return this._isAnimating;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
export declare abstract class EditLabelDropUC extends AppObjectUC {
|
|
3
|
+
static readonly type = "EditLabelDropUC";
|
|
4
|
+
abstract start(labelDropID?: string): void;
|
|
5
|
+
abstract discard(): void;
|
|
6
|
+
abstract finish(): void;
|
|
7
|
+
static get: (appObjects: AppObjectRepo) => EditLabelDropUC | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function makeEditLabelDropUC(appObject: AppObject): EditLabelDropUC;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeEditLabelDropUC = exports.EditLabelDropUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
|
|
6
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
7
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
8
|
+
const ShowConfirmUC_1 = require("../../Dispatcher/UC/ShowConfirmUC");
|
|
9
|
+
class EditLabelDropUC extends AppObject_1.AppObjectUC {
|
|
10
|
+
}
|
|
11
|
+
exports.EditLabelDropUC = EditLabelDropUC;
|
|
12
|
+
EditLabelDropUC.type = "EditLabelDropUC";
|
|
13
|
+
EditLabelDropUC.get = (appObjects) => AppObject_1.getSingletonComponent(EditLabelDropUC.type, appObjects);
|
|
14
|
+
function makeEditLabelDropUC(appObject) {
|
|
15
|
+
return new EditLabelDropUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeEditLabelDropUC = makeEditLabelDropUC;
|
|
18
|
+
class EditLabelDropUCImp extends EditLabelDropUC {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
super(appObject, EditLabelDropUC.type);
|
|
21
|
+
this.message = "Are you sure you want to discard changes made to this label drop answer?";
|
|
22
|
+
this.title = "Discard Changes";
|
|
23
|
+
this.confirmButton = "Discard";
|
|
24
|
+
this.cancelButton = "Cancel";
|
|
25
|
+
this.start = (labelDropID) => {
|
|
26
|
+
if (!this.labelDropRepo)
|
|
27
|
+
return;
|
|
28
|
+
this.editingItem = labelDropID
|
|
29
|
+
? this.labelDropRepo.getForAppObject(labelDropID)
|
|
30
|
+
: this.labelDropRepo.makeLabelDropItem();
|
|
31
|
+
if (!this.editingItem) {
|
|
32
|
+
this.warn("No label drop found for ID: " + labelDropID);
|
|
33
|
+
this.clearEditLabelDrop();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
this.initialData = this.editingItem.data;
|
|
37
|
+
this.labelDropRepo.editingID = this.editingItem.id;
|
|
38
|
+
this.labelDropRepo.isEditingNewAnswer = labelDropID ? false : true;
|
|
39
|
+
};
|
|
40
|
+
this.discard = () => {
|
|
41
|
+
if (!this.isEditChanged()) {
|
|
42
|
+
this.onConfirmDiscardEdits();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const showConfirm = ShowConfirmUC_1.ShowConfirmUC.get(this.appObjects);
|
|
46
|
+
if (!showConfirm) {
|
|
47
|
+
this.warn("Could not find ShowConfirmUC");
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const dto = {
|
|
51
|
+
cancelButtonLabel: this.cancelButton,
|
|
52
|
+
confirmButtonLabel: this.confirmButton,
|
|
53
|
+
message: this.message,
|
|
54
|
+
title: this.title,
|
|
55
|
+
confirmCallback: this.onConfirmDiscardEdits,
|
|
56
|
+
cancelCallback: () => { }
|
|
57
|
+
};
|
|
58
|
+
showConfirm.showConfirm(dto);
|
|
59
|
+
};
|
|
60
|
+
this.isEditChanged = () => {
|
|
61
|
+
var _a;
|
|
62
|
+
if (!this.editingItem || !this.labelDropRepo || !this.initialData)
|
|
63
|
+
return false;
|
|
64
|
+
if ((_a = this.labelDropRepo) === null || _a === void 0 ? void 0 : _a.isEditingNewAnswer)
|
|
65
|
+
return true;
|
|
66
|
+
const currentData = this.editingItem.data;
|
|
67
|
+
if (currentData.label !== this.initialData.label)
|
|
68
|
+
return true;
|
|
69
|
+
if (currentData.correctAppObjectIDs.length !==
|
|
70
|
+
this.initialData.correctAppObjectIDs.length)
|
|
71
|
+
return true;
|
|
72
|
+
for (const correctObjectId of currentData.correctAppObjectIDs) {
|
|
73
|
+
if (!this.initialData.correctAppObjectIDs.includes(correctObjectId))
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
return false;
|
|
77
|
+
};
|
|
78
|
+
this.onConfirmDiscardEdits = () => {
|
|
79
|
+
if (!this.editingItem || !this.labelDropRepo || !this.initialData)
|
|
80
|
+
return;
|
|
81
|
+
if (this.labelDropRepo.isEditingNewAnswer) {
|
|
82
|
+
this.labelDropRepo.deleteItem(this.editingItem.id);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.editingItem.data = this.initialData;
|
|
86
|
+
}
|
|
87
|
+
this.clearEditLabelDrop();
|
|
88
|
+
};
|
|
89
|
+
this.finish = () => {
|
|
90
|
+
var _a, _b;
|
|
91
|
+
if (!this.isEditChanged()) {
|
|
92
|
+
this.clearEditLabelDrop();
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const repo = this.labelDropRepo;
|
|
96
|
+
const initialData = this.initialData;
|
|
97
|
+
const item = this.editingItem;
|
|
98
|
+
const dispatchStateChange = this.dispatchStateChange;
|
|
99
|
+
if (!repo || !initialData || !item || !dispatchStateChange)
|
|
100
|
+
return;
|
|
101
|
+
const finalData = item.data;
|
|
102
|
+
if (repo.isEditingNewAnswer) {
|
|
103
|
+
(_a = this.undo) === null || _a === void 0 ? void 0 : _a.submitAction({
|
|
104
|
+
undoAction: () => {
|
|
105
|
+
repo.deleteItem(item.id);
|
|
106
|
+
dispatchStateChange();
|
|
107
|
+
},
|
|
108
|
+
redoAction: () => {
|
|
109
|
+
repo.makeLabelDropItem(item.id).data = finalData;
|
|
110
|
+
dispatchStateChange();
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
(_b = this.undo) === null || _b === void 0 ? void 0 : _b.submitAction({
|
|
116
|
+
undoAction: () => {
|
|
117
|
+
item.data = initialData;
|
|
118
|
+
dispatchStateChange();
|
|
119
|
+
},
|
|
120
|
+
redoAction: () => {
|
|
121
|
+
item.data = finalData;
|
|
122
|
+
dispatchStateChange();
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
this.clearEditLabelDrop();
|
|
127
|
+
dispatchStateChange();
|
|
128
|
+
};
|
|
129
|
+
this.clearEditLabelDrop = () => {
|
|
130
|
+
if (!this.labelDropRepo)
|
|
131
|
+
return;
|
|
132
|
+
this.initialData = undefined;
|
|
133
|
+
this.editingItem = undefined;
|
|
134
|
+
this.labelDropRepo.editingID = undefined;
|
|
135
|
+
this.labelDropRepo.isEditingNewAnswer = false;
|
|
136
|
+
};
|
|
137
|
+
this.appObjects.registerSingleton(this);
|
|
138
|
+
}
|
|
139
|
+
get labelDropRepo() {
|
|
140
|
+
return this.getCachedSingleton(LabelDropRepo_1.LabelDropRepo.type);
|
|
141
|
+
}
|
|
142
|
+
get undo() {
|
|
143
|
+
return this.getCachedSingleton(UndoRedoEntity_1.UndoRedoEntity.type);
|
|
144
|
+
}
|
|
145
|
+
get dispatchStateChange() {
|
|
146
|
+
var _a;
|
|
147
|
+
return (_a = this.getCachedSingleton(DispatchStateChangeUC_1.DispatchStateChangeUC.type)) === null || _a === void 0 ? void 0 : _a.doDispatch;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { Vector3 } from "../../../ValueObjects";
|
|
3
|
+
import { LabelDropAnimationI } from "./LabelDropAnimation";
|
|
4
|
+
export declare abstract class LabelDropIncorrectAnimationUC extends AppObjectUC implements LabelDropAnimationI {
|
|
5
|
+
static type: string;
|
|
6
|
+
abstract desiredFinalPosition: Vector3;
|
|
7
|
+
abstract feedbackDurationMS: number;
|
|
8
|
+
abstract fadeDurationMS: number;
|
|
9
|
+
abstract getIsAnimating(): boolean;
|
|
10
|
+
abstract start: () => Promise<boolean>;
|
|
11
|
+
abstract cancel: () => void;
|
|
12
|
+
static get(appObject: AppObjectRepo): LabelDropIncorrectAnimationUC | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare function makeLabelDropIncorrectAnimationUC(appObject: AppObject): LabelDropIncorrectAnimationUC;
|