@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,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/StoredView"), exports);
|
|
14
|
+
__exportStar(require("./UC/SerializeStoredView"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AppObject, AppObjectEntity } from "../../../AppObject";
|
|
2
|
+
import { EaseFn } from "../../../Entities";
|
|
3
|
+
import { Matrix, Quaternion, Vector3 } from "../../../ValueObjects";
|
|
4
|
+
export declare class Transform3D extends AppObjectEntity {
|
|
5
|
+
static readonly type = "TRANSFORM_3D";
|
|
6
|
+
static addIfMissing(appObj: AppObject): Transform3D;
|
|
7
|
+
static get(appObj: AppObject): Transform3D | undefined;
|
|
8
|
+
private _transformationMatrix;
|
|
9
|
+
get localMatrix(): Matrix;
|
|
10
|
+
set localMatrix(val: Matrix);
|
|
11
|
+
get worldMatrix(): Matrix;
|
|
12
|
+
get localPosition(): Vector3;
|
|
13
|
+
set localPosition(val: Vector3);
|
|
14
|
+
get worldPosition(): Vector3;
|
|
15
|
+
set worldPosition(val: Vector3);
|
|
16
|
+
get localRotation(): Quaternion;
|
|
17
|
+
set localRotation(val: Quaternion);
|
|
18
|
+
get worldRotation(): Quaternion;
|
|
19
|
+
set worldRotation(val: Quaternion);
|
|
20
|
+
get localScale(): Vector3;
|
|
21
|
+
set localScale(val: Vector3);
|
|
22
|
+
get worldScale(): Vector3;
|
|
23
|
+
set worldScale(val: Vector3);
|
|
24
|
+
private _parent?;
|
|
25
|
+
get parent(): Transform3D | undefined;
|
|
26
|
+
set parent(val: Transform3D | undefined);
|
|
27
|
+
localPointToWorld: (point: Vector3) => Vector3;
|
|
28
|
+
worldPointToLocal: (point: Vector3) => Vector3;
|
|
29
|
+
localDirectionToWorld: (point: Vector3) => Vector3;
|
|
30
|
+
worldDirectionToLocal: (point: Vector3) => Vector3;
|
|
31
|
+
private interval?;
|
|
32
|
+
private chrono;
|
|
33
|
+
private lerpDuration;
|
|
34
|
+
private lerpEase;
|
|
35
|
+
private tickInterval;
|
|
36
|
+
private lerpPos?;
|
|
37
|
+
private lerpQuat?;
|
|
38
|
+
private lerpScale?;
|
|
39
|
+
private onLerpCompletedCallback?;
|
|
40
|
+
private previousTime;
|
|
41
|
+
lerp: (duration: number, ease: EaseFn, desiredPosition?: Vector3 | undefined, desiredRotation?: Quaternion | undefined, desiredScale?: Vector3 | undefined, onCompletedCallback?: (() => void) | undefined) => void;
|
|
42
|
+
private tickLerp;
|
|
43
|
+
cancelLerp: () => void;
|
|
44
|
+
constructor(appObject: AppObject);
|
|
45
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Transform3D = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
class Transform3D extends AppObject_1.AppObjectEntity {
|
|
7
|
+
constructor(appObject) {
|
|
8
|
+
super(appObject, Transform3D.type);
|
|
9
|
+
this._transformationMatrix = ValueObjects_1.Matrix.Identity();
|
|
10
|
+
this.localPointToWorld = (point) => {
|
|
11
|
+
return ValueObjects_1.Vector3.Transform(point, this.worldMatrix);
|
|
12
|
+
};
|
|
13
|
+
this.worldPointToLocal = (point) => {
|
|
14
|
+
const worldInverse = ValueObjects_1.Matrix.Invert(this.worldMatrix);
|
|
15
|
+
return ValueObjects_1.Vector3.Transform(point, worldInverse);
|
|
16
|
+
};
|
|
17
|
+
this.localDirectionToWorld = (point) => {
|
|
18
|
+
const rotationMatrix = ValueObjects_1.Quaternion.ToRotationMatrix(this.worldRotation);
|
|
19
|
+
return ValueObjects_1.Vector3.Transform(point, rotationMatrix).unit;
|
|
20
|
+
};
|
|
21
|
+
this.worldDirectionToLocal = (point) => {
|
|
22
|
+
const worldInverse = ValueObjects_1.Matrix.Invert(this.worldMatrix);
|
|
23
|
+
const rotationMatrix = ValueObjects_1.Quaternion.ToRotationMatrix(worldInverse.rotation);
|
|
24
|
+
return ValueObjects_1.Vector3.Transform(point, rotationMatrix).unit;
|
|
25
|
+
};
|
|
26
|
+
this.chrono = 0;
|
|
27
|
+
this.lerpDuration = 1;
|
|
28
|
+
this.lerpEase = (p) => p;
|
|
29
|
+
this.tickInterval = 10;
|
|
30
|
+
this.previousTime = 0;
|
|
31
|
+
this.lerp = (duration, ease, desiredPosition, desiredRotation, desiredScale, onCompletedCallback) => {
|
|
32
|
+
this.cancelLerp();
|
|
33
|
+
this.chrono = 0;
|
|
34
|
+
this.lerpDuration = duration;
|
|
35
|
+
this.lerpEase = ease;
|
|
36
|
+
if (duration <= 0) {
|
|
37
|
+
this.localMatrix = ValueObjects_1.Matrix.Compose(desiredScale !== null && desiredScale !== void 0 ? desiredScale : this.localScale, desiredRotation !== null && desiredRotation !== void 0 ? desiredRotation : this.localRotation, desiredPosition !== null && desiredPosition !== void 0 ? desiredPosition : this.localPosition);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (desiredPosition) {
|
|
41
|
+
this.lerpPos = [this.localPosition, desiredPosition];
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.lerpPos = undefined;
|
|
45
|
+
}
|
|
46
|
+
if (desiredRotation) {
|
|
47
|
+
this.lerpQuat = [this.localRotation, desiredRotation];
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.lerpQuat = undefined;
|
|
51
|
+
}
|
|
52
|
+
if (desiredScale) {
|
|
53
|
+
this.lerpScale = [this.localScale, desiredScale];
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
this.lerpScale = undefined;
|
|
57
|
+
}
|
|
58
|
+
this.onLerpCompletedCallback = onCompletedCallback;
|
|
59
|
+
this.previousTime = Date.now();
|
|
60
|
+
this.interval = setInterval(() => {
|
|
61
|
+
this.tickLerp();
|
|
62
|
+
}, this.tickInterval);
|
|
63
|
+
};
|
|
64
|
+
this.tickLerp = () => {
|
|
65
|
+
const currentTime = Date.now();
|
|
66
|
+
const timeDiff = currentTime - this.previousTime;
|
|
67
|
+
this.previousTime = currentTime;
|
|
68
|
+
this.chrono = this.chrono + timeDiff;
|
|
69
|
+
let nomralizedTime = this.chrono / this.lerpDuration;
|
|
70
|
+
if (nomralizedTime > 1) {
|
|
71
|
+
nomralizedTime = 1;
|
|
72
|
+
}
|
|
73
|
+
const percent = this.lerpEase(nomralizedTime);
|
|
74
|
+
let pos = this.localPosition;
|
|
75
|
+
if (this.lerpPos) {
|
|
76
|
+
pos = ValueObjects_1.Vector3.Lerp(this.lerpPos[0], this.lerpPos[1], percent);
|
|
77
|
+
}
|
|
78
|
+
let rotation = this.localRotation;
|
|
79
|
+
if (this.lerpQuat) {
|
|
80
|
+
rotation = ValueObjects_1.Quaternion.Slerp(this.lerpQuat[0], this.lerpQuat[1], percent);
|
|
81
|
+
}
|
|
82
|
+
let scale = this.localScale;
|
|
83
|
+
if (this.lerpScale) {
|
|
84
|
+
scale = ValueObjects_1.Vector3.Lerp(this.lerpScale[0], this.lerpScale[1], percent);
|
|
85
|
+
}
|
|
86
|
+
this._transformationMatrix = ValueObjects_1.Matrix.Compose(scale, rotation, pos);
|
|
87
|
+
this.notifyOnChange();
|
|
88
|
+
if (nomralizedTime >= 1 && this.interval) {
|
|
89
|
+
if (this.onLerpCompletedCallback) {
|
|
90
|
+
this.onLerpCompletedCallback();
|
|
91
|
+
}
|
|
92
|
+
clearInterval(this.interval);
|
|
93
|
+
this.interval = undefined;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
this.cancelLerp = () => {
|
|
97
|
+
if (this.interval) {
|
|
98
|
+
clearInterval(this.interval);
|
|
99
|
+
this.interval = undefined;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static addIfMissing(appObj) {
|
|
104
|
+
const existing = appObj.getComponent(this.type);
|
|
105
|
+
if (existing) {
|
|
106
|
+
return existing;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
return new Transform3D(appObj);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
static get(appObj) {
|
|
113
|
+
return appObj.getComponent(this.type);
|
|
114
|
+
}
|
|
115
|
+
get localMatrix() {
|
|
116
|
+
return this._transformationMatrix;
|
|
117
|
+
}
|
|
118
|
+
set localMatrix(val) {
|
|
119
|
+
if (ValueObjects_1.Matrix.Close(this._transformationMatrix, val))
|
|
120
|
+
return;
|
|
121
|
+
this.cancelLerp();
|
|
122
|
+
this._transformationMatrix = val;
|
|
123
|
+
this.notifyOnChange();
|
|
124
|
+
}
|
|
125
|
+
get worldMatrix() {
|
|
126
|
+
if (!this._parent) {
|
|
127
|
+
return this._transformationMatrix;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
return ValueObjects_1.Matrix.Multiply(this._parent.worldMatrix, this._transformationMatrix);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
get localPosition() {
|
|
134
|
+
return this._transformationMatrix.translation;
|
|
135
|
+
}
|
|
136
|
+
set localPosition(val) {
|
|
137
|
+
const currentPos = this._transformationMatrix.translation;
|
|
138
|
+
if (ValueObjects_1.Vector3.Close(val, currentPos, 0.00001))
|
|
139
|
+
return;
|
|
140
|
+
this.cancelLerp();
|
|
141
|
+
this._transformationMatrix = ValueObjects_1.Matrix.SetMatrixTranslation(this._transformationMatrix, val);
|
|
142
|
+
this.notifyOnChange();
|
|
143
|
+
}
|
|
144
|
+
get worldPosition() {
|
|
145
|
+
return this.worldMatrix.translation;
|
|
146
|
+
}
|
|
147
|
+
set worldPosition(val) {
|
|
148
|
+
if (!this._parent) {
|
|
149
|
+
this.localPosition = val;
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
const local = this._parent.worldPointToLocal(val);
|
|
153
|
+
this.localPosition = local;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
get localRotation() {
|
|
157
|
+
return this._transformationMatrix.rotation;
|
|
158
|
+
}
|
|
159
|
+
set localRotation(val) {
|
|
160
|
+
const currentRot = this._transformationMatrix.rotation;
|
|
161
|
+
if (ValueObjects_1.Quaternion.Close(val, currentRot))
|
|
162
|
+
return;
|
|
163
|
+
this.cancelLerp();
|
|
164
|
+
this._transformationMatrix = ValueObjects_1.Matrix.SetMatrixRotation(this._transformationMatrix, val);
|
|
165
|
+
this.notifyOnChange();
|
|
166
|
+
}
|
|
167
|
+
get worldRotation() {
|
|
168
|
+
return this.worldMatrix.rotation;
|
|
169
|
+
}
|
|
170
|
+
set worldRotation(val) {
|
|
171
|
+
if (!this._parent) {
|
|
172
|
+
this.localRotation = val;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
const parentRotation = this._parent.worldRotation;
|
|
176
|
+
const parentRotationInverse = ValueObjects_1.Quaternion.Inverse(parentRotation);
|
|
177
|
+
this.localRotation = ValueObjects_1.Quaternion.Multiply(parentRotationInverse, val);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
get localScale() {
|
|
181
|
+
return this._transformationMatrix.scale;
|
|
182
|
+
}
|
|
183
|
+
set localScale(val) {
|
|
184
|
+
const currentScale = this._transformationMatrix.scale;
|
|
185
|
+
if (ValueObjects_1.Vector3.Close(val, currentScale, 0.00001))
|
|
186
|
+
return;
|
|
187
|
+
this.cancelLerp();
|
|
188
|
+
this._transformationMatrix = ValueObjects_1.Matrix.SetMatrixScale(this._transformationMatrix, val);
|
|
189
|
+
this.notifyOnChange();
|
|
190
|
+
}
|
|
191
|
+
get worldScale() {
|
|
192
|
+
return this.worldMatrix.scale;
|
|
193
|
+
}
|
|
194
|
+
set worldScale(val) {
|
|
195
|
+
if (!this._parent) {
|
|
196
|
+
this.localScale = val;
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
const parentScale = this._parent.worldScale;
|
|
200
|
+
const x = val.x / parentScale.x;
|
|
201
|
+
const y = val.y / parentScale.y;
|
|
202
|
+
const z = val.z / parentScale.z;
|
|
203
|
+
this.localScale = new ValueObjects_1.Vector3(x, y, z);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
get parent() {
|
|
207
|
+
return this._parent;
|
|
208
|
+
}
|
|
209
|
+
set parent(val) {
|
|
210
|
+
if (this._parent === val)
|
|
211
|
+
return;
|
|
212
|
+
const wMatrix = this.worldMatrix;
|
|
213
|
+
this._parent = val;
|
|
214
|
+
if (this._parent) {
|
|
215
|
+
const parentMatrix = this._parent.worldMatrix;
|
|
216
|
+
const parentMatrixInverse = ValueObjects_1.Matrix.Invert(parentMatrix);
|
|
217
|
+
this.localMatrix = ValueObjects_1.Matrix.Multiply(parentMatrixInverse, wMatrix);
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
this.localMatrix = wMatrix;
|
|
221
|
+
}
|
|
222
|
+
this.notifyOnChange();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.Transform3D = Transform3D;
|
|
226
|
+
Transform3D.type = "TRANSFORM_3D";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectPM } from "../../../AppObject/AppObjectPM";
|
|
3
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
4
|
+
export declare class CanBeStuckPM extends AppObjectPM<boolean> {
|
|
5
|
+
static readonly type = "CanBeStuckPM";
|
|
6
|
+
private transform?;
|
|
7
|
+
onTransformChange: () => void;
|
|
8
|
+
dispose: () => void;
|
|
9
|
+
vmsAreEqual(a: boolean, b: boolean): boolean;
|
|
10
|
+
constructor(appObject: AppObject);
|
|
11
|
+
static getForID(appObjID: string, appObjects: AppObjectRepo): CanBeStuckPM | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CanBeStuckPM = void 0;
|
|
4
|
+
const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const Transform3D_1 = require("../Entities/Transform3D");
|
|
7
|
+
class CanBeStuckPM extends AppObjectPM_1.AppObjectPM {
|
|
8
|
+
constructor(appObject) {
|
|
9
|
+
super(appObject, CanBeStuckPM.type);
|
|
10
|
+
this.onTransformChange = () => {
|
|
11
|
+
if (!this.transform)
|
|
12
|
+
return;
|
|
13
|
+
const pos = this.transform.localPosition;
|
|
14
|
+
const canBeStuck = !ValueObjects_1.Vector3.Close(pos, ValueObjects_1.Vector3.Zero());
|
|
15
|
+
this.doUpdateView(canBeStuck);
|
|
16
|
+
};
|
|
17
|
+
this.dispose = () => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
super.dispose();
|
|
20
|
+
(_a = this.transform) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onTransformChange);
|
|
21
|
+
(_b = this.transform) === null || _b === void 0 ? void 0 : _b.removeOnDisposeObserver(this.dispose);
|
|
22
|
+
};
|
|
23
|
+
this.transform = Transform3D_1.Transform3D.get(appObject);
|
|
24
|
+
if (!this.transform) {
|
|
25
|
+
console.warn("[CanBeStuckPM] Unable to find Transform3D Entity");
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
this.transform.addChangeObserver(this.onTransformChange);
|
|
30
|
+
this.transform.addOnDisposeObserver(this.dispose);
|
|
31
|
+
this.onTransformChange();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
vmsAreEqual(a, b) {
|
|
35
|
+
return a === b;
|
|
36
|
+
}
|
|
37
|
+
static getForID(appObjID, appObjects) {
|
|
38
|
+
const appObj = appObjects.get(appObjID);
|
|
39
|
+
if (appObj === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
return appObj.getComponent(CanBeStuckPM.type);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CanBeStuckPM = CanBeStuckPM;
|
|
46
|
+
CanBeStuckPM.type = "CanBeStuckPM";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
+
import { AppObjectPM } from "../../../AppObject/AppObjectPM";
|
|
3
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
4
|
+
import { Quaternion, Vector3 } from "../../../ValueObjects";
|
|
5
|
+
export interface Transform3DVM {
|
|
6
|
+
position: Vector3;
|
|
7
|
+
rotation: Quaternion;
|
|
8
|
+
scale: Vector3;
|
|
9
|
+
}
|
|
10
|
+
export declare class Transform3DPM extends AppObjectPM<Transform3DVM> {
|
|
11
|
+
static readonly type = "Transform3DPM";
|
|
12
|
+
private transform?;
|
|
13
|
+
onTransformChange: () => void;
|
|
14
|
+
vmsAreEqual(a: Transform3DVM, b: Transform3DVM): boolean;
|
|
15
|
+
dispose: () => void;
|
|
16
|
+
constructor(appObject: AppObject);
|
|
17
|
+
static defaultTransform3DVM: Transform3DVM;
|
|
18
|
+
static getForID(appObjID: string, appObjects: AppObjectRepo): Transform3DPM | undefined;
|
|
19
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Transform3DPM = void 0;
|
|
4
|
+
const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const Transform3D_1 = require("../Entities/Transform3D");
|
|
7
|
+
class Transform3DPM extends AppObjectPM_1.AppObjectPM {
|
|
8
|
+
constructor(appObject) {
|
|
9
|
+
super(appObject, Transform3DPM.type);
|
|
10
|
+
this.onTransformChange = () => {
|
|
11
|
+
if (!this.transform)
|
|
12
|
+
return;
|
|
13
|
+
const vm = {
|
|
14
|
+
position: this.transform.localPosition,
|
|
15
|
+
rotation: this.transform.localRotation,
|
|
16
|
+
scale: this.transform.localScale
|
|
17
|
+
};
|
|
18
|
+
this.doUpdateView(vm);
|
|
19
|
+
};
|
|
20
|
+
this.dispose = () => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
super.dispose();
|
|
23
|
+
(_a = this.transform) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onTransformChange);
|
|
24
|
+
(_b = this.transform) === null || _b === void 0 ? void 0 : _b.removeOnDisposeObserver(this.dispose);
|
|
25
|
+
};
|
|
26
|
+
this.transform = Transform3D_1.Transform3D.get(appObject);
|
|
27
|
+
if (!this.transform) {
|
|
28
|
+
console.warn("[CanBeStuckPM] Unable to find Transform3D Entity");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.transform.addChangeObserver(this.onTransformChange);
|
|
33
|
+
this.transform.addOnDisposeObserver(this.dispose);
|
|
34
|
+
this.onTransformChange();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
vmsAreEqual(a, b) {
|
|
38
|
+
if (!ValueObjects_1.Vector3.Equal(a.position, b.position))
|
|
39
|
+
return false;
|
|
40
|
+
if (!ValueObjects_1.Vector3.Equal(a.scale, b.scale))
|
|
41
|
+
return false;
|
|
42
|
+
if (!ValueObjects_1.Quaternion.Equal(a.rotation, b.rotation))
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
static getForID(appObjID, appObjects) {
|
|
47
|
+
const appObj = appObjects.get(appObjID);
|
|
48
|
+
if (appObj === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return appObj.getComponent(Transform3DPM.type);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.Transform3DPM = Transform3DPM;
|
|
55
|
+
Transform3DPM.type = "Transform3DPM";
|
|
56
|
+
Transform3DPM.defaultTransform3DVM = {
|
|
57
|
+
position: ValueObjects_1.Vector3.Zero(),
|
|
58
|
+
rotation: ValueObjects_1.Quaternion.Identity(),
|
|
59
|
+
scale: ValueObjects_1.Vector3.One()
|
|
60
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject";
|
|
2
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
3
|
+
import { Vector3 } from "../../../ValueObjects";
|
|
4
|
+
export declare class PeelTransform3D extends AppObjectUC {
|
|
5
|
+
static readonly type = "PeelTransform3D";
|
|
6
|
+
private transform?;
|
|
7
|
+
get didPeel(): boolean;
|
|
8
|
+
private _startPeelPos;
|
|
9
|
+
get startPeelPosition(): Vector3;
|
|
10
|
+
private _endPeelPosition;
|
|
11
|
+
get endPeelPosition(): Vector3;
|
|
12
|
+
private isPeeling;
|
|
13
|
+
private pickOffset;
|
|
14
|
+
initializePeel: (initialPick: Vector3) => void;
|
|
15
|
+
updatePeel: (pick: Vector3) => void;
|
|
16
|
+
stopPeel: () => void;
|
|
17
|
+
dispose: () => void;
|
|
18
|
+
constructor(appObject: AppObject);
|
|
19
|
+
static get(appObj: AppObject): PeelTransform3D | undefined;
|
|
20
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PeelTransform3D = void 0;
|
|
4
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const Transform3D_1 = require("../Entities/Transform3D");
|
|
7
|
+
class PeelTransform3D extends AppObjectUC_1.AppObjectUC {
|
|
8
|
+
constructor(appObject) {
|
|
9
|
+
super(appObject, PeelTransform3D.type);
|
|
10
|
+
this._startPeelPos = ValueObjects_1.Vector3.Zero();
|
|
11
|
+
this._endPeelPosition = ValueObjects_1.Vector3.Zero();
|
|
12
|
+
this.isPeeling = false;
|
|
13
|
+
this.pickOffset = ValueObjects_1.Vector3.Zero();
|
|
14
|
+
this.initializePeel = (initialPick) => {
|
|
15
|
+
this.isPeeling = false;
|
|
16
|
+
this._startPeelPos = ValueObjects_1.Vector3.Zero();
|
|
17
|
+
this._endPeelPosition = ValueObjects_1.Vector3.Zero();
|
|
18
|
+
if (!this.transform) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const worldPos = this.transform.worldPosition;
|
|
22
|
+
this.pickOffset = ValueObjects_1.Vector3.Subtract(worldPos, initialPick);
|
|
23
|
+
this._startPeelPos = this.transform.localPosition;
|
|
24
|
+
this.isPeeling = true;
|
|
25
|
+
};
|
|
26
|
+
this.updatePeel = (pick) => {
|
|
27
|
+
if (!this.isPeeling)
|
|
28
|
+
return;
|
|
29
|
+
if (!this.transform)
|
|
30
|
+
return;
|
|
31
|
+
this.transform.worldPosition = ValueObjects_1.Vector3.Add(pick, this.pickOffset);
|
|
32
|
+
};
|
|
33
|
+
this.stopPeel = () => {
|
|
34
|
+
if (!this.transform)
|
|
35
|
+
return;
|
|
36
|
+
this._endPeelPosition = this.transform.localPosition;
|
|
37
|
+
this.isPeeling = false;
|
|
38
|
+
this.pickOffset = ValueObjects_1.Vector3.Zero();
|
|
39
|
+
};
|
|
40
|
+
this.dispose = () => {
|
|
41
|
+
var _a;
|
|
42
|
+
super.dispose();
|
|
43
|
+
(_a = this.transform) === null || _a === void 0 ? void 0 : _a.removeOnDisposeObserver(this.dispose);
|
|
44
|
+
};
|
|
45
|
+
this.transform = appObject.getComponent(Transform3D_1.Transform3D.type);
|
|
46
|
+
if (!this.transform) {
|
|
47
|
+
console.warn("Peel Transform UC has been added to an App Object that does not have a Transform3D. Add a transform 3D before adding the UC");
|
|
48
|
+
this.dispose();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.transform.addOnDisposeObserver(this.dispose);
|
|
52
|
+
}
|
|
53
|
+
get didPeel() {
|
|
54
|
+
return !ValueObjects_1.Vector3.Equal(this._startPeelPos, this._endPeelPosition);
|
|
55
|
+
}
|
|
56
|
+
get startPeelPosition() {
|
|
57
|
+
return this._startPeelPos;
|
|
58
|
+
}
|
|
59
|
+
get endPeelPosition() {
|
|
60
|
+
return this._endPeelPosition;
|
|
61
|
+
}
|
|
62
|
+
static get(appObj) {
|
|
63
|
+
return appObj.getComponent(this.type);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.PeelTransform3D = PeelTransform3D;
|
|
67
|
+
PeelTransform3D.type = "PeelTransform3D";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject";
|
|
2
|
+
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
3
|
+
import { EaseFn } from "../../../Types";
|
|
4
|
+
export declare class StickTransform3D extends AppObjectUC {
|
|
5
|
+
static readonly type = "StickTransform3D";
|
|
6
|
+
stickDurationMS: number;
|
|
7
|
+
easeFn: EaseFn;
|
|
8
|
+
private transform?;
|
|
9
|
+
get canBeStuck(): boolean;
|
|
10
|
+
stick(onCompleteCallback?: () => void): void;
|
|
11
|
+
dispose: () => void;
|
|
12
|
+
constructor(appObject: AppObject);
|
|
13
|
+
static get(appObj: AppObject): StickTransform3D | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StickTransform3D = void 0;
|
|
4
|
+
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const Transform3D_1 = require("../Entities/Transform3D");
|
|
7
|
+
class StickTransform3D extends AppObjectUC_1.AppObjectUC {
|
|
8
|
+
constructor(appObject) {
|
|
9
|
+
super(appObject, StickTransform3D.type);
|
|
10
|
+
this.stickDurationMS = 500;
|
|
11
|
+
this.easeFn = (v) => v;
|
|
12
|
+
this.dispose = () => {
|
|
13
|
+
var _a;
|
|
14
|
+
super.dispose();
|
|
15
|
+
(_a = this.transform) === null || _a === void 0 ? void 0 : _a.removeOnDisposeObserver(this.dispose);
|
|
16
|
+
};
|
|
17
|
+
this.transform = appObject.getComponent(Transform3D_1.Transform3D.type);
|
|
18
|
+
if (!this.transform) {
|
|
19
|
+
console.warn("Peel Transform UC has been added to an App Object that does not have a Transform3D. Add a transform 3D before adding the UC");
|
|
20
|
+
this.dispose();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
this.transform.addOnDisposeObserver(this.dispose);
|
|
24
|
+
}
|
|
25
|
+
get canBeStuck() {
|
|
26
|
+
if (!this.transform)
|
|
27
|
+
return false;
|
|
28
|
+
if (!ValueObjects_1.Vector3.Equal(this.transform.localPosition, ValueObjects_1.Vector3.Zero())) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
else if (!ValueObjects_1.Quaternion.Equal(this.transform.localRotation, ValueObjects_1.Quaternion.Identity())) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
stick(onCompleteCallback) {
|
|
39
|
+
var _a;
|
|
40
|
+
if (!this.canBeStuck) {
|
|
41
|
+
if (onCompleteCallback) {
|
|
42
|
+
onCompleteCallback();
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
(_a = this.transform) === null || _a === void 0 ? void 0 : _a.lerp(this.stickDurationMS, this.easeFn, ValueObjects_1.Vector3.Zero(), ValueObjects_1.Quaternion.Identity(), undefined, onCompleteCallback);
|
|
47
|
+
}
|
|
48
|
+
static get(appObj) {
|
|
49
|
+
return appObj.getComponent(this.type);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.StickTransform3D = StickTransform3D;
|
|
53
|
+
StickTransform3D.type = "StickTransform3D";
|
|
@@ -10,7 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./
|
|
14
|
-
__exportStar(require("./
|
|
15
|
-
__exportStar(require("./
|
|
16
|
-
__exportStar(require("./
|
|
13
|
+
__exportStar(require("./Entities/Transform3D"), exports);
|
|
14
|
+
__exportStar(require("./UseCases/PeelTransform3D"), exports);
|
|
15
|
+
__exportStar(require("./UseCases/StickTransform3D"), exports);
|
|
16
|
+
__exportStar(require("./PresentationManagers/Transform3DPM"), exports);
|
|
17
|
+
__exportStar(require("./PresentationManagers/CanBeStuckPM"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./ChannelModel";
|
|
2
|
+
export * from "./Dispatcher";
|
|
3
|
+
export * from "./Enablement";
|
|
4
|
+
export * from "./Hideable";
|
|
5
|
+
export * from "./Label";
|
|
6
|
+
export * from "./Mesh";
|
|
7
|
+
export * from "./OverlayColor";
|
|
8
|
+
export * from "./SceneRoot";
|
|
9
|
+
export * from "./StoredView";
|
|
10
|
+
export * from "./Transform3D";
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./ChannelModel"), exports);
|
|
14
|
+
__exportStar(require("./Dispatcher"), exports);
|
|
15
|
+
__exportStar(require("./Enablement"), exports);
|
|
16
|
+
__exportStar(require("./Hideable"), exports);
|
|
17
|
+
__exportStar(require("./Label"), exports);
|
|
18
|
+
__exportStar(require("./Mesh"), exports);
|
|
19
|
+
__exportStar(require("./OverlayColor"), exports);
|
|
20
|
+
__exportStar(require("./SceneRoot"), exports);
|
|
21
|
+
__exportStar(require("./StoredView"), exports);
|
|
22
|
+
__exportStar(require("./Transform3D"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppObject, AppObjectPM, AppObjectRepo } from "../../../AppObject";
|
|
2
|
+
export interface HasNextPreviousStateVM {
|
|
3
|
+
hasNextState: boolean;
|
|
4
|
+
hasPreviousState: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class HasNextPreviousStatePM extends AppObjectPM<HasNextPreviousStateVM> {
|
|
7
|
+
static readonly type = "HasNextPreviousStatePM";
|
|
8
|
+
static get: (appObjects: AppObjectRepo) => HasNextPreviousStatePM | undefined;
|
|
9
|
+
private baseAppState?;
|
|
10
|
+
onAppStateChange: () => void;
|
|
11
|
+
vmsAreEqual(a: HasNextPreviousStateVM, b: HasNextPreviousStateVM): boolean;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
constructor(appObject: AppObject);
|
|
14
|
+
}
|
|
15
|
+
export declare const defaultHasNextPreviousStateVM: HasNextPreviousStateVM;
|