@vived/app 4.27.0 → 4.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.d.ts +42 -0
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.js +99 -0
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.d.ts +12 -0
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.js +45 -0
- package/lib/AppObjectComponents/ChannelModel/index.d.ts +2 -0
- package/lib/AppObjectComponents/ChannelModel/index.js +14 -0
- package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.d.ts +16 -0
- package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.js +40 -0
- package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.d.ts +5 -0
- package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.js +25 -0
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.d.ts +10 -0
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.js +44 -0
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.d.ts +10 -0
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.js +44 -0
- package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.d.ts +10 -0
- package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.js +44 -0
- package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.d.ts +10 -0
- package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.js +44 -0
- package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.d.ts +10 -0
- package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.js +54 -0
- package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.d.ts +10 -0
- package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.js +54 -0
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.d.ts +10 -0
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.js +54 -0
- package/lib/AppObjectComponents/Dispatcher/index.d.ts +9 -0
- package/lib/AppObjectComponents/Dispatcher/index.js +21 -0
- package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.d.ts +16 -0
- package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.js +28 -0
- package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.d.ts +14 -0
- package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.js +41 -0
- package/lib/AppObjectComponents/Enablement/index.d.ts +2 -0
- package/lib/AppObjectComponents/Enablement/index.js +14 -0
- package/lib/AppObjectComponents/Hideable/Entities/Hideable.d.ts +10 -0
- package/lib/AppObjectComponents/Hideable/Entities/Hideable.js +31 -0
- package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.d.ts +12 -0
- package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.js +43 -0
- package/lib/AppObjectComponents/Hideable/index.d.ts +2 -0
- package/lib/AppObjectComponents/Hideable/index.js +14 -0
- package/lib/AppObjectComponents/Label/Entities/Label.d.ts +17 -0
- package/lib/AppObjectComponents/Label/Entities/Label.js +58 -0
- package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.d.ts +19 -0
- package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.js +62 -0
- package/lib/AppObjectComponents/Label/index.d.ts +2 -0
- package/lib/AppObjectComponents/Label/index.js +14 -0
- package/lib/AppObjectComponents/Mesh/Entities/Mesh.d.ts +21 -0
- package/lib/AppObjectComponents/Mesh/Entities/Mesh.js +45 -0
- package/lib/AppObjectComponents/Mesh/index.d.ts +1 -0
- package/lib/{Components/Camera/Adapters → AppObjectComponents/Mesh}/index.js +1 -1
- package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.d.ts +25 -0
- package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.js +59 -0
- package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.d.ts +13 -0
- package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.js +43 -0
- package/lib/AppObjectComponents/OverlayColor/index.d.ts +2 -0
- package/lib/AppObjectComponents/OverlayColor/index.js +14 -0
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.d.ts +31 -0
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.js +106 -0
- package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.d.ts +31 -0
- package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.js +109 -0
- package/lib/AppObjectComponents/SceneRoot/index.d.ts +2 -0
- package/lib/AppObjectComponents/SceneRoot/index.js +14 -0
- package/lib/AppObjectComponents/StoredView/Entities/StoredView.d.ts +13 -0
- package/lib/AppObjectComponents/StoredView/Entities/StoredView.js +64 -0
- package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.d.ts +27 -0
- package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.js +82 -0
- package/lib/AppObjectComponents/StoredView/index.d.ts +2 -0
- package/lib/AppObjectComponents/StoredView/index.js +14 -0
- package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.d.ts +45 -0
- package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.js +226 -0
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.d.ts +12 -0
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.js +46 -0
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.d.ts +19 -0
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.js +60 -0
- package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.d.ts +20 -0
- package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.js +67 -0
- package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.d.ts +14 -0
- package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.js +53 -0
- package/lib/AppObjectComponents/Transform3D/index.d.ts +5 -0
- package/lib/{Components/BaseApp/PM → AppObjectComponents/Transform3D}/index.js +5 -4
- package/lib/AppObjectComponents/index.d.ts +10 -0
- package/lib/AppObjectComponents/index.js +22 -0
- package/lib/Components/App/PM/HasNextPreviousStatePM.d.ts +15 -0
- package/lib/Components/App/PM/HasNextPreviousStatePM.js +44 -0
- package/lib/Components/ChannelModel/Controllers/setModelObjectLabel.js +1 -1
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.d.ts +6 -0
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.js +9 -0
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.d.ts +10 -0
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.js +141 -0
- package/lib/Components/Hideable/UCs/SerializeHideableObjects.d.ts +2 -2
- package/lib/Components/Hideable/UCs/SerializeHideableObjects.js +9 -9
- package/lib/Components/Hideable/UCs/index.d.ts +1 -0
- package/lib/Components/Hideable/UCs/index.js +1 -0
- package/lib/Components/Label/Entities/Label.d.ts +1 -2
- package/lib/Components/Label/Entities/Label.js +0 -6
- package/lib/Components/Landmarks/UseCases/AddLandmarkUC.js +1 -1
- 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/Selection/Controller/StylusHoverOnAppObject.d.ts +11 -0
- package/lib/Components/Selection/Controller/StylusHoverOnAppObject.js +42 -0
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.d.ts +18 -0
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.js +77 -0
- package/lib/Components/Selection/Controller/StylusSelectAppObject.d.ts +11 -0
- package/lib/Components/Selection/Controller/StylusSelectAppObject.js +44 -0
- package/lib/Components/XR/Mocks/index.d.ts +2 -0
- package/lib/Components/{ObjectPick/Adapters → XR/Mocks}/index.js +2 -1
- 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.d.ts +14 -0
- package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.js +57 -0
- package/lib/Components/zSpace/Controllers/index.d.ts +1 -0
- package/lib/Components/{ObjectPick/PM → zSpace/Controllers}/index.js +1 -1
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.d.ts +27 -0
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.js +111 -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/Controllers/HoverLabelMouse.d.ts +10 -0
- package/lib/Controllers/HoverLabelMouse.js +23 -0
- package/lib/Controllers/HoverLabelTouch.d.ts +14 -0
- package/lib/Controllers/HoverLabelTouch.js +41 -0
- package/lib/Controllers/ToolHotkeys.d.ts +6 -0
- package/lib/Controllers/ToolHotkeys.js +25 -0
- package/lib/Controllers/index.d.ts +3 -0
- package/lib/{Components/Callouts/Entities → Controllers}/index.js +3 -3
- package/lib/Entities/AppBoundary.d.ts +6 -0
- package/lib/Entities/AppBoundary.js +2 -0
- package/lib/Entities/AppDispatcher.d.ts +63 -0
- package/lib/Entities/AppDispatcher.js +336 -0
- package/lib/Entities/AppHandler.d.ts +20 -0
- package/lib/Entities/AppHandler.js +94 -0
- package/lib/Entities/Babylon.d.ts +48 -0
- package/lib/Entities/Babylon.js +146 -0
- package/lib/Entities/BaseApp.d.ts +9 -0
- package/lib/Entities/BaseApp.js +30 -0
- package/lib/Entities/DevicePreview.d.ts +11 -0
- package/lib/Entities/DevicePreview.js +49 -0
- package/lib/Entities/FocusCamera.d.ts +70 -0
- package/lib/Entities/FocusCamera.js +272 -0
- package/lib/Entities/FramedScreen.d.ts +15 -0
- package/lib/Entities/FramedScreen.js +58 -0
- package/lib/Entities/FramedScreenContainer.d.ts +12 -0
- package/lib/Entities/FramedScreenContainer.js +41 -0
- package/lib/Entities/HoverLabels.d.ts +42 -0
- package/lib/Entities/HoverLabels.js +82 -0
- package/lib/Entities/KeyboardInput.d.ts +13 -0
- package/lib/Entities/KeyboardInput.js +68 -0
- package/lib/Entities/Memoized/MemoizedAngle.d.ts +9 -0
- package/lib/Entities/Memoized/MemoizedAngle.js +22 -0
- package/lib/Entities/Memoized/MemoizedBoolean.d.ts +8 -0
- package/lib/Entities/Memoized/MemoizedBoolean.js +22 -0
- package/lib/Entities/Memoized/MemoizedColor.d.ts +9 -0
- package/lib/Entities/Memoized/MemoizedColor.js +23 -0
- package/lib/Entities/Memoized/MemoizedNumber.d.ts +8 -0
- package/lib/Entities/Memoized/MemoizedNumber.js +22 -0
- package/lib/Entities/Memoized/MemoizedQuaternion.d.ts +9 -0
- package/lib/Entities/Memoized/MemoizedQuaternion.js +23 -0
- package/lib/Entities/Memoized/MemoizedString.d.ts +8 -0
- package/lib/Entities/Memoized/MemoizedString.js +22 -0
- package/lib/Entities/Memoized/MemoizedVector2.d.ts +9 -0
- package/lib/Entities/Memoized/MemoizedVector2.js +23 -0
- package/lib/Entities/Memoized/MemoizedVector3.d.ts +9 -0
- package/lib/Entities/Memoized/MemoizedVector3.js +23 -0
- package/lib/Entities/MeshModel.d.ts +68 -0
- package/lib/Entities/MeshModel.js +174 -0
- package/lib/Entities/ModelObject.d.ts +10 -0
- package/lib/Entities/ModelObject.js +42 -0
- package/lib/Entities/MouseInput.d.ts +21 -0
- package/lib/Entities/MouseInput.js +127 -0
- package/lib/Entities/ObservableEntityRepo.d.ts +20 -0
- package/lib/Entities/ObservableEntityRepo.js +80 -0
- package/lib/Entities/QuestionChallenge.d.ts +21 -0
- package/lib/Entities/QuestionChallenge.js +103 -0
- package/lib/Entities/QuestionChallengeAnswer.d.ts +32 -0
- package/lib/Entities/QuestionChallengeAnswer.js +51 -0
- package/lib/Entities/SceneModel.d.ts +85 -0
- package/lib/Entities/SceneModel.js +202 -0
- package/lib/Entities/SceneModelMesh.d.ts +40 -0
- package/lib/Entities/SceneModelMesh.js +75 -0
- package/lib/Entities/SceneModelRepo.d.ts +11 -0
- package/lib/Entities/SceneModelRepo.js +48 -0
- package/lib/Entities/SceneObject.d.ts +23 -0
- package/lib/Entities/SceneObject.js +79 -0
- package/lib/Entities/SceneObjectsRepo.d.ts +12 -0
- package/lib/Entities/SceneObjectsRepo.js +58 -0
- package/lib/Entities/SceneRoot.d.ts +29 -0
- package/lib/Entities/SceneRoot.js +145 -0
- package/lib/Entities/StateMachine.d.ts +29 -0
- package/lib/Entities/StateMachine.js +98 -0
- package/lib/Entities/Tool.d.ts +81 -0
- package/lib/Entities/Tool.js +94 -0
- package/lib/Entities/ToolRepository.d.ts +46 -0
- package/lib/Entities/ToolRepository.js +118 -0
- package/lib/Entities/TouchInput.d.ts +28 -0
- package/lib/Entities/TouchInput.js +144 -0
- package/lib/Entities/UndoRedo.d.ts +22 -0
- package/lib/Entities/UndoRedo.js +61 -0
- package/lib/PresentationManagers/DevicePreviewPM.d.ts +14 -0
- package/lib/PresentationManagers/DevicePreviewPM.js +30 -0
- package/lib/PresentationManagers/FocusCameraPM.d.ts +15 -0
- package/lib/PresentationManagers/FocusCameraPM.js +31 -0
- package/lib/PresentationManagers/FocusCameraPosRotPM.d.ts +13 -0
- package/lib/PresentationManagers/FocusCameraPosRotPM.js +28 -0
- package/lib/PresentationManagers/FramedScreenContainerPM.d.ts +18 -0
- package/lib/PresentationManagers/FramedScreenContainerPM.js +55 -0
- package/lib/PresentationManagers/HasRedoPM.d.ts +9 -0
- package/lib/PresentationManagers/HasRedoPM.js +22 -0
- package/lib/PresentationManagers/HasUndoPM.d.ts +9 -0
- package/lib/PresentationManagers/HasUndoPM.js +22 -0
- package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.d.ts +9 -0
- package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.js +19 -0
- package/lib/PresentationManagers/HoverLabels/HoverLabelPM.d.ts +17 -0
- package/lib/PresentationManagers/HoverLabels/HoverLabelPM.js +32 -0
- package/lib/PresentationManagers/HoverLabels/index.d.ts +2 -0
- package/lib/PresentationManagers/HoverLabels/index.js +14 -0
- package/lib/PresentationManagers/IsAuthoringPM.d.ts +9 -0
- package/lib/PresentationManagers/IsAuthoringPM.js +20 -0
- package/lib/PresentationManagers/PresentationManager.d.ts +8 -0
- package/lib/PresentationManagers/PresentationManager.js +16 -0
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.d.ts +24 -0
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.js +65 -0
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.d.ts +17 -0
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.js +46 -0
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.d.ts +17 -0
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.js +51 -0
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.d.ts +15 -0
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.js +34 -0
- package/lib/PresentationManagers/QuestionChallenge/index.d.ts +4 -0
- package/lib/{Components/Callouts/Adapters → PresentationManagers/QuestionChallenge}/index.js +4 -4
- package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.d.ts +15 -0
- package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.js +34 -0
- package/lib/PresentationManagers/SceneModel/SceneModelPM.d.ts +15 -0
- package/lib/PresentationManagers/SceneModel/SceneModelPM.js +36 -0
- package/lib/PresentationManagers/SceneModel/index.d.ts +1 -0
- package/lib/{Components/BaseApp/Entity → PresentationManagers/SceneModel}/index.js +1 -1
- package/lib/PresentationManagers/SceneObject/SceneObjectPM.d.ts +22 -0
- package/lib/PresentationManagers/SceneObject/SceneObjectPM.js +57 -0
- package/lib/PresentationManagers/SceneObject/index.d.ts +1 -0
- package/lib/{Components/Camera/Mocks → PresentationManagers/SceneObject}/index.js +1 -1
- package/lib/PresentationManagers/ShowBabylonInspectorPM.d.ts +9 -0
- package/lib/PresentationManagers/ShowBabylonInspectorPM.js +24 -0
- package/lib/PresentationManagers/ToolPM.d.ts +17 -0
- package/lib/PresentationManagers/ToolPM.js +35 -0
- package/lib/PresentationManagers/TransformNodePM.d.ts +14 -0
- package/lib/PresentationManagers/TransformNodePM.js +23 -0
- package/lib/PresentationManagers/index.d.ts +13 -0
- package/lib/PresentationManagers/index.js +25 -0
- package/lib/Types/ChannelModelData.d.ts +68 -0
- package/lib/Types/ChannelModelData.js +21 -0
- package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.d.ts +17 -0
- package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.js +64 -0
- package/lib/UseCases/FocusCamera/LerpFocusCamera.d.ts +36 -0
- package/lib/UseCases/FocusCamera/LerpFocusCamera.js +71 -0
- package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.d.ts +11 -0
- package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.js +36 -0
- package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.d.ts +11 -0
- package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.js +36 -0
- package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.d.ts +11 -0
- package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.js +26 -0
- package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.d.ts +11 -0
- package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.js +33 -0
- package/lib/UseCases/FocusCamera/SerializeFocusCamera.d.ts +22 -0
- package/lib/UseCases/FocusCamera/SerializeFocusCamera.js +81 -0
- package/lib/UseCases/FocusCamera/index.d.ts +7 -0
- package/lib/UseCases/FocusCamera/index.js +19 -0
- package/lib/UseCases/Handlers/DisposeAppBase.d.ts +8 -0
- package/lib/UseCases/Handlers/DisposeAppBase.js +24 -0
- package/lib/UseCases/Handlers/SetAppStateBase.d.ts +10 -0
- package/lib/UseCases/Handlers/SetAppStateBase.js +32 -0
- package/lib/UseCases/Handlers/SetDevicePreviewBase.d.ts +10 -0
- package/lib/UseCases/Handlers/SetDevicePreviewBase.js +32 -0
- package/lib/UseCases/Handlers/SetIsAuthoringBase.d.ts +10 -0
- package/lib/UseCases/Handlers/SetIsAuthoringBase.js +32 -0
- package/lib/UseCases/Handlers/ShowBabylonInspectorBase.d.ts +10 -0
- package/lib/UseCases/Handlers/ShowBabylonInspectorBase.js +32 -0
- package/lib/UseCases/Handlers/StartAppBase.d.ts +10 -0
- package/lib/UseCases/Handlers/StartAppBase.js +32 -0
- package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +10 -0
- package/lib/UseCases/Handlers/StartZSpaceBase.js +35 -0
- package/lib/UseCases/Handlers/StopAppBase.d.ts +8 -0
- package/lib/UseCases/Handlers/StopAppBase.js +24 -0
- package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +8 -0
- package/lib/UseCases/Handlers/StopZSpaceBase.js +24 -0
- package/lib/UseCases/Handlers/index.d.ts +9 -0
- package/lib/UseCases/Handlers/index.js +21 -0
- package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.d.ts +14 -0
- package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.js +35 -0
- package/lib/UseCases/HoverLabels/trySetHoverLabel.d.ts +3 -0
- package/lib/UseCases/HoverLabels/trySetHoverLabel.js +12 -0
- package/lib/UseCases/LerpVector3.d.ts +26 -0
- package/lib/UseCases/LerpVector3.js +66 -0
- package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.d.ts +25 -0
- package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.js +70 -0
- package/lib/UseCases/QuestionChallenge/index.d.ts +4 -0
- package/lib/{Components/BaseApp/Controller → UseCases/QuestionChallenge}/index.js +4 -5
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.d.ts +2 -0
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.js +16 -0
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.d.ts +2 -0
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.js +16 -0
- package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.d.ts +2 -0
- package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.js +16 -0
- package/lib/UseCases/SceneModel/SerializeActiveModel.d.ts +18 -0
- package/lib/UseCases/SceneModel/SerializeActiveModel.js +74 -0
- package/lib/UseCases/SceneModel/SetMeshesEnabledHook.d.ts +7 -0
- package/lib/UseCases/SceneModel/SetMeshesEnabledHook.js +22 -0
- package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.d.ts +2 -0
- package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.js +13 -0
- package/lib/UseCases/SceneModel/index.d.ts +5 -0
- package/lib/{Components/BaseApp/Adapters → UseCases/SceneModel}/index.js +5 -4
- package/lib/UseCases/SceneModel/loadNewModel.d.ts +2 -0
- package/lib/UseCases/SceneModel/loadNewModel.js +84 -0
- package/lib/UseCases/SceneModel/modelDataLoader.d.ts +3 -0
- package/lib/UseCases/SceneModel/modelDataLoader.js +33 -0
- package/lib/UseCases/SceneObjects/PeelSceneObject.d.ts +18 -0
- package/lib/UseCases/SceneObjects/PeelSceneObject.js +61 -0
- package/lib/UseCases/SceneObjects/index.d.ts +1 -0
- package/lib/UseCases/SceneObjects/index.js +13 -0
- package/lib/UseCases/SceneRoot/SerializeSceneRoot.d.ts +33 -0
- package/lib/UseCases/SceneRoot/SerializeSceneRoot.js +67 -0
- package/lib/UseCases/SceneRoot/index.d.ts +2 -0
- package/lib/UseCases/SceneRoot/index.js +14 -0
- package/lib/UseCases/SceneRoot/setupSceneRoot.d.ts +2 -0
- package/lib/UseCases/SceneRoot/setupSceneRoot.js +11 -0
- package/lib/UseCases/index.d.ts +7 -0
- package/lib/{Components/BaseApp/Mocks → UseCases}/index.js +7 -7
- package/lib/UseCases/setDevicePreview.d.ts +2 -0
- package/lib/UseCases/setDevicePreview.js +14 -0
- package/lib/UseCases/setupStandardAppObjects.d.ts +2 -0
- package/lib/UseCases/setupStandardAppObjects.js +10 -0
- package/lib/ValueObjects/Result.d.ts +30 -0
- package/lib/ValueObjects/Result.js +45 -0
- package/package.json +1 -1
- package/lib/Components/BaseApp/Adapters/index.d.ts +0 -4
- package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.d.ts +0 -2
- package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.js +0 -23
- package/lib/Components/BaseApp/Adapters/isReviewingAdapter.d.ts +0 -2
- package/lib/Components/BaseApp/Adapters/isReviewingAdapter.js +0 -23
- package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.d.ts +0 -3
- package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.js +0 -23
- package/lib/Components/BaseApp/Adapters/slideTextAdapter.d.ts +0 -2
- package/lib/Components/BaseApp/Adapters/slideTextAdapter.js +0 -23
- package/lib/Components/BaseApp/Controller/clickContinue.d.ts +0 -2
- package/lib/Components/BaseApp/Controller/clickContinue.js +0 -13
- package/lib/Components/BaseApp/Controller/clickEditSlideText.d.ts +0 -2
- package/lib/Components/BaseApp/Controller/clickEditSlideText.js +0 -13
- package/lib/Components/BaseApp/Controller/index.d.ts +0 -5
- package/lib/Components/BaseApp/Controller/removeRenderCanvas.d.ts +0 -2
- package/lib/Components/BaseApp/Controller/removeRenderCanvas.js +0 -13
- package/lib/Components/BaseApp/Controller/submitRenderCanvas.d.ts +0 -2
- package/lib/Components/BaseApp/Controller/submitRenderCanvas.js +0 -13
- package/lib/Components/BaseApp/Controller/updateContentSize.d.ts +0 -2
- package/lib/Components/BaseApp/Controller/updateContentSize.js +0 -13
- package/lib/Components/BaseApp/Entity/BaseAppState.d.ts +0 -20
- package/lib/Components/BaseApp/Entity/BaseAppState.js +0 -68
- package/lib/Components/BaseApp/Entity/index.d.ts +0 -1
- package/lib/Components/BaseApp/Mocks/IsAuthoringMock.d.ts +0 -8
- package/lib/Components/BaseApp/Mocks/IsAuthoringMock.js +0 -15
- package/lib/Components/BaseApp/Mocks/IsReviewingMock.d.ts +0 -8
- package/lib/Components/BaseApp/Mocks/IsReviewingMock.js +0 -15
- package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.d.ts +0 -10
- package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.js +0 -16
- package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.d.ts +0 -10
- package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.js +0 -16
- package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.d.ts +0 -9
- package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.js +0 -15
- package/lib/Components/BaseApp/Mocks/SlideNavigationMock.d.ts +0 -8
- package/lib/Components/BaseApp/Mocks/SlideNavigationMock.js +0 -15
- package/lib/Components/BaseApp/Mocks/SlideTextMock.d.ts +0 -8
- package/lib/Components/BaseApp/Mocks/SlideTextMock.js +0 -15
- package/lib/Components/BaseApp/Mocks/index.d.ts +0 -7
- package/lib/Components/BaseApp/PM/IsAuthoringPM.d.ts +0 -6
- package/lib/Components/BaseApp/PM/IsAuthoringPM.js +0 -39
- package/lib/Components/BaseApp/PM/IsReviewingPM.d.ts +0 -6
- package/lib/Components/BaseApp/PM/IsReviewingPM.js +0 -39
- package/lib/Components/BaseApp/PM/SlideNavigationPM.d.ts +0 -12
- package/lib/Components/BaseApp/PM/SlideNavigationPM.js +0 -49
- package/lib/Components/BaseApp/PM/SlideTextPM.d.ts +0 -6
- package/lib/Components/BaseApp/PM/SlideTextPM.js +0 -34
- package/lib/Components/BaseApp/PM/index.d.ts +0 -4
- package/lib/Components/BaseApp/UC/AppRenderingUC.d.ts +0 -7
- package/lib/Components/BaseApp/UC/AppRenderingUC.js +0 -9
- package/lib/Components/BaseApp/UC/EditSlideTextUC.d.ts +0 -10
- package/lib/Components/BaseApp/UC/EditSlideTextUC.js +0 -57
- package/lib/Components/BaseApp/UC/RenderCanvasUC.d.ts +0 -10
- package/lib/Components/BaseApp/UC/RenderCanvasUC.js +0 -88
- package/lib/Components/BaseApp/UC/SerializeBaseAppState.d.ts +0 -17
- package/lib/Components/BaseApp/UC/SerializeBaseAppState.js +0 -59
- package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.d.ts +0 -11
- package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.js +0 -43
- package/lib/Components/BaseApp/UC/UpdateContentSizeUC.d.ts +0 -7
- package/lib/Components/BaseApp/UC/UpdateContentSizeUC.js +0 -33
- package/lib/Components/BaseApp/UC/index.d.ts +0 -7
- package/lib/Components/BaseApp/UC/index.js +0 -19
- package/lib/Components/BaseApp/index.d.ts +0 -6
- package/lib/Components/BaseApp/index.js +0 -18
- package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.d.ts +0 -3
- package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.js +0 -23
- package/lib/Components/Callouts/Adapters/calloutListAdapter.d.ts +0 -2
- package/lib/Components/Callouts/Adapters/calloutListAdapter.js +0 -23
- package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.d.ts +0 -3
- package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.js +0 -23
- package/lib/Components/Callouts/Adapters/calloutSizeAdapter.d.ts +0 -2
- package/lib/Components/Callouts/Adapters/calloutSizeAdapter.js +0 -23
- package/lib/Components/Callouts/Adapters/index.d.ts +0 -4
- package/lib/Components/Callouts/Controller/MouseAddCalloutMC.d.ts +0 -13
- package/lib/Components/Callouts/Controller/MouseAddCalloutMC.js +0 -43
- package/lib/Components/Callouts/Controller/MouseCalloutRoll.d.ts +0 -9
- package/lib/Components/Callouts/Controller/MouseCalloutRoll.js +0 -27
- package/lib/Components/Callouts/Controller/TouchAddCalloutTC.d.ts +0 -13
- package/lib/Components/Callouts/Controller/TouchAddCalloutTC.js +0 -47
- package/lib/Components/Callouts/Controller/deleteAllCallouts.d.ts +0 -2
- package/lib/Components/Callouts/Controller/deleteAllCallouts.js +0 -13
- package/lib/Components/Callouts/Controller/deleteCallout.d.ts +0 -2
- package/lib/Components/Callouts/Controller/deleteCallout.js +0 -13
- package/lib/Components/Callouts/Controller/index.d.ts +0 -6
- package/lib/Components/Callouts/Controller/index.js +0 -18
- package/lib/Components/Callouts/Controller/submitCalloutSize.d.ts +0 -2
- package/lib/Components/Callouts/Controller/submitCalloutSize.js +0 -13
- package/lib/Components/Callouts/Controller/updateCalloutSize.d.ts +0 -2
- package/lib/Components/Callouts/Controller/updateCalloutSize.js +0 -13
- package/lib/Components/Callouts/Entities/CalloutEntity.d.ts +0 -51
- package/lib/Components/Callouts/Entities/CalloutEntity.js +0 -141
- package/lib/Components/Callouts/Entities/CalloutGlobals.d.ts +0 -11
- package/lib/Components/Callouts/Entities/CalloutGlobals.js +0 -29
- package/lib/Components/Callouts/Entities/CalloutRepo.d.ts +0 -15
- package/lib/Components/Callouts/Entities/CalloutRepo.js +0 -57
- package/lib/Components/Callouts/Entities/index.d.ts +0 -3
- package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.d.ts +0 -7
- package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.js +0 -11
- package/lib/Components/Callouts/Mocks/CalloutListPmMock.d.ts +0 -7
- package/lib/Components/Callouts/Mocks/CalloutListPmMock.js +0 -11
- package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.d.ts +0 -7
- package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.js +0 -11
- package/lib/Components/Callouts/Mocks/CalloutSizePmMock.d.ts +0 -7
- package/lib/Components/Callouts/Mocks/CalloutSizePmMock.js +0 -11
- package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.d.ts +0 -8
- package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.js +0 -12
- package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.d.ts +0 -7
- package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.js +0 -11
- package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.d.ts +0 -7
- package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.js +0 -11
- package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.d.ts +0 -8
- package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.js +0 -12
- package/lib/Components/Callouts/Mocks/TryAddCalloutMock.d.ts +0 -14
- package/lib/Components/Callouts/Mocks/TryAddCalloutMock.js +0 -21
- package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.d.ts +0 -9
- package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.js +0 -13
- package/lib/Components/Callouts/Mocks/index.d.ts +0 -8
- package/lib/Components/Callouts/Mocks/index.js +0 -20
- package/lib/Components/Callouts/PM/CalloutLinePointsPM.d.ts +0 -7
- package/lib/Components/Callouts/PM/CalloutLinePointsPM.js +0 -97
- package/lib/Components/Callouts/PM/CalloutListPM.d.ts +0 -6
- package/lib/Components/Callouts/PM/CalloutListPM.js +0 -49
- package/lib/Components/Callouts/PM/CalloutOffsetPM.d.ts +0 -7
- package/lib/Components/Callouts/PM/CalloutOffsetPM.js +0 -37
- package/lib/Components/Callouts/PM/CalloutSizePM.d.ts +0 -6
- package/lib/Components/Callouts/PM/CalloutSizePM.js +0 -41
- package/lib/Components/Callouts/PM/index.d.ts +0 -4
- package/lib/Components/Callouts/PM/index.js +0 -16
- package/lib/Components/Callouts/UC/CalloutScaleHook.d.ts +0 -11
- package/lib/Components/Callouts/UC/CalloutScaleHook.js +0 -48
- package/lib/Components/Callouts/UC/CreateCalloutUC.d.ts +0 -11
- package/lib/Components/Callouts/UC/CreateCalloutUC.js +0 -64
- package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.d.ts +0 -10
- package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.js +0 -36
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.d.ts +0 -8
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.js +0 -43
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.d.ts +0 -10
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.js +0 -40
- package/lib/Components/Callouts/UC/DeleteCallout.d.ts +0 -8
- package/lib/Components/Callouts/UC/DeleteCallout.js +0 -38
- package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.d.ts +0 -10
- package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.js +0 -36
- package/lib/Components/Callouts/UC/LookAtCameraUC.d.ts +0 -7
- package/lib/Components/Callouts/UC/LookAtCameraUC.js +0 -104
- package/lib/Components/Callouts/UC/MoveCalloutToCamUC.d.ts +0 -14
- package/lib/Components/Callouts/UC/MoveCalloutToCamUC.js +0 -35
- package/lib/Components/Callouts/UC/SerializeCallouts.d.ts +0 -17
- package/lib/Components/Callouts/UC/SerializeCallouts.js +0 -94
- package/lib/Components/Callouts/UC/SetCalloutSizeUC.d.ts +0 -9
- package/lib/Components/Callouts/UC/SetCalloutSizeUC.js +0 -63
- package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.d.ts +0 -15
- package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.js +0 -28
- package/lib/Components/Callouts/UC/TryAddCallout.d.ts +0 -14
- package/lib/Components/Callouts/UC/TryAddCallout.js +0 -111
- package/lib/Components/Callouts/UC/TryBumpLabelUC.d.ts +0 -9
- package/lib/Components/Callouts/UC/TryBumpLabelUC.js +0 -61
- package/lib/Components/Callouts/UC/TryPanLabelUC.d.ts +0 -3
- package/lib/Components/Callouts/UC/TryPanLabelUC.js +0 -38
- package/lib/Components/Callouts/UC/index.d.ts +0 -13
- package/lib/Components/Callouts/UC/index.js +0 -25
- package/lib/Components/Callouts/index.d.ts +0 -6
- package/lib/Components/Callouts/index.js +0 -18
- package/lib/Components/Camera/Adapters/cameraAdapter.d.ts +0 -3
- package/lib/Components/Camera/Adapters/cameraAdapter.js +0 -19
- package/lib/Components/Camera/Adapters/index.d.ts +0 -1
- package/lib/Components/Camera/Mocks/CameraPmMock.d.ts +0 -8
- package/lib/Components/Camera/Mocks/CameraPmMock.js +0 -15
- package/lib/Components/Camera/Mocks/index.d.ts +0 -1
- package/lib/Components/Challenge/Mocks/ChallengeEntityMock.d.ts +0 -17
- package/lib/Components/Challenge/Mocks/ChallengeEntityMock.js +0 -38
- package/lib/Components/Challenge/Mocks/ChallengeMock.d.ts +0 -11
- package/lib/Components/Challenge/Mocks/ChallengeMock.js +0 -13
- package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.d.ts +0 -2
- package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.js +0 -27
- package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.d.ts +0 -2
- package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.js +0 -27
- package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.d.ts +0 -2
- package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.js +0 -23
- package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.d.ts +0 -7
- package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.js +0 -11
- package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.d.ts +0 -7
- package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.js +0 -11
- package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.d.ts +0 -7
- package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.js +0 -11
- package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.d.ts +0 -6
- package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.js +0 -47
- package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.d.ts +0 -6
- package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.js +0 -58
- package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.d.ts +0 -13
- package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.js +0 -37
- package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.d.ts +0 -7
- package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.js +0 -53
- package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.d.ts +0 -2
- package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.js +0 -19
- package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.d.ts +0 -2
- package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.js +0 -19
- package/lib/Components/ObjectPick/Adapters/index.d.ts +0 -1
- package/lib/Components/ObjectPick/Adapters/objectPickAdapter.d.ts +0 -3
- package/lib/Components/ObjectPick/Adapters/objectPickAdapter.js +0 -19
- package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.d.ts +0 -11
- package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.js +0 -45
- package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.d.ts +0 -9
- package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.js +0 -30
- package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.d.ts +0 -11
- package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.js +0 -42
- package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.d.ts +0 -2
- package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.js +0 -13
- package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.d.ts +0 -2
- package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.js +0 -13
- package/lib/Components/ObjectPick/Controllers/index.d.ts +0 -7
- package/lib/Components/ObjectPick/Controllers/index.js +0 -19
- package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.d.ts +0 -2
- package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.js +0 -13
- package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.d.ts +0 -2
- package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.js +0 -14
- package/lib/Components/ObjectPick/Entities/ObjectPickEntity.d.ts +0 -22
- package/lib/Components/ObjectPick/Entities/ObjectPickEntity.js +0 -82
- package/lib/Components/ObjectPick/Entities/index.d.ts +0 -1
- package/lib/Components/ObjectPick/Entities/index.js +0 -13
- package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.d.ts +0 -8
- package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.js +0 -15
- package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.d.ts +0 -8
- package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.js +0 -15
- package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.d.ts +0 -8
- package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.js +0 -15
- package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.d.ts +0 -8
- package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.js +0 -15
- package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.d.ts +0 -9
- package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.js +0 -16
- package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.d.ts +0 -9
- package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.js +0 -16
- package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.d.ts +0 -8
- package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.js +0 -15
- package/lib/Components/ObjectPick/Mocks/index.d.ts +0 -7
- package/lib/Components/ObjectPick/Mocks/index.js +0 -19
- package/lib/Components/ObjectPick/PM/ObjectPickPM.d.ts +0 -14
- package/lib/Components/ObjectPick/PM/ObjectPickPM.js +0 -72
- package/lib/Components/ObjectPick/PM/index.d.ts +0 -1
- package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.d.ts +0 -7
- package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.js +0 -48
- package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.d.ts +0 -7
- package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.js +0 -55
- package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.d.ts +0 -7
- package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.js +0 -48
- package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.d.ts +0 -16
- package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.js +0 -54
- package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.d.ts +0 -9
- package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.js +0 -83
- package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.d.ts +0 -9
- package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.js +0 -69
- package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.d.ts +0 -10
- package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.js +0 -62
- package/lib/Components/ObjectPick/UseCases/index.d.ts +0 -7
- package/lib/Components/ObjectPick/UseCases/index.js +0 -19
- package/lib/Components/ObjectPick/index.d.ts +0 -6
- package/lib/Components/ObjectPick/index.js +0 -18
- package/lib/Components/Question/UC/registerQuestionChallenge.d.ts +0 -2
- package/lib/Components/Question/UC/registerQuestionChallenge.js +0 -20
- package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.d.ts +0 -13
- package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.js +0 -51
- package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.d.ts +0 -12
- package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.js +0 -53
- package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.d.ts +0 -13
- package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.js +0 -17
- package/lib/Components/Transform3D/UC/TryPanTransformUC.d.ts +0 -27
- package/lib/Components/Transform3D/UC/TryPanTransformUC.js +0 -79
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
-
import { SerializedSystem } from "../../StateMachine";
|
|
3
|
-
export declare class SerializeObjectPick extends AppObjectUC implements SerializedSystem {
|
|
4
|
-
static readonly type = "SerializeObjectPick";
|
|
5
|
-
name: string;
|
|
6
|
-
seriliziationVersion: number;
|
|
7
|
-
private objectPick;
|
|
8
|
-
getSystemState(): object;
|
|
9
|
-
applySystemState(state: object, version: number): void;
|
|
10
|
-
private applyStateV1;
|
|
11
|
-
applyDefaultState(): void;
|
|
12
|
-
constructor(appObject: AppObject);
|
|
13
|
-
}
|
|
14
|
-
export interface SerializedObjectPickV1 {
|
|
15
|
-
correctObjectIds: string[];
|
|
16
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SerializeObjectPick = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const StateMachine_1 = require("../../StateMachine");
|
|
6
|
-
const ObjectPickEntity_1 = require("../Entities/ObjectPickEntity");
|
|
7
|
-
class SerializeObjectPick extends AppObject_1.AppObjectUC {
|
|
8
|
-
constructor(appObject) {
|
|
9
|
-
super(appObject, SerializeObjectPick.type);
|
|
10
|
-
this.name = "object-pick";
|
|
11
|
-
this.seriliziationVersion = 1;
|
|
12
|
-
const objectPick = ObjectPickEntity_1.ObjectPickEntity.get(this.appObjects);
|
|
13
|
-
if (!objectPick) {
|
|
14
|
-
throw new Error("[SerializeObjectPick] App Object does not have a Object Pick Entity. Add one");
|
|
15
|
-
}
|
|
16
|
-
this.objectPick = objectPick;
|
|
17
|
-
const stateMachine = StateMachine_1.StateMachineEntity.get(appObject.appObjectRepo);
|
|
18
|
-
if (stateMachine) {
|
|
19
|
-
stateMachine.registerSerializedSystem(this);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.warn("Unable to find StateMachineEntity");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
getSystemState() {
|
|
26
|
-
const state = {
|
|
27
|
-
correctObjectIds: this.objectPick.correctObjectIds,
|
|
28
|
-
};
|
|
29
|
-
return state;
|
|
30
|
-
}
|
|
31
|
-
applySystemState(state, version) {
|
|
32
|
-
if (version === 1) {
|
|
33
|
-
this.applyStateV1(state);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this.applyDefaultState();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
applyStateV1(state) {
|
|
40
|
-
if (state.correctObjectIds === undefined) {
|
|
41
|
-
this.applyDefaultState();
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
this.objectPick.clearCorrectObjectIds();
|
|
45
|
-
state.correctObjectIds.forEach((id) => {
|
|
46
|
-
this.objectPick.addCorrectObjectId(id);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
applyDefaultState() {
|
|
50
|
-
this.objectPick.clearCorrectObjectIds();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.SerializeObjectPick = SerializeObjectPick;
|
|
54
|
-
SerializeObjectPick.type = "SerializeObjectPick";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
-
import { ParametricLine, Vector2 } from "../../../ValueObjects";
|
|
3
|
-
export declare abstract class TrySelectObjectPickUC extends AppObjectUC {
|
|
4
|
-
static readonly type = "TrySelectObjectPickUC";
|
|
5
|
-
abstract tryWithRay(ray: ParametricLine): void;
|
|
6
|
-
abstract tryWithPixel(pixel: Vector2): void;
|
|
7
|
-
static get(appObjects: AppObjectRepo): TrySelectObjectPickUC | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare function makeTrySelectObjectPickUC(appObject: AppObject): TrySelectObjectPickUC;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeTrySelectObjectPickUC = exports.TrySelectObjectPickUC = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const BaseAppState_1 = require("../../BaseApp/Entity/BaseAppState");
|
|
6
|
-
const UC_1 = require("../../Babylon/UC");
|
|
7
|
-
const ChallengeEntity_1 = require("../../Challenge/Entities/ChallengeEntity");
|
|
8
|
-
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
9
|
-
const UndoRedo_1 = require("../../UndoRedo");
|
|
10
|
-
const ObjectPickEntity_1 = require("../Entities/ObjectPickEntity");
|
|
11
|
-
class TrySelectObjectPickUC extends AppObject_1.AppObjectUC {
|
|
12
|
-
static get(appObjects) {
|
|
13
|
-
return AppObject_1.getSingletonComponent(TrySelectObjectPickUC.type, appObjects);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.TrySelectObjectPickUC = TrySelectObjectPickUC;
|
|
17
|
-
TrySelectObjectPickUC.type = "TrySelectObjectPickUC";
|
|
18
|
-
function makeTrySelectObjectPickUC(appObject) {
|
|
19
|
-
return new TrySelectObjectPickUCImp(appObject);
|
|
20
|
-
}
|
|
21
|
-
exports.makeTrySelectObjectPickUC = makeTrySelectObjectPickUC;
|
|
22
|
-
class TrySelectObjectPickUCImp extends TrySelectObjectPickUC {
|
|
23
|
-
constructor(appObject) {
|
|
24
|
-
super(appObject, TrySelectObjectPickUC.type);
|
|
25
|
-
this.tryWithPixel = (pixel) => {
|
|
26
|
-
if (!this.pixelToRay) {
|
|
27
|
-
this.error("Missing component");
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const ray = this.pixelToRay(pixel);
|
|
31
|
-
return this.tryWithRay(ray);
|
|
32
|
-
};
|
|
33
|
-
this.tryWithRay = (ray) => {
|
|
34
|
-
var _a, _b, _c, _d;
|
|
35
|
-
if (!this.baseApp)
|
|
36
|
-
return;
|
|
37
|
-
if (!this.objectPick)
|
|
38
|
-
return;
|
|
39
|
-
if (!this.baseApp.isAuthoring) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (!this.objectPick.isSelectingCorrectObjects) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (((_a = this.challenge) === null || _a === void 0 ? void 0 : _a.selectedChallenge) !== this.objectPick.challengeID) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const appObjectID = (_c = (_b = UC_1.SceneRayPickUC.get(this.appObjects)) === null || _b === void 0 ? void 0 : _b.sceneRayPick(ray)) === null || _c === void 0 ? void 0 : _c.appObjectID;
|
|
49
|
-
if (!appObjectID) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.objectPick.addCorrectObjectId(appObjectID);
|
|
53
|
-
DispatchStateChangeUC_1.dispatchStateChange(this.appObjects);
|
|
54
|
-
const objectPick = this.objectPick;
|
|
55
|
-
(_d = this.undo) === null || _d === void 0 ? void 0 : _d.submitAction({
|
|
56
|
-
redoAction: () => {
|
|
57
|
-
objectPick.addCorrectObjectId(appObjectID);
|
|
58
|
-
DispatchStateChangeUC_1.dispatchStateChange(this.appObjects);
|
|
59
|
-
},
|
|
60
|
-
undoAction: () => {
|
|
61
|
-
objectPick.removeCorrectObjectId(appObjectID);
|
|
62
|
-
DispatchStateChangeUC_1.dispatchStateChange(this.appObjects);
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
get baseApp() {
|
|
68
|
-
return this.getCachedSingleton(BaseAppState_1.BaseAppState.type);
|
|
69
|
-
}
|
|
70
|
-
get challenge() {
|
|
71
|
-
return this.getCachedSingleton(ChallengeEntity_1.ChallengeEntity.type);
|
|
72
|
-
}
|
|
73
|
-
get objectPick() {
|
|
74
|
-
return this.getCachedSingleton(ObjectPickEntity_1.ObjectPickEntity.type);
|
|
75
|
-
}
|
|
76
|
-
get pixelToRay() {
|
|
77
|
-
var _a;
|
|
78
|
-
return (_a = this.getCachedSingleton(UC_1.PixelToSceneRayUC.type)) === null || _a === void 0 ? void 0 : _a.pixelToSceneRay;
|
|
79
|
-
}
|
|
80
|
-
get undo() {
|
|
81
|
-
return this.getCachedSingleton(UndoRedo_1.UndoRedoEntity.type);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
-
import { ParametricLine, Vector2 } from "../../../ValueObjects";
|
|
3
|
-
export declare abstract class TrySubmitObjectPickUC extends AppObjectUC {
|
|
4
|
-
static readonly type = "TrySubmitObjectPickUC";
|
|
5
|
-
abstract tryWithRay(ray: ParametricLine): void;
|
|
6
|
-
abstract tryWithPixel(pixel: Vector2): void;
|
|
7
|
-
static get(appObjects: AppObjectRepo): TrySubmitObjectPickUC | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare function makeTrySubmitObjectPickUC(appObject: AppObject): TrySubmitObjectPickUC;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeTrySubmitObjectPickUC = exports.TrySubmitObjectPickUC = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const BaseAppState_1 = require("../../BaseApp/Entity/BaseAppState");
|
|
6
|
-
const UC_1 = require("../../Babylon/UC");
|
|
7
|
-
const ChallengeEntity_1 = require("../../Challenge/Entities/ChallengeEntity");
|
|
8
|
-
const SubmitResultResultUC_1 = require("../../Dispatcher/UC/SubmitResultResultUC");
|
|
9
|
-
const ObjectPickEntity_1 = require("../Entities/ObjectPickEntity");
|
|
10
|
-
class TrySubmitObjectPickUC extends AppObject_1.AppObjectUC {
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
return AppObject_1.getSingletonComponent(TrySubmitObjectPickUC.type, appObjects);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.TrySubmitObjectPickUC = TrySubmitObjectPickUC;
|
|
16
|
-
TrySubmitObjectPickUC.type = "TrySubmitObjectPickUC";
|
|
17
|
-
function makeTrySubmitObjectPickUC(appObject) {
|
|
18
|
-
return new TrySubmitObjectPickUCImp(appObject);
|
|
19
|
-
}
|
|
20
|
-
exports.makeTrySubmitObjectPickUC = makeTrySubmitObjectPickUC;
|
|
21
|
-
class TrySubmitObjectPickUCImp extends TrySubmitObjectPickUC {
|
|
22
|
-
constructor(appObject) {
|
|
23
|
-
super(appObject, TrySubmitObjectPickUC.type);
|
|
24
|
-
this.tryWithPixel = (pixel) => {
|
|
25
|
-
if (!this.pixelToRay) {
|
|
26
|
-
this.error("Missing component");
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const ray = this.pixelToRay(pixel);
|
|
30
|
-
return this.tryWithRay(ray);
|
|
31
|
-
};
|
|
32
|
-
this.tryWithRay = (ray) => {
|
|
33
|
-
var _a, _b;
|
|
34
|
-
if (!this.baseApp || !this.challenge || !this.objectPick)
|
|
35
|
-
return;
|
|
36
|
-
if (this.baseApp.isAuthoring)
|
|
37
|
-
return;
|
|
38
|
-
if (this.baseApp.isReviewing)
|
|
39
|
-
return;
|
|
40
|
-
if (this.challenge.selectedChallenge !== "OBJECT_PICK")
|
|
41
|
-
return;
|
|
42
|
-
const sceneObjectId = (_b = (_a = UC_1.SceneRayPickUC.get(this.appObjects)) === null || _a === void 0 ? void 0 : _a.sceneRayPick(ray)) === null || _b === void 0 ? void 0 : _b.appObjectID;
|
|
43
|
-
if (!sceneObjectId) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
this.objectPick.submit(sceneObjectId);
|
|
47
|
-
const result = {
|
|
48
|
-
description: this.baseApp.slideText,
|
|
49
|
-
success: this.objectPick.hasSubmitted,
|
|
50
|
-
};
|
|
51
|
-
SubmitResultResultUC_1.submitHitResult(result, this.appObjects);
|
|
52
|
-
this.baseApp.isReviewing = true;
|
|
53
|
-
};
|
|
54
|
-
this.appObjects.registerSingleton(this);
|
|
55
|
-
}
|
|
56
|
-
get baseApp() {
|
|
57
|
-
return this.getCachedSingleton(BaseAppState_1.BaseAppState.type);
|
|
58
|
-
}
|
|
59
|
-
get challenge() {
|
|
60
|
-
return this.getCachedSingleton(ChallengeEntity_1.ChallengeEntity.type);
|
|
61
|
-
}
|
|
62
|
-
get objectPick() {
|
|
63
|
-
return this.getCachedSingleton(ObjectPickEntity_1.ObjectPickEntity.type);
|
|
64
|
-
}
|
|
65
|
-
get pixelToRay() {
|
|
66
|
-
var _a;
|
|
67
|
-
return (_a = this.getCachedSingleton(UC_1.PixelToSceneRayUC.type)) === null || _a === void 0 ? void 0 : _a.pixelToSceneRay;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
-
export declare abstract class ValidateObjectPickUC extends AppObjectUC {
|
|
3
|
-
static readonly type = "ValidateObjectPickUC";
|
|
4
|
-
abstract validateObjectPick(): string | null;
|
|
5
|
-
static get(appObjects: AppObjectRepo): ValidateObjectPickUC | undefined;
|
|
6
|
-
OBJECT_PICK_CHALLENGE_NO_SLIDE_TEXT: string;
|
|
7
|
-
OBJECT_PICK_ENTITY_SHOULD_HAVE_AT_LEAST_ONE_ID: string;
|
|
8
|
-
OBJECT_PICK_ENTITY_SHOULD_HAVE_AT_LEAST_ONE_VISIBLE_OBJECT: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeValidateObjectPickUC(appObject: AppObject): ValidateObjectPickUC;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeValidateObjectPickUC = exports.ValidateObjectPickUC = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const BaseApp_1 = require("../../BaseApp");
|
|
6
|
-
const Hideable_1 = require("../../Hideable");
|
|
7
|
-
const ObjectPickEntity_1 = require("../Entities/ObjectPickEntity");
|
|
8
|
-
class ValidateObjectPickUC extends AppObject_1.AppObjectUC {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.OBJECT_PICK_CHALLENGE_NO_SLIDE_TEXT = "A question in the slide text is required.";
|
|
12
|
-
this.OBJECT_PICK_ENTITY_SHOULD_HAVE_AT_LEAST_ONE_ID = "Object Pick Entity should have at least one ID.";
|
|
13
|
-
this.OBJECT_PICK_ENTITY_SHOULD_HAVE_AT_LEAST_ONE_VISIBLE_OBJECT = "Object Pick Entity should have at least one visible object ID.";
|
|
14
|
-
}
|
|
15
|
-
static get(appObjects) {
|
|
16
|
-
return AppObject_1.getSingletonComponent(ValidateObjectPickUC.type, appObjects);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.ValidateObjectPickUC = ValidateObjectPickUC;
|
|
20
|
-
ValidateObjectPickUC.type = "ValidateObjectPickUC";
|
|
21
|
-
function makeValidateObjectPickUC(appObject) {
|
|
22
|
-
return new ValidateObjectPickUCImp(appObject);
|
|
23
|
-
}
|
|
24
|
-
exports.makeValidateObjectPickUC = makeValidateObjectPickUC;
|
|
25
|
-
class ValidateObjectPickUCImp extends ValidateObjectPickUC {
|
|
26
|
-
constructor(appObject) {
|
|
27
|
-
super(appObject, ValidateObjectPickUC.type);
|
|
28
|
-
this.validateObjectPick = () => {
|
|
29
|
-
if (!this.baseApp || !this.objectPick)
|
|
30
|
-
return null;
|
|
31
|
-
if (!this.baseApp.slideText) {
|
|
32
|
-
return this.OBJECT_PICK_CHALLENGE_NO_SLIDE_TEXT;
|
|
33
|
-
}
|
|
34
|
-
if (this.objectPick.correctObjectIds.length < 1) {
|
|
35
|
-
return this.OBJECT_PICK_ENTITY_SHOULD_HAVE_AT_LEAST_ONE_ID;
|
|
36
|
-
}
|
|
37
|
-
if (this.objectPick.correctObjectIds.length > 0) {
|
|
38
|
-
let objectsShown = false;
|
|
39
|
-
this.objectPick.correctObjectIds.forEach((id) => {
|
|
40
|
-
const hideable = this.appObjects.getAppObjectComponent(id, Hideable_1.Hideable.type);
|
|
41
|
-
if (!hideable) {
|
|
42
|
-
objectsShown = true;
|
|
43
|
-
}
|
|
44
|
-
else if (!hideable.isHidden) {
|
|
45
|
-
objectsShown = true;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
if (!objectsShown) {
|
|
49
|
-
return this.OBJECT_PICK_ENTITY_SHOULD_HAVE_AT_LEAST_ONE_VISIBLE_OBJECT;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
};
|
|
54
|
-
this.appObjects.registerSingleton(this);
|
|
55
|
-
}
|
|
56
|
-
get baseApp() {
|
|
57
|
-
return this.getCachedSingleton(BaseApp_1.BaseAppState.type);
|
|
58
|
-
}
|
|
59
|
-
get objectPick() {
|
|
60
|
-
return this.getCachedSingleton(ObjectPickEntity_1.ObjectPickEntity.type);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./AddCorrectObjectIdUC";
|
|
2
|
-
export * from "./ClearCorrectObjectIdsUC";
|
|
3
|
-
export * from "./RemoveCorrectObjectIdUC";
|
|
4
|
-
export * from "./SerializeObjectPick";
|
|
5
|
-
export * from "./TrySelectObjectPickUC";
|
|
6
|
-
export * from "./TrySubmitObjectPickUC";
|
|
7
|
-
export * from "./ValidateObjectPickUC";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./AddCorrectObjectIdUC"), exports);
|
|
14
|
-
__exportStar(require("./ClearCorrectObjectIdsUC"), exports);
|
|
15
|
-
__exportStar(require("./RemoveCorrectObjectIdUC"), exports);
|
|
16
|
-
__exportStar(require("./SerializeObjectPick"), exports);
|
|
17
|
-
__exportStar(require("./TrySelectObjectPickUC"), exports);
|
|
18
|
-
__exportStar(require("./TrySubmitObjectPickUC"), exports);
|
|
19
|
-
__exportStar(require("./ValidateObjectPickUC"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./Adapters"), exports);
|
|
14
|
-
__exportStar(require("./Controllers"), exports);
|
|
15
|
-
__exportStar(require("./Entities"), exports);
|
|
16
|
-
__exportStar(require("./Mocks"), exports);
|
|
17
|
-
__exportStar(require("./PM"), exports);
|
|
18
|
-
__exportStar(require("./UseCases"), exports);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerQuestionChallenge = void 0;
|
|
4
|
-
const ChallengeEntity_1 = require("../../Challenge/Entities/ChallengeEntity");
|
|
5
|
-
function registerQuestionChallenge(appObjects) {
|
|
6
|
-
const entity = ChallengeEntity_1.ChallengeEntity.get(appObjects);
|
|
7
|
-
if (!entity) {
|
|
8
|
-
appObjects.submitError("registerQuestionChallenge", "Unable to find ChallengeEntity");
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
const challengeDetails = {
|
|
12
|
-
authorHelpText: "Challenge the user to answer a multiple choice question.",
|
|
13
|
-
consumerHelpText: "You are being challenged to answer a question. Read the question and select the answer you think is correct.",
|
|
14
|
-
helpHeading: "Question Challenge Help",
|
|
15
|
-
id: "QUESTION",
|
|
16
|
-
name: "Question",
|
|
17
|
-
};
|
|
18
|
-
entity === null || entity === void 0 ? void 0 : entity.registerChallenge(challengeDetails);
|
|
19
|
-
}
|
|
20
|
-
exports.registerQuestionChallenge = registerQuestionChallenge;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectController } from "../../../../AppObject";
|
|
2
|
-
import { MouseController, MouseInputEvent } from "../../../MouseInput";
|
|
3
|
-
export declare class TryMousePanTransformMC extends AppObjectController implements MouseController {
|
|
4
|
-
static readonly type = "TryMousePanTransformMC";
|
|
5
|
-
allow: (e: MouseInputEvent) => boolean;
|
|
6
|
-
private get mouseInput();
|
|
7
|
-
private get tryScreenDragUC();
|
|
8
|
-
private isDragging;
|
|
9
|
-
onDown: (e: MouseInputEvent) => void;
|
|
10
|
-
onMove: (e: MouseInputEvent) => void;
|
|
11
|
-
onUp: () => void;
|
|
12
|
-
constructor(appObject: AppObject);
|
|
13
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TryMousePanTransformMC = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../../AppObject");
|
|
5
|
-
const MouseInput_1 = require("../../../MouseInput");
|
|
6
|
-
const TryPanTransformUC_1 = require("../../UC/TryPanTransformUC");
|
|
7
|
-
class TryMousePanTransformMC extends AppObject_1.AppObjectController {
|
|
8
|
-
constructor(appObject) {
|
|
9
|
-
var _a;
|
|
10
|
-
super(appObject, TryMousePanTransformMC.type);
|
|
11
|
-
this.allow = (e) => {
|
|
12
|
-
if (e.button !== 0)
|
|
13
|
-
return false;
|
|
14
|
-
return true;
|
|
15
|
-
};
|
|
16
|
-
this.isDragging = false;
|
|
17
|
-
this.onDown = (e) => {
|
|
18
|
-
var _a, _b, _c;
|
|
19
|
-
if (this.isDragging) {
|
|
20
|
-
(_a = this.tryScreenDragUC) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
21
|
-
this.isDragging = false;
|
|
22
|
-
}
|
|
23
|
-
if (!this.allow(e)) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
this.isDragging = (_c = (_b = this.tryScreenDragUC) === null || _b === void 0 ? void 0 : _b.tryWithPixel(e.position)) !== null && _c !== void 0 ? _c : false;
|
|
27
|
-
};
|
|
28
|
-
this.onMove = (e) => {
|
|
29
|
-
var _a;
|
|
30
|
-
if (!this.isDragging)
|
|
31
|
-
return;
|
|
32
|
-
(_a = this.tryScreenDragUC) === null || _a === void 0 ? void 0 : _a.moveWithPixel(e.position);
|
|
33
|
-
};
|
|
34
|
-
this.onUp = () => {
|
|
35
|
-
var _a;
|
|
36
|
-
if (!this.isDragging)
|
|
37
|
-
return;
|
|
38
|
-
(_a = this.tryScreenDragUC) === null || _a === void 0 ? void 0 : _a.stop();
|
|
39
|
-
this.isDragging = false;
|
|
40
|
-
};
|
|
41
|
-
(_a = this.mouseInput) === null || _a === void 0 ? void 0 : _a.registerController(this);
|
|
42
|
-
}
|
|
43
|
-
get mouseInput() {
|
|
44
|
-
return this.getCachedSingleton(MouseInput_1.MouseInputEntity.type);
|
|
45
|
-
}
|
|
46
|
-
get tryScreenDragUC() {
|
|
47
|
-
return this.getCachedLocalComponent(TryPanTransformUC_1.TryPanTransformUC.type);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.TryMousePanTransformMC = TryMousePanTransformMC;
|
|
51
|
-
TryMousePanTransformMC.type = "TryMousePanTransformMC";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectController } from "../../../../AppObject";
|
|
2
|
-
import { TouchController, TouchInputEvent } from "../../../TouchController";
|
|
3
|
-
export declare class TryTouchPanTransformTC extends AppObjectController implements TouchController {
|
|
4
|
-
static readonly type = "TryTouchPanTransformTC";
|
|
5
|
-
allow: (e: TouchInputEvent) => boolean;
|
|
6
|
-
private get tryScreenDragUC();
|
|
7
|
-
private isDragging;
|
|
8
|
-
onTouchStart: (e: TouchInputEvent) => void;
|
|
9
|
-
onTouchMove: (e: TouchInputEvent) => void;
|
|
10
|
-
onTouchEnd: () => void;
|
|
11
|
-
constructor(appObject: AppObject);
|
|
12
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TryTouchPanTransformTC = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../../AppObject");
|
|
5
|
-
const TouchController_1 = require("../../../TouchController");
|
|
6
|
-
const TryPanTransformUC_1 = require("../../UC/TryPanTransformUC");
|
|
7
|
-
class TryTouchPanTransformTC extends AppObject_1.AppObjectController {
|
|
8
|
-
constructor(appObject) {
|
|
9
|
-
super(appObject, TryTouchPanTransformTC.type);
|
|
10
|
-
this.allow = (e) => {
|
|
11
|
-
if (e.touches.length !== 1)
|
|
12
|
-
return false;
|
|
13
|
-
return true;
|
|
14
|
-
};
|
|
15
|
-
this.isDragging = false;
|
|
16
|
-
this.onTouchStart = (e) => {
|
|
17
|
-
var _a;
|
|
18
|
-
if (this.isDragging) {
|
|
19
|
-
(_a = this.tryScreenDragUC) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
20
|
-
this.isDragging = false;
|
|
21
|
-
}
|
|
22
|
-
if (!this.tryScreenDragUC)
|
|
23
|
-
return;
|
|
24
|
-
if (!this.allow(e))
|
|
25
|
-
return;
|
|
26
|
-
const position = e.touches[0].position;
|
|
27
|
-
this.isDragging = this.tryScreenDragUC.tryWithPixel(position);
|
|
28
|
-
};
|
|
29
|
-
this.onTouchMove = (e) => {
|
|
30
|
-
if (!this.tryScreenDragUC)
|
|
31
|
-
return;
|
|
32
|
-
if (!this.isDragging)
|
|
33
|
-
return;
|
|
34
|
-
const position = e.touches[0].position;
|
|
35
|
-
this.tryScreenDragUC.moveWithPixel(position);
|
|
36
|
-
};
|
|
37
|
-
this.onTouchEnd = () => {
|
|
38
|
-
if (!this.tryScreenDragUC)
|
|
39
|
-
return;
|
|
40
|
-
if (!this.isDragging)
|
|
41
|
-
return;
|
|
42
|
-
this.tryScreenDragUC.stop();
|
|
43
|
-
this.isDragging = false;
|
|
44
|
-
};
|
|
45
|
-
const touchInput = TouchController_1.TouchInputEntity.get(this.appObjects);
|
|
46
|
-
touchInput === null || touchInput === void 0 ? void 0 : touchInput.registerController(this);
|
|
47
|
-
}
|
|
48
|
-
get tryScreenDragUC() {
|
|
49
|
-
return this.getCachedLocalComponent(TryPanTransformUC_1.TryPanTransformUC.type);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.TryTouchPanTransformTC = TryTouchPanTransformTC;
|
|
53
|
-
TryTouchPanTransformTC.type = "TryTouchPanTransformTC";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
|
-
import { AppObject } from "../../../AppObject";
|
|
3
|
-
import { TryPanTransformUC } from "../UC/TryPanTransformUC";
|
|
4
|
-
export declare class TryPanTransformUcMock extends TryPanTransformUC {
|
|
5
|
-
allow: jest.Mock<any, any>;
|
|
6
|
-
tryWithRay: jest.Mock<any, any>;
|
|
7
|
-
moveWithRay: jest.Mock<any, any>;
|
|
8
|
-
tryWithPixel: jest.Mock<any, any>;
|
|
9
|
-
moveWithPixel: jest.Mock<any, any>;
|
|
10
|
-
stop: jest.Mock<any, any>;
|
|
11
|
-
cancel: jest.Mock<any, any>;
|
|
12
|
-
constructor(appObject: AppObject);
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TryPanTransformUcMock = void 0;
|
|
4
|
-
const TryPanTransformUC_1 = require("../UC/TryPanTransformUC");
|
|
5
|
-
class TryPanTransformUcMock extends TryPanTransformUC_1.TryPanTransformUC {
|
|
6
|
-
constructor(appObject) {
|
|
7
|
-
super(appObject, TryPanTransformUC_1.TryPanTransformUC.type);
|
|
8
|
-
this.allow = jest.fn();
|
|
9
|
-
this.tryWithRay = jest.fn();
|
|
10
|
-
this.moveWithRay = jest.fn();
|
|
11
|
-
this.tryWithPixel = jest.fn();
|
|
12
|
-
this.moveWithPixel = jest.fn();
|
|
13
|
-
this.stop = jest.fn();
|
|
14
|
-
this.cancel = jest.fn();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.TryPanTransformUcMock = TryPanTransformUcMock;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
-
import { ParametricLine, Vector2 } from "../../../ValueObjects";
|
|
3
|
-
import { PanTransformUC } from "./PanTransformUC";
|
|
4
|
-
export declare abstract class TryPanTransformUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "TryPanTransformUC";
|
|
6
|
-
abstract allow(): boolean;
|
|
7
|
-
abstract tryWithRay(ray: ParametricLine): boolean;
|
|
8
|
-
abstract moveWithRay(ray: ParametricLine): void;
|
|
9
|
-
abstract tryWithPixel(pixel: Vector2): boolean;
|
|
10
|
-
abstract moveWithPixel(pixel: Vector2): void;
|
|
11
|
-
abstract stop(): void;
|
|
12
|
-
abstract cancel(): void;
|
|
13
|
-
}
|
|
14
|
-
export declare function makeTryPanTransformUC(appObject: AppObject): TryPanTransformUC;
|
|
15
|
-
export declare class TryPanTransformUCImp extends TryPanTransformUC {
|
|
16
|
-
protected panUC?: PanTransformUC;
|
|
17
|
-
private get pixelToRay();
|
|
18
|
-
private get rayPickUC();
|
|
19
|
-
allow: () => boolean;
|
|
20
|
-
tryWithPixel: (pixel: Vector2) => boolean;
|
|
21
|
-
moveWithPixel: (pixel: Vector2) => void;
|
|
22
|
-
tryWithRay: (pickRay: ParametricLine) => boolean;
|
|
23
|
-
moveWithRay: (pickRay: ParametricLine) => void;
|
|
24
|
-
stop: () => void;
|
|
25
|
-
cancel: () => void;
|
|
26
|
-
constructor(appObject: AppObject);
|
|
27
|
-
}
|