@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AppObject, AppObjectEntity } from "../../../AppObject";
|
|
2
|
+
import { Color } from "../../../ValueObjects";
|
|
3
|
+
export declare enum OverlayColorEmums {
|
|
4
|
+
GREEN = "Green",
|
|
5
|
+
PINK = "Pink",
|
|
6
|
+
YELLOW = "Yellow",
|
|
7
|
+
RED = "Red",
|
|
8
|
+
BLUE = "Blue",
|
|
9
|
+
WHITE = "White",
|
|
10
|
+
PURPLE = "Purple",
|
|
11
|
+
BLACK = "Black",
|
|
12
|
+
ORANGE = "Orange",
|
|
13
|
+
NONE = "None"
|
|
14
|
+
}
|
|
15
|
+
export declare class OverlayColor extends AppObjectEntity {
|
|
16
|
+
static readonly type = "OVERLAY_COLOR";
|
|
17
|
+
static enumToColorLookup: Map<OverlayColorEmums, Color>;
|
|
18
|
+
static overlayColorEnumToColor(colorEnum: OverlayColorEmums): Color | undefined;
|
|
19
|
+
static addIfMissing(appObj: AppObject): OverlayColor;
|
|
20
|
+
static get(appObj: AppObject): OverlayColor | undefined;
|
|
21
|
+
private memoizedColor;
|
|
22
|
+
get overlayColor(): OverlayColorEmums;
|
|
23
|
+
set overlayColor(val: OverlayColorEmums);
|
|
24
|
+
constructor(appObject: AppObject);
|
|
25
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OverlayColor = exports.OverlayColorEmums = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const Entities_1 = require("../../../Entities");
|
|
6
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
7
|
+
var OverlayColorEmums;
|
|
8
|
+
(function (OverlayColorEmums) {
|
|
9
|
+
OverlayColorEmums["GREEN"] = "Green";
|
|
10
|
+
OverlayColorEmums["PINK"] = "Pink";
|
|
11
|
+
OverlayColorEmums["YELLOW"] = "Yellow";
|
|
12
|
+
OverlayColorEmums["RED"] = "Red";
|
|
13
|
+
OverlayColorEmums["BLUE"] = "Blue";
|
|
14
|
+
OverlayColorEmums["WHITE"] = "White";
|
|
15
|
+
OverlayColorEmums["PURPLE"] = "Purple";
|
|
16
|
+
OverlayColorEmums["BLACK"] = "Black";
|
|
17
|
+
OverlayColorEmums["ORANGE"] = "Orange";
|
|
18
|
+
OverlayColorEmums["NONE"] = "None";
|
|
19
|
+
})(OverlayColorEmums = exports.OverlayColorEmums || (exports.OverlayColorEmums = {}));
|
|
20
|
+
class OverlayColor extends AppObject_1.AppObjectEntity {
|
|
21
|
+
constructor(appObject) {
|
|
22
|
+
super(appObject, OverlayColor.type);
|
|
23
|
+
this.memoizedColor = new Entities_1.MemoizedString(OverlayColorEmums.NONE, this.notifyOnChange);
|
|
24
|
+
}
|
|
25
|
+
static overlayColorEnumToColor(colorEnum) {
|
|
26
|
+
return this.enumToColorLookup.get(colorEnum);
|
|
27
|
+
}
|
|
28
|
+
static addIfMissing(appObj) {
|
|
29
|
+
const existing = appObj.getComponent(this.type);
|
|
30
|
+
if (existing) {
|
|
31
|
+
return existing;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return new OverlayColor(appObj);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
static get(appObj) {
|
|
38
|
+
return appObj.getComponent(this.type);
|
|
39
|
+
}
|
|
40
|
+
get overlayColor() {
|
|
41
|
+
return this.memoizedColor.val;
|
|
42
|
+
}
|
|
43
|
+
set overlayColor(val) {
|
|
44
|
+
this.memoizedColor.val = val;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.OverlayColor = OverlayColor;
|
|
48
|
+
OverlayColor.type = "OVERLAY_COLOR";
|
|
49
|
+
OverlayColor.enumToColorLookup = new Map([
|
|
50
|
+
[OverlayColorEmums.GREEN, ValueObjects_1.Color.Hex("#008000")],
|
|
51
|
+
[OverlayColorEmums.PINK, ValueObjects_1.Color.Hex("#FFC0CB")],
|
|
52
|
+
[OverlayColorEmums.YELLOW, ValueObjects_1.Color.Hex("#FFFF00")],
|
|
53
|
+
[OverlayColorEmums.RED, ValueObjects_1.Color.Hex("#FF0000")],
|
|
54
|
+
[OverlayColorEmums.BLUE, ValueObjects_1.Color.Hex("#0000FF")],
|
|
55
|
+
[OverlayColorEmums.WHITE, ValueObjects_1.Color.Hex("#FFFFFF")],
|
|
56
|
+
[OverlayColorEmums.PURPLE, ValueObjects_1.Color.Hex("#800080")],
|
|
57
|
+
[OverlayColorEmums.BLACK, ValueObjects_1.Color.Hex("#000000")],
|
|
58
|
+
[OverlayColorEmums.ORANGE, ValueObjects_1.Color.Hex("#FFA500")]
|
|
59
|
+
]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectPM } from "../../../AppObject/AppObjectPM";
|
|
3
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
4
|
+
import { OverlayColorEmums } from "../Entities/OverlayColor";
|
|
5
|
+
export declare class OverlayColorPM extends AppObjectPM<OverlayColorEmums> {
|
|
6
|
+
static readonly type = "OverlayColorPM";
|
|
7
|
+
private overlayColor?;
|
|
8
|
+
onColorChange: () => void;
|
|
9
|
+
vmsAreEqual(a: OverlayColorEmums, b: OverlayColorEmums): boolean;
|
|
10
|
+
dispose: () => void;
|
|
11
|
+
constructor(appObject: AppObject);
|
|
12
|
+
static getForID(appObjID: string, appObjects: AppObjectRepo): OverlayColorPM | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OverlayColorPM = void 0;
|
|
4
|
+
const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
|
|
5
|
+
const OverlayColor_1 = require("../Entities/OverlayColor");
|
|
6
|
+
class OverlayColorPM extends AppObjectPM_1.AppObjectPM {
|
|
7
|
+
constructor(appObject) {
|
|
8
|
+
super(appObject, OverlayColorPM.type);
|
|
9
|
+
this.onColorChange = () => {
|
|
10
|
+
if (!this.overlayColor)
|
|
11
|
+
return;
|
|
12
|
+
this.doUpdateView(this.overlayColor.overlayColor);
|
|
13
|
+
};
|
|
14
|
+
this.dispose = () => {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
super.dispose();
|
|
17
|
+
(_a = this.overlayColor) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onColorChange);
|
|
18
|
+
(_b = this.overlayColor) === null || _b === void 0 ? void 0 : _b.removeOnDisposeObserver(this.dispose);
|
|
19
|
+
};
|
|
20
|
+
this.overlayColor = OverlayColor_1.OverlayColor.get(appObject);
|
|
21
|
+
if (!this.overlayColor) {
|
|
22
|
+
console.warn("[OverlayColorPM] Unable to find OverlayColor Entity");
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this.overlayColor.addChangeObserver(this.onColorChange);
|
|
27
|
+
this.overlayColor.addOnDisposeObserver(this.dispose);
|
|
28
|
+
this.onColorChange();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
vmsAreEqual(a, b) {
|
|
32
|
+
return a === b;
|
|
33
|
+
}
|
|
34
|
+
static getForID(appObjID, appObjects) {
|
|
35
|
+
const appObj = appObjects.get(appObjID);
|
|
36
|
+
if (appObj === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
return appObj.getComponent(OverlayColorPM.type);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.OverlayColorPM = OverlayColorPM;
|
|
43
|
+
OverlayColorPM.type = "OverlayColorPM";
|
|
@@ -0,0 +1,14 @@
|
|
|
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("./Entities/OverlayColor"), exports);
|
|
14
|
+
__exportStar(require("./PresentationManagers/OverlayColorPM"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectEntity } from "../../../AppObject/AppObjectEntity";
|
|
3
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
4
|
+
import { EaseFn } from "../../../Types";
|
|
5
|
+
import { Quaternion, Vector3 } from "../../../ValueObjects";
|
|
6
|
+
import { Transform3D } from "../../Transform3D";
|
|
7
|
+
export interface DefaultSceneRootData {
|
|
8
|
+
position: [number, number, number];
|
|
9
|
+
rotation: [number, number, number, number];
|
|
10
|
+
scale: number;
|
|
11
|
+
minScale: number;
|
|
12
|
+
maxScale: number;
|
|
13
|
+
}
|
|
14
|
+
export declare abstract class SceneRoot extends AppObjectEntity {
|
|
15
|
+
static readonly type = "SCENE_ROOT";
|
|
16
|
+
abstract defaultPosition: Vector3;
|
|
17
|
+
abstract defaultRoation: Quaternion;
|
|
18
|
+
abstract defaultScale: number;
|
|
19
|
+
abstract minScale: number;
|
|
20
|
+
abstract maxScale: number;
|
|
21
|
+
abstract position: Vector3;
|
|
22
|
+
abstract rotation: Quaternion;
|
|
23
|
+
abstract scale: number;
|
|
24
|
+
abstract readonly transform: Transform3D;
|
|
25
|
+
abstract applyDefaultData: (data: DefaultSceneRootData) => void;
|
|
26
|
+
abstract centerOnPoint: (point: Vector3, durationMS: number, easeFn: EaseFn, onCompleted?: () => void) => void;
|
|
27
|
+
abstract lerpToDefault: (durationMS: number, easeFn: EaseFn, onCompleted?: () => void) => void;
|
|
28
|
+
abstract bumpScaleAboutPoint: (amount: number, worldPoint: Vector3) => void;
|
|
29
|
+
static get(appObjects: AppObjectRepo): SceneRoot | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare function makeSceneRoot(appObj: AppObject): SceneRoot;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSceneRoot = exports.SceneRoot = void 0;
|
|
4
|
+
const AppObjectEntity_1 = require("../../../AppObject/AppObjectEntity");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
7
|
+
class SceneRoot extends AppObjectEntity_1.AppObjectEntity {
|
|
8
|
+
static get(appObjects) {
|
|
9
|
+
const repo = appObjects.getAllComponents(SceneRoot.type);
|
|
10
|
+
if (repo.length === 0) {
|
|
11
|
+
console.warn("[SceneRoot] Unable to find Scene Root Entity. Add one on Mount");
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
else if (repo.length > 1) {
|
|
15
|
+
console.warn("[SceneRoot] Multiple Scene Root Entity have been found. There should only be one. Using the first one");
|
|
16
|
+
}
|
|
17
|
+
return repo[0];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.SceneRoot = SceneRoot;
|
|
21
|
+
SceneRoot.type = "SCENE_ROOT";
|
|
22
|
+
function makeSceneRoot(appObj) {
|
|
23
|
+
Transform3D_1.Transform3D.addIfMissing(appObj);
|
|
24
|
+
return new SceneRootImp(appObj);
|
|
25
|
+
}
|
|
26
|
+
exports.makeSceneRoot = makeSceneRoot;
|
|
27
|
+
class SceneRootImp extends SceneRoot {
|
|
28
|
+
constructor(appObject) {
|
|
29
|
+
super(appObject, SceneRoot.type);
|
|
30
|
+
this._defaultPosition = ValueObjects_1.Vector3.Zero();
|
|
31
|
+
this._defaultRoation = ValueObjects_1.Quaternion.Identity();
|
|
32
|
+
this._defaultScale = 1;
|
|
33
|
+
this._minScale = 0.01;
|
|
34
|
+
this._maxScale = 10;
|
|
35
|
+
this.applyDefaultData = (data) => {
|
|
36
|
+
this._defaultPosition = ValueObjects_1.Vector3.FromArray(data.position);
|
|
37
|
+
this._defaultRoation = ValueObjects_1.Quaternion.FromArray(data.rotation);
|
|
38
|
+
this._defaultScale = data.scale;
|
|
39
|
+
this._maxScale = data.maxScale;
|
|
40
|
+
this._minScale = data.minScale;
|
|
41
|
+
};
|
|
42
|
+
this.centerOnPoint = (point, durationMS, easeFn, onCompleted) => {
|
|
43
|
+
const finalPosition = ValueObjects_1.Vector3.Subtract(this.transform.worldPosition, point);
|
|
44
|
+
this.transform.lerp(durationMS, easeFn, finalPosition, undefined, undefined, onCompleted);
|
|
45
|
+
};
|
|
46
|
+
this.bumpScaleAboutPoint = (amount, worldPoint) => {
|
|
47
|
+
const localPickOffset = this.transform.worldPointToLocal(worldPoint);
|
|
48
|
+
const currentScale = this.transform.worldScale.x;
|
|
49
|
+
let newScale = currentScale + amount;
|
|
50
|
+
if (newScale < this.minScale) {
|
|
51
|
+
newScale = this.minScale;
|
|
52
|
+
}
|
|
53
|
+
else if (newScale > this.maxScale) {
|
|
54
|
+
newScale = this.maxScale;
|
|
55
|
+
}
|
|
56
|
+
this.transform.worldScale = new ValueObjects_1.Vector3(newScale, newScale, newScale);
|
|
57
|
+
const worldPickOffset = this.transform.localPointToWorld(localPickOffset);
|
|
58
|
+
const bump = ValueObjects_1.Vector3.Subtract(worldPoint, worldPickOffset);
|
|
59
|
+
this.transform.worldPosition = ValueObjects_1.Vector3.Add(bump, this.transform.worldPosition);
|
|
60
|
+
};
|
|
61
|
+
this.lerpToDefault = (durationMS, easeFn, onCompleted) => {
|
|
62
|
+
this.transform.lerp(durationMS, easeFn, this.defaultPosition, this.defaultRoation, new ValueObjects_1.Vector3(this.defaultScale, this.defaultScale, this.defaultScale), onCompleted);
|
|
63
|
+
};
|
|
64
|
+
const transform = Transform3D_1.Transform3D.get(appObject);
|
|
65
|
+
if (transform) {
|
|
66
|
+
this.transform = transform;
|
|
67
|
+
transform.addChangeObserver(this.notifyOnChange);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
throw Error("Scene Root does not have a Transform3D Component. Use the factory to make this");
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
get position() {
|
|
74
|
+
return this.transform.localPosition;
|
|
75
|
+
}
|
|
76
|
+
set position(p) {
|
|
77
|
+
this.transform.localPosition = p;
|
|
78
|
+
}
|
|
79
|
+
get rotation() {
|
|
80
|
+
return this.transform.localRotation;
|
|
81
|
+
}
|
|
82
|
+
set rotation(r) {
|
|
83
|
+
this.transform.localRotation = r;
|
|
84
|
+
}
|
|
85
|
+
get scale() {
|
|
86
|
+
return this.transform.localScale.x;
|
|
87
|
+
}
|
|
88
|
+
set scale(s) {
|
|
89
|
+
this.transform.localScale = new ValueObjects_1.Vector3(s, s, s);
|
|
90
|
+
}
|
|
91
|
+
get defaultPosition() {
|
|
92
|
+
return this._defaultPosition;
|
|
93
|
+
}
|
|
94
|
+
get defaultRoation() {
|
|
95
|
+
return this._defaultRoation;
|
|
96
|
+
}
|
|
97
|
+
get defaultScale() {
|
|
98
|
+
return this._defaultScale;
|
|
99
|
+
}
|
|
100
|
+
get minScale() {
|
|
101
|
+
return this._minScale;
|
|
102
|
+
}
|
|
103
|
+
get maxScale() {
|
|
104
|
+
return this._maxScale;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
3
|
+
import { SerializedSystem, StateMachine } from "../../../Entities";
|
|
4
|
+
export declare abstract class SerializeSceneRoot extends AppObjectUC implements SerializedSystem {
|
|
5
|
+
static readonly type = "SerializeSceneRoot";
|
|
6
|
+
name: string;
|
|
7
|
+
abstract seriliziationVersion: number;
|
|
8
|
+
abstract getSystemState(): object;
|
|
9
|
+
abstract applySystemState(state: object, version: number, transitionDuration: number): void;
|
|
10
|
+
abstract applyDefaultState(transitionDuration: number): void;
|
|
11
|
+
}
|
|
12
|
+
export declare function makeSerializeSceneRoot(appObject: AppObject, stateMachine: StateMachine): SerializeSceneRoot;
|
|
13
|
+
export interface SceneRootDataV1 {
|
|
14
|
+
position: [number, number, number];
|
|
15
|
+
rotation: [number, number, number, number];
|
|
16
|
+
scale: [number, number, number];
|
|
17
|
+
}
|
|
18
|
+
export interface SceneRootDataV2 {
|
|
19
|
+
position: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
z: number;
|
|
23
|
+
};
|
|
24
|
+
rotation: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
z: number;
|
|
28
|
+
w: number;
|
|
29
|
+
};
|
|
30
|
+
scale: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSerializeSceneRoot = exports.SerializeSceneRoot = void 0;
|
|
4
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const StoredView_1 = require("../../StoredView");
|
|
7
|
+
const SceneRoot_1 = require("../Entities/SceneRoot");
|
|
8
|
+
class SerializeSceneRoot extends AppObjectUC_1.AppObjectUC {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.name = "sceneRoot";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SerializeSceneRoot = SerializeSceneRoot;
|
|
15
|
+
SerializeSceneRoot.type = "SerializeSceneRoot";
|
|
16
|
+
function makeSerializeSceneRoot(appObject, stateMachine) {
|
|
17
|
+
return new SerializeSceneRootImp(appObject, stateMachine);
|
|
18
|
+
}
|
|
19
|
+
exports.makeSerializeSceneRoot = makeSerializeSceneRoot;
|
|
20
|
+
class SerializeSceneRootImp extends SerializeSceneRoot {
|
|
21
|
+
constructor(appObject, stateMachine) {
|
|
22
|
+
super(appObject, SerializeSceneRoot.type);
|
|
23
|
+
this.seriliziationVersion = 2;
|
|
24
|
+
this.stateMachine = stateMachine;
|
|
25
|
+
this.sceneRoot = appObject.getComponent(SceneRoot_1.SceneRoot.type);
|
|
26
|
+
if (!this.sceneRoot) {
|
|
27
|
+
console.warn("SerializeSceneRoot UC has been added to an App Object that does not have a SceneRoot Entity. Add one before adding the UC");
|
|
28
|
+
this.dispose();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.storedView = appObject.getComponent(StoredView_1.StoredView.type);
|
|
32
|
+
if (!this.storedView) {
|
|
33
|
+
console.warn("SerializeSceneRoot UC has been added to an App Object that does not have a StoredView Entity. Stored view won't work until one is added to the UC");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
stateMachine.registerSerializedSystem(this);
|
|
37
|
+
}
|
|
38
|
+
getSystemState() {
|
|
39
|
+
if (!this.sceneRoot) {
|
|
40
|
+
console.warn("[SerializeSceneRoot] No scene root entity");
|
|
41
|
+
return {};
|
|
42
|
+
}
|
|
43
|
+
if (this.storedView && this.storedView.hasStoredView) {
|
|
44
|
+
const data = {
|
|
45
|
+
position: this.storedView.position.dto,
|
|
46
|
+
rotation: this.storedView.rotation.dto,
|
|
47
|
+
scale: this.storedView.scale,
|
|
48
|
+
};
|
|
49
|
+
return data;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const data = {
|
|
53
|
+
position: this.sceneRoot.position.dto,
|
|
54
|
+
rotation: this.sceneRoot.rotation.dto,
|
|
55
|
+
scale: this.sceneRoot.scale,
|
|
56
|
+
};
|
|
57
|
+
return data;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
applySystemState(serializedState, version, transitionTime) {
|
|
61
|
+
try {
|
|
62
|
+
if (version === 1) {
|
|
63
|
+
const castState = serializedState;
|
|
64
|
+
this.applyV1Data(castState, transitionTime);
|
|
65
|
+
}
|
|
66
|
+
else if (version === 2) {
|
|
67
|
+
const castState = serializedState;
|
|
68
|
+
this.applyV2Data(castState, transitionTime);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
console.warn(`[SerializeSceneRoot] Unsupported version number ${version}. Defaulting`);
|
|
72
|
+
this.applyDefaultState(transitionTime);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (e) {
|
|
76
|
+
console.warn(`[SerializeSceneRoot] Caught when deserializing ${e}. Defaulting`);
|
|
77
|
+
this.applyDefaultState(transitionTime);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
applyDefaultState(transitionDuration) {
|
|
81
|
+
if (!this.sceneRoot) {
|
|
82
|
+
console.warn("[SerializeSceneRoot] No scene root entity");
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this.sceneRoot.lerpToDefault(transitionDuration * 1000, this.stateMachine.transitionEaseFunction);
|
|
86
|
+
}
|
|
87
|
+
applyV2Data(data, transitionTime) {
|
|
88
|
+
if (!this.sceneRoot) {
|
|
89
|
+
console.warn("[SerializeSceneRoot] No scene root entity");
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const pos = ValueObjects_1.Vector3.FromDTO(data.position);
|
|
93
|
+
const rot = ValueObjects_1.Quaternion.FromDTO(data.rotation);
|
|
94
|
+
const scale = new ValueObjects_1.Vector3(data.scale, data.scale, data.scale);
|
|
95
|
+
const rootTransform = this.sceneRoot.transform;
|
|
96
|
+
rootTransform.lerp(transitionTime * 1000, this.stateMachine.transitionEaseFunction, pos, rot, scale);
|
|
97
|
+
}
|
|
98
|
+
applyV1Data(data, transitionTime) {
|
|
99
|
+
if (!this.sceneRoot) {
|
|
100
|
+
console.warn("[SerializeSceneRoot] No scene root entity");
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const pos = ValueObjects_1.Vector3.FromArray(data.position);
|
|
104
|
+
const rot = ValueObjects_1.Quaternion.FromArray(data.rotation);
|
|
105
|
+
const scale = ValueObjects_1.Vector3.FromArray(data.scale);
|
|
106
|
+
const rootTransform = this.sceneRoot.transform;
|
|
107
|
+
rootTransform.lerp(transitionTime * 1000, this.stateMachine.transitionEaseFunction, pos, rot, scale);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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("./Entities/SceneRoot"), exports);
|
|
14
|
+
__exportStar(require("./UC/SerializeSceneRoot"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectEntity } from "../../../AppObject/AppObjectEntity";
|
|
3
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
4
|
+
import { Quaternion, Vector3 } from "../../../ValueObjects";
|
|
5
|
+
export declare abstract class StoredView extends AppObjectEntity {
|
|
6
|
+
static readonly type = "STORED_VIEW";
|
|
7
|
+
abstract position: Vector3;
|
|
8
|
+
abstract rotation: Quaternion;
|
|
9
|
+
abstract scale: number;
|
|
10
|
+
abstract hasStoredView: boolean;
|
|
11
|
+
static get(appObjects: AppObjectRepo): StoredView | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare function makeStoredView(appObj: AppObject): StoredView;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeStoredView = exports.StoredView = void 0;
|
|
4
|
+
const AppObjectEntity_1 = require("../../../AppObject/AppObjectEntity");
|
|
5
|
+
const Entities_1 = require("../../../Entities");
|
|
6
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
7
|
+
class StoredView extends AppObjectEntity_1.AppObjectEntity {
|
|
8
|
+
static get(appObjects) {
|
|
9
|
+
const repo = appObjects.getAllComponents(StoredView.type);
|
|
10
|
+
if (repo.length === 0) {
|
|
11
|
+
console.warn("[StoredView] Unable to find Scene Root Entity. Add one on Mount");
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
else if (repo.length > 1) {
|
|
15
|
+
console.warn("[StoredView] Multiple Scene Root Entity have been found. There should only be one. Using the first one");
|
|
16
|
+
}
|
|
17
|
+
return repo[0];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.StoredView = StoredView;
|
|
21
|
+
StoredView.type = "STORED_VIEW";
|
|
22
|
+
function makeStoredView(appObj) {
|
|
23
|
+
return new StoredViewImp(appObj);
|
|
24
|
+
}
|
|
25
|
+
exports.makeStoredView = makeStoredView;
|
|
26
|
+
class StoredViewImp extends StoredView {
|
|
27
|
+
constructor(appObject) {
|
|
28
|
+
super(appObject, StoredView.type);
|
|
29
|
+
this._position = ValueObjects_1.Vector3.Zero();
|
|
30
|
+
this._rotation = ValueObjects_1.Quaternion.Identity();
|
|
31
|
+
this._memoizedScale = new Entities_1.MemoizedNumber(1, this.notifyOnChange);
|
|
32
|
+
this._memoizedHasStoredView = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
33
|
+
}
|
|
34
|
+
get position() {
|
|
35
|
+
return this._position;
|
|
36
|
+
}
|
|
37
|
+
set position(p) {
|
|
38
|
+
if (ValueObjects_1.Vector3.Equal(this._position, p))
|
|
39
|
+
return;
|
|
40
|
+
this._position = p;
|
|
41
|
+
this.notifyOnChange();
|
|
42
|
+
}
|
|
43
|
+
get rotation() {
|
|
44
|
+
return this._rotation;
|
|
45
|
+
}
|
|
46
|
+
set rotation(r) {
|
|
47
|
+
if (ValueObjects_1.Quaternion.Equal(this._rotation, r))
|
|
48
|
+
return;
|
|
49
|
+
this._rotation = r;
|
|
50
|
+
this.notifyOnChange();
|
|
51
|
+
}
|
|
52
|
+
get scale() {
|
|
53
|
+
return this._memoizedScale.val;
|
|
54
|
+
}
|
|
55
|
+
set scale(s) {
|
|
56
|
+
this._memoizedScale.val = s;
|
|
57
|
+
}
|
|
58
|
+
get hasStoredView() {
|
|
59
|
+
return this._memoizedHasStoredView.val;
|
|
60
|
+
}
|
|
61
|
+
set hasStoredView(hasStoredValue) {
|
|
62
|
+
this._memoizedHasStoredView.val = hasStoredValue;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
3
|
+
import { SerializedSystem, StateMachine } from "../../../Entities";
|
|
4
|
+
export declare abstract class SerializeStoredView extends AppObjectUC implements SerializedSystem {
|
|
5
|
+
static readonly type = "SerializeStoredView";
|
|
6
|
+
name: string;
|
|
7
|
+
abstract seriliziationVersion: number;
|
|
8
|
+
abstract getSystemState(): object;
|
|
9
|
+
abstract applySystemState(state: object, version: number): void;
|
|
10
|
+
abstract applyDefaultState(transitionDuration: number): void;
|
|
11
|
+
}
|
|
12
|
+
export declare function makeSerializeStoredView(appObject: AppObject, stateMachine: StateMachine): SerializeStoredView;
|
|
13
|
+
export interface StoredViewDataV1 {
|
|
14
|
+
position: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
z: number;
|
|
18
|
+
};
|
|
19
|
+
rotation: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
z: number;
|
|
23
|
+
w: number;
|
|
24
|
+
};
|
|
25
|
+
scale: number;
|
|
26
|
+
hasStoredView: boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSerializeStoredView = exports.SerializeStoredView = void 0;
|
|
4
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const StoredView_1 = require("../Entities/StoredView");
|
|
7
|
+
class SerializeStoredView extends AppObjectUC_1.AppObjectUC {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.name = "storedView";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.SerializeStoredView = SerializeStoredView;
|
|
14
|
+
SerializeStoredView.type = "SerializeStoredView";
|
|
15
|
+
function makeSerializeStoredView(appObject, stateMachine) {
|
|
16
|
+
return new SerializeStoredViewImp(appObject, stateMachine);
|
|
17
|
+
}
|
|
18
|
+
exports.makeSerializeStoredView = makeSerializeStoredView;
|
|
19
|
+
class SerializeStoredViewImp extends SerializeStoredView {
|
|
20
|
+
constructor(appObject, stateMachine) {
|
|
21
|
+
super(appObject, SerializeStoredView.type);
|
|
22
|
+
this.seriliziationVersion = 1;
|
|
23
|
+
this.storedView = appObject.getComponent(StoredView_1.StoredView.type);
|
|
24
|
+
if (!this.storedView) {
|
|
25
|
+
console.warn("SerializeStoredView UC has been added to an App Object that does not have a StoredView Entity. Add one before adding the UC");
|
|
26
|
+
this.dispose();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
stateMachine.registerSerializedSystem(this);
|
|
30
|
+
}
|
|
31
|
+
getSystemState() {
|
|
32
|
+
if (!this.storedView) {
|
|
33
|
+
console.warn("[SerializeStoredView] No stored view entity");
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
const data = {
|
|
37
|
+
position: this.storedView.position.dto,
|
|
38
|
+
rotation: this.storedView.rotation.dto,
|
|
39
|
+
scale: this.storedView.scale,
|
|
40
|
+
hasStoredView: this.storedView.hasStoredView,
|
|
41
|
+
};
|
|
42
|
+
return data;
|
|
43
|
+
}
|
|
44
|
+
applySystemState(serializedState, version) {
|
|
45
|
+
try {
|
|
46
|
+
if (version === 1) {
|
|
47
|
+
const castState = serializedState;
|
|
48
|
+
this.applyV1Data(castState);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
console.warn(`[SerializeStoredView] Unsupported version number ${version}. Defaulting`);
|
|
52
|
+
this.applyDefaultState();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
console.warn(`[SerializeStoredView] Caught when deserializing ${e}. Defaulting`);
|
|
57
|
+
this.applyDefaultState();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
applyDefaultState() {
|
|
61
|
+
if (!this.storedView) {
|
|
62
|
+
console.warn("[SerializeStoredView] No stored view entity");
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
this.storedView.position = ValueObjects_1.Vector3.Zero();
|
|
66
|
+
this.storedView.rotation = ValueObjects_1.Quaternion.Identity();
|
|
67
|
+
this.storedView.scale = 1;
|
|
68
|
+
this.storedView.hasStoredView = false;
|
|
69
|
+
}
|
|
70
|
+
applyV1Data(data) {
|
|
71
|
+
if (!this.storedView) {
|
|
72
|
+
console.warn("[SerializeStoredView] No stored view entity");
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const pos = ValueObjects_1.Vector3.FromDTO(data.position);
|
|
76
|
+
const rot = ValueObjects_1.Quaternion.FromDTO(data.rotation);
|
|
77
|
+
this.storedView.position = pos;
|
|
78
|
+
this.storedView.rotation = rot;
|
|
79
|
+
this.storedView.scale = data.scale;
|
|
80
|
+
this.storedView.hasStoredView = data.hasStoredView;
|
|
81
|
+
}
|
|
82
|
+
}
|