@vived/app 3.9.1 → 4.0.0
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/AppObject/AppObjectComponent.d.ts +8 -2
- package/lib/AppObject/AppObjectComponent.js +26 -0
- package/lib/AppObject/AppObjectController.d.ts +1 -6
- package/lib/AppObject/AppObjectController.js +2 -12
- package/lib/AppObject/AppObjectEntity.d.ts +6 -8
- package/lib/AppObject/AppObjectEntity.js +4 -8
- package/lib/AppObject/AppObjectPM.d.ts +1 -5
- package/lib/AppObject/AppObjectPM.js +5 -8
- package/lib/AppObject/AppObjectRepo.d.ts +5 -1
- package/lib/AppObject/AppObjectRepo.js +15 -3
- package/lib/AppObject/AppObjectUC.d.ts +1 -6
- package/lib/AppObject/AppObjectUC.js +2 -12
- package/lib/AppObject/AppObjectView.d.ts +1 -6
- package/lib/AppObject/AppObjectView.js +2 -12
- package/lib/AppObject/getSingletonComponent.d.ts +3 -0
- package/lib/AppObject/getSingletonComponent.js +15 -0
- package/lib/AppObject/index.d.ts +1 -0
- package/lib/AppObject/index.js +1 -0
- package/lib/Components/App/Controller/clickContinue.d.ts +2 -0
- package/lib/Components/App/Controller/clickContinue.js +13 -0
- package/lib/Components/App/Controller/clickEditSlideText.d.ts +2 -0
- package/lib/Components/App/Controller/clickEditSlideText.js +13 -0
- package/lib/Components/App/Controller/index.d.ts +4 -0
- package/lib/Components/App/Controller/index.js +16 -0
- package/lib/Components/App/Controller/removeRenderCanvas.js +13 -0
- package/lib/Components/App/Controller/submitRenderCanvas.js +13 -0
- package/lib/Components/App/Entity/BaseAppState.d.ts +16 -0
- package/lib/Components/App/Entity/BaseAppState.js +54 -0
- package/lib/Components/App/Entity/index.d.ts +1 -0
- package/lib/Components/App/Entity/index.js +13 -0
- package/lib/Components/App/Mocks/MockAppRenderingUC.d.ts +8 -0
- package/lib/Components/App/Mocks/MockAppRenderingUC.js +12 -0
- package/lib/Components/App/Mocks/MockRenderCanvasUC.d.ts +8 -0
- package/lib/Components/App/Mocks/MockRenderCanvasUC.js +12 -0
- package/lib/Components/App/PM/HasNextPreviousStatePM.d.ts +15 -0
- package/lib/Components/App/PM/HasNextPreviousStatePM.js +44 -0
- package/lib/Components/App/PM/IsAuthoringPM.d.ts +10 -0
- package/lib/Components/App/PM/IsAuthoringPM.js +33 -0
- package/lib/Components/App/PM/IsReviewingPM.d.ts +10 -0
- package/lib/Components/App/PM/IsReviewingPM.js +33 -0
- package/lib/Components/App/PM/SlideTextPM.d.ts +9 -0
- package/lib/Components/App/PM/SlideTextPM.js +27 -0
- package/lib/Components/App/PM/index.d.ts +4 -0
- package/lib/Components/App/PM/index.js +16 -0
- package/lib/Components/App/UC/AppRenderingUC.d.ts +7 -0
- package/lib/Components/App/UC/AppRenderingUC.js +9 -0
- package/lib/Components/App/UC/EditSlideTextUC.d.ts +9 -0
- package/lib/Components/App/UC/EditSlideTextUC.js +57 -0
- package/lib/Components/App/UC/RenderCanvasUC.d.ts +10 -0
- package/lib/Components/App/UC/RenderCanvasUC.js +88 -0
- package/lib/Components/App/UC/UndoRedoEditSlideText.d.ts +11 -0
- package/lib/Components/App/UC/UndoRedoEditSlideText.js +43 -0
- package/lib/Components/App/UC/index.d.ts +5 -0
- package/lib/Components/App/UC/index.js +17 -0
- package/lib/Components/App/UC/submitError.js +28 -0
- package/lib/Components/App/UC/submitFatal.js +28 -0
- package/lib/Components/App/UC/submitLog.js +28 -0
- package/lib/Components/App/UC/submitWarning.js +28 -0
- package/lib/Components/App/index.d.ts +4 -0
- package/lib/Components/App/index.js +16 -0
- package/lib/Components/Babylon/Entities/BabylonEntity.d.ts +16 -0
- package/lib/Components/Babylon/Entities/BabylonEntity.js +71 -0
- package/lib/Components/Babylon/Entities/index.d.ts +1 -0
- package/lib/Components/Babylon/Entities/index.js +13 -0
- package/lib/Components/Babylon/Mocks/MockBabylonRenderingUC.d.ts +9 -0
- package/lib/Components/Babylon/Mocks/MockBabylonRenderingUC.js +13 -0
- package/lib/Components/Babylon/PM/ShowBabylonInspectorPM.js +27 -0
- package/lib/Components/Babylon/PM/index.d.ts +1 -0
- package/lib/Components/Babylon/PM/index.js +13 -0
- package/lib/Components/Babylon/UC/BabylonRenderingUC.d.ts +9 -0
- package/lib/Components/Babylon/UC/BabylonRenderingUC.js +10 -0
- package/lib/Components/Babylon/UC/PixelToSceneRayUC.d.ts +9 -0
- package/lib/Components/Babylon/UC/PixelToSceneRayUC.js +20 -0
- package/lib/Components/Babylon/UC/ScenePixelPickUC.d.ts +17 -0
- package/lib/Components/Babylon/UC/ScenePixelPickUC.js +19 -0
- package/lib/Components/Babylon/UC/SceneRayPickUC.d.ts +16 -0
- package/lib/Components/Babylon/UC/SceneRayPickUC.js +19 -0
- package/lib/Components/Babylon/UC/index.d.ts +4 -0
- package/lib/Components/Babylon/UC/index.js +16 -0
- package/lib/Components/Babylon/index.d.ts +3 -0
- package/lib/Components/Babylon/index.js +15 -0
- package/lib/Components/Camera/Entities/CameraEntity.d.ts +29 -0
- package/lib/Components/Camera/Entities/CameraEntity.js +44 -0
- package/lib/Components/Camera/Entities/index.d.ts +1 -0
- package/lib/Components/Camera/Entities/index.js +13 -0
- package/lib/Components/Camera/Factory/CameraFactoryImp.d.ts +4 -0
- package/lib/Components/Camera/Factory/CameraFactoryImp.js +25 -0
- package/lib/Components/Camera/PM/CameraPM.d.ts +22 -0
- package/lib/Components/Camera/PM/CameraPM.js +60 -0
- package/lib/Components/Camera/PM/index.d.ts +1 -0
- package/lib/Components/Camera/PM/index.js +13 -0
- package/lib/Components/Camera/index.d.ts +2 -0
- package/lib/Components/Camera/index.js +14 -0
- package/lib/Components/ChannelModel/Entities/ChannelModel.d.ts +42 -0
- package/lib/Components/ChannelModel/Entities/ChannelModel.js +99 -0
- package/lib/Components/ChannelModel/Entities/ChannelModelRepo.d.ts +12 -0
- package/lib/Components/ChannelModel/Entities/ChannelModelRepo.js +35 -0
- package/lib/Components/ChannelModel/Entities/index.d.ts +2 -0
- package/lib/Components/ChannelModel/Entities/index.js +14 -0
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.d.ts +6 -0
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.js +9 -0
- package/lib/Components/ChannelModel/UC/SelectChannelModelUC.d.ts +7 -0
- package/lib/Components/ChannelModel/UC/SelectChannelModelUC.js +57 -0
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.d.ts +10 -0
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.js +141 -0
- package/lib/Components/ChannelModel/UC/index.d.ts +3 -0
- package/lib/Components/ChannelModel/UC/index.js +15 -0
- package/lib/Components/ChannelModel/index.d.ts +2 -0
- package/lib/Components/ChannelModel/index.js +14 -0
- package/lib/Components/Dispatcher/Controllers/dispatchStopZSpace.d.ts +2 -0
- package/lib/Components/Dispatcher/Controllers/dispatchStopZSpace.js +14 -0
- package/lib/Components/Dispatcher/Controllers/index.d.ts +1 -0
- package/lib/Components/Dispatcher/Controllers/index.js +13 -0
- package/lib/Components/Dispatcher/Entities/AppDispatcher.d.ts +9 -0
- package/lib/Components/Dispatcher/Entities/AppDispatcher.js +30 -0
- package/lib/Components/Dispatcher/Entities/index.d.ts +1 -0
- package/lib/Components/Dispatcher/Entities/index.js +13 -0
- package/lib/Components/Dispatcher/UC/AppIsReadyUC.d.ts +11 -0
- package/lib/Components/Dispatcher/UC/AppIsReadyUC.js +45 -0
- package/lib/Components/Dispatcher/UC/DispatchStartZSpaceUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/DispatchStartZSpaceUC.js +35 -0
- package/lib/Components/Dispatcher/UC/DispatchStateChangeUC.d.ts +18 -0
- package/lib/Components/Dispatcher/UC/DispatchStateChangeUC.js +69 -0
- package/lib/Components/Dispatcher/UC/DispatchStopZSpaceUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/DispatchStopZSpaceUC.js +35 -0
- package/lib/Components/Dispatcher/UC/GetAssetBlobURLUC.d.ts +11 -0
- package/lib/Components/Dispatcher/UC/GetAssetBlobURLUC.js +62 -0
- package/lib/Components/Dispatcher/UC/GetAssetFolderURLUC.d.ts +11 -0
- package/lib/Components/Dispatcher/UC/GetAssetFolderURLUC.js +61 -0
- package/lib/Components/Dispatcher/UC/GetAssetMetaUC.d.ts +12 -0
- package/lib/Components/Dispatcher/UC/GetAssetMetaUC.js +62 -0
- package/lib/Components/Dispatcher/UC/GetAssetsForOwnerUC.d.ts +12 -0
- package/lib/Components/Dispatcher/UC/GetAssetsForOwnerUC.js +62 -0
- package/lib/Components/Dispatcher/UC/GetLinkedAssetsUC.d.ts +12 -0
- package/lib/Components/Dispatcher/UC/GetLinkedAssetsUC.js +63 -0
- package/lib/Components/Dispatcher/UC/GoToNextStateUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/GoToNextStateUC.js +35 -0
- package/lib/Components/Dispatcher/UC/GoToPreviousStateUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/GoToPreviousStateUC.js +35 -0
- package/lib/Components/Dispatcher/UC/HasNextStateUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/HasNextStateUC.js +45 -0
- package/lib/Components/Dispatcher/UC/HasPreviousStateUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/HasPreviousStateUC.js +45 -0
- package/lib/Components/Dispatcher/UC/IsAssetFetchedUC.d.ts +11 -0
- package/lib/Components/Dispatcher/UC/IsAssetFetchedUC.js +57 -0
- package/lib/Components/Dispatcher/UC/IsZSpaceAvailableUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/IsZSpaceAvailableUC.js +45 -0
- package/lib/Components/Dispatcher/UC/LogUC.d.ts +13 -0
- package/lib/Components/Dispatcher/UC/LogUC.js +51 -0
- package/lib/Components/Dispatcher/UC/RegisterExternalStylesheetsUC.d.ts +11 -0
- package/lib/Components/Dispatcher/UC/RegisterExternalStylesheetsUC.js +47 -0
- package/lib/Components/Dispatcher/UC/ShowAlertUC.d.ts +16 -0
- package/lib/Components/Dispatcher/UC/ShowAlertUC.js +41 -0
- package/lib/Components/Dispatcher/UC/ShowConfirmUC.d.ts +18 -0
- package/lib/Components/Dispatcher/UC/ShowConfirmUC.js +43 -0
- package/lib/Components/Dispatcher/UC/ShowMarkdownEditorUC.d.ts +15 -0
- package/lib/Components/Dispatcher/UC/ShowMarkdownEditorUC.js +43 -0
- package/lib/Components/Dispatcher/UC/ShowSelectModelUC.d.ts +13 -0
- package/lib/Components/Dispatcher/UC/ShowSelectModelUC.js +45 -0
- package/lib/Components/Dispatcher/UC/ShowSpinnerUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/ShowSpinnerUC.js +48 -0
- package/lib/Components/Dispatcher/UC/StateHasChangedUC.d.ts +10 -0
- package/lib/Components/Dispatcher/UC/StateHasChangedUC.js +40 -0
- package/lib/Components/Dispatcher/UC/StateIsCompleteUC.d.ts +11 -0
- package/lib/Components/Dispatcher/UC/StateIsCompleteUC.js +45 -0
- package/lib/Components/Dispatcher/UC/SubmitResultResultUC.d.ts +43 -0
- package/lib/Components/Dispatcher/UC/SubmitResultResultUC.js +149 -0
- package/lib/Components/Dispatcher/UC/index.d.ts +25 -0
- package/lib/Components/Dispatcher/UC/index.js +37 -0
- package/lib/Components/Dispatcher/index.d.ts +3 -0
- package/lib/Components/Dispatcher/index.js +15 -0
- package/lib/Components/Enablement/Entities/index.d.ts +1 -0
- package/lib/Components/Enablement/Entities/index.js +13 -0
- package/lib/Components/Enablement/PM/EnablableStatePM.js +41 -0
- package/lib/Components/Enablement/PM/index.d.ts +1 -0
- package/lib/Components/Enablement/PM/index.js +13 -0
- package/lib/Components/Enablement/index.d.ts +2 -0
- package/lib/Components/Enablement/index.js +14 -0
- package/lib/Components/FramedScreen/Entities/FramedScreenContainer.d.ts +14 -0
- package/lib/Components/FramedScreen/Entities/FramedScreenContainer.js +43 -0
- package/lib/Components/FramedScreen/Entities/FramedScreenEntity.d.ts +18 -0
- package/lib/Components/FramedScreen/Entities/FramedScreenEntity.js +55 -0
- package/lib/Components/FramedScreen/Entities/index.d.ts +2 -0
- package/lib/Components/FramedScreen/Entities/index.js +14 -0
- package/lib/Components/FramedScreen/PM/FramedScreenContainerPM.d.ts +18 -0
- package/lib/Components/FramedScreen/PM/FramedScreenContainerPM.js +55 -0
- package/lib/Components/FramedScreen/PM/FramedScreenSizePM.d.ts +17 -0
- package/lib/Components/FramedScreen/PM/FramedScreenSizePM.js +45 -0
- package/lib/Components/FramedScreen/PM/index.d.ts +2 -0
- package/lib/Components/FramedScreen/PM/index.js +14 -0
- package/lib/Components/FramedScreen/index.d.ts +2 -0
- package/lib/Components/FramedScreen/index.js +14 -0
- package/lib/Components/Hideable/Entities/index.d.ts +1 -0
- package/lib/Components/Hideable/Entities/index.js +13 -0
- package/lib/Components/Hideable/PM/IsHiddenPM.js +43 -0
- package/lib/Components/Hideable/PM/index.d.ts +1 -0
- package/lib/Components/Hideable/PM/index.js +13 -0
- package/lib/Components/Hideable/index.d.ts +2 -0
- package/lib/Components/Hideable/index.js +14 -0
- package/lib/Components/KeyboardInput/Entities/KeyboardInput.d.ts +18 -0
- package/lib/Components/KeyboardInput/Entities/KeyboardInput.js +76 -0
- package/lib/Components/KeyboardInput/Entities/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/Entities/index.js +13 -0
- package/lib/Components/KeyboardInput/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/index.js +13 -0
- package/lib/Components/Label/Entities/index.d.ts +1 -0
- package/lib/Components/Label/Entities/index.js +13 -0
- package/lib/Components/Label/PM/LabelPM.js +62 -0
- package/lib/Components/Label/PM/index.d.ts +1 -0
- package/lib/Components/Label/PM/index.js +13 -0
- package/lib/Components/Label/index.d.ts +2 -0
- package/lib/Components/Label/index.js +14 -0
- package/lib/Components/Mesh/Entities/index.d.ts +1 -0
- package/lib/Components/Mesh/Entities/index.js +13 -0
- package/lib/Components/Mesh/index.d.ts +1 -0
- package/lib/Components/Mesh/index.js +13 -0
- package/lib/Components/MouseInput/Entities/MouseInput.d.ts +31 -0
- package/lib/Components/MouseInput/Entities/MouseInput.js +188 -0
- package/lib/Components/MouseInput/Entities/index.d.ts +1 -0
- package/lib/Components/MouseInput/Entities/index.js +13 -0
- package/lib/Components/MouseInput/index.d.ts +1 -0
- package/lib/Components/MouseInput/index.js +13 -0
- package/lib/Components/OverlayColor/Entities/index.d.ts +1 -0
- package/lib/Components/OverlayColor/Entities/index.js +13 -0
- package/lib/Components/OverlayColor/PM/OverlayColorPM.js +43 -0
- package/lib/Components/OverlayColor/PM/index.d.ts +1 -0
- package/lib/Components/OverlayColor/PM/index.js +13 -0
- package/lib/Components/OverlayColor/index.d.ts +2 -0
- package/lib/Components/OverlayColor/index.js +14 -0
- package/lib/Components/Question/Controllers/setAnswerFeedback.js +24 -0
- package/lib/Components/Question/Controllers/setAnswerText.js +24 -0
- package/lib/Components/Question/Controllers/submitQuestionAnswer.js +13 -0
- package/lib/Components/Question/Controllers/toggleAnswerIsCorrect.js +24 -0
- package/lib/Components/Question/Entities/QuestionEntity.d.ts +25 -0
- package/lib/Components/Question/Entities/QuestionEntity.js +117 -0
- package/lib/Components/Question/PM/QuestionAnswerPM.js +59 -0
- package/lib/Components/Question/PM/QuestionChallengePM.d.ts +19 -0
- package/lib/Components/Question/PM/QuestionChallengePM.js +61 -0
- package/lib/Components/Question/UC/AddAnswerUndoRedo.d.ts +10 -0
- package/lib/Components/Question/UC/AddAnswerUndoRedo.js +41 -0
- package/lib/Components/Question/UC/AddQuestionAnswerUC.d.ts +10 -0
- package/lib/Components/Question/UC/AddQuestionAnswerUC.js +44 -0
- package/lib/Components/Question/UC/DeleteAnswerUndoRedo.d.ts +14 -0
- package/lib/Components/Question/UC/DeleteAnswerUndoRedo.js +48 -0
- package/lib/Components/Question/UC/DeleteQuestionAnswerUC.d.ts +10 -0
- package/lib/Components/Question/UC/DeleteQuestionAnswerUC.js +47 -0
- package/lib/Components/Question/UC/SerializeQuestionChallenge.d.ts +32 -0
- package/lib/Components/Question/UC/SerializeQuestionChallenge.js +100 -0
- package/lib/Components/Question/UC/SetAnswerFeedbackUC.js +35 -0
- package/lib/Components/Question/UC/SetAnswerFeedbackUndoRedo.d.ts +13 -0
- package/lib/Components/Question/UC/SetAnswerFeedbackUndoRedo.js +52 -0
- package/lib/Components/Question/UC/SetAnswerTextUC.js +35 -0
- package/lib/Components/Question/UC/SetAnswerTextUndoRedo.d.ts +13 -0
- package/lib/Components/Question/UC/SetAnswerTextUndoRedo.js +52 -0
- package/lib/Components/Question/UC/SubmitQuestionAnswerUC.d.ts +9 -0
- package/lib/Components/Question/UC/SubmitQuestionAnswerUC.js +50 -0
- package/lib/Components/Question/UC/ToggleIsCorrectUndoRedo.d.ts +10 -0
- package/lib/Components/Question/UC/ToggleIsCorrectUndoRedo.js +46 -0
- package/lib/Components/Question/UC/ToggleQuestionAnswerIsCorrect.d.ts +7 -0
- package/lib/Components/Question/UC/ToggleQuestionAnswerIsCorrect.js +32 -0
- package/lib/Components/Question/index.d.ts +4 -0
- package/lib/Components/Question/index.js +16 -0
- package/lib/Components/RequestHandler/Entities/AppHandler.d.ts +20 -0
- package/lib/Components/RequestHandler/Entities/AppHandler.js +86 -0
- package/lib/Components/RequestHandler/Entities/index.d.ts +1 -0
- package/lib/Components/RequestHandler/Entities/index.js +13 -0
- package/lib/Components/RequestHandler/Mocks/MockAppHandlerEntity.d.ts +8 -0
- package/lib/Components/RequestHandler/Mocks/MockAppHandlerEntity.js +12 -0
- package/lib/Components/RequestHandler/UC/DisposeAppUC.d.ts +11 -0
- package/lib/Components/RequestHandler/UC/DisposeAppUC.js +40 -0
- package/lib/Components/RequestHandler/UC/SetAppStateUC.d.ts +12 -0
- package/lib/Components/RequestHandler/UC/SetAppStateUC.js +68 -0
- package/lib/Components/RequestHandler/UC/SetIsAuthoringUC.d.ts +12 -0
- package/lib/Components/RequestHandler/UC/SetIsAuthoringUC.js +55 -0
- package/lib/Components/RequestHandler/UC/SetThemeColorUC.d.ts +14 -0
- package/lib/Components/RequestHandler/UC/SetThemeColorUC.js +58 -0
- package/lib/Components/RequestHandler/UC/ShowBabylonInspectorUC.d.ts +12 -0
- package/lib/Components/RequestHandler/UC/ShowBabylonInspectorUC.js +54 -0
- package/lib/Components/RequestHandler/UC/StartAppUC.d.ts +12 -0
- package/lib/Components/RequestHandler/UC/StartAppUC.js +55 -0
- package/lib/Components/RequestHandler/UC/StartZSpaceUC.d.ts +12 -0
- package/lib/Components/RequestHandler/UC/StartZSpaceUC.js +81 -0
- package/lib/Components/RequestHandler/UC/StopAppUC.d.ts +11 -0
- package/lib/Components/RequestHandler/UC/StopAppUC.js +47 -0
- package/lib/Components/RequestHandler/UC/StopZSpaceUC.d.ts +11 -0
- package/lib/Components/RequestHandler/UC/StopZSpaceUC.js +55 -0
- package/lib/Components/RequestHandler/UC/index.d.ts +10 -0
- package/lib/Components/RequestHandler/UC/index.js +22 -0
- package/lib/Components/RequestHandler/index.d.ts +2 -0
- package/lib/Components/RequestHandler/index.js +14 -0
- package/lib/Components/SceneRoot/Controllers/DoubleTapToFocus.js +88 -0
- package/lib/Components/SceneRoot/Controllers/MouseClickToFocus.d.ts +10 -0
- package/lib/Components/SceneRoot/Controllers/MouseClickToFocus.js +34 -0
- package/lib/Components/SceneRoot/Controllers/MouseDoubleClickToRecenter.d.ts +11 -0
- package/lib/Components/SceneRoot/Controllers/MouseDoubleClickToRecenter.js +35 -0
- package/lib/Components/SceneRoot/Controllers/MouseOrbit.d.ts +13 -0
- package/lib/Components/SceneRoot/Controllers/MouseOrbit.js +53 -0
- package/lib/Components/SceneRoot/Controllers/MousePan.d.ts +13 -0
- package/lib/Components/SceneRoot/Controllers/MousePan.js +48 -0
- package/lib/Components/SceneRoot/Controllers/MouseRoll.d.ts +10 -0
- package/lib/Components/SceneRoot/Controllers/MouseRoll.js +36 -0
- package/lib/Components/SceneRoot/Controllers/MouseScale.d.ts +13 -0
- package/lib/Components/SceneRoot/Controllers/MouseScale.js +49 -0
- package/lib/Components/SceneRoot/Controllers/StylusMove.d.ts +14 -0
- package/lib/Components/SceneRoot/Controllers/StylusMove.js +56 -0
- package/lib/Components/SceneRoot/Controllers/StylusScale.d.ts +14 -0
- package/lib/Components/SceneRoot/Controllers/StylusScale.js +58 -0
- package/lib/Components/SceneRoot/Controllers/TouchOrbit.js +51 -0
- package/lib/Components/SceneRoot/Controllers/TouchPan.js +52 -0
- package/lib/Components/SceneRoot/Controllers/TouchPinch.js +55 -0
- package/lib/Components/SceneRoot/Controllers/TouchScale.js +56 -0
- package/lib/Components/SceneRoot/Controllers/index.d.ts +13 -0
- package/lib/Components/SceneRoot/Controllers/index.js +25 -0
- package/lib/Components/SceneRoot/Entities/SceneRootEntity.d.ts +31 -0
- package/lib/Components/SceneRoot/Entities/SceneRootEntity.js +104 -0
- package/lib/Components/SceneRoot/Entities/index.d.ts +1 -0
- package/lib/Components/SceneRoot/Entities/index.js +13 -0
- package/lib/Components/SceneRoot/UC/BumpSceneRootScaleAboutPixelPoint.d.ts +11 -0
- package/lib/Components/SceneRoot/UC/BumpSceneRootScaleAboutPixelPoint.js +49 -0
- package/lib/Components/SceneRoot/UC/CenterSceneRootOnPixelPick.d.ts +14 -0
- package/lib/Components/SceneRoot/UC/CenterSceneRootOnPixelPick.js +51 -0
- package/lib/Components/SceneRoot/UC/DragScaleSceneRoot.d.ts +12 -0
- package/lib/Components/SceneRoot/UC/DragScaleSceneRoot.js +63 -0
- package/lib/Components/SceneRoot/UC/FocusOnPixel.d.ts +13 -0
- package/lib/Components/SceneRoot/UC/FocusOnPixel.js +45 -0
- package/lib/Components/SceneRoot/UC/OrbitSceneRoot.d.ts +14 -0
- package/lib/Components/SceneRoot/UC/OrbitSceneRoot.js +81 -0
- package/lib/Components/SceneRoot/UC/PanSceneRoot.d.ts +13 -0
- package/lib/Components/SceneRoot/UC/PanSceneRoot.js +75 -0
- package/lib/Components/SceneRoot/UC/PinchSceneRoot.d.ts +13 -0
- package/lib/Components/SceneRoot/UC/PinchSceneRoot.js +91 -0
- package/lib/Components/SceneRoot/UC/ScaleSceneRootWithRay.d.ts +13 -0
- package/lib/Components/SceneRoot/UC/ScaleSceneRootWithRay.js +37 -0
- package/lib/Components/SceneRoot/UC/SerializeSceneRoot.d.ts +31 -0
- package/lib/Components/SceneRoot/UC/SerializeSceneRoot.js +126 -0
- package/lib/Components/SceneRoot/UC/index.d.ts +9 -0
- package/lib/Components/SceneRoot/UC/index.js +21 -0
- package/lib/Components/SceneRoot/index.d.ts +3 -0
- package/lib/Components/SceneRoot/index.js +15 -0
- package/lib/Components/StateMachine/Entities/StateMachineEntity.d.ts +30 -0
- package/lib/Components/StateMachine/Entities/StateMachineEntity.js +95 -0
- package/lib/Components/StateMachine/Entities/index.d.ts +1 -0
- package/lib/Components/StateMachine/Entities/index.js +13 -0
- package/lib/Components/StateMachine/Mocks/MockStateMachine.d.ts +12 -0
- package/lib/Components/StateMachine/Mocks/MockStateMachine.js +16 -0
- package/lib/Components/StateMachine/Mocks/index.d.ts +1 -0
- package/lib/Components/StateMachine/Mocks/index.js +13 -0
- package/lib/Components/StateMachine/index.d.ts +1 -0
- package/lib/Components/StateMachine/index.js +13 -0
- package/lib/Components/StoredView/Entities/StoredView.d.ts +13 -0
- package/lib/Components/StoredView/Entities/StoredView.js +55 -0
- package/lib/Components/StoredView/Entities/index.d.ts +1 -0
- package/lib/Components/StoredView/Entities/index.js +13 -0
- package/lib/Components/StoredView/PM/HasStoredViewPM.d.ts +6 -0
- package/lib/Components/StoredView/PM/HasStoredViewPM.js +42 -0
- package/lib/Components/StoredView/PM/index.d.ts +1 -0
- package/lib/Components/StoredView/PM/index.js +13 -0
- package/lib/Components/StoredView/UC/ClearStoredViewUC.d.ts +8 -0
- package/lib/Components/StoredView/UC/ClearStoredViewUC.js +44 -0
- package/lib/Components/StoredView/UC/RestoreStoredViewUC.d.ts +10 -0
- package/lib/Components/StoredView/UC/RestoreStoredViewUC.js +62 -0
- package/lib/Components/StoredView/UC/SerializeStoredView.d.ts +27 -0
- package/lib/Components/StoredView/UC/SerializeStoredView.js +89 -0
- package/lib/Components/StoredView/UC/SetInXRUC.d.ts +8 -0
- package/lib/Components/StoredView/UC/SetInXRUC.js +41 -0
- package/lib/Components/StoredView/UC/StoreCurrentViewUC.d.ts +8 -0
- package/lib/Components/StoredView/UC/StoreCurrentViewUC.js +48 -0
- package/lib/Components/StoredView/UC/index.d.ts +5 -0
- package/lib/Components/StoredView/UC/index.js +17 -0
- package/lib/Components/StoredView/index.d.ts +3 -0
- package/lib/Components/StoredView/index.js +15 -0
- package/lib/Components/ThemeColors/Entities/ThemeColors.d.ts +69 -0
- package/lib/Components/ThemeColors/Entities/ThemeColors.js +102 -0
- package/lib/Components/ThemeColors/Entities/index.d.ts +1 -0
- package/lib/Components/ThemeColors/Entities/index.js +13 -0
- package/lib/Components/ThemeColors/index.d.ts +1 -0
- package/lib/Components/ThemeColors/index.js +13 -0
- package/lib/Components/Tools/Controller/ToolHotkeys.js +42 -0
- package/lib/Components/Tools/Controller/index.d.ts +2 -0
- package/lib/Components/Tools/Controller/index.js +14 -0
- package/lib/Components/Tools/Controller/triggerTool.js +13 -0
- package/lib/Components/Tools/Entities/ToolRepository.d.ts +18 -0
- package/lib/Components/Tools/Entities/ToolRepository.js +124 -0
- package/lib/Components/Tools/Entities/index.d.ts +2 -0
- package/lib/Components/Tools/Entities/index.js +14 -0
- package/lib/Components/Tools/Factory/index.d.ts +2 -0
- package/lib/Components/Tools/Factory/index.js +14 -0
- package/lib/Components/Tools/Factory/setupTool.js +12 -0
- package/lib/Components/Tools/PM/ToolPM.js +65 -0
- package/lib/Components/Tools/PM/index.d.ts +1 -0
- package/lib/Components/Tools/PM/index.js +13 -0
- package/lib/Components/Tools/index.d.ts +3 -0
- package/lib/Components/Tools/index.js +15 -0
- package/lib/Components/TouchController/Entities/TouchInput.d.ts +33 -0
- package/lib/Components/TouchController/Entities/TouchInput.js +152 -0
- package/lib/Components/TouchController/Entities/index.d.ts +1 -0
- package/lib/Components/TouchController/Entities/index.js +13 -0
- package/lib/Components/TouchController/UC/UpdateTouchInputBound.d.ts +7 -0
- package/lib/Components/TouchController/UC/UpdateTouchInputBound.js +29 -0
- package/lib/Components/TouchController/UC/index.d.ts +1 -0
- package/lib/Components/TouchController/UC/index.js +13 -0
- package/lib/Components/TouchController/index.d.ts +2 -0
- package/lib/Components/TouchController/index.js +14 -0
- package/lib/Components/Transform3D/Entities/Transform3D.d.ts +32 -0
- package/lib/Components/Transform3D/Entities/Transform3D.js +233 -0
- package/lib/Components/Transform3D/Entities/index.d.ts +1 -0
- package/lib/Components/Transform3D/Entities/index.js +13 -0
- package/lib/Components/Transform3D/PM/CanBeStuckPM.d.ts +8 -0
- package/lib/Components/Transform3D/PM/CanBeStuckPM.js +52 -0
- package/lib/Components/Transform3D/PM/Transform3DPM.d.ts +14 -0
- package/lib/Components/Transform3D/PM/Transform3DPM.js +73 -0
- package/lib/Components/Transform3D/PM/index.d.ts +2 -0
- package/lib/Components/Transform3D/PM/index.js +14 -0
- package/lib/Components/Transform3D/UC/DragTransformUC.d.ts +11 -0
- package/lib/Components/Transform3D/UC/DragTransformUC.js +108 -0
- package/lib/Components/Transform3D/UC/MoveTransformUndoRedo.d.ts +18 -0
- package/lib/Components/Transform3D/UC/MoveTransformUndoRedo.js +40 -0
- package/lib/Components/Transform3D/UC/StickTransformUC.d.ts +12 -0
- package/lib/Components/Transform3D/UC/StickTransformUC.js +71 -0
- package/lib/Components/Transform3D/UC/StylusMoveTransformUC.d.ts +10 -0
- package/lib/Components/Transform3D/UC/StylusMoveTransformUC.js +107 -0
- package/lib/Components/Transform3D/UC/index.d.ts +3 -0
- package/lib/Components/Transform3D/UC/index.js +15 -0
- package/lib/Components/Transform3D/index.d.ts +3 -0
- package/lib/Components/Transform3D/index.js +15 -0
- package/lib/Components/UndoRedo/Controllers/clearUndoStack.js +13 -0
- package/lib/Components/UndoRedo/Controllers/doRedo.js +13 -0
- package/lib/Components/UndoRedo/Controllers/doUndo.js +13 -0
- package/lib/Components/UndoRedo/Controllers/index.d.ts +3 -0
- package/lib/Components/UndoRedo/Controllers/index.js +15 -0
- package/lib/Components/UndoRedo/Entities/UndoRedoEntity.d.ts +29 -0
- package/lib/Components/UndoRedo/Entities/UndoRedoEntity.js +65 -0
- package/lib/Components/UndoRedo/Entities/index.d.ts +1 -0
- package/lib/Components/UndoRedo/Entities/index.js +13 -0
- package/lib/Components/UndoRedo/Mocks/MockUndoRedo.d.ts +12 -0
- package/lib/Components/UndoRedo/Mocks/MockUndoRedo.js +20 -0
- package/lib/Components/UndoRedo/PM/HasRedoPM.d.ts +8 -0
- package/lib/Components/UndoRedo/PM/HasRedoPM.js +41 -0
- package/lib/Components/UndoRedo/PM/HasUndoPM.d.ts +8 -0
- package/lib/Components/UndoRedo/PM/HasUndoPM.js +41 -0
- package/lib/Components/UndoRedo/PM/index.d.ts +2 -0
- package/lib/Components/UndoRedo/PM/index.js +14 -0
- package/lib/Components/UndoRedo/index.d.ts +3 -0
- package/lib/Components/UndoRedo/index.js +15 -0
- package/lib/Components/XR/Entity/index.d.ts +1 -0
- package/lib/Components/XR/Entity/index.js +13 -0
- package/lib/Components/XR/Mocks/MockRenderToXR.d.ts +8 -0
- package/lib/Components/XR/Mocks/MockRenderToXR.js +12 -0
- package/lib/Components/XR/Mocks/MockXRSession.d.ts +28 -0
- package/lib/Components/XR/Mocks/MockXRSession.js +49 -0
- package/lib/Components/XR/Mocks/index.d.ts +2 -0
- package/lib/Components/XR/Mocks/index.js +14 -0
- package/lib/Components/XR/UC/index.d.ts +1 -0
- package/lib/Components/XR/UC/index.js +13 -0
- package/lib/Components/XR/index.d.ts +2 -0
- package/lib/Components/XR/index.js +14 -0
- package/lib/Components/index.d.ts +25 -0
- package/lib/Components/index.js +37 -0
- package/lib/Components/zSpace/Controllers/EmulateStylus.d.ts +9 -0
- package/lib/Components/zSpace/Controllers/EmulateStylus.js +100 -0
- package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.js +57 -0
- package/lib/Components/zSpace/Controllers/index.d.ts +1 -0
- package/lib/Components/zSpace/Controllers/index.js +13 -0
- package/lib/Components/zSpace/Entities/ZSpaceDisplayEntity.d.ts +22 -0
- package/lib/Components/zSpace/Entities/ZSpaceDisplayEntity.js +64 -0
- package/lib/Components/zSpace/Entities/ZSpaceEntity.d.ts +26 -0
- package/lib/Components/zSpace/Entities/ZSpaceEntity.js +79 -0
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.d.ts +27 -0
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.js +111 -0
- package/lib/Components/zSpace/Entities/ZSpaceViewEntity.d.ts +25 -0
- package/lib/Components/zSpace/Entities/ZSpaceViewEntity.js +47 -0
- package/lib/Components/zSpace/Entities/index.d.ts +4 -0
- package/lib/Components/zSpace/Entities/index.js +16 -0
- package/lib/Components/zSpace/Mocks/MockCheckZSpaceDisplaySizeUC.d.ts +8 -0
- package/lib/Components/zSpace/Mocks/MockCheckZSpaceDisplaySizeUC.js +12 -0
- package/lib/Components/zSpace/PM/StylusColorLengthPM.d.ts +13 -0
- package/lib/Components/zSpace/PM/StylusColorLengthPM.js +77 -0
- package/lib/Components/zSpace/PM/StylusIsInUsePM.d.ts +6 -0
- package/lib/Components/zSpace/PM/StylusIsInUsePM.js +42 -0
- package/lib/Components/zSpace/PM/ZSpaceDisplayPM.js +65 -0
- package/lib/Components/zSpace/PM/ZSpaceIsEnabledPM.js +41 -0
- package/lib/Components/zSpace/PM/ZSpaceIsSupportedPM.d.ts +8 -0
- package/lib/Components/zSpace/PM/ZSpaceIsSupportedPM.js +43 -0
- package/lib/Components/zSpace/PM/ZSpaceViewerScalePM.d.ts +5 -0
- package/lib/Components/zSpace/PM/ZSpaceViewerScalePM.js +41 -0
- package/lib/Components/zSpace/PM/index.d.ts +6 -0
- package/lib/Components/zSpace/PM/index.js +18 -0
- package/lib/Components/zSpace/UC/CheckZSpaceDisplaySizeUC.d.ts +11 -0
- package/lib/Components/zSpace/UC/CheckZSpaceDisplaySizeUC.js +8 -0
- package/lib/Components/zSpace/UC/EmulateDisplaySizeHook.d.ts +5 -0
- package/lib/Components/zSpace/UC/EmulateDisplaySizeHook.js +57 -0
- package/lib/Components/zSpace/UC/StylusFromGamepadHook.d.ts +18 -0
- package/lib/Components/zSpace/UC/StylusFromGamepadHook.js +82 -0
- package/lib/Components/zSpace/UC/index.d.ts +4 -0
- package/lib/Components/zSpace/UC/index.js +16 -0
- package/lib/Components/zSpace/index.d.ts +4 -0
- package/lib/Components/zSpace/index.js +16 -0
- package/lib/Entities/MemoizedAngle.d.ts +9 -0
- package/lib/Entities/MemoizedColor.d.ts +9 -0
- package/lib/Entities/MemoizedColor.js +23 -0
- package/lib/Entities/MemoizedQuaternion.d.ts +9 -0
- package/lib/Entities/MemoizedQuaternion.js +23 -0
- package/lib/Entities/MemoizedVector2.d.ts +9 -0
- package/lib/Entities/MemoizedVector2.js +23 -0
- package/lib/Entities/MemoizedVector3.d.ts +9 -0
- package/lib/Entities/MemoizedVector3.js +23 -0
- package/lib/Entities/TransformNode.d.ts +1 -1
- package/lib/Entities/index.d.ts +8 -32
- package/lib/Entities/index.js +8 -32
- package/lib/Types/AppBoundary.d.ts +4 -0
- package/lib/Types/index.d.ts +3 -1
- package/lib/Types/index.js +3 -1
- package/lib/Utilities/index.d.ts +1 -0
- package/lib/Utilities/index.js +1 -0
- package/lib/ValueObjects/Quaternion.js +1 -1
- package/lib/ValueObjects/Rectangle.d.ts +15 -0
- package/lib/ValueObjects/Rectangle.js +23 -0
- package/lib/ValueObjects/Vector3.d.ts +3 -3
- package/lib/ValueObjects/Vector3.js +5 -6
- package/lib/ValueObjects/index.d.ts +5 -5
- package/lib/ValueObjects/index.js +5 -5
- package/lib/index.d.ts +5 -11
- package/lib/index.js +5 -12
- package/package.json +6 -1
- package/lib/AppObjectComponents/App/Controller/clickEditSlideText.d.ts +0 -2
- package/lib/AppObjectComponents/App/Controller/clickEditSlideText.js +0 -14
- package/lib/AppObjectComponents/App/Controller/removeRenderCanvas.js +0 -14
- package/lib/AppObjectComponents/App/Controller/startRenderingApp.d.ts +0 -2
- package/lib/AppObjectComponents/App/Controller/startRenderingApp.js +0 -14
- package/lib/AppObjectComponents/App/Controller/stopRenderingApp.d.ts +0 -2
- package/lib/AppObjectComponents/App/Controller/stopRenderingApp.js +0 -14
- package/lib/AppObjectComponents/App/Controller/submitRenderCanvas.js +0 -14
- package/lib/AppObjectComponents/App/Entity/BaseAppState.d.ts +0 -14
- package/lib/AppObjectComponents/App/Entity/BaseAppState.js +0 -50
- package/lib/AppObjectComponents/App/Mocks/MockAppRenderingUC.d.ts +0 -8
- package/lib/AppObjectComponents/App/Mocks/MockAppRenderingUC.js +0 -12
- package/lib/AppObjectComponents/App/Mocks/MockRenderCanvasUC.d.ts +0 -8
- package/lib/AppObjectComponents/App/Mocks/MockRenderCanvasUC.js +0 -12
- package/lib/AppObjectComponents/App/PM/IsAuthoringPM.d.ts +0 -11
- package/lib/AppObjectComponents/App/PM/IsAuthoringPM.js +0 -38
- package/lib/AppObjectComponents/App/PM/IsReviewingPM.d.ts +0 -11
- package/lib/AppObjectComponents/App/PM/IsReviewingPM.js +0 -38
- package/lib/AppObjectComponents/App/PM/SlideTextPM.d.ts +0 -11
- package/lib/AppObjectComponents/App/PM/SlideTextPM.js +0 -37
- package/lib/AppObjectComponents/App/UseCase/AppRenderingUC.d.ts +0 -8
- package/lib/AppObjectComponents/App/UseCase/AppRenderingUC.js +0 -20
- package/lib/AppObjectComponents/App/UseCase/EditSlideTextUC.d.ts +0 -17
- package/lib/AppObjectComponents/App/UseCase/EditSlideTextUC.js +0 -67
- package/lib/AppObjectComponents/App/UseCase/RenderCanvasUC.d.ts +0 -10
- package/lib/AppObjectComponents/App/UseCase/RenderCanvasUC.js +0 -101
- package/lib/AppObjectComponents/App/UseCase/removeRenderCanvas.d.ts +0 -2
- package/lib/AppObjectComponents/App/UseCase/removeRenderCanvas.js +0 -23
- package/lib/AppObjectComponents/App/UseCase/submitError.js +0 -26
- package/lib/AppObjectComponents/App/UseCase/submitFatal.js +0 -26
- package/lib/AppObjectComponents/App/UseCase/submitLog.js +0 -26
- package/lib/AppObjectComponents/App/UseCase/submitRenderCanvas.d.ts +0 -2
- package/lib/AppObjectComponents/App/UseCase/submitRenderCanvas.js +0 -26
- package/lib/AppObjectComponents/App/UseCase/submitWarning.js +0 -26
- package/lib/AppObjectComponents/App/index.d.ts +0 -14
- package/lib/AppObjectComponents/App/index.js +0 -26
- package/lib/AppObjectComponents/Babylon/Entities/BabylonEntity.d.ts +0 -16
- package/lib/AppObjectComponents/Babylon/Entities/BabylonEntity.js +0 -80
- package/lib/AppObjectComponents/Babylon/Factory/makeBabylon.d.ts +0 -2
- package/lib/AppObjectComponents/Babylon/Factory/makeBabylon.js +0 -11
- package/lib/AppObjectComponents/Babylon/Mocks/MockBabylonRenderingUC.d.ts +0 -9
- package/lib/AppObjectComponents/Babylon/Mocks/MockBabylonRenderingUC.js +0 -13
- package/lib/AppObjectComponents/Babylon/PresentationManangers/ShowBabylonInspectorPM.js +0 -28
- package/lib/AppObjectComponents/Babylon/UseCases/BabylonRenderingUC.d.ts +0 -9
- package/lib/AppObjectComponents/Babylon/UseCases/BabylonRenderingUC.js +0 -20
- package/lib/AppObjectComponents/Babylon/UseCases/PixelToSceneRayUC.d.ts +0 -9
- package/lib/AppObjectComponents/Babylon/UseCases/PixelToSceneRayUC.js +0 -30
- package/lib/AppObjectComponents/Babylon/UseCases/ScenePixelPickUC.d.ts +0 -17
- package/lib/AppObjectComponents/Babylon/UseCases/ScenePixelPickUC.js +0 -29
- package/lib/AppObjectComponents/Babylon/UseCases/SceneRayPickUC.d.ts +0 -16
- package/lib/AppObjectComponents/Babylon/UseCases/SceneRayPickUC.js +0 -29
- package/lib/AppObjectComponents/Babylon/index.d.ts +0 -7
- package/lib/AppObjectComponents/Babylon/index.js +0 -19
- 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/UseCases/ProcessChannelModelUC.d.ts +0 -7
- package/lib/AppObjectComponents/ChannelModel/UseCases/ProcessChannelModelUC.js +0 -19
- package/lib/AppObjectComponents/ChannelModel/UseCases/SelectChannelModelUC.d.ts +0 -9
- package/lib/AppObjectComponents/ChannelModel/UseCases/SelectChannelModelUC.js +0 -63
- package/lib/AppObjectComponents/ChannelModel/UseCases/SetupChannelModelUC.d.ts +0 -10
- package/lib/AppObjectComponents/ChannelModel/UseCases/SetupChannelModelUC.js +0 -21
- package/lib/AppObjectComponents/ChannelModel/index.d.ts +0 -2
- package/lib/AppObjectComponents/ChannelModel/index.js +0 -14
- 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/AppIsReadyUC.d.ts +0 -11
- package/lib/AppObjectComponents/Dispatcher/UC/AppIsReadyUC.js +0 -55
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStateChangeUC.d.ts +0 -18
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStateChangeUC.js +0 -78
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetBlobURLUC.d.ts +0 -11
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetBlobURLUC.js +0 -72
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetFolderURLUC.d.ts +0 -11
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetFolderURLUC.js +0 -71
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetMetaUC.d.ts +0 -12
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetMetaUC.js +0 -72
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetsForOwnerUC.d.ts +0 -12
- package/lib/AppObjectComponents/Dispatcher/UC/GetAssetsForOwnerUC.js +0 -72
- package/lib/AppObjectComponents/Dispatcher/UC/GetLinkedAssetsUC.d.ts +0 -12
- package/lib/AppObjectComponents/Dispatcher/UC/GetLinkedAssetsUC.js +0 -73
- 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/IsAssetFetchedUC.d.ts +0 -11
- package/lib/AppObjectComponents/Dispatcher/UC/IsAssetFetchedUC.js +0 -67
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/UC/LogUC.d.ts +0 -13
- package/lib/AppObjectComponents/Dispatcher/UC/LogUC.js +0 -61
- package/lib/AppObjectComponents/Dispatcher/UC/RegisterExternalStylesheetsUC.d.ts +0 -11
- package/lib/AppObjectComponents/Dispatcher/UC/RegisterExternalStylesheetsUC.js +0 -57
- package/lib/AppObjectComponents/Dispatcher/UC/ShowAlertUC.d.ts +0 -16
- package/lib/AppObjectComponents/Dispatcher/UC/ShowAlertUC.js +0 -50
- package/lib/AppObjectComponents/Dispatcher/UC/ShowConfirmUC.d.ts +0 -18
- package/lib/AppObjectComponents/Dispatcher/UC/ShowConfirmUC.js +0 -52
- package/lib/AppObjectComponents/Dispatcher/UC/ShowMarkdownEditorUC.d.ts +0 -15
- package/lib/AppObjectComponents/Dispatcher/UC/ShowMarkdownEditorUC.js +0 -52
- package/lib/AppObjectComponents/Dispatcher/UC/ShowSelectModelUC.d.ts +0 -13
- package/lib/AppObjectComponents/Dispatcher/UC/ShowSelectModelUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/UC/ShowSpinnerUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/ShowSpinnerUC.js +0 -57
- package/lib/AppObjectComponents/Dispatcher/UC/StateHasChangedUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/StateHasChangedUC.js +0 -49
- package/lib/AppObjectComponents/Dispatcher/UC/StateIsCompleteUC.d.ts +0 -11
- package/lib/AppObjectComponents/Dispatcher/UC/StateIsCompleteUC.js +0 -55
- package/lib/AppObjectComponents/Dispatcher/UC/SubmitResultResultUC.d.ts +0 -43
- package/lib/AppObjectComponents/Dispatcher/UC/SubmitResultResultUC.js +0 -159
- package/lib/AppObjectComponents/Dispatcher/index.d.ts +0 -9
- package/lib/AppObjectComponents/Dispatcher/index.js +0 -21
- package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.js +0 -41
- package/lib/AppObjectComponents/Enablement/index.d.ts +0 -2
- package/lib/AppObjectComponents/Enablement/index.js +0 -14
- package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.js +0 -43
- package/lib/AppObjectComponents/Hideable/index.d.ts +0 -2
- package/lib/AppObjectComponents/Hideable/index.js +0 -14
- package/lib/AppObjectComponents/KeyboardInput/Entities/KeyboardInput.d.ts +0 -18
- package/lib/AppObjectComponents/KeyboardInput/Entities/KeyboardInput.js +0 -86
- package/lib/AppObjectComponents/KeyboardInput/index.d.ts +0 -1
- package/lib/AppObjectComponents/KeyboardInput/index.js +0 -13
- package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.js +0 -62
- package/lib/AppObjectComponents/Label/index.d.ts +0 -2
- package/lib/AppObjectComponents/Label/index.js +0 -14
- package/lib/AppObjectComponents/Mesh/index.d.ts +0 -1
- package/lib/AppObjectComponents/Mesh/index.js +0 -13
- package/lib/AppObjectComponents/MouseInput/Entities/MouseInput.d.ts +0 -31
- package/lib/AppObjectComponents/MouseInput/Entities/MouseInput.js +0 -196
- package/lib/AppObjectComponents/MouseInput/index.d.ts +0 -1
- package/lib/AppObjectComponents/MouseInput/index.js +0 -13
- package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.js +0 -43
- package/lib/AppObjectComponents/OverlayColor/index.d.ts +0 -2
- package/lib/AppObjectComponents/OverlayColor/index.js +0 -14
- package/lib/AppObjectComponents/Question/Controllers/setAnswerFeedback.js +0 -25
- package/lib/AppObjectComponents/Question/Controllers/setAnswerText.js +0 -25
- package/lib/AppObjectComponents/Question/Controllers/submitQuestionAnswer.js +0 -14
- package/lib/AppObjectComponents/Question/Controllers/toggleAnswerIsCorrect.js +0 -25
- package/lib/AppObjectComponents/Question/Entities/QuestionEntity.d.ts +0 -24
- package/lib/AppObjectComponents/Question/Entities/QuestionEntity.js +0 -122
- package/lib/AppObjectComponents/Question/Factories/index.d.ts +0 -2
- package/lib/AppObjectComponents/Question/Factories/index.js +0 -14
- package/lib/AppObjectComponents/Question/Factories/setupQuestionAnswer.d.ts +0 -3
- package/lib/AppObjectComponents/Question/Factories/setupQuestionAnswer.js +0 -20
- package/lib/AppObjectComponents/Question/Factories/setupQuestionChallenge.d.ts +0 -3
- package/lib/AppObjectComponents/Question/Factories/setupQuestionChallenge.js +0 -22
- package/lib/AppObjectComponents/Question/PresentationManagers/QuestionAnswerPM.js +0 -60
- package/lib/AppObjectComponents/Question/PresentationManagers/QuestionChallengeAnswerPM.d.ts +0 -20
- package/lib/AppObjectComponents/Question/PresentationManagers/QuestionChallengeAnswerPM.js +0 -70
- package/lib/AppObjectComponents/Question/PresentationManagers/QuestionChallengePM.d.ts +0 -19
- package/lib/AppObjectComponents/Question/PresentationManagers/QuestionChallengePM.js +0 -71
- package/lib/AppObjectComponents/Question/UseCases/AddQuestionAnswerUC.d.ts +0 -10
- package/lib/AppObjectComponents/Question/UseCases/AddQuestionAnswerUC.js +0 -52
- package/lib/AppObjectComponents/Question/UseCases/DeleteQuestionAnswerUC.d.ts +0 -10
- package/lib/AppObjectComponents/Question/UseCases/DeleteQuestionAnswerUC.js +0 -54
- package/lib/AppObjectComponents/Question/UseCases/SerializeQuestionChallenge.d.ts +0 -35
- package/lib/AppObjectComponents/Question/UseCases/SerializeQuestionChallenge.js +0 -94
- package/lib/AppObjectComponents/Question/UseCases/SetAnswerFeedbackUC.js +0 -33
- package/lib/AppObjectComponents/Question/UseCases/SetAnswerTextUC.js +0 -33
- package/lib/AppObjectComponents/Question/UseCases/SetQuesionAnswerFeedback.d.ts +0 -2
- package/lib/AppObjectComponents/Question/UseCases/SetQuesionAnswerFeedback.js +0 -16
- package/lib/AppObjectComponents/Question/UseCases/SubmitQuestionAnswerUC.d.ts +0 -9
- package/lib/AppObjectComponents/Question/UseCases/SubmitQuestionAnswerUC.js +0 -59
- package/lib/AppObjectComponents/Question/UseCases/ToggleQuestionAnswerIsCorrect.d.ts +0 -7
- package/lib/AppObjectComponents/Question/UseCases/ToggleQuestionAnswerIsCorrect.js +0 -31
- package/lib/AppObjectComponents/SceneRoot/Controllers/DoubleTapToFocus.js +0 -89
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseClickToFocus.d.ts +0 -11
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseClickToFocus.js +0 -36
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseDoubleClickToRecenter.d.ts +0 -12
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseDoubleClickToRecenter.js +0 -37
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseOrbit.d.ts +0 -14
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseOrbit.js +0 -55
- package/lib/AppObjectComponents/SceneRoot/Controllers/MousePan.d.ts +0 -14
- package/lib/AppObjectComponents/SceneRoot/Controllers/MousePan.js +0 -50
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseRoll.d.ts +0 -11
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseRoll.js +0 -38
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseScale.d.ts +0 -14
- package/lib/AppObjectComponents/SceneRoot/Controllers/MouseScale.js +0 -51
- package/lib/AppObjectComponents/SceneRoot/Controllers/TouchOrbit.js +0 -52
- package/lib/AppObjectComponents/SceneRoot/Controllers/TouchPan.js +0 -53
- package/lib/AppObjectComponents/SceneRoot/Controllers/TouchPinch.js +0 -56
- package/lib/AppObjectComponents/SceneRoot/Controllers/TouchScale.js +0 -57
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.d.ts +0 -31
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.js +0 -106
- package/lib/AppObjectComponents/SceneRoot/Factory/setupSceneRoot.d.ts +0 -3
- package/lib/AppObjectComponents/SceneRoot/Factory/setupSceneRoot.js +0 -28
- package/lib/AppObjectComponents/SceneRoot/UC/BumpSceneRootScaleAboutPixelPoint.d.ts +0 -11
- package/lib/AppObjectComponents/SceneRoot/UC/BumpSceneRootScaleAboutPixelPoint.js +0 -60
- package/lib/AppObjectComponents/SceneRoot/UC/CenterSceneRootOnPixelPick.d.ts +0 -14
- package/lib/AppObjectComponents/SceneRoot/UC/CenterSceneRootOnPixelPick.js +0 -62
- package/lib/AppObjectComponents/SceneRoot/UC/DragScaleSceneRoot.d.ts +0 -12
- package/lib/AppObjectComponents/SceneRoot/UC/DragScaleSceneRoot.js +0 -74
- package/lib/AppObjectComponents/SceneRoot/UC/FocusOnPixel.d.ts +0 -13
- package/lib/AppObjectComponents/SceneRoot/UC/FocusOnPixel.js +0 -56
- package/lib/AppObjectComponents/SceneRoot/UC/OrbitSceneRoot.d.ts +0 -14
- package/lib/AppObjectComponents/SceneRoot/UC/OrbitSceneRoot.js +0 -92
- package/lib/AppObjectComponents/SceneRoot/UC/PanSceneRoot.d.ts +0 -13
- package/lib/AppObjectComponents/SceneRoot/UC/PanSceneRoot.js +0 -86
- package/lib/AppObjectComponents/SceneRoot/UC/PinchSceneRoot.d.ts +0 -13
- package/lib/AppObjectComponents/SceneRoot/UC/PinchSceneRoot.js +0 -102
- package/lib/AppObjectComponents/SceneRoot/UC/ScaleSceneRootWithRay.d.ts +0 -14
- package/lib/AppObjectComponents/SceneRoot/UC/ScaleSceneRootWithRay.js +0 -38
- 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/StateMachine/Entities/StateMachineEntity.d.ts +0 -30
- package/lib/AppObjectComponents/StateMachine/Entities/StateMachineEntity.js +0 -105
- package/lib/AppObjectComponents/StateMachine/index.d.ts +0 -1
- package/lib/AppObjectComponents/StateMachine/index.js +0 -13
- 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/StoredView/index.js +0 -14
- package/lib/AppObjectComponents/Tools/Controller/ToolHotkeys.js +0 -43
- package/lib/AppObjectComponents/Tools/Controller/triggerTool.js +0 -14
- package/lib/AppObjectComponents/Tools/Entities/ToolRepository.d.ts +0 -17
- package/lib/AppObjectComponents/Tools/Entities/ToolRepository.js +0 -132
- package/lib/AppObjectComponents/Tools/Factories/setupTool.js +0 -12
- package/lib/AppObjectComponents/Tools/PresentationManagers/ToolPM.js +0 -66
- package/lib/AppObjectComponents/Tools/index.d.ts +0 -6
- package/lib/AppObjectComponents/Tools/index.js +0 -18
- package/lib/AppObjectComponents/TouchController/Entities/TouchInput.d.ts +0 -33
- package/lib/AppObjectComponents/TouchController/Entities/TouchInput.js +0 -161
- package/lib/AppObjectComponents/TouchController/index.d.ts +0 -1
- package/lib/AppObjectComponents/TouchController/index.js +0 -13
- 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/UndoRedo/Controllers/clearUndoStack.js +0 -14
- package/lib/AppObjectComponents/UndoRedo/Controllers/doRedo.js +0 -14
- package/lib/AppObjectComponents/UndoRedo/Controllers/doUndo.js +0 -14
- package/lib/AppObjectComponents/UndoRedo/Entities/UndoRedoEntity.d.ts +0 -31
- package/lib/AppObjectComponents/UndoRedo/Entities/UndoRedoEntity.js +0 -76
- package/lib/AppObjectComponents/UndoRedo/Factories/setupUndo.d.ts +0 -3
- package/lib/AppObjectComponents/UndoRedo/Factories/setupUndo.js +0 -14
- package/lib/AppObjectComponents/UndoRedo/PresentationManager/HasRedoPM.d.ts +0 -12
- package/lib/AppObjectComponents/UndoRedo/PresentationManager/HasRedoPM.js +0 -45
- package/lib/AppObjectComponents/UndoRedo/PresentationManager/HasUndoPM.d.ts +0 -12
- package/lib/AppObjectComponents/UndoRedo/PresentationManager/HasUndoPM.js +0 -45
- package/lib/AppObjectComponents/UndoRedo/index.d.ts +0 -7
- package/lib/AppObjectComponents/UndoRedo/index.js +0 -19
- package/lib/AppObjectComponents/XR/index.d.ts +0 -2
- package/lib/AppObjectComponents/XR/index.js +0 -14
- package/lib/AppObjectComponents/index.d.ts +0 -10
- package/lib/AppObjectComponents/index.js +0 -22
- package/lib/AppObjectComponents/zSpace/Controllers/ZSpaceScaleRoot.js +0 -57
- package/lib/AppObjectComponents/zSpace/Controllers/ZSpaceStylusRootMovement.d.ts +0 -13
- package/lib/AppObjectComponents/zSpace/Controllers/ZSpaceStylusRootMovement.js +0 -51
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceDisplayEntity.d.ts +0 -21
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceDisplayEntity.js +0 -60
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceEntity.d.ts +0 -21
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceEntity.js +0 -64
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceStylusEntity.d.ts +0 -26
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceStylusEntity.js +0 -86
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceViewEntity.d.ts +0 -25
- package/lib/AppObjectComponents/zSpace/Entities/ZSpaceViewEntity.js +0 -47
- package/lib/AppObjectComponents/zSpace/Factories/makeZSpace.d.ts +0 -3
- package/lib/AppObjectComponents/zSpace/Factories/makeZSpace.js +0 -31
- package/lib/AppObjectComponents/zSpace/PM/ZSpaceDisplayPM.js +0 -65
- package/lib/AppObjectComponents/zSpace/PM/ZSpaceIsEnabledPM.js +0 -41
- package/lib/AppObjectComponents/zSpace/UseCases/StylusFromGamepadHook.d.ts +0 -18
- package/lib/AppObjectComponents/zSpace/UseCases/StylusFromGamepadHook.js +0 -79
- package/lib/AppObjectComponents/zSpace/UseCases/StylusRootMovementUC.d.ts +0 -12
- package/lib/AppObjectComponents/zSpace/UseCases/StylusRootMovementUC.js +0 -69
- package/lib/AppObjectComponents/zSpace/index.d.ts +0 -12
- package/lib/AppObjectComponents/zSpace/index.js +0 -24
- 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/AppBoundary.js +0 -2
- 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/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/MemoizedColor.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedColor.js +0 -23
- package/lib/Entities/Memoized/MemoizedQuaternion.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedQuaternion.js +0 -23
- 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/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 -105
- 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/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/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/HoverLabels/index.js +0 -14
- 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/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/SceneModel/index.js +0 -13
- 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/SceneObject/index.js +0 -13
- 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/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/SetThemeColorsBase.d.ts +0 -13
- package/lib/UseCases/Handlers/SetThemeColorsBase.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 -10
- package/lib/UseCases/Handlers/index.js +0 -22
- 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/index.js +0 -16
- 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/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/{AppObjectComponents → Components}/App/Controller/removeRenderCanvas.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/App/Controller/submitRenderCanvas.d.ts +0 -0
- /package/lib/{AppObjectComponents/App/UseCase → Components/App/UC}/submitError.d.ts +0 -0
- /package/lib/{AppObjectComponents/App/UseCase → Components/App/UC}/submitFatal.d.ts +0 -0
- /package/lib/{AppObjectComponents/App/UseCase → Components/App/UC}/submitLog.d.ts +0 -0
- /package/lib/{AppObjectComponents/App/UseCase → Components/App/UC}/submitWarning.d.ts +0 -0
- /package/lib/{AppObjectComponents/Babylon/PresentationManangers → Components/Babylon/PM}/ShowBabylonInspectorPM.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Dispatcher/Mocks/MockDispatchStateChange.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Dispatcher/Mocks/MockDispatchStateChange.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Dispatcher/Mocks/MockDispatcher.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Dispatcher/Mocks/MockDispatcher.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Dispatcher/Mocks/MockLogUC.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Dispatcher/Mocks/MockLogUC.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Enablement/Entities/EnablablementEntity.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Enablement/Entities/EnablablementEntity.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Enablement/PM/EnablableStatePM.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Hideable/Entities/Hideable.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Hideable/Entities/Hideable.js +0 -0
- /package/lib/{AppObjectComponents/Hideable/PresentationManagers → Components/Hideable/PM}/IsHiddenPM.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/KeyboardInput/Mocks/MockKeyboardInput.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/KeyboardInput/Mocks/MockKeyboardInput.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Label/Entities/Label.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Label/Entities/Label.js +0 -0
- /package/lib/{AppObjectComponents/Label/PresentationManagers → Components/Label/PM}/LabelPM.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Mesh/Entities/Mesh.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Mesh/Entities/Mesh.js +0 -0
- /package/lib/{AppObjectComponents → Components}/MouseInput/Mocks/MockMouseInput.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/MouseInput/Mocks/MockMouseInput.js +0 -0
- /package/lib/{AppObjectComponents → Components}/OverlayColor/Entities/OverlayColor.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/OverlayColor/Entities/OverlayColor.js +0 -0
- /package/lib/{AppObjectComponents/OverlayColor/PresentationManagers → Components/OverlayColor/PM}/OverlayColorPM.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Controllers/index.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Controllers/index.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Controllers/setAnswerFeedback.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Controllers/setAnswerText.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Controllers/submitQuestionAnswer.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Controllers/toggleAnswerIsCorrect.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Entities/QuestionAnswerEntity.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Entities/QuestionAnswerEntity.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Entities/index.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Entities/index.js +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Mocks/MockQuestionAnswerEntity.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Question/Mocks/MockQuestionAnswerEntity.js +0 -0
- /package/lib/{AppObjectComponents/Question/PresentationManagers → Components/Question/PM}/QuestionAnswerPM.d.ts +0 -0
- /package/lib/{AppObjectComponents/Question/PresentationManagers → Components/Question/PM}/index.d.ts +0 -0
- /package/lib/{AppObjectComponents/Question/PresentationManagers → Components/Question/PM}/index.js +0 -0
- /package/lib/{AppObjectComponents/Question/UseCases → Components/Question/UC}/SetAnswerFeedbackUC.d.ts +0 -0
- /package/lib/{AppObjectComponents/Question/UseCases → Components/Question/UC}/SetAnswerTextUC.d.ts +0 -0
- /package/lib/{AppObjectComponents/Question/UseCases → Components/Question/UC}/index.d.ts +0 -0
- /package/lib/{AppObjectComponents/Question/UseCases → Components/Question/UC}/index.js +0 -0
- /package/lib/{AppObjectComponents → Components}/SceneRoot/Controllers/DoubleTapToFocus.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/SceneRoot/Controllers/TouchOrbit.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/SceneRoot/Controllers/TouchPan.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/SceneRoot/Controllers/TouchPinch.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/SceneRoot/Controllers/TouchScale.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Tools/Controller/ToolHotkeys.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Tools/Controller/triggerTool.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Tools/Entities/ToolEntity.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/Tools/Entities/ToolEntity.js +0 -0
- /package/lib/{AppObjectComponents/Tools/Factories → Components/Tools/Factory}/setupTool.d.ts +0 -0
- /package/lib/{AppObjectComponents/Tools/Factories → Components/Tools/Factory}/setupToolRepo.d.ts +0 -0
- /package/lib/{AppObjectComponents/Tools/Factories → Components/Tools/Factory}/setupToolRepo.js +0 -0
- /package/lib/{AppObjectComponents/Tools/PresentationManagers → Components/Tools/PM}/ToolPM.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/TouchController/Mock/MockTouchInput.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/TouchController/Mock/MockTouchInput.js +0 -0
- /package/lib/{AppObjectComponents → Components}/TouchController/Mock/mockTouchInputEvent.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/TouchController/Mock/mockTouchInputEvent.js +0 -0
- /package/lib/{AppObjectComponents → Components}/UndoRedo/Controllers/clearUndoStack.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/UndoRedo/Controllers/doRedo.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/UndoRedo/Controllers/doUndo.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/XR/Entity/XREntity.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/XR/Entity/XREntity.js +0 -0
- /package/lib/{AppObjectComponents/XR/UseCase → Components/XR/UC}/RenderToXR.d.ts +0 -0
- /package/lib/{AppObjectComponents/XR/UseCase → Components/XR/UC}/RenderToXR.js +0 -0
- /package/lib/{AppObjectComponents → Components}/zSpace/Controllers/ZSpaceScaleRoot.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/zSpace/PM/ZSpaceDisplayPM.d.ts +0 -0
- /package/lib/{AppObjectComponents → Components}/zSpace/PM/ZSpaceIsEnabledPM.d.ts +0 -0
- /package/lib/{AppObjectComponents/zSpace/UseCases → Components/zSpace/UC}/ViewFromPoseHook.d.ts +0 -0
- /package/lib/{AppObjectComponents/zSpace/UseCases → Components/zSpace/UC}/ViewFromPoseHook.js +0 -0
- /package/lib/Entities/{Memoized/MemoizedAngle.js → MemoizedAngle.js} +0 -0
- /package/lib/Entities/{Memoized/MemoizedBoolean.d.ts → MemoizedBoolean.d.ts} +0 -0
- /package/lib/Entities/{Memoized/MemoizedBoolean.js → MemoizedBoolean.js} +0 -0
- /package/lib/Entities/{Memoized/MemoizedNumber.d.ts → MemoizedNumber.d.ts} +0 -0
- /package/lib/Entities/{Memoized/MemoizedNumber.js → MemoizedNumber.js} +0 -0
- /package/lib/Entities/{Memoized/MemoizedString.d.ts → MemoizedString.d.ts} +0 -0
- /package/lib/Entities/{Memoized/MemoizedString.js → MemoizedString.js} +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestionChallengePM = exports.defaultQuestionChallengeVM = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
|
|
6
|
+
const QuestionEntity_1 = require("../Entities/QuestionEntity");
|
|
7
|
+
exports.defaultQuestionChallengeVM = {
|
|
8
|
+
answerIds: [],
|
|
9
|
+
gotItRight: false,
|
|
10
|
+
reviewFeedback: "",
|
|
11
|
+
};
|
|
12
|
+
class QuestionChallengePM extends AppObjectPM_1.AppObjectPM {
|
|
13
|
+
constructor(appObject) {
|
|
14
|
+
super(appObject, QuestionChallengePM.type);
|
|
15
|
+
this.onEntityChange = () => {
|
|
16
|
+
if (!this.questionEntity)
|
|
17
|
+
return;
|
|
18
|
+
const { gotItRight } = this.questionEntity;
|
|
19
|
+
const answerIds = this.questionEntity.getAllAnswers().map((ans) => ans.id);
|
|
20
|
+
const vm = {
|
|
21
|
+
gotItRight,
|
|
22
|
+
answerIds,
|
|
23
|
+
reviewFeedback: this.questionEntity.reviewFeedback,
|
|
24
|
+
validationMessage: this.questionEntity.validationMessage,
|
|
25
|
+
};
|
|
26
|
+
this.doUpdateView(vm);
|
|
27
|
+
};
|
|
28
|
+
this.dispose = () => {
|
|
29
|
+
var _a;
|
|
30
|
+
super.dispose();
|
|
31
|
+
(_a = this.questionEntity) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onEntityChange);
|
|
32
|
+
};
|
|
33
|
+
this.questionEntity = appObject.getComponent(QuestionEntity_1.QuestionEntity.type);
|
|
34
|
+
if (this.questionEntity) {
|
|
35
|
+
this.questionEntity.addChangeObserver(this.onEntityChange);
|
|
36
|
+
this.onEntityChange();
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.warn("QuestionChallengePM has been added to an app object that does not have QuestionEntity");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
vmsAreEqual(a, b) {
|
|
43
|
+
if (a.gotItRight !== b.gotItRight)
|
|
44
|
+
return false;
|
|
45
|
+
if (a.validationMessage !== b.validationMessage)
|
|
46
|
+
return false;
|
|
47
|
+
if (a.reviewFeedback !== b.reviewFeedback)
|
|
48
|
+
return false;
|
|
49
|
+
if (a.answerIds.length !== b.answerIds.length)
|
|
50
|
+
return false;
|
|
51
|
+
let idsMatch = true;
|
|
52
|
+
a.answerIds.forEach((_, i) => {
|
|
53
|
+
if (a.answerIds[i] !== b.answerIds[i])
|
|
54
|
+
idsMatch = false;
|
|
55
|
+
});
|
|
56
|
+
return idsMatch;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.QuestionChallengePM = QuestionChallengePM;
|
|
60
|
+
QuestionChallengePM.type = "QuestionChallengePM";
|
|
61
|
+
QuestionChallengePM.get = (appObjects) => AppObject_1.getSingletonComponent(QuestionChallengePM.type, appObjects);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
2
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
export declare class AddAnswerUndoRedo implements UndoRedoAction {
|
|
4
|
+
private answerID;
|
|
5
|
+
private dispatchStateChange?;
|
|
6
|
+
private questionEntity?;
|
|
7
|
+
undoAction: () => void;
|
|
8
|
+
redoAction: () => void;
|
|
9
|
+
constructor(answerID: string, appObjects: AppObjectRepo);
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddAnswerUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
class AddAnswerUndoRedo {
|
|
8
|
+
constructor(answerID, appObjects) {
|
|
9
|
+
this.answerID = answerID;
|
|
10
|
+
this.undoAction = () => {
|
|
11
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
12
|
+
return;
|
|
13
|
+
this.questionEntity.removeAnswer(this.answerID);
|
|
14
|
+
this.dispatchStateChange.doDispatch();
|
|
15
|
+
};
|
|
16
|
+
this.redoAction = () => {
|
|
17
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
18
|
+
return;
|
|
19
|
+
const answer = this.questionEntity.answerFactory(this.answerID);
|
|
20
|
+
this.questionEntity.addAnswer(answer);
|
|
21
|
+
this.dispatchStateChange.doDispatch();
|
|
22
|
+
};
|
|
23
|
+
this.questionEntity = Entities_1.QuestionEntity.get(appObjects);
|
|
24
|
+
if (!this.questionEntity) {
|
|
25
|
+
appObjects.submitWarning("AddAnswerUndoRedo", "Unable to find QuestionEntity");
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.dispatchStateChange = DispatchStateChangeUC_1.DispatchStateChangeUC.get(appObjects);
|
|
29
|
+
if (!this.dispatchStateChange) {
|
|
30
|
+
appObjects.submitWarning("AddAnswerUndoRedo", "Unable to find DispatchStateChangeUC");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObjects);
|
|
34
|
+
if (!undoRedo) {
|
|
35
|
+
appObjects.submitWarning("AddAnswerUndoRedo", "Unable to find UndoRedoEntity");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
undoRedo.submitAction(this);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.AddAnswerUndoRedo = AddAnswerUndoRedo;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
+
export declare abstract class AddQuestionAnswerUC extends AppObjectUC {
|
|
5
|
+
static readonly type = "AddQuestionAnswerUC";
|
|
6
|
+
abstract addAnswer(): void;
|
|
7
|
+
static get: (appObjects: AppObjectRepo) => AddQuestionAnswerUC | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function makeAddQuestionAnswerUC(appObject: AppObject): AddQuestionAnswerUC;
|
|
10
|
+
export declare function addQuestionAnswer(appObjects: AppObjectRepo): void;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addQuestionAnswer = exports.makeAddQuestionAnswerUC = exports.AddQuestionAnswerUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
6
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
7
|
+
const QuestionEntity_1 = require("../Entities/QuestionEntity");
|
|
8
|
+
const AddAnswerUndoRedo_1 = require("./AddAnswerUndoRedo");
|
|
9
|
+
class AddQuestionAnswerUC extends AppObjectUC_1.AppObjectUC {
|
|
10
|
+
}
|
|
11
|
+
exports.AddQuestionAnswerUC = AddQuestionAnswerUC;
|
|
12
|
+
AddQuestionAnswerUC.type = "AddQuestionAnswerUC";
|
|
13
|
+
AddQuestionAnswerUC.get = (appObjects) => AppObject_1.getSingletonComponent(AddQuestionAnswerUC.type, appObjects);
|
|
14
|
+
function makeAddQuestionAnswerUC(appObject) {
|
|
15
|
+
return new AddQuestionAnswerUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeAddQuestionAnswerUC = makeAddQuestionAnswerUC;
|
|
18
|
+
function addQuestionAnswer(appObjects) {
|
|
19
|
+
const uc = AddQuestionAnswerUC.get(appObjects);
|
|
20
|
+
if (uc) {
|
|
21
|
+
uc.addAnswer();
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
appObjects.submitWarning("addQuestionAnswer", "Can't find AddQuestionAnswerUC");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.addQuestionAnswer = addQuestionAnswer;
|
|
28
|
+
class AddQuestionAnswerUCImp extends AddQuestionAnswerUC {
|
|
29
|
+
constructor(appObject) {
|
|
30
|
+
super(appObject, AddQuestionAnswerUC.type);
|
|
31
|
+
this.questionEntity = appObject.getComponent(QuestionEntity_1.QuestionEntity.type);
|
|
32
|
+
if (!this.questionEntity) {
|
|
33
|
+
this.warn("AddAnswerUC has been added to an app object that does not have QuestionEntity");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
addAnswer() {
|
|
37
|
+
var _a;
|
|
38
|
+
if (!this.questionEntity)
|
|
39
|
+
return;
|
|
40
|
+
const ans = this.questionEntity.createNewAnswer();
|
|
41
|
+
(_a = Dispatcher_1.DispatchStateChangeUC.get(this.appObject.appObjectRepo)) === null || _a === void 0 ? void 0 : _a.doDispatch();
|
|
42
|
+
new AddAnswerUndoRedo_1.AddAnswerUndoRedo(ans.id, this.appObject.appObjectRepo);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
2
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
import { QuestionAnswerEntity } from "../Entities";
|
|
4
|
+
export declare class DeleteAnswerUndoRedo implements UndoRedoAction {
|
|
5
|
+
private dispatchStateChange?;
|
|
6
|
+
private questionEntity?;
|
|
7
|
+
private id;
|
|
8
|
+
private isCorrect;
|
|
9
|
+
private text;
|
|
10
|
+
private feedback;
|
|
11
|
+
undoAction: () => void;
|
|
12
|
+
redoAction: () => void;
|
|
13
|
+
constructor(answer: QuestionAnswerEntity, appObjects: AppObjectRepo);
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteAnswerUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
class DeleteAnswerUndoRedo {
|
|
8
|
+
constructor(answer, appObjects) {
|
|
9
|
+
this.undoAction = () => {
|
|
10
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
11
|
+
return;
|
|
12
|
+
const answer = this.questionEntity.answerFactory(this.id);
|
|
13
|
+
answer.feedbackText = this.feedback;
|
|
14
|
+
answer.text = this.text;
|
|
15
|
+
answer.isCorrect = this.isCorrect;
|
|
16
|
+
this.questionEntity.addAnswer(answer);
|
|
17
|
+
this.dispatchStateChange.doDispatch();
|
|
18
|
+
};
|
|
19
|
+
this.redoAction = () => {
|
|
20
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
21
|
+
return;
|
|
22
|
+
this.questionEntity.removeAnswer(this.id);
|
|
23
|
+
this.dispatchStateChange.doDispatch();
|
|
24
|
+
};
|
|
25
|
+
const { id, feedbackText, text, isCorrect } = answer;
|
|
26
|
+
this.id = id;
|
|
27
|
+
this.text = text;
|
|
28
|
+
this.feedback = feedbackText;
|
|
29
|
+
this.isCorrect = isCorrect;
|
|
30
|
+
this.questionEntity = Entities_1.QuestionEntity.get(appObjects);
|
|
31
|
+
if (!this.questionEntity) {
|
|
32
|
+
appObjects.submitWarning("DeleteAnswerUndoRedo", "Unable to find QuestionEntity");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.dispatchStateChange = DispatchStateChangeUC_1.DispatchStateChangeUC.get(appObjects);
|
|
36
|
+
if (!this.dispatchStateChange) {
|
|
37
|
+
appObjects.submitWarning("DeleteAnswerUndoRedo", "Unable to find DispatchStateChangeUC");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObjects);
|
|
41
|
+
if (!undoRedo) {
|
|
42
|
+
appObjects.submitWarning("DeleteAnswerUndoRedo", "Unable to find UndoRedoEntity");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
undoRedo.submitAction(this);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.DeleteAnswerUndoRedo = DeleteAnswerUndoRedo;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
+
export declare abstract class DeleteQuestionAnswerUC extends AppObjectUC {
|
|
5
|
+
static readonly type = "DeleteQuestionAnswerUC";
|
|
6
|
+
abstract deleteAnswer(id: string): void;
|
|
7
|
+
static get: (appObjects: AppObjectRepo) => DeleteQuestionAnswerUC | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function makeDeleteQuestionAnswerUC(appObject: AppObject): DeleteQuestionAnswerUC;
|
|
10
|
+
export declare function deleteQuestionAnswer(answerID: string, appObjects: AppObjectRepo): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteQuestionAnswer = exports.makeDeleteQuestionAnswerUC = exports.DeleteQuestionAnswerUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
6
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
7
|
+
const QuestionEntity_1 = require("../Entities/QuestionEntity");
|
|
8
|
+
const DeleteAnswerUndoRedo_1 = require("./DeleteAnswerUndoRedo");
|
|
9
|
+
class DeleteQuestionAnswerUC extends AppObjectUC_1.AppObjectUC {
|
|
10
|
+
}
|
|
11
|
+
exports.DeleteQuestionAnswerUC = DeleteQuestionAnswerUC;
|
|
12
|
+
DeleteQuestionAnswerUC.type = "DeleteQuestionAnswerUC";
|
|
13
|
+
DeleteQuestionAnswerUC.get = (appObjects) => AppObject_1.getSingletonComponent(DeleteQuestionAnswerUC.type, appObjects);
|
|
14
|
+
function makeDeleteQuestionAnswerUC(appObject) {
|
|
15
|
+
return new DeleteQuestionAnswerUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeDeleteQuestionAnswerUC = makeDeleteQuestionAnswerUC;
|
|
18
|
+
function deleteQuestionAnswer(answerID, appObjects) {
|
|
19
|
+
const uc = DeleteQuestionAnswerUC.get(appObjects);
|
|
20
|
+
if (uc) {
|
|
21
|
+
uc.deleteAnswer(answerID);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
appObjects.submitWarning("deleteQuestionAnswer", "Can't find AddQuestionAnswerUC");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.deleteQuestionAnswer = deleteQuestionAnswer;
|
|
28
|
+
class DeleteQuestionAnswerUCImp extends DeleteQuestionAnswerUC {
|
|
29
|
+
constructor(appObject) {
|
|
30
|
+
super(appObject, DeleteQuestionAnswerUC.type);
|
|
31
|
+
this.questionEntity = appObject.getComponent(QuestionEntity_1.QuestionEntity.type);
|
|
32
|
+
if (!this.questionEntity) {
|
|
33
|
+
this.warn("DeleteQuestionAnswerUCImp has been added to an app object that does not have QuestionEntity");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
deleteAnswer(id) {
|
|
37
|
+
var _a;
|
|
38
|
+
if (!this.questionEntity)
|
|
39
|
+
return;
|
|
40
|
+
const ans = this.questionEntity.getAnswer(id);
|
|
41
|
+
if (!ans)
|
|
42
|
+
return;
|
|
43
|
+
this.questionEntity.removeAnswer(id);
|
|
44
|
+
(_a = Dispatcher_1.DispatchStateChangeUC.get(this.appObject.appObjectRepo)) === null || _a === void 0 ? void 0 : _a.doDispatch();
|
|
45
|
+
new DeleteAnswerUndoRedo_1.DeleteAnswerUndoRedo(ans, this.appObject.appObjectRepo);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
3
|
+
import { SerializedSystem } from "../../StateMachine";
|
|
4
|
+
export declare class SerializeQuestionChallenge extends AppObjectUC implements SerializedSystem {
|
|
5
|
+
static readonly type = "SerializeQuestionChallenge";
|
|
6
|
+
name: string;
|
|
7
|
+
seriliziationVersion: number;
|
|
8
|
+
private questionEntity?;
|
|
9
|
+
getSystemState(): object;
|
|
10
|
+
applySystemState(state: object, version: number): void;
|
|
11
|
+
applyDefaultState(): void;
|
|
12
|
+
private mapV1ToV3;
|
|
13
|
+
private mapV2ToV3;
|
|
14
|
+
private applyDataV3;
|
|
15
|
+
constructor(appObject: AppObject);
|
|
16
|
+
}
|
|
17
|
+
export interface ChallengeDataV3 {
|
|
18
|
+
answers: AnswerDataV1[];
|
|
19
|
+
}
|
|
20
|
+
export interface ChallengeDataV2 {
|
|
21
|
+
questionText: string;
|
|
22
|
+
answers: AnswerDataV1[];
|
|
23
|
+
}
|
|
24
|
+
export interface ChallengeDataV1 {
|
|
25
|
+
answers: AnswerDataV1[];
|
|
26
|
+
}
|
|
27
|
+
export interface AnswerDataV1 {
|
|
28
|
+
id: string;
|
|
29
|
+
text: string;
|
|
30
|
+
feedback: string;
|
|
31
|
+
isCorrect: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SerializeQuestionChallenge = void 0;
|
|
4
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
+
const StateMachine_1 = require("../../StateMachine");
|
|
6
|
+
const QuestionEntity_1 = require("../Entities/QuestionEntity");
|
|
7
|
+
class SerializeQuestionChallenge extends AppObjectUC_1.AppObjectUC {
|
|
8
|
+
constructor(appObject) {
|
|
9
|
+
super(appObject, SerializeQuestionChallenge.type);
|
|
10
|
+
this.name = "question";
|
|
11
|
+
this.seriliziationVersion = 3;
|
|
12
|
+
this.questionEntity = appObject.getComponent(QuestionEntity_1.QuestionEntity.type);
|
|
13
|
+
if (!this.questionEntity) {
|
|
14
|
+
this.warn("SerializeQuestionChallenge has been added to an app object that does not have QuestionEntity");
|
|
15
|
+
}
|
|
16
|
+
const stateMachine = StateMachine_1.StateMachineEntity.get(this.appObject.appObjectRepo);
|
|
17
|
+
if (stateMachine) {
|
|
18
|
+
stateMachine.registerSerializedSystem(this);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this.warn("Unable to find StateMachineEntity");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
getSystemState() {
|
|
25
|
+
if (!this.questionEntity) {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
const answers = this.questionEntity
|
|
29
|
+
.getAllAnswers()
|
|
30
|
+
.map((answer) => {
|
|
31
|
+
return {
|
|
32
|
+
id: answer.id,
|
|
33
|
+
feedback: answer.feedbackText,
|
|
34
|
+
isCorrect: answer.isCorrect,
|
|
35
|
+
text: answer.text,
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
const state = {
|
|
39
|
+
answers,
|
|
40
|
+
};
|
|
41
|
+
return state;
|
|
42
|
+
}
|
|
43
|
+
applySystemState(state, version) {
|
|
44
|
+
if (version === 1) {
|
|
45
|
+
const mappedState = this.mapV1ToV3(state);
|
|
46
|
+
this.applyDataV3(mappedState);
|
|
47
|
+
}
|
|
48
|
+
else if (version === 2) {
|
|
49
|
+
const mappedState = this.mapV2ToV3(state);
|
|
50
|
+
this.applyDataV3(mappedState);
|
|
51
|
+
}
|
|
52
|
+
else if (version === 3) {
|
|
53
|
+
this.applyDataV3(state);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
// Unsupported version
|
|
57
|
+
this.warn(`Unsupported data version ${version} for serialized system ${this.name}. Reverting to default state`);
|
|
58
|
+
this.applyDefaultState();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
applyDefaultState() {
|
|
62
|
+
var _a;
|
|
63
|
+
(_a = this.questionEntity) === null || _a === void 0 ? void 0 : _a.setDefaultState();
|
|
64
|
+
}
|
|
65
|
+
mapV1ToV3(data) {
|
|
66
|
+
// Easy!
|
|
67
|
+
return data;
|
|
68
|
+
}
|
|
69
|
+
mapV2ToV3(data) {
|
|
70
|
+
const { answers } = data;
|
|
71
|
+
return {
|
|
72
|
+
answers,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
applyDataV3(data) {
|
|
76
|
+
if (!this.questionEntity)
|
|
77
|
+
return;
|
|
78
|
+
const stateAnswerIDs = [];
|
|
79
|
+
data.answers.forEach((answerData) => {
|
|
80
|
+
var _a;
|
|
81
|
+
let answer = this.questionEntity.getAnswer(answerData.id);
|
|
82
|
+
if (!answer) {
|
|
83
|
+
answer = this.questionEntity.answerFactory(answerData.id);
|
|
84
|
+
(_a = this.questionEntity) === null || _a === void 0 ? void 0 : _a.addAnswer(answer);
|
|
85
|
+
}
|
|
86
|
+
answer.text = answerData.text;
|
|
87
|
+
answer.isCorrect = answerData.isCorrect;
|
|
88
|
+
answer.feedbackText = answerData.feedback;
|
|
89
|
+
stateAnswerIDs.push(answerData.id);
|
|
90
|
+
});
|
|
91
|
+
const allAnswers = Array.from(this.questionEntity.getAllAnswers());
|
|
92
|
+
allAnswers.forEach((ans) => {
|
|
93
|
+
if (!stateAnswerIDs.includes(ans.id)) {
|
|
94
|
+
this.questionEntity.removeAnswer(ans.id);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.SerializeQuestionChallenge = SerializeQuestionChallenge;
|
|
100
|
+
SerializeQuestionChallenge.type = "SerializeQuestionChallenge";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSetAnswerFeedbackUC = exports.SetAnswerFeedbackUC = void 0;
|
|
4
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
+
const QuestionAnswerEntity_1 = require("../Entities/QuestionAnswerEntity");
|
|
7
|
+
const SetAnswerFeedbackUndoRedo_1 = require("./SetAnswerFeedbackUndoRedo");
|
|
8
|
+
class SetAnswerFeedbackUC extends AppObjectUC_1.AppObjectUC {
|
|
9
|
+
}
|
|
10
|
+
exports.SetAnswerFeedbackUC = SetAnswerFeedbackUC;
|
|
11
|
+
SetAnswerFeedbackUC.type = "SetAnswerFeedbackUC";
|
|
12
|
+
function makeSetAnswerFeedbackUC(appObject) {
|
|
13
|
+
return new SetAnswerFeedbackUCImp(appObject);
|
|
14
|
+
}
|
|
15
|
+
exports.makeSetAnswerFeedbackUC = makeSetAnswerFeedbackUC;
|
|
16
|
+
class SetAnswerFeedbackUCImp extends SetAnswerFeedbackUC {
|
|
17
|
+
constructor(appObject) {
|
|
18
|
+
super(appObject, SetAnswerFeedbackUC.type);
|
|
19
|
+
this.answer = appObject.getComponent(QuestionAnswerEntity_1.QuestionAnswerEntity.type);
|
|
20
|
+
if (!this.answer) {
|
|
21
|
+
this.warn("SetAnswerFeedbackUC has been added to an app object that does not have QuestionAnswerEntity");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
setFeedback(feedback) {
|
|
25
|
+
var _a;
|
|
26
|
+
if (!this.answer)
|
|
27
|
+
return;
|
|
28
|
+
if (this.answer.feedbackText === feedback)
|
|
29
|
+
return;
|
|
30
|
+
const previousFeedback = this.answer.feedbackText;
|
|
31
|
+
this.answer.feedbackText = feedback;
|
|
32
|
+
(_a = Dispatcher_1.DispatchStateChangeUC.get(this.appObject.appObjectRepo)) === null || _a === void 0 ? void 0 : _a.doDispatch();
|
|
33
|
+
new SetAnswerFeedbackUndoRedo_1.SetAnswerFeedbackUndoRedo(previousFeedback, this.answer.id, this.appObject.appObjectRepo);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
2
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
export declare class SetAnswerFeedbackUndoRedo implements UndoRedoAction {
|
|
4
|
+
private initialText;
|
|
5
|
+
private answerID;
|
|
6
|
+
private dispatchStateChange?;
|
|
7
|
+
private questionEntity?;
|
|
8
|
+
private finalFeedback;
|
|
9
|
+
private answer?;
|
|
10
|
+
undoAction: () => void;
|
|
11
|
+
redoAction: () => void;
|
|
12
|
+
constructor(initialText: string, answerID: string, appObjects: AppObjectRepo);
|
|
13
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetAnswerFeedbackUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
class SetAnswerFeedbackUndoRedo {
|
|
8
|
+
constructor(initialText, answerID, appObjects) {
|
|
9
|
+
this.initialText = initialText;
|
|
10
|
+
this.answerID = answerID;
|
|
11
|
+
this.finalFeedback = "";
|
|
12
|
+
this.undoAction = () => {
|
|
13
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
14
|
+
return;
|
|
15
|
+
if (!this.answer)
|
|
16
|
+
return;
|
|
17
|
+
this.answer.feedbackText = this.initialText;
|
|
18
|
+
this.dispatchStateChange.doDispatch();
|
|
19
|
+
};
|
|
20
|
+
this.redoAction = () => {
|
|
21
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
22
|
+
return;
|
|
23
|
+
if (!this.answer)
|
|
24
|
+
return;
|
|
25
|
+
this.answer.feedbackText = this.finalFeedback;
|
|
26
|
+
this.dispatchStateChange.doDispatch();
|
|
27
|
+
};
|
|
28
|
+
this.questionEntity = Entities_1.QuestionEntity.get(appObjects);
|
|
29
|
+
if (!this.questionEntity) {
|
|
30
|
+
appObjects.submitWarning("SetAnswerFeedbackUndoRedo", "Unable to find QuestionEntity");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.answer = this.questionEntity.getAnswer(this.answerID);
|
|
34
|
+
if (!this.answer) {
|
|
35
|
+
appObjects.submitWarning("SetAnswerFeedbackUndoRedo", "Unable to get answer by ID");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this.finalFeedback = this.answer.feedbackText;
|
|
39
|
+
this.dispatchStateChange = DispatchStateChangeUC_1.DispatchStateChangeUC.get(appObjects);
|
|
40
|
+
if (!this.dispatchStateChange) {
|
|
41
|
+
appObjects.submitWarning("SetAnswerFeedbackUndoRedo", "Unable to find DispatchStateChangeUC");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObjects);
|
|
45
|
+
if (!undoRedo) {
|
|
46
|
+
appObjects.submitWarning("SetAnswerFeedbackUndoRedo", "Unable to find UndoRedoEntity");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
undoRedo.submitAction(this);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.SetAnswerFeedbackUndoRedo = SetAnswerFeedbackUndoRedo;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSetAnswerTextUC = exports.SetAnswerTextUC = void 0;
|
|
4
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
+
const QuestionAnswerEntity_1 = require("../Entities/QuestionAnswerEntity");
|
|
7
|
+
const SetAnswerTextUndoRedo_1 = require("./SetAnswerTextUndoRedo");
|
|
8
|
+
class SetAnswerTextUC extends AppObjectUC_1.AppObjectUC {
|
|
9
|
+
}
|
|
10
|
+
exports.SetAnswerTextUC = SetAnswerTextUC;
|
|
11
|
+
SetAnswerTextUC.type = "SetAnswerTextUC";
|
|
12
|
+
function makeSetAnswerTextUC(appObject) {
|
|
13
|
+
return new SetAnswerTextUCImp(appObject);
|
|
14
|
+
}
|
|
15
|
+
exports.makeSetAnswerTextUC = makeSetAnswerTextUC;
|
|
16
|
+
class SetAnswerTextUCImp extends SetAnswerTextUC {
|
|
17
|
+
constructor(appObject) {
|
|
18
|
+
super(appObject, SetAnswerTextUC.type);
|
|
19
|
+
this.answer = appObject.getComponent(QuestionAnswerEntity_1.QuestionAnswerEntity.type);
|
|
20
|
+
if (!this.answer) {
|
|
21
|
+
this.warn("SetAnswerTextUC has been added to an app object that does not have QuestionAnswerEntity");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
setText(text) {
|
|
25
|
+
var _a;
|
|
26
|
+
if (!this.answer)
|
|
27
|
+
return;
|
|
28
|
+
if (this.answer.text === text)
|
|
29
|
+
return;
|
|
30
|
+
const previousText = this.answer.text;
|
|
31
|
+
this.answer.text = text;
|
|
32
|
+
(_a = Dispatcher_1.DispatchStateChangeUC.get(this.appObject.appObjectRepo)) === null || _a === void 0 ? void 0 : _a.doDispatch();
|
|
33
|
+
new SetAnswerTextUndoRedo_1.SetAnswerTextUndoRedo(previousText, this.answer.id, this.appObject.appObjectRepo);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
2
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
export declare class SetAnswerTextUndoRedo implements UndoRedoAction {
|
|
4
|
+
private initialText;
|
|
5
|
+
private answerID;
|
|
6
|
+
private dispatchStateChange?;
|
|
7
|
+
private questionEntity?;
|
|
8
|
+
private finalText;
|
|
9
|
+
private answer?;
|
|
10
|
+
undoAction: () => void;
|
|
11
|
+
redoAction: () => void;
|
|
12
|
+
constructor(initialText: string, answerID: string, appObjects: AppObjectRepo);
|
|
13
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetAnswerTextUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
class SetAnswerTextUndoRedo {
|
|
8
|
+
constructor(initialText, answerID, appObjects) {
|
|
9
|
+
this.initialText = initialText;
|
|
10
|
+
this.answerID = answerID;
|
|
11
|
+
this.finalText = "";
|
|
12
|
+
this.undoAction = () => {
|
|
13
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
14
|
+
return;
|
|
15
|
+
if (!this.answer)
|
|
16
|
+
return;
|
|
17
|
+
this.answer.text = this.initialText;
|
|
18
|
+
this.dispatchStateChange.doDispatch();
|
|
19
|
+
};
|
|
20
|
+
this.redoAction = () => {
|
|
21
|
+
if (!this.questionEntity || !this.dispatchStateChange)
|
|
22
|
+
return;
|
|
23
|
+
if (!this.answer)
|
|
24
|
+
return;
|
|
25
|
+
this.answer.text = this.finalText;
|
|
26
|
+
this.dispatchStateChange.doDispatch();
|
|
27
|
+
};
|
|
28
|
+
this.questionEntity = Entities_1.QuestionEntity.get(appObjects);
|
|
29
|
+
if (!this.questionEntity) {
|
|
30
|
+
appObjects.submitWarning("SetAnswerTextUndoRedo", "Unable to find QuestionEntity");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.answer = this.questionEntity.getAnswer(this.answerID);
|
|
34
|
+
if (!this.answer) {
|
|
35
|
+
appObjects.submitWarning("SetAnswerTextUndoRedo", "Unable to get answer by ID");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this.finalText = this.answer.text;
|
|
39
|
+
this.dispatchStateChange = DispatchStateChangeUC_1.DispatchStateChangeUC.get(appObjects);
|
|
40
|
+
if (!this.dispatchStateChange) {
|
|
41
|
+
appObjects.submitWarning("SetAnswerTextUndoRedo", "Unable to find DispatchStateChangeUC");
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObjects);
|
|
45
|
+
if (!undoRedo) {
|
|
46
|
+
appObjects.submitWarning("SetAnswerTextUndoRedo", "Unable to find UndoRedoEntity");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
undoRedo.submitAction(this);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.SetAnswerTextUndoRedo = SetAnswerTextUndoRedo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
+
export declare abstract class SubmitQuestionAnswerUC extends AppObjectUC {
|
|
5
|
+
static readonly type = "SubmitQuestionAnswerUC";
|
|
6
|
+
abstract submitAnswer(id: string): void;
|
|
7
|
+
static get: (appObjects: AppObjectRepo) => SubmitQuestionAnswerUC | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function makeSubmitQuestionAnswerUC(appObject: AppObject): SubmitQuestionAnswerUC;
|