@vived/app 4.3.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Components/App/UC/submitError.d.ts +2 -0
- package/lib/Components/App/UC/submitError.js +28 -0
- package/lib/Components/App/UC/submitFatal.d.ts +2 -0
- package/lib/Components/App/UC/submitFatal.js +28 -0
- package/lib/Components/App/UC/submitLog.d.ts +2 -0
- package/lib/Components/App/UC/submitLog.js +28 -0
- package/lib/Components/App/UC/submitWarning.d.ts +2 -0
- package/lib/Components/App/UC/submitWarning.js +28 -0
- package/lib/Components/Babylon/Mocks/MockSceneRayPickUC.d.ts +2 -0
- package/lib/Components/Babylon/Mocks/MockSceneRayPickUC.js +2 -2
- package/lib/Components/Camera/Factory/CameraFactoryImp.d.ts +4 -0
- package/lib/Components/Camera/Factory/CameraFactoryImp.js +25 -0
- package/lib/Components/Dispatcher/Mocks/MockLogUC.d.ts +10 -0
- package/lib/Components/Dispatcher/Mocks/MockLogUC.js +14 -0
- package/lib/Components/Landmarks/Controller/Mouse/MouseLandmark.d.ts +22 -0
- package/lib/Components/Landmarks/Controller/Mouse/MouseLandmark.js +91 -0
- package/lib/Components/Landmarks/Controller/MouseLandmark.d.ts +22 -0
- package/lib/Components/Landmarks/Controller/MouseLandmark.js +91 -0
- package/lib/Components/Landmarks/Controller/SetSelectedLandmarkColor.d.ts +3 -0
- package/lib/Components/Landmarks/Controller/SetSelectedLandmarkColor.js +24 -0
- package/lib/Components/Landmarks/Controller/SubmitLandmarkSize.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/SubmitLandmarkSize.js +19 -0
- package/lib/Components/Landmarks/Controller/Touch/TouchLandmark.d.ts +20 -0
- package/lib/Components/Landmarks/Controller/Touch/TouchLandmark.js +84 -0
- package/lib/Components/Landmarks/Controller/TouchLandmark.d.ts +20 -0
- package/lib/Components/Landmarks/Controller/TouchLandmark.js +84 -0
- package/lib/Components/Landmarks/Controller/UpdateLandmarkSize.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/UpdateLandmarkSize.js +19 -0
- package/lib/Components/Landmarks/Controller/index.d.ts +5 -0
- package/lib/{AppObjectComponents/Enablement → Components/Landmarks/Controller}/index.js +5 -2
- package/lib/Components/Landmarks/Entities/LandmarkEntity.d.ts +40 -0
- package/lib/Components/Landmarks/Entities/LandmarkEntity.js +111 -0
- package/lib/Components/Landmarks/Entities/LandmarkGlobals.d.ts +14 -0
- package/lib/Components/Landmarks/Entities/LandmarkGlobals.js +32 -0
- package/lib/Components/Landmarks/Entities/LandmarkRepo.d.ts +9 -0
- package/lib/Components/Landmarks/Entities/LandmarkRepo.js +33 -0
- package/lib/Components/Landmarks/Entities/index.d.ts +3 -0
- package/lib/{AppObjectComponents/ChannelModel → Components/Landmarks/Entities}/index.js +3 -2
- package/lib/Components/Landmarks/Mocks/MockLandmark.d.ts +27 -0
- package/lib/Components/Landmarks/Mocks/MockLandmark.js +50 -0
- package/lib/Components/Landmarks/PM/LandmarkListPM.d.ts +10 -0
- package/lib/Components/Landmarks/PM/LandmarkListPM.js +46 -0
- package/lib/Components/Landmarks/PM/LandmarkSizePM.d.ts +10 -0
- package/lib/Components/Landmarks/PM/LandmarkSizePM.js +44 -0
- package/lib/Components/Landmarks/PM/index.d.ts +2 -0
- package/lib/{UseCases/SceneObjects → Components/Landmarks/PM}/index.js +2 -1
- package/lib/Components/Landmarks/UseCases/AddLandmarkUC.d.ts +8 -0
- package/lib/Components/Landmarks/UseCases/AddLandmarkUC.js +67 -0
- package/lib/Components/Landmarks/UseCases/AddLandmarkUndoRedo.d.ts +13 -0
- package/lib/Components/Landmarks/UseCases/AddLandmarkUndoRedo.js +48 -0
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUC.d.ts +9 -0
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUC.js +48 -0
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUndoRedo.d.ts +13 -0
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUndoRedo.js +48 -0
- package/lib/Components/Landmarks/UseCases/SerializeLandmarks.d.ts +16 -0
- package/lib/Components/Landmarks/UseCases/SerializeLandmarks.js +108 -0
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUC.d.ts +12 -0
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUC.js +57 -0
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUndoRedo.d.ts +11 -0
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUndoRedo.js +37 -0
- package/lib/Components/Landmarks/UseCases/SetOverlayColorUC.d.ts +11 -0
- package/lib/Components/Landmarks/UseCases/SetOverlayColorUC.js +46 -0
- package/lib/Components/Landmarks/UseCases/SetOverlayColorUndoRedo.d.ts +12 -0
- package/lib/Components/Landmarks/UseCases/SetOverlayColorUndoRedo.js +37 -0
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.d.ts +9 -0
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.js +59 -0
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.d.ts +15 -0
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.js +63 -0
- package/lib/Components/Landmarks/UseCases/index.d.ts +11 -0
- package/lib/Components/Landmarks/UseCases/index.js +23 -0
- package/lib/Components/Landmarks/index.d.ts +4 -0
- package/lib/{AppObjectComponents/Hideable → Components/Landmarks}/index.js +4 -2
- package/lib/Components/OverlayColor/Entities/OverlayColor.d.ts +5 -5
- package/lib/Components/OverlayColor/Entities/OverlayColor.js +24 -24
- package/lib/Components/OverlayColor/PM/OverlayColorPM.d.ts +3 -3
- package/lib/Components/Question/Entities/QuestionAnswerEntity.d.ts +2 -1
- package/lib/Components/Question/Entities/QuestionAnswerEntity.js +9 -5
- package/lib/Components/Question/Entities/QuestionEntity.d.ts +1 -1
- package/lib/Components/Question/Entities/QuestionEntity.js +2 -9
- package/lib/Components/Question/PM/QuestionChallengePM.d.ts +2 -0
- package/lib/Components/Question/PM/QuestionChallengePM.js +21 -3
- package/lib/Components/Question/UC/ValidateQuestionChallengeStateUC.d.ts +19 -0
- package/lib/Components/Question/UC/ValidateQuestionChallengeStateUC.js +83 -0
- package/lib/Components/Question/UC/index.d.ts +1 -0
- package/lib/Components/Question/UC/index.js +1 -0
- package/lib/Components/Tools/Factory/index.d.ts +2 -0
- package/lib/{PresentationManagers/SceneModel → Components/Tools/Factory}/index.js +2 -1
- package/lib/Components/Tools/Factory/setupTool.d.ts +3 -0
- package/lib/Components/Tools/Factory/setupTool.js +12 -0
- package/lib/Components/Tools/Factory/setupToolRepo.d.ts +4 -0
- package/lib/Components/Tools/Factory/setupToolRepo.js +13 -0
- package/package.json +1 -1
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.d.ts +0 -42
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModel.js +0 -99
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.d.ts +0 -12
- package/lib/AppObjectComponents/ChannelModel/Entities/ChannelModelRepo.js +0 -45
- package/lib/AppObjectComponents/ChannelModel/index.d.ts +0 -2
- package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.d.ts +0 -16
- package/lib/AppObjectComponents/Dispatcher/Entities/AppDispatcher.js +0 -40
- package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.d.ts +0 -5
- package/lib/AppObjectComponents/Dispatcher/Factories/makeBasicDispatcher.js +0 -25
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStartZSpaceUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/DispatchStopZSpaceUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/GoToNextStateUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/GoToPreviousStateUC.js +0 -44
- package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/HasNextStateUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/HasPreviousStateUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.d.ts +0 -10
- package/lib/AppObjectComponents/Dispatcher/UC/IsZSpaceAvailableUC.js +0 -54
- package/lib/AppObjectComponents/Dispatcher/index.d.ts +0 -9
- package/lib/AppObjectComponents/Dispatcher/index.js +0 -21
- package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.d.ts +0 -16
- package/lib/AppObjectComponents/Enablement/Entities/EnablablementEntity.js +0 -28
- package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.d.ts +0 -14
- package/lib/AppObjectComponents/Enablement/PM/EnablableStatePM.js +0 -41
- package/lib/AppObjectComponents/Enablement/index.d.ts +0 -2
- package/lib/AppObjectComponents/Hideable/Entities/Hideable.d.ts +0 -10
- package/lib/AppObjectComponents/Hideable/Entities/Hideable.js +0 -31
- package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.d.ts +0 -12
- package/lib/AppObjectComponents/Hideable/PresentationManagers/IsHiddenPM.js +0 -43
- package/lib/AppObjectComponents/Hideable/index.d.ts +0 -2
- package/lib/AppObjectComponents/Label/Entities/Label.d.ts +0 -17
- package/lib/AppObjectComponents/Label/Entities/Label.js +0 -58
- package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.d.ts +0 -19
- package/lib/AppObjectComponents/Label/PresentationManagers/LabelPM.js +0 -62
- package/lib/AppObjectComponents/Label/index.d.ts +0 -2
- package/lib/AppObjectComponents/Label/index.js +0 -14
- package/lib/AppObjectComponents/Mesh/Entities/Mesh.d.ts +0 -21
- package/lib/AppObjectComponents/Mesh/Entities/Mesh.js +0 -45
- package/lib/AppObjectComponents/Mesh/index.d.ts +0 -1
- package/lib/AppObjectComponents/Mesh/index.js +0 -13
- package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.d.ts +0 -25
- package/lib/AppObjectComponents/OverlayColor/Entities/OverlayColor.js +0 -59
- package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.d.ts +0 -13
- package/lib/AppObjectComponents/OverlayColor/PresentationManagers/OverlayColorPM.js +0 -43
- package/lib/AppObjectComponents/OverlayColor/index.d.ts +0 -2
- package/lib/AppObjectComponents/OverlayColor/index.js +0 -14
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.d.ts +0 -31
- package/lib/AppObjectComponents/SceneRoot/Entities/SceneRoot.js +0 -106
- package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.d.ts +0 -31
- package/lib/AppObjectComponents/SceneRoot/UC/SerializeSceneRoot.js +0 -109
- package/lib/AppObjectComponents/SceneRoot/index.d.ts +0 -2
- package/lib/AppObjectComponents/SceneRoot/index.js +0 -14
- package/lib/AppObjectComponents/StoredView/Entities/StoredView.d.ts +0 -13
- package/lib/AppObjectComponents/StoredView/Entities/StoredView.js +0 -64
- package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.d.ts +0 -27
- package/lib/AppObjectComponents/StoredView/UC/SerializeStoredView.js +0 -82
- package/lib/AppObjectComponents/StoredView/index.d.ts +0 -2
- package/lib/AppObjectComponents/StoredView/index.js +0 -14
- package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.d.ts +0 -45
- package/lib/AppObjectComponents/Transform3D/Entities/Transform3D.js +0 -226
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.d.ts +0 -12
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/CanBeStuckPM.js +0 -46
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.d.ts +0 -19
- package/lib/AppObjectComponents/Transform3D/PresentationManagers/Transform3DPM.js +0 -60
- package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.d.ts +0 -20
- package/lib/AppObjectComponents/Transform3D/UseCases/PeelTransform3D.js +0 -67
- package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.d.ts +0 -14
- package/lib/AppObjectComponents/Transform3D/UseCases/StickTransform3D.js +0 -53
- package/lib/AppObjectComponents/Transform3D/index.d.ts +0 -5
- package/lib/AppObjectComponents/Transform3D/index.js +0 -17
- package/lib/AppObjectComponents/index.d.ts +0 -10
- package/lib/AppObjectComponents/index.js +0 -22
- package/lib/Controllers/HoverLabelMouse.d.ts +0 -10
- package/lib/Controllers/HoverLabelMouse.js +0 -23
- package/lib/Controllers/HoverLabelTouch.d.ts +0 -14
- package/lib/Controllers/HoverLabelTouch.js +0 -41
- package/lib/Controllers/ToolHotkeys.d.ts +0 -6
- package/lib/Controllers/ToolHotkeys.js +0 -25
- package/lib/Controllers/index.d.ts +0 -3
- package/lib/Controllers/index.js +0 -15
- package/lib/Entities/AppBoundary.d.ts +0 -6
- package/lib/Entities/AppBoundary.js +0 -2
- package/lib/Entities/AppDispatcher.d.ts +0 -63
- package/lib/Entities/AppDispatcher.js +0 -336
- package/lib/Entities/AppHandler.d.ts +0 -20
- package/lib/Entities/AppHandler.js +0 -94
- package/lib/Entities/Babylon.d.ts +0 -48
- package/lib/Entities/Babylon.js +0 -146
- package/lib/Entities/BaseApp.d.ts +0 -9
- package/lib/Entities/BaseApp.js +0 -30
- package/lib/Entities/DevicePreview.d.ts +0 -11
- package/lib/Entities/DevicePreview.js +0 -49
- package/lib/Entities/FocusCamera.d.ts +0 -70
- package/lib/Entities/FocusCamera.js +0 -272
- package/lib/Entities/FramedScreen.d.ts +0 -15
- package/lib/Entities/FramedScreen.js +0 -58
- package/lib/Entities/FramedScreenContainer.d.ts +0 -12
- package/lib/Entities/FramedScreenContainer.js +0 -41
- package/lib/Entities/HoverLabels.d.ts +0 -42
- package/lib/Entities/HoverLabels.js +0 -82
- package/lib/Entities/KeyboardInput.d.ts +0 -13
- package/lib/Entities/KeyboardInput.js +0 -68
- package/lib/Entities/Memoized/MemoizedAngle.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedAngle.js +0 -22
- package/lib/Entities/Memoized/MemoizedBoolean.d.ts +0 -8
- package/lib/Entities/Memoized/MemoizedBoolean.js +0 -22
- package/lib/Entities/Memoized/MemoizedColor.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedColor.js +0 -23
- package/lib/Entities/Memoized/MemoizedNumber.d.ts +0 -8
- package/lib/Entities/Memoized/MemoizedNumber.js +0 -22
- package/lib/Entities/Memoized/MemoizedQuaternion.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedQuaternion.js +0 -23
- package/lib/Entities/Memoized/MemoizedString.d.ts +0 -8
- package/lib/Entities/Memoized/MemoizedString.js +0 -22
- package/lib/Entities/Memoized/MemoizedVector2.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedVector2.js +0 -23
- package/lib/Entities/Memoized/MemoizedVector3.d.ts +0 -9
- package/lib/Entities/Memoized/MemoizedVector3.js +0 -23
- package/lib/Entities/MeshModel.d.ts +0 -68
- package/lib/Entities/MeshModel.js +0 -174
- package/lib/Entities/ModelObject.d.ts +0 -10
- package/lib/Entities/ModelObject.js +0 -42
- package/lib/Entities/MouseInput.d.ts +0 -21
- package/lib/Entities/MouseInput.js +0 -127
- package/lib/Entities/ObservableEntityRepo.d.ts +0 -20
- package/lib/Entities/ObservableEntityRepo.js +0 -80
- package/lib/Entities/QuestionChallenge.d.ts +0 -21
- package/lib/Entities/QuestionChallenge.js +0 -103
- package/lib/Entities/QuestionChallengeAnswer.d.ts +0 -32
- package/lib/Entities/QuestionChallengeAnswer.js +0 -51
- package/lib/Entities/SceneModel.d.ts +0 -85
- package/lib/Entities/SceneModel.js +0 -202
- package/lib/Entities/SceneModelMesh.d.ts +0 -40
- package/lib/Entities/SceneModelMesh.js +0 -75
- package/lib/Entities/SceneModelRepo.d.ts +0 -11
- package/lib/Entities/SceneModelRepo.js +0 -48
- package/lib/Entities/SceneObject.d.ts +0 -23
- package/lib/Entities/SceneObject.js +0 -79
- package/lib/Entities/SceneObjectsRepo.d.ts +0 -12
- package/lib/Entities/SceneObjectsRepo.js +0 -58
- package/lib/Entities/SceneRoot.d.ts +0 -29
- package/lib/Entities/SceneRoot.js +0 -145
- package/lib/Entities/StateMachine.d.ts +0 -29
- package/lib/Entities/StateMachine.js +0 -98
- package/lib/Entities/Tool.d.ts +0 -81
- package/lib/Entities/Tool.js +0 -94
- package/lib/Entities/ToolRepository.d.ts +0 -46
- package/lib/Entities/ToolRepository.js +0 -118
- package/lib/Entities/TouchInput.d.ts +0 -28
- package/lib/Entities/TouchInput.js +0 -144
- package/lib/Entities/UndoRedo.d.ts +0 -22
- package/lib/Entities/UndoRedo.js +0 -61
- package/lib/PresentationManagers/DevicePreviewPM.d.ts +0 -14
- package/lib/PresentationManagers/DevicePreviewPM.js +0 -30
- package/lib/PresentationManagers/FocusCameraPM.d.ts +0 -15
- package/lib/PresentationManagers/FocusCameraPM.js +0 -31
- package/lib/PresentationManagers/FocusCameraPosRotPM.d.ts +0 -13
- package/lib/PresentationManagers/FocusCameraPosRotPM.js +0 -28
- package/lib/PresentationManagers/FramedScreenContainerPM.d.ts +0 -18
- package/lib/PresentationManagers/FramedScreenContainerPM.js +0 -55
- package/lib/PresentationManagers/HasRedoPM.d.ts +0 -9
- package/lib/PresentationManagers/HasRedoPM.js +0 -22
- package/lib/PresentationManagers/HasUndoPM.d.ts +0 -9
- package/lib/PresentationManagers/HasUndoPM.js +0 -22
- package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.d.ts +0 -9
- package/lib/PresentationManagers/HoverLabels/AllowHoverLabelPM.js +0 -19
- package/lib/PresentationManagers/HoverLabels/HoverLabelPM.d.ts +0 -17
- package/lib/PresentationManagers/HoverLabels/HoverLabelPM.js +0 -32
- package/lib/PresentationManagers/HoverLabels/index.d.ts +0 -2
- package/lib/PresentationManagers/HoverLabels/index.js +0 -14
- package/lib/PresentationManagers/IsAuthoringPM.d.ts +0 -9
- package/lib/PresentationManagers/IsAuthoringPM.js +0 -20
- package/lib/PresentationManagers/PresentationManager.d.ts +0 -8
- package/lib/PresentationManagers/PresentationManager.js +0 -16
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.d.ts +0 -24
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengeAnswerPM.js +0 -65
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.d.ts +0 -17
- package/lib/PresentationManagers/QuestionChallenge/AuthorQuestionChallengePM.js +0 -46
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.d.ts +0 -17
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengeAnswerPM.js +0 -51
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.d.ts +0 -15
- package/lib/PresentationManagers/QuestionChallenge/QuestionChallengePM.js +0 -34
- package/lib/PresentationManagers/QuestionChallenge/index.d.ts +0 -4
- package/lib/PresentationManagers/QuestionChallenge/index.js +0 -16
- package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.d.ts +0 -15
- package/lib/PresentationManagers/SceneModel/SceneMeshOverlayPM.js +0 -34
- package/lib/PresentationManagers/SceneModel/SceneModelPM.d.ts +0 -15
- package/lib/PresentationManagers/SceneModel/SceneModelPM.js +0 -36
- package/lib/PresentationManagers/SceneModel/index.d.ts +0 -1
- package/lib/PresentationManagers/SceneObject/SceneObjectPM.d.ts +0 -22
- package/lib/PresentationManagers/SceneObject/SceneObjectPM.js +0 -57
- package/lib/PresentationManagers/SceneObject/index.d.ts +0 -1
- package/lib/PresentationManagers/SceneObject/index.js +0 -13
- package/lib/PresentationManagers/ShowBabylonInspectorPM.d.ts +0 -9
- package/lib/PresentationManagers/ShowBabylonInspectorPM.js +0 -24
- package/lib/PresentationManagers/ToolPM.d.ts +0 -17
- package/lib/PresentationManagers/ToolPM.js +0 -35
- package/lib/PresentationManagers/TransformNodePM.d.ts +0 -14
- package/lib/PresentationManagers/TransformNodePM.js +0 -23
- package/lib/PresentationManagers/index.d.ts +0 -13
- package/lib/PresentationManagers/index.js +0 -25
- package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.d.ts +0 -17
- package/lib/UseCases/FocusCamera/BumpDollyFocusCamera.js +0 -64
- package/lib/UseCases/FocusCamera/LerpFocusCamera.d.ts +0 -36
- package/lib/UseCases/FocusCamera/LerpFocusCamera.js +0 -71
- package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PinchDollyFocusCamera.js +0 -36
- package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PixelDollyFocusCamera.js +0 -36
- package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PixelOrbitFocusCamera.js +0 -26
- package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.d.ts +0 -11
- package/lib/UseCases/FocusCamera/PixelPlanePanFocusCamera.js +0 -33
- package/lib/UseCases/FocusCamera/SerializeFocusCamera.d.ts +0 -22
- package/lib/UseCases/FocusCamera/SerializeFocusCamera.js +0 -81
- package/lib/UseCases/FocusCamera/index.d.ts +0 -7
- package/lib/UseCases/FocusCamera/index.js +0 -19
- package/lib/UseCases/Handlers/DisposeAppBase.d.ts +0 -8
- package/lib/UseCases/Handlers/DisposeAppBase.js +0 -24
- package/lib/UseCases/Handlers/SetAppStateBase.d.ts +0 -10
- package/lib/UseCases/Handlers/SetAppStateBase.js +0 -32
- package/lib/UseCases/Handlers/SetDevicePreviewBase.d.ts +0 -10
- package/lib/UseCases/Handlers/SetDevicePreviewBase.js +0 -32
- package/lib/UseCases/Handlers/SetIsAuthoringBase.d.ts +0 -10
- package/lib/UseCases/Handlers/SetIsAuthoringBase.js +0 -32
- package/lib/UseCases/Handlers/ShowBabylonInspectorBase.d.ts +0 -10
- package/lib/UseCases/Handlers/ShowBabylonInspectorBase.js +0 -32
- package/lib/UseCases/Handlers/StartAppBase.d.ts +0 -10
- package/lib/UseCases/Handlers/StartAppBase.js +0 -32
- package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +0 -10
- package/lib/UseCases/Handlers/StartZSpaceBase.js +0 -35
- package/lib/UseCases/Handlers/StopAppBase.d.ts +0 -8
- package/lib/UseCases/Handlers/StopAppBase.js +0 -24
- package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +0 -8
- package/lib/UseCases/Handlers/StopZSpaceBase.js +0 -24
- package/lib/UseCases/Handlers/index.d.ts +0 -9
- package/lib/UseCases/Handlers/index.js +0 -21
- package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.d.ts +0 -14
- package/lib/UseCases/HoverLabels/SerializeAllowHoverLabel.js +0 -35
- package/lib/UseCases/HoverLabels/trySetHoverLabel.d.ts +0 -3
- package/lib/UseCases/HoverLabels/trySetHoverLabel.js +0 -12
- package/lib/UseCases/LerpVector3.d.ts +0 -26
- package/lib/UseCases/LerpVector3.js +0 -66
- package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.d.ts +0 -25
- package/lib/UseCases/QuestionChallenge/SerializeQuestionChallenge.js +0 -70
- package/lib/UseCases/QuestionChallenge/index.d.ts +0 -4
- package/lib/UseCases/QuestionChallenge/index.js +0 -16
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.d.ts +0 -2
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerFeedback.js +0 -16
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.d.ts +0 -2
- package/lib/UseCases/QuestionChallenge/setQuesionChallengeAnswerText.js +0 -16
- package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.d.ts +0 -2
- package/lib/UseCases/QuestionChallenge/toggleQuesionChallengeAnswerIsCorrect.js +0 -16
- package/lib/UseCases/SceneModel/SerializeActiveModel.d.ts +0 -18
- package/lib/UseCases/SceneModel/SerializeActiveModel.js +0 -74
- package/lib/UseCases/SceneModel/SetMeshesEnabledHook.d.ts +0 -7
- package/lib/UseCases/SceneModel/SetMeshesEnabledHook.js +0 -22
- package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.d.ts +0 -2
- package/lib/UseCases/SceneModel/SetSceneModelMeshOverlayColor.js +0 -13
- package/lib/UseCases/SceneModel/index.d.ts +0 -5
- package/lib/UseCases/SceneModel/index.js +0 -17
- package/lib/UseCases/SceneModel/loadNewModel.d.ts +0 -2
- package/lib/UseCases/SceneModel/loadNewModel.js +0 -84
- package/lib/UseCases/SceneModel/modelDataLoader.d.ts +0 -3
- package/lib/UseCases/SceneModel/modelDataLoader.js +0 -33
- package/lib/UseCases/SceneObjects/PeelSceneObject.d.ts +0 -18
- package/lib/UseCases/SceneObjects/PeelSceneObject.js +0 -61
- package/lib/UseCases/SceneObjects/index.d.ts +0 -1
- package/lib/UseCases/SceneRoot/SerializeSceneRoot.d.ts +0 -33
- package/lib/UseCases/SceneRoot/SerializeSceneRoot.js +0 -67
- package/lib/UseCases/SceneRoot/index.d.ts +0 -2
- package/lib/UseCases/SceneRoot/index.js +0 -14
- package/lib/UseCases/SceneRoot/setupSceneRoot.d.ts +0 -2
- package/lib/UseCases/SceneRoot/setupSceneRoot.js +0 -11
- package/lib/UseCases/index.d.ts +0 -7
- package/lib/UseCases/index.js +0 -19
- package/lib/UseCases/setDevicePreview.d.ts +0 -2
- package/lib/UseCases/setDevicePreview.js +0 -14
- package/lib/UseCases/setupStandardAppObjects.d.ts +0 -2
- package/lib/UseCases/setupStandardAppObjects.js +0 -10
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeAddLandmarkUC = exports.AddLandmarkUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const Utilities_1 = require("../../../Utilities");
|
|
6
|
+
const Label_1 = require("../../Label");
|
|
7
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
8
|
+
const LandmarkGlobals_1 = require("../Entities/LandmarkGlobals");
|
|
9
|
+
const LandmarkRepo_1 = require("../Entities/LandmarkRepo");
|
|
10
|
+
class AddLandmarkUC extends AppObject_1.AppObjectUC {
|
|
11
|
+
}
|
|
12
|
+
exports.AddLandmarkUC = AddLandmarkUC;
|
|
13
|
+
AddLandmarkUC.type = "AddLandmarkUC";
|
|
14
|
+
function makeAddLandmarkUC(appObject) {
|
|
15
|
+
return new AddLandmarkUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeAddLandmarkUC = makeAddLandmarkUC;
|
|
18
|
+
class AddLandmarkUCImp extends AddLandmarkUC {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
super(appObject, AddLandmarkUC.type);
|
|
21
|
+
this.landmarkRepo = appObject.getComponent(LandmarkRepo_1.LandmarkRepo.type);
|
|
22
|
+
if (!this.landmarkRepo) {
|
|
23
|
+
this.warn("LandmarkRepo App Object has not been added. Add to the LandmarkRepo App Object before Adding Landmark.");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this.transform3D = appObject.getComponent(Transform3D_1.Transform3D.type);
|
|
27
|
+
if (!this.transform3D) {
|
|
28
|
+
this.warn("Transform3D App Object has not been added. Add to the Transform3D App Object before Adding Landmark.");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.label = appObject.getComponent(Label_1.Label.type); // Not required
|
|
32
|
+
}
|
|
33
|
+
addFromData(data) {
|
|
34
|
+
if (!this.landmarkRepo || !this.transform3D)
|
|
35
|
+
return;
|
|
36
|
+
if (data.parentID !== this.appObject.id)
|
|
37
|
+
return;
|
|
38
|
+
const existingLandmark = this.landmarkRepo.getForAppObject(data.id);
|
|
39
|
+
if (existingLandmark) {
|
|
40
|
+
existingLandmark.data = data;
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const globals = this.appObjects.getSingleton(LandmarkGlobals_1.LandmarkGlobals.type);
|
|
44
|
+
if (!globals)
|
|
45
|
+
return;
|
|
46
|
+
const newLandmark = globals.landmarkFactory(data.id);
|
|
47
|
+
if (!newLandmark)
|
|
48
|
+
return;
|
|
49
|
+
newLandmark.transform.parent = this.transform3D;
|
|
50
|
+
newLandmark.data = data;
|
|
51
|
+
this.landmarkRepo.add(newLandmark);
|
|
52
|
+
return newLandmark;
|
|
53
|
+
}
|
|
54
|
+
addNew() {
|
|
55
|
+
if (!this.landmarkRepo || !this.transform3D)
|
|
56
|
+
return;
|
|
57
|
+
const globals = this.appObjects.getSingleton(LandmarkGlobals_1.LandmarkGlobals.type);
|
|
58
|
+
if (!globals)
|
|
59
|
+
return;
|
|
60
|
+
const newLandmark = globals.landmarkFactory(Utilities_1.generateUniqueID());
|
|
61
|
+
if (!newLandmark)
|
|
62
|
+
return;
|
|
63
|
+
newLandmark.transform.parent = this.transform3D;
|
|
64
|
+
this.landmarkRepo.add(newLandmark);
|
|
65
|
+
return newLandmark;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject";
|
|
2
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
import { LandmarkDTO } from "../Entities/LandmarkEntity";
|
|
4
|
+
export declare class AddLandmarkUndoRedo implements UndoRedoAction {
|
|
5
|
+
private landmarkDTO;
|
|
6
|
+
private appObject;
|
|
7
|
+
private landmarkRepo?;
|
|
8
|
+
private addLandmarkUC?;
|
|
9
|
+
private deleteLandmarkUC?;
|
|
10
|
+
undoAction: () => void;
|
|
11
|
+
redoAction: () => void;
|
|
12
|
+
constructor(landmarkDTO: LandmarkDTO, appObject: AppObject);
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddLandmarkUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
+
const LandmarkRepo_1 = require("../Entities/LandmarkRepo");
|
|
7
|
+
const AddLandmarkUC_1 = require("./AddLandmarkUC");
|
|
8
|
+
const DeleteLandmarkUC_1 = require("./DeleteLandmarkUC");
|
|
9
|
+
class AddLandmarkUndoRedo {
|
|
10
|
+
constructor(landmarkDTO, appObject) {
|
|
11
|
+
this.landmarkDTO = landmarkDTO;
|
|
12
|
+
this.appObject = appObject;
|
|
13
|
+
this.undoAction = () => {
|
|
14
|
+
if (!this.deleteLandmarkUC)
|
|
15
|
+
return;
|
|
16
|
+
this.deleteLandmarkUC.deleteLandmark(this.landmarkDTO.id, true);
|
|
17
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
18
|
+
};
|
|
19
|
+
this.redoAction = () => {
|
|
20
|
+
if (!this.addLandmarkUC)
|
|
21
|
+
return;
|
|
22
|
+
this.addLandmarkUC.addFromData(this.landmarkDTO);
|
|
23
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
24
|
+
};
|
|
25
|
+
this.landmarkRepo = appObject.getComponent(LandmarkRepo_1.LandmarkRepo.type);
|
|
26
|
+
if (!this.landmarkRepo) {
|
|
27
|
+
appObject.appObjectRepo.submitWarning("AddLandmarkUndoRedo", "App Object does not have a Landmark Repo");
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.addLandmarkUC = appObject.getComponent(AddLandmarkUC_1.AddLandmarkUC.type);
|
|
31
|
+
if (!this.addLandmarkUC) {
|
|
32
|
+
appObject.appObjectRepo.submitWarning("AddLandmarkUndoRedo", "App Object does not have a AddLandmarkUC");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.deleteLandmarkUC = appObject.getComponent(DeleteLandmarkUC_1.DeleteLandmarkUC.type);
|
|
36
|
+
if (!this.deleteLandmarkUC) {
|
|
37
|
+
appObject.appObjectRepo.submitWarning("AddLandmarkUndoRedo", "App Object does not have a DeleteLandmarkUC");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObject.appObjectRepo);
|
|
41
|
+
if (!undoRedo) {
|
|
42
|
+
appObject.appObjectRepo.submitWarning("AddLandmarkUndoRedo", "Unable to find UndoRedoEntity");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
undoRedo.submitAction(this);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.AddLandmarkUndoRedo = AddLandmarkUndoRedo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
export declare class DeleteLandmarkUC extends AppObjectUC {
|
|
3
|
+
static readonly type = "DeleteLandmarkUC";
|
|
4
|
+
private landmarkRepo?;
|
|
5
|
+
static get(appObj: AppObject): DeleteLandmarkUC | undefined;
|
|
6
|
+
static addIfMissing(appObj: AppObject): DeleteLandmarkUC;
|
|
7
|
+
deleteLandmark: (id: string, quietly?: boolean, createUndo?: boolean) => void;
|
|
8
|
+
constructor(appObject: AppObject);
|
|
9
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteLandmarkUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
+
const __1 = require("..");
|
|
7
|
+
const DeleteLandmarkUndoRedo_1 = require("./DeleteLandmarkUndoRedo");
|
|
8
|
+
class DeleteLandmarkUC extends AppObject_1.AppObjectUC {
|
|
9
|
+
constructor(appObject) {
|
|
10
|
+
super(appObject, DeleteLandmarkUC.type);
|
|
11
|
+
this.deleteLandmark = (id, quietly = false, createUndo = false) => {
|
|
12
|
+
if (!this.landmarkRepo)
|
|
13
|
+
return;
|
|
14
|
+
const landmarkAppObject = this.appObjects.get(id);
|
|
15
|
+
let landmarkEntity;
|
|
16
|
+
if (landmarkAppObject) {
|
|
17
|
+
landmarkEntity = __1.LandmarkEntity.get(landmarkAppObject);
|
|
18
|
+
}
|
|
19
|
+
if (createUndo && landmarkEntity) {
|
|
20
|
+
new DeleteLandmarkUndoRedo_1.DeleteLandmarkUndoRedo(landmarkEntity.data, this.appObject);
|
|
21
|
+
}
|
|
22
|
+
if (landmarkAppObject) {
|
|
23
|
+
this.landmarkRepo.removeForAppObject(landmarkAppObject.id);
|
|
24
|
+
landmarkAppObject.dispose();
|
|
25
|
+
}
|
|
26
|
+
if (!quietly) {
|
|
27
|
+
Dispatcher_1.dispatchStateChange(this.appObjects);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
this.landmarkRepo = appObject.getComponent(__1.LandmarkRepo.type);
|
|
31
|
+
if (!this.landmarkRepo) {
|
|
32
|
+
this.warn("App Object does not have a Landmark Repo");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
static get(appObj) {
|
|
36
|
+
return appObj.getComponent(this.type);
|
|
37
|
+
}
|
|
38
|
+
static addIfMissing(appObj) {
|
|
39
|
+
const existing = appObj.getComponent(this.type);
|
|
40
|
+
if (existing)
|
|
41
|
+
return existing;
|
|
42
|
+
else {
|
|
43
|
+
return new DeleteLandmarkUC(appObj);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.DeleteLandmarkUC = DeleteLandmarkUC;
|
|
48
|
+
DeleteLandmarkUC.type = "DeleteLandmarkUC";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject";
|
|
2
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
import { LandmarkDTO } from "../Entities/LandmarkEntity";
|
|
4
|
+
export declare class DeleteLandmarkUndoRedo implements UndoRedoAction {
|
|
5
|
+
private landmarkDTO;
|
|
6
|
+
private appObject;
|
|
7
|
+
private landmarkRepo?;
|
|
8
|
+
private addLandmarkUC?;
|
|
9
|
+
private deleteLandmarkUC?;
|
|
10
|
+
undoAction: () => void;
|
|
11
|
+
redoAction: () => void;
|
|
12
|
+
constructor(landmarkDTO: LandmarkDTO, appObject: AppObject);
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteLandmarkUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
+
const LandmarkRepo_1 = require("../Entities/LandmarkRepo");
|
|
7
|
+
const AddLandmarkUC_1 = require("./AddLandmarkUC");
|
|
8
|
+
const DeleteLandmarkUC_1 = require("./DeleteLandmarkUC");
|
|
9
|
+
class DeleteLandmarkUndoRedo {
|
|
10
|
+
constructor(landmarkDTO, appObject) {
|
|
11
|
+
this.landmarkDTO = landmarkDTO;
|
|
12
|
+
this.appObject = appObject;
|
|
13
|
+
this.undoAction = () => {
|
|
14
|
+
if (!this.addLandmarkUC)
|
|
15
|
+
return;
|
|
16
|
+
this.addLandmarkUC.addFromData(this.landmarkDTO);
|
|
17
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
18
|
+
};
|
|
19
|
+
this.redoAction = () => {
|
|
20
|
+
if (!this.deleteLandmarkUC)
|
|
21
|
+
return;
|
|
22
|
+
this.deleteLandmarkUC.deleteLandmark(this.landmarkDTO.id, true);
|
|
23
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
24
|
+
};
|
|
25
|
+
this.landmarkRepo = appObject.getComponent(LandmarkRepo_1.LandmarkRepo.type);
|
|
26
|
+
if (!this.landmarkRepo) {
|
|
27
|
+
appObject.appObjectRepo.submitWarning("DeleteLandmarkUndoRedo", "App Object does not have a Landmark Repo");
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.addLandmarkUC = appObject.getComponent(AddLandmarkUC_1.AddLandmarkUC.type);
|
|
31
|
+
if (!this.addLandmarkUC) {
|
|
32
|
+
appObject.appObjectRepo.submitWarning("DeleteLandmarkUndoRedo", "App Object does not have a AddLandmarkUC");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.deleteLandmarkUC = appObject.getComponent(DeleteLandmarkUC_1.DeleteLandmarkUC.type);
|
|
36
|
+
if (!this.deleteLandmarkUC) {
|
|
37
|
+
appObject.appObjectRepo.submitWarning("DeleteLandmarkUndoRedo", "App Object does not have a DeleteLandmarkUC");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObject.appObjectRepo);
|
|
41
|
+
if (!undoRedo) {
|
|
42
|
+
appObject.appObjectRepo.submitWarning("DeleteLandmarkUndoRedo", "Unable to find UndoRedoEntity");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
undoRedo.submitAction(this);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.DeleteLandmarkUndoRedo = DeleteLandmarkUndoRedo;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { SerializedSystem } from "../../StateMachine";
|
|
3
|
+
import { LandmarkDTO } from "../Entities/LandmarkEntity";
|
|
4
|
+
export declare class SerializeLandmarks extends AppObjectUC implements SerializedSystem {
|
|
5
|
+
static readonly type = "SerializeLandmarks";
|
|
6
|
+
name: string;
|
|
7
|
+
seriliziationVersion: number;
|
|
8
|
+
getSystemState(): object;
|
|
9
|
+
applySystemState(state: object, version: number): void;
|
|
10
|
+
private handleStateVersion1;
|
|
11
|
+
applyDefaultState(): void;
|
|
12
|
+
constructor(appObj: AppObject);
|
|
13
|
+
}
|
|
14
|
+
export interface SerializedLandmarksV1 {
|
|
15
|
+
landmarks: LandmarkDTO[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SerializeLandmarks = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const Enablement_1 = require("../../Enablement");
|
|
6
|
+
const StateMachine_1 = require("../../StateMachine");
|
|
7
|
+
const LandmarkEntity_1 = require("../Entities/LandmarkEntity");
|
|
8
|
+
const LandmarkGlobals_1 = require("../Entities/LandmarkGlobals");
|
|
9
|
+
const LandmarkRepo_1 = require("../Entities/LandmarkRepo");
|
|
10
|
+
const AddLandmarkUC_1 = require("./AddLandmarkUC");
|
|
11
|
+
class SerializeLandmarks extends AppObject_1.AppObjectUC {
|
|
12
|
+
constructor(appObj) {
|
|
13
|
+
super(appObj, SerializeLandmarks.type);
|
|
14
|
+
this.name = "landmarks";
|
|
15
|
+
this.seriliziationVersion = 1;
|
|
16
|
+
const stateMachine = this.appObjects.getSingleton(StateMachine_1.StateMachineEntity.type);
|
|
17
|
+
if (stateMachine) {
|
|
18
|
+
stateMachine.registerSerializedSystem(this);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this.warn("Unable to find StateMachineEntity");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
getSystemState() {
|
|
25
|
+
const repos = this.appObjects.getAllComponents(LandmarkRepo_1.LandmarkRepo.type);
|
|
26
|
+
const landmarks = [];
|
|
27
|
+
repos.forEach((repo) => {
|
|
28
|
+
const enabledEntity = repo.appObject.getComponent(Enablement_1.EnablablementEntity.type);
|
|
29
|
+
let enabled = false;
|
|
30
|
+
if (enabledEntity) {
|
|
31
|
+
enabled = enabledEntity.enabled;
|
|
32
|
+
}
|
|
33
|
+
if (enabled) {
|
|
34
|
+
repo.getAll().forEach((landmark) => {
|
|
35
|
+
if (landmark.parentID) {
|
|
36
|
+
landmarks.push(landmark.data);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return {
|
|
42
|
+
landmarks,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
applySystemState(state, version) {
|
|
46
|
+
if (version === 1) {
|
|
47
|
+
this.handleStateVersion1(state);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.warn("Unsupported state version. Reverting to default");
|
|
51
|
+
this.applyDefaultState();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
handleStateVersion1(state) {
|
|
55
|
+
const { landmarks } = state;
|
|
56
|
+
if (!landmarks) {
|
|
57
|
+
this.warn("Unable to parse state. Reverting to default");
|
|
58
|
+
this.applyDefaultState();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const previousLandmarkLookup = new Map();
|
|
62
|
+
const allLandmarks = this.appObjects.getAllComponents(LandmarkEntity_1.LandmarkEntity.type);
|
|
63
|
+
allLandmarks.forEach((landmark) => {
|
|
64
|
+
if (landmark.parentID) {
|
|
65
|
+
previousLandmarkLookup.set(landmark.appObject.id, landmark);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
landmarks.forEach((landmarkData) => {
|
|
69
|
+
var _a;
|
|
70
|
+
const existing = previousLandmarkLookup.get(landmarkData.id);
|
|
71
|
+
if (existing) {
|
|
72
|
+
existing.data = landmarkData;
|
|
73
|
+
previousLandmarkLookup.delete(landmarkData.id);
|
|
74
|
+
}
|
|
75
|
+
let addUC = this.appObjects.getAppObjectComponent(landmarkData.parentID, AddLandmarkUC_1.AddLandmarkUC.type);
|
|
76
|
+
if (!addUC) {
|
|
77
|
+
const globals = this.appObjects.getSingleton(LandmarkGlobals_1.LandmarkGlobals.type);
|
|
78
|
+
const newRepoAO = (_a = globals === null || globals === void 0 ? void 0 : globals.landmarkRepoFactory(landmarkData.parentID)) === null || _a === void 0 ? void 0 : _a.appObject;
|
|
79
|
+
addUC = newRepoAO === null || newRepoAO === void 0 ? void 0 : newRepoAO.getComponent(AddLandmarkUC_1.AddLandmarkUC.type);
|
|
80
|
+
}
|
|
81
|
+
if (addUC) {
|
|
82
|
+
addUC.addFromData(landmarkData);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.error("No create UC");
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
previousLandmarkLookup.forEach((landmark) => {
|
|
89
|
+
var _a;
|
|
90
|
+
(_a = landmark.inRepo) === null || _a === void 0 ? void 0 : _a.removeForAppObject(landmark.appObject.id);
|
|
91
|
+
landmark.appObject.dispose();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
applyDefaultState() {
|
|
95
|
+
const repos = this.appObjects.getAllComponents(LandmarkRepo_1.LandmarkRepo.type);
|
|
96
|
+
repos.forEach((repo) => {
|
|
97
|
+
const landmarks = repo.getAll();
|
|
98
|
+
landmarks.forEach((landmark) => {
|
|
99
|
+
if (landmark.parentID) {
|
|
100
|
+
landmark.appObject.dispose();
|
|
101
|
+
repo.removeForAppObject(landmark.appObject.id);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.SerializeLandmarks = SerializeLandmarks;
|
|
108
|
+
SerializeLandmarks.type = "SerializeLandmarks";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
export declare class SetLandmarkSizeUC extends AppObjectUC {
|
|
3
|
+
static readonly type = "SetLandmarkSizeUC";
|
|
4
|
+
private initialValue?;
|
|
5
|
+
private landmark?;
|
|
6
|
+
private landmarkGlobals?;
|
|
7
|
+
getClampedSize(size: number): number;
|
|
8
|
+
updateSize(size: number): void;
|
|
9
|
+
submitSize(size: number): void;
|
|
10
|
+
constructor(appObject: AppObject);
|
|
11
|
+
static get(appObj: AppObject): SetLandmarkSizeUC | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetLandmarkSizeUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
+
const LandmarkEntity_1 = require("../Entities/LandmarkEntity");
|
|
7
|
+
const LandmarkGlobals_1 = require("../Entities/LandmarkGlobals");
|
|
8
|
+
const SetLandmarkSizeUndoRedo_1 = require("./SetLandmarkSizeUndoRedo");
|
|
9
|
+
class SetLandmarkSizeUC extends AppObject_1.AppObjectUC {
|
|
10
|
+
constructor(appObject) {
|
|
11
|
+
super(appObject, SetLandmarkSizeUC.type);
|
|
12
|
+
this.landmark = appObject.getComponent(LandmarkEntity_1.LandmarkEntity.type);
|
|
13
|
+
if (!this.landmark) {
|
|
14
|
+
this.warn("SetLandmarkSizeUC has been added to an App Object that does not have a LandmarkEntity. Add a LandmarkEntity before adding the UC");
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
this.landmarkGlobals = LandmarkGlobals_1.LandmarkGlobals.get(this.appObjects);
|
|
18
|
+
if (!this.landmarkGlobals) {
|
|
19
|
+
this.warn("SetLandmarkSizeUC has been added to an App Object but LandmarkGlobals Entity was not added. Add a LandmarkGlobals Entity");
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
getClampedSize(size) {
|
|
24
|
+
return Math.max(LandmarkEntity_1.LANDMARK_MINIMUM_SIZE, Math.min(LandmarkEntity_1.LANDMARK_MAXIMUM_SIZE, size));
|
|
25
|
+
}
|
|
26
|
+
updateSize(size) {
|
|
27
|
+
if (!this.landmark)
|
|
28
|
+
return;
|
|
29
|
+
if (!this.landmarkGlobals)
|
|
30
|
+
return;
|
|
31
|
+
if (this.initialValue === undefined) {
|
|
32
|
+
this.initialValue = size;
|
|
33
|
+
}
|
|
34
|
+
const clampedSize = this.getClampedSize(size);
|
|
35
|
+
this.landmark.size = clampedSize;
|
|
36
|
+
this.landmarkGlobals.lastSize = clampedSize;
|
|
37
|
+
}
|
|
38
|
+
submitSize(size) {
|
|
39
|
+
if (!this.initialValue)
|
|
40
|
+
return;
|
|
41
|
+
if (!this.landmark)
|
|
42
|
+
return;
|
|
43
|
+
if (!this.landmarkGlobals)
|
|
44
|
+
return;
|
|
45
|
+
const clampedSize = this.getClampedSize(size);
|
|
46
|
+
this.landmark.size = clampedSize;
|
|
47
|
+
this.landmarkGlobals.lastSize = clampedSize;
|
|
48
|
+
new SetLandmarkSizeUndoRedo_1.SetLandmarkSizeUndoRedo(clampedSize, this.initialValue, this.appObject);
|
|
49
|
+
Dispatcher_1.dispatchStateChange(this.appObjects);
|
|
50
|
+
this.initialValue = undefined;
|
|
51
|
+
}
|
|
52
|
+
static get(appObj) {
|
|
53
|
+
return appObj.getComponent(this.type);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.SetLandmarkSizeUC = SetLandmarkSizeUC;
|
|
57
|
+
SetLandmarkSizeUC.type = "SetLandmarkSizeUC";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject";
|
|
2
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
export declare class SetLandmarkSizeUndoRedo implements UndoRedoAction {
|
|
4
|
+
private size;
|
|
5
|
+
private initialSize;
|
|
6
|
+
private appObject;
|
|
7
|
+
private landmark?;
|
|
8
|
+
undoAction: () => void;
|
|
9
|
+
redoAction: () => void;
|
|
10
|
+
constructor(size: number, initialSize: number, appObject: AppObject);
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetLandmarkSizeUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
+
const LandmarkEntity_1 = require("../Entities/LandmarkEntity");
|
|
7
|
+
class SetLandmarkSizeUndoRedo {
|
|
8
|
+
constructor(size, initialSize, appObject) {
|
|
9
|
+
this.size = size;
|
|
10
|
+
this.initialSize = initialSize;
|
|
11
|
+
this.appObject = appObject;
|
|
12
|
+
this.undoAction = () => {
|
|
13
|
+
if (!this.landmark)
|
|
14
|
+
return;
|
|
15
|
+
this.landmark.size = this.initialSize;
|
|
16
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
17
|
+
};
|
|
18
|
+
this.redoAction = () => {
|
|
19
|
+
if (!this.landmark)
|
|
20
|
+
return;
|
|
21
|
+
this.landmark.size = this.size;
|
|
22
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
23
|
+
};
|
|
24
|
+
this.landmark = appObject.getComponent(LandmarkEntity_1.LandmarkEntity.type);
|
|
25
|
+
if (!this.landmark) {
|
|
26
|
+
appObject.appObjectRepo.submitWarning("SetLandmarkSizeUndoRedo", "Unable to find LandmarkEntity");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObject.appObjectRepo);
|
|
30
|
+
if (!undoRedo) {
|
|
31
|
+
appObject.appObjectRepo.submitWarning("SetLandmarkSizeUndoRedo", "Unable to find UndoRedoEntity");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
undoRedo.submitAction(this);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.SetLandmarkSizeUndoRedo = SetLandmarkSizeUndoRedo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { OverlayColorEnums } from "../../OverlayColor";
|
|
3
|
+
export declare class SetOverlayColorUC extends AppObjectUC {
|
|
4
|
+
static readonly type = "SetOverlayColorUC";
|
|
5
|
+
private overlayColor?;
|
|
6
|
+
private landmarkGlobals?;
|
|
7
|
+
setOverlayColor: (color: OverlayColorEnums) => void;
|
|
8
|
+
dispose: () => void;
|
|
9
|
+
constructor(appObject: AppObject);
|
|
10
|
+
static get(appObj: AppObject): SetOverlayColorUC | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetOverlayColorUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
+
const OverlayColor_1 = require("../../OverlayColor");
|
|
7
|
+
const LandmarkGlobals_1 = require("../Entities/LandmarkGlobals");
|
|
8
|
+
const SetOverlayColorUndoRedo_1 = require("./SetOverlayColorUndoRedo");
|
|
9
|
+
class SetOverlayColorUC extends AppObject_1.AppObjectUC {
|
|
10
|
+
constructor(appObject) {
|
|
11
|
+
super(appObject, SetOverlayColorUC.type);
|
|
12
|
+
this.setOverlayColor = (color) => {
|
|
13
|
+
if (!this.overlayColor)
|
|
14
|
+
return;
|
|
15
|
+
if (!this.landmarkGlobals)
|
|
16
|
+
return;
|
|
17
|
+
if (this.overlayColor.overlayColor === color)
|
|
18
|
+
return;
|
|
19
|
+
const prevColor = this.overlayColor.overlayColor;
|
|
20
|
+
this.overlayColor.overlayColor = color;
|
|
21
|
+
Dispatcher_1.dispatchStateChange(this.appObjects);
|
|
22
|
+
new SetOverlayColorUndoRedo_1.SetOverlayColorUndoRedo(color, prevColor, this.appObject);
|
|
23
|
+
this.landmarkGlobals.lastColor = color;
|
|
24
|
+
};
|
|
25
|
+
this.dispose = () => {
|
|
26
|
+
var _a;
|
|
27
|
+
super.dispose();
|
|
28
|
+
(_a = this.overlayColor) === null || _a === void 0 ? void 0 : _a.removeOnDisposeObserver(this.dispose);
|
|
29
|
+
};
|
|
30
|
+
this.landmarkGlobals = LandmarkGlobals_1.LandmarkGlobals.get(this.appObjects);
|
|
31
|
+
if (!this.landmarkGlobals) {
|
|
32
|
+
this.warn("SetOverlayColorUC has been added to an App Object but LandmarkGlobals Entity was not added. Add a LandmarkGlobals Entity");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.overlayColor = appObject.getComponent(OverlayColor_1.OverlayColor.type);
|
|
36
|
+
if (!this.overlayColor) {
|
|
37
|
+
this.warn("SetOverlayColorUC has been added to an App Object that does not have a Overlay Color Entity. Add a Overlay Color Entity before adding the UC");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
static get(appObj) {
|
|
42
|
+
return appObj.getComponent(this.type);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.SetOverlayColorUC = SetOverlayColorUC;
|
|
46
|
+
SetOverlayColorUC.type = "SetOverlayColorUC";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppObject } from "../../../AppObject";
|
|
2
|
+
import { OverlayColorEnums } from "../../OverlayColor";
|
|
3
|
+
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
4
|
+
export declare class SetOverlayColorUndoRedo implements UndoRedoAction {
|
|
5
|
+
private color;
|
|
6
|
+
private preColor;
|
|
7
|
+
private appObject;
|
|
8
|
+
private overlayColor?;
|
|
9
|
+
undoAction: () => void;
|
|
10
|
+
redoAction: () => void;
|
|
11
|
+
constructor(color: OverlayColorEnums, preColor: OverlayColorEnums, appObject: AppObject);
|
|
12
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetOverlayColorUndoRedo = void 0;
|
|
4
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
|
+
const OverlayColor_1 = require("../../OverlayColor");
|
|
6
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
7
|
+
class SetOverlayColorUndoRedo {
|
|
8
|
+
constructor(color, preColor, appObject) {
|
|
9
|
+
this.color = color;
|
|
10
|
+
this.preColor = preColor;
|
|
11
|
+
this.appObject = appObject;
|
|
12
|
+
this.undoAction = () => {
|
|
13
|
+
if (!this.overlayColor)
|
|
14
|
+
return;
|
|
15
|
+
this.overlayColor.overlayColor = this.preColor;
|
|
16
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
17
|
+
};
|
|
18
|
+
this.redoAction = () => {
|
|
19
|
+
if (!this.overlayColor)
|
|
20
|
+
return;
|
|
21
|
+
this.overlayColor.overlayColor = this.color;
|
|
22
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
23
|
+
};
|
|
24
|
+
this.overlayColor = OverlayColor_1.OverlayColor.get(this.appObject);
|
|
25
|
+
if (!this.overlayColor) {
|
|
26
|
+
appObject.appObjectRepo.submitWarning("SetOverlayColorUndoRedo", "Unable to find OverlayColorEntity");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObject.appObjectRepo);
|
|
30
|
+
if (!undoRedo) {
|
|
31
|
+
appObject.appObjectRepo.submitWarning("SetOverlayColorUndoRedo", "Unable to find UndoRedoEntity");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
undoRedo.submitAction(this);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.SetOverlayColorUndoRedo = SetOverlayColorUndoRedo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { ParametricLine } from "../../../ValueObjects";
|
|
3
|
+
import { LandmarkEntity } from "../Entities/LandmarkEntity";
|
|
4
|
+
export declare abstract class TryAddNewLandmarkUC extends AppObjectUC {
|
|
5
|
+
static readonly type = "TryAddNewLandmarkUC";
|
|
6
|
+
abstract addFromRay(ray: ParametricLine): LandmarkEntity | undefined;
|
|
7
|
+
static get(appObj: AppObject): TryAddNewLandmarkUC | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function makeTryAddLandmarkUC(appObject: AppObject): TryAddNewLandmarkUC;
|