@vived/app 4.3.0 → 4.4.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/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
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeBasicDispatcher = exports.APP_DISPATCHER_ID = void 0;
|
|
4
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
5
|
-
const DispatchStartZSpaceUC_1 = require("../UC/DispatchStartZSpaceUC");
|
|
6
|
-
const DispatchStopZSpaceUC_1 = require("../UC/DispatchStopZSpaceUC");
|
|
7
|
-
const GoToNextStateUC_1 = require("../UC/GoToNextStateUC");
|
|
8
|
-
const GoToPreviousStateUC_1 = require("../UC/GoToPreviousStateUC");
|
|
9
|
-
const HasNextStateUC_1 = require("../UC/HasNextStateUC");
|
|
10
|
-
const HasPreviousStateUC_1 = require("../UC/HasPreviousStateUC");
|
|
11
|
-
const IsZSpaceAvailableUC_1 = require("../UC/IsZSpaceAvailableUC");
|
|
12
|
-
exports.APP_DISPATCHER_ID = "AppDispatcher";
|
|
13
|
-
function makeBasicDispatcher(appObjects, hostHandler) {
|
|
14
|
-
const dispatcherAO = appObjects.getOrCreate(exports.APP_DISPATCHER_ID);
|
|
15
|
-
AppDispatcher_1.makeAppDispatcher(dispatcherAO, hostHandler);
|
|
16
|
-
DispatchStopZSpaceUC_1.makeDispatchStopZSpaceUC(dispatcherAO);
|
|
17
|
-
DispatchStartZSpaceUC_1.makeDispatchStartZSpaceUC(dispatcherAO);
|
|
18
|
-
GoToPreviousStateUC_1.makeGoToPreviousStateUC(dispatcherAO);
|
|
19
|
-
GoToNextStateUC_1.makeGoToNextStateUC(dispatcherAO);
|
|
20
|
-
HasPreviousStateUC_1.makeHasPreviousStateUC(dispatcherAO);
|
|
21
|
-
HasNextStateUC_1.makeHasNextStateUC(dispatcherAO);
|
|
22
|
-
IsZSpaceAvailableUC_1.makeIsZSpaceAvailableUC(dispatcherAO);
|
|
23
|
-
return dispatcherAO;
|
|
24
|
-
}
|
|
25
|
-
exports.makeBasicDispatcher = makeBasicDispatcher;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
-
export declare abstract class DispatchStartZSpaceUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "DispatchStartZSpaceUC";
|
|
6
|
-
readonly requestType = "START_ZSPACE";
|
|
7
|
-
abstract doDispatch(): void;
|
|
8
|
-
static get(appObjects: AppObjectRepo): DispatchStartZSpaceUC | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeDispatchStartZSpaceUC(appObject: AppObject): DispatchStartZSpaceUC;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeDispatchStartZSpaceUC = exports.DispatchStartZSpaceUC = void 0;
|
|
4
|
-
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
6
|
-
class DispatchStartZSpaceUC extends AppObjectUC_1.AppObjectUC {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.requestType = "START_ZSPACE";
|
|
10
|
-
}
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
const selectionEntities = appObjects.getAllComponents(DispatchStartZSpaceUC.type);
|
|
13
|
-
if (selectionEntities.length === 0) {
|
|
14
|
-
console.warn("Unable to find a DispatchStartZSpaceUC. Add one on Mount");
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else if (selectionEntities.length > 1) {
|
|
18
|
-
console.warn("Multiple DispatchStartZSpaceUC have been found. There should only be one. Using the first one");
|
|
19
|
-
}
|
|
20
|
-
return selectionEntities[0];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.DispatchStartZSpaceUC = DispatchStartZSpaceUC;
|
|
24
|
-
DispatchStartZSpaceUC.type = "DispatchStartZSpaceUC";
|
|
25
|
-
function makeDispatchStartZSpaceUC(appObject) {
|
|
26
|
-
return new DispatchStateChangeUCImp(appObject);
|
|
27
|
-
}
|
|
28
|
-
exports.makeDispatchStartZSpaceUC = makeDispatchStartZSpaceUC;
|
|
29
|
-
class DispatchStateChangeUCImp extends DispatchStartZSpaceUC {
|
|
30
|
-
constructor(appObject) {
|
|
31
|
-
super(appObject, DispatchStartZSpaceUC.type);
|
|
32
|
-
this.requestVersion = 1;
|
|
33
|
-
this.appDispatcher = appObject.getComponent(AppDispatcher_1.AppDispatcher.type);
|
|
34
|
-
if (!this.appDispatcher) {
|
|
35
|
-
console.warn("DispatchStartZSpaceUC has been added to an App Object that does not have a AppDispatcher. Add a dispatcher first");
|
|
36
|
-
this.dispose();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
doDispatch() {
|
|
40
|
-
if (!this.appDispatcher)
|
|
41
|
-
return;
|
|
42
|
-
this.appDispatcher.formRequestAndDispatch(this.requestType, this.requestVersion);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
-
export declare abstract class DispatchStopZSpaceUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "DispatchStopZSpaceUC";
|
|
6
|
-
readonly requestType = "STOP_ZSPACE";
|
|
7
|
-
abstract doDispatch(): void;
|
|
8
|
-
static get(appObjects: AppObjectRepo): DispatchStopZSpaceUC | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeDispatchStopZSpaceUC(appObject: AppObject): DispatchStopZSpaceUC;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeDispatchStopZSpaceUC = exports.DispatchStopZSpaceUC = void 0;
|
|
4
|
-
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
6
|
-
class DispatchStopZSpaceUC extends AppObjectUC_1.AppObjectUC {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.requestType = "STOP_ZSPACE";
|
|
10
|
-
}
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
const selectionEntities = appObjects.getAllComponents(DispatchStopZSpaceUC.type);
|
|
13
|
-
if (selectionEntities.length === 0) {
|
|
14
|
-
console.warn("Unable to find a DispatchStopZSpaceUC. Add one on Mount");
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else if (selectionEntities.length > 1) {
|
|
18
|
-
console.warn("Multiple DispatchStopZSpaceUC have been found. There should only be one. Using the first one");
|
|
19
|
-
}
|
|
20
|
-
return selectionEntities[0];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.DispatchStopZSpaceUC = DispatchStopZSpaceUC;
|
|
24
|
-
DispatchStopZSpaceUC.type = "DispatchStopZSpaceUC";
|
|
25
|
-
function makeDispatchStopZSpaceUC(appObject) {
|
|
26
|
-
return new DispatchStateChangeUCImp(appObject);
|
|
27
|
-
}
|
|
28
|
-
exports.makeDispatchStopZSpaceUC = makeDispatchStopZSpaceUC;
|
|
29
|
-
class DispatchStateChangeUCImp extends DispatchStopZSpaceUC {
|
|
30
|
-
constructor(appObject) {
|
|
31
|
-
super(appObject, DispatchStopZSpaceUC.type);
|
|
32
|
-
this.requestVersion = 1;
|
|
33
|
-
this.appDispatcher = appObject.getComponent(AppDispatcher_1.AppDispatcher.type);
|
|
34
|
-
if (!this.appDispatcher) {
|
|
35
|
-
console.warn("DispatchStopZSpaceUC has been added to an App Object that does not have a AppDispatcher. Add a dispatcher first");
|
|
36
|
-
this.dispose();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
doDispatch() {
|
|
40
|
-
if (!this.appDispatcher)
|
|
41
|
-
return;
|
|
42
|
-
this.appDispatcher.formRequestAndDispatch(this.requestType, this.requestVersion);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
-
export declare abstract class GoToNextStateUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "GoToNextStateUC";
|
|
6
|
-
readonly requestType = "GO_TO_NEXT_STATE";
|
|
7
|
-
abstract doDispatch(): void;
|
|
8
|
-
static get(appObjects: AppObjectRepo): GoToNextStateUC | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeGoToNextStateUC(appObject: AppObject): GoToNextStateUC;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeGoToNextStateUC = exports.GoToNextStateUC = void 0;
|
|
4
|
-
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
6
|
-
class GoToNextStateUC extends AppObjectUC_1.AppObjectUC {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.requestType = "GO_TO_NEXT_STATE";
|
|
10
|
-
}
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
const selectionEntities = appObjects.getAllComponents(GoToNextStateUC.type);
|
|
13
|
-
if (selectionEntities.length === 0) {
|
|
14
|
-
console.warn("Unable to find a GoToNextStateUC. Add one on Mount");
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else if (selectionEntities.length > 1) {
|
|
18
|
-
console.warn("Multiple GoToNextStateUC have been found. There should only be one. Using the first one");
|
|
19
|
-
}
|
|
20
|
-
return selectionEntities[0];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.GoToNextStateUC = GoToNextStateUC;
|
|
24
|
-
GoToNextStateUC.type = "GoToNextStateUC";
|
|
25
|
-
function makeGoToNextStateUC(appObject) {
|
|
26
|
-
return new DispatchStateChangeUCImp(appObject);
|
|
27
|
-
}
|
|
28
|
-
exports.makeGoToNextStateUC = makeGoToNextStateUC;
|
|
29
|
-
class DispatchStateChangeUCImp extends GoToNextStateUC {
|
|
30
|
-
constructor(appObject) {
|
|
31
|
-
super(appObject, GoToNextStateUC.type);
|
|
32
|
-
this.requestVersion = 1;
|
|
33
|
-
this.appDispatcher = appObject.getComponent(AppDispatcher_1.AppDispatcher.type);
|
|
34
|
-
if (!this.appDispatcher) {
|
|
35
|
-
console.warn("GoToNextStateUC has been added to an App Object that does not have a AppDispatcher. Add a dispatcher first");
|
|
36
|
-
this.dispose();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
doDispatch() {
|
|
40
|
-
if (!this.appDispatcher)
|
|
41
|
-
return;
|
|
42
|
-
this.appDispatcher.formRequestAndDispatch(this.requestType, this.requestVersion);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
-
export declare abstract class GoToPreviousStateUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "GoToPreviousStateUC";
|
|
6
|
-
readonly requestType = "GO_TO_PREVIOUS_STATE";
|
|
7
|
-
abstract doDispatch(): void;
|
|
8
|
-
static get(appObjects: AppObjectRepo): GoToPreviousStateUC | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeGoToPreviousStateUC(appObject: AppObject): GoToPreviousStateUC;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeGoToPreviousStateUC = exports.GoToPreviousStateUC = void 0;
|
|
4
|
-
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
6
|
-
class GoToPreviousStateUC extends AppObjectUC_1.AppObjectUC {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.requestType = "GO_TO_PREVIOUS_STATE";
|
|
10
|
-
}
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
const selectionEntities = appObjects.getAllComponents(GoToPreviousStateUC.type);
|
|
13
|
-
if (selectionEntities.length === 0) {
|
|
14
|
-
console.warn("Unable to find a GoToPreviousStateUC. Add one on Mount");
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else if (selectionEntities.length > 1) {
|
|
18
|
-
console.warn("Multiple GoToPreviousStateUC have been found. There should only be one. Using the first one");
|
|
19
|
-
}
|
|
20
|
-
return selectionEntities[0];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.GoToPreviousStateUC = GoToPreviousStateUC;
|
|
24
|
-
GoToPreviousStateUC.type = "GoToPreviousStateUC";
|
|
25
|
-
function makeGoToPreviousStateUC(appObject) {
|
|
26
|
-
return new DispatchStateChangeUCImp(appObject);
|
|
27
|
-
}
|
|
28
|
-
exports.makeGoToPreviousStateUC = makeGoToPreviousStateUC;
|
|
29
|
-
class DispatchStateChangeUCImp extends GoToPreviousStateUC {
|
|
30
|
-
constructor(appObject) {
|
|
31
|
-
super(appObject, GoToPreviousStateUC.type);
|
|
32
|
-
this.requestVersion = 1;
|
|
33
|
-
this.appDispatcher = appObject.getComponent(AppDispatcher_1.AppDispatcher.type);
|
|
34
|
-
if (!this.appDispatcher) {
|
|
35
|
-
console.warn("GoToPreviousStateUC has been added to an App Object that does not have a AppDispatcher. Add a dispatcher first");
|
|
36
|
-
this.dispose();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
doDispatch() {
|
|
40
|
-
if (!this.appDispatcher)
|
|
41
|
-
return;
|
|
42
|
-
this.appDispatcher.formRequestAndDispatch(this.requestType, this.requestVersion);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
-
export declare abstract class HasNextStateUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "HasNextStateUC";
|
|
6
|
-
readonly requestType = "HAS_NEXT_STATE";
|
|
7
|
-
abstract doDispatch(): Promise<boolean>;
|
|
8
|
-
static get(appObjects: AppObjectRepo): HasNextStateUC | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeHasNextStateUC(appObject: AppObject): HasNextStateUC;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeHasNextStateUC = exports.HasNextStateUC = void 0;
|
|
4
|
-
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
6
|
-
class HasNextStateUC extends AppObjectUC_1.AppObjectUC {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.requestType = "HAS_NEXT_STATE";
|
|
10
|
-
}
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
const selectionEntities = appObjects.getAllComponents(HasNextStateUC.type);
|
|
13
|
-
if (selectionEntities.length === 0) {
|
|
14
|
-
console.warn("Unable to find a HasNextStateUC. Add one on Mount");
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else if (selectionEntities.length > 1) {
|
|
18
|
-
console.warn("Multiple HasNextStateUC have been found. There should only be one. Using the first one");
|
|
19
|
-
}
|
|
20
|
-
return selectionEntities[0];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.HasNextStateUC = HasNextStateUC;
|
|
24
|
-
HasNextStateUC.type = "HasNextStateUC";
|
|
25
|
-
function makeHasNextStateUC(appObject) {
|
|
26
|
-
return new DispatchStateChangeUCImp(appObject);
|
|
27
|
-
}
|
|
28
|
-
exports.makeHasNextStateUC = makeHasNextStateUC;
|
|
29
|
-
class DispatchStateChangeUCImp extends HasNextStateUC {
|
|
30
|
-
constructor(appObject) {
|
|
31
|
-
super(appObject, HasNextStateUC.type);
|
|
32
|
-
this.requestVersion = 1;
|
|
33
|
-
this.appDispatcher = appObject.getComponent(AppDispatcher_1.AppDispatcher.type);
|
|
34
|
-
if (!this.appDispatcher) {
|
|
35
|
-
console.warn("HasNextStateUC has been added to an App Object that does not have a AppDispatcher. Add a dispatcher first");
|
|
36
|
-
this.dispose();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
doDispatch() {
|
|
40
|
-
return new Promise((resolve, reject) => {
|
|
41
|
-
const callback = (hasNextState) => {
|
|
42
|
-
resolve(hasNextState);
|
|
43
|
-
};
|
|
44
|
-
const payload = {
|
|
45
|
-
callback,
|
|
46
|
-
};
|
|
47
|
-
if (!this.appDispatcher)
|
|
48
|
-
return reject(new Error("No host handler has been registered"));
|
|
49
|
-
else {
|
|
50
|
-
this.appDispatcher.formRequestAndDispatch(this.requestType, this.requestVersion, payload);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
-
export declare abstract class HasPreviousStateUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "HasPreviousStateUC";
|
|
6
|
-
readonly requestType = "HAS_PREVIOUS_STATE";
|
|
7
|
-
abstract doDispatch(): Promise<boolean>;
|
|
8
|
-
static get(appObjects: AppObjectRepo): HasPreviousStateUC | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeHasPreviousStateUC(appObject: AppObject): HasPreviousStateUC;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeHasPreviousStateUC = exports.HasPreviousStateUC = void 0;
|
|
4
|
-
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
6
|
-
class HasPreviousStateUC extends AppObjectUC_1.AppObjectUC {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.requestType = "HAS_PREVIOUS_STATE";
|
|
10
|
-
}
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
const selectionEntities = appObjects.getAllComponents(HasPreviousStateUC.type);
|
|
13
|
-
if (selectionEntities.length === 0) {
|
|
14
|
-
console.warn("Unable to find a HasPreviousStateUC. Add one on Mount");
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else if (selectionEntities.length > 1) {
|
|
18
|
-
console.warn("Multiple HasPreviousStateUC have been found. There should only be one. Using the first one");
|
|
19
|
-
}
|
|
20
|
-
return selectionEntities[0];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.HasPreviousStateUC = HasPreviousStateUC;
|
|
24
|
-
HasPreviousStateUC.type = "HasPreviousStateUC";
|
|
25
|
-
function makeHasPreviousStateUC(appObject) {
|
|
26
|
-
return new DispatchStateChangeUCImp(appObject);
|
|
27
|
-
}
|
|
28
|
-
exports.makeHasPreviousStateUC = makeHasPreviousStateUC;
|
|
29
|
-
class DispatchStateChangeUCImp extends HasPreviousStateUC {
|
|
30
|
-
constructor(appObject) {
|
|
31
|
-
super(appObject, HasPreviousStateUC.type);
|
|
32
|
-
this.requestVersion = 1;
|
|
33
|
-
this.appDispatcher = appObject.getComponent(AppDispatcher_1.AppDispatcher.type);
|
|
34
|
-
if (!this.appDispatcher) {
|
|
35
|
-
console.warn("HasPreviousStateUC has been added to an App Object that does not have a AppDispatcher. Add a dispatcher first");
|
|
36
|
-
this.dispose();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
doDispatch() {
|
|
40
|
-
return new Promise((resolve, reject) => {
|
|
41
|
-
const callback = (hasNextState) => {
|
|
42
|
-
resolve(hasNextState);
|
|
43
|
-
};
|
|
44
|
-
const payload = {
|
|
45
|
-
callback,
|
|
46
|
-
};
|
|
47
|
-
if (!this.appDispatcher)
|
|
48
|
-
return reject(new Error("No host handler has been registered"));
|
|
49
|
-
else {
|
|
50
|
-
this.appDispatcher.formRequestAndDispatch(this.requestType, this.requestVersion, payload);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { AppObjectUC } from "../../../AppObject/AppObjectUC";
|
|
4
|
-
export declare abstract class IsZSpaceAvailableUC extends AppObjectUC {
|
|
5
|
-
static readonly type = "IsZSpaceAvailableUC";
|
|
6
|
-
readonly requestType = "IS_ZSPACE_AVAILABLE";
|
|
7
|
-
abstract doDispatch(): Promise<boolean>;
|
|
8
|
-
static get(appObjects: AppObjectRepo): IsZSpaceAvailableUC | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare function makeIsZSpaceAvailableUC(appObject: AppObject): IsZSpaceAvailableUC;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeIsZSpaceAvailableUC = exports.IsZSpaceAvailableUC = void 0;
|
|
4
|
-
const AppObjectUC_1 = require("../../../AppObject/AppObjectUC");
|
|
5
|
-
const AppDispatcher_1 = require("../Entities/AppDispatcher");
|
|
6
|
-
class IsZSpaceAvailableUC extends AppObjectUC_1.AppObjectUC {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.requestType = "IS_ZSPACE_AVAILABLE";
|
|
10
|
-
}
|
|
11
|
-
static get(appObjects) {
|
|
12
|
-
const selectionEntities = appObjects.getAllComponents(IsZSpaceAvailableUC.type);
|
|
13
|
-
if (selectionEntities.length === 0) {
|
|
14
|
-
console.warn("Unable to find a IsZSpaceAvailableUC. Add one on Mount");
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
else if (selectionEntities.length > 1) {
|
|
18
|
-
console.warn("Multiple IsZSpaceAvailableUC have been found. There should only be one. Using the first one");
|
|
19
|
-
}
|
|
20
|
-
return selectionEntities[0];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.IsZSpaceAvailableUC = IsZSpaceAvailableUC;
|
|
24
|
-
IsZSpaceAvailableUC.type = "IsZSpaceAvailableUC";
|
|
25
|
-
function makeIsZSpaceAvailableUC(appObject) {
|
|
26
|
-
return new DispatchStateChangeUCImp(appObject);
|
|
27
|
-
}
|
|
28
|
-
exports.makeIsZSpaceAvailableUC = makeIsZSpaceAvailableUC;
|
|
29
|
-
class DispatchStateChangeUCImp extends IsZSpaceAvailableUC {
|
|
30
|
-
constructor(appObject) {
|
|
31
|
-
super(appObject, IsZSpaceAvailableUC.type);
|
|
32
|
-
this.requestVersion = 1;
|
|
33
|
-
this.appDispatcher = appObject.getComponent(AppDispatcher_1.AppDispatcher.type);
|
|
34
|
-
if (!this.appDispatcher) {
|
|
35
|
-
console.warn("IsZSpaceAvailableUC has been added to an App Object that does not have a AppDispatcher. Add a dispatcher first");
|
|
36
|
-
this.dispose();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
doDispatch() {
|
|
40
|
-
return new Promise((resolve, reject) => {
|
|
41
|
-
const callback = (IsZSpaceAvailable) => {
|
|
42
|
-
resolve(IsZSpaceAvailable);
|
|
43
|
-
};
|
|
44
|
-
const payload = {
|
|
45
|
-
callback,
|
|
46
|
-
};
|
|
47
|
-
if (!this.appDispatcher)
|
|
48
|
-
return reject(new Error("No host handler has been registered"));
|
|
49
|
-
else {
|
|
50
|
-
this.appDispatcher.formRequestAndDispatch(this.requestType, this.requestVersion, payload);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from "./Entities/AppDispatcher";
|
|
2
|
-
export * from "./Factories/makeBasicDispatcher";
|
|
3
|
-
export * from "./UC/DispatchStopZSpaceUC";
|
|
4
|
-
export * from "./UC/DispatchStartZSpaceUC";
|
|
5
|
-
export * from "./UC/GoToNextStateUC";
|
|
6
|
-
export * from "./UC/GoToPreviousStateUC";
|
|
7
|
-
export * from "./UC/HasNextStateUC";
|
|
8
|
-
export * from "./UC/HasPreviousStateUC";
|
|
9
|
-
export * from "./UC/IsZSpaceAvailableUC";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./Entities/AppDispatcher"), exports);
|
|
14
|
-
__exportStar(require("./Factories/makeBasicDispatcher"), exports);
|
|
15
|
-
__exportStar(require("./UC/DispatchStopZSpaceUC"), exports);
|
|
16
|
-
__exportStar(require("./UC/DispatchStartZSpaceUC"), exports);
|
|
17
|
-
__exportStar(require("./UC/GoToNextStateUC"), exports);
|
|
18
|
-
__exportStar(require("./UC/GoToPreviousStateUC"), exports);
|
|
19
|
-
__exportStar(require("./UC/HasNextStateUC"), exports);
|
|
20
|
-
__exportStar(require("./UC/HasPreviousStateUC"), exports);
|
|
21
|
-
__exportStar(require("./UC/IsZSpaceAvailableUC"), exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectEntity } from "../../../AppObject/AppObjectEntity";
|
|
3
|
-
export declare abstract class EnablablementEntity extends AppObjectEntity {
|
|
4
|
-
static readonly type = "EnablablementEntity";
|
|
5
|
-
abstract get enabled(): boolean;
|
|
6
|
-
abstract set enabled(enabled: boolean);
|
|
7
|
-
static get(appObj: AppObject): EnablablementEntity | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare function makeEnablableEntity(appObject: AppObject): EnablableImp;
|
|
10
|
-
declare class EnablableImp extends EnablablementEntity {
|
|
11
|
-
private memoizedEnabled;
|
|
12
|
-
get enabled(): boolean;
|
|
13
|
-
set enabled(enabled: boolean);
|
|
14
|
-
constructor(appObject: AppObject);
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeEnablableEntity = exports.EnablablementEntity = void 0;
|
|
4
|
-
const AppObjectEntity_1 = require("../../../AppObject/AppObjectEntity");
|
|
5
|
-
const Entities_1 = require("../../../Entities");
|
|
6
|
-
class EnablablementEntity extends AppObjectEntity_1.AppObjectEntity {
|
|
7
|
-
static get(appObj) {
|
|
8
|
-
return appObj.getComponent(this.type);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.EnablablementEntity = EnablablementEntity;
|
|
12
|
-
EnablablementEntity.type = "EnablablementEntity";
|
|
13
|
-
function makeEnablableEntity(appObject) {
|
|
14
|
-
return new EnablableImp(appObject);
|
|
15
|
-
}
|
|
16
|
-
exports.makeEnablableEntity = makeEnablableEntity;
|
|
17
|
-
class EnablableImp extends EnablablementEntity {
|
|
18
|
-
constructor(appObject) {
|
|
19
|
-
super(appObject, EnablablementEntity.type);
|
|
20
|
-
this.memoizedEnabled = new Entities_1.MemoizedBoolean(true, this.notifyOnChange);
|
|
21
|
-
}
|
|
22
|
-
get enabled() {
|
|
23
|
-
return this.memoizedEnabled.val;
|
|
24
|
-
}
|
|
25
|
-
set enabled(enabled) {
|
|
26
|
-
this.memoizedEnabled.val = enabled;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectPM } from "../../../AppObject/AppObjectPM";
|
|
3
|
-
export interface EnablableStateVM {
|
|
4
|
-
enabled: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class EnablableStatePM extends AppObjectPM<EnablableStateVM> {
|
|
7
|
-
static readonly type = "EnablableStatePM";
|
|
8
|
-
private enablable?;
|
|
9
|
-
onEnablableStateChange: () => void;
|
|
10
|
-
vmsAreEqual(a: EnablableStateVM, b: EnablableStateVM): boolean;
|
|
11
|
-
dispose: () => void;
|
|
12
|
-
constructor(appObject: AppObject);
|
|
13
|
-
static defaultVM: EnablableStateVM;
|
|
14
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnablableStatePM = void 0;
|
|
4
|
-
const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
|
|
5
|
-
const EnablablementEntity_1 = require("../Entities/EnablablementEntity");
|
|
6
|
-
class EnablableStatePM extends AppObjectPM_1.AppObjectPM {
|
|
7
|
-
constructor(appObject) {
|
|
8
|
-
super(appObject, EnablableStatePM.type);
|
|
9
|
-
this.onEnablableStateChange = () => {
|
|
10
|
-
if (!this.enablable)
|
|
11
|
-
return;
|
|
12
|
-
const vm = {
|
|
13
|
-
enabled: this.enablable.enabled
|
|
14
|
-
};
|
|
15
|
-
this.doUpdateView(vm);
|
|
16
|
-
};
|
|
17
|
-
this.dispose = () => {
|
|
18
|
-
var _a, _b;
|
|
19
|
-
super.dispose();
|
|
20
|
-
(_a = this.enablable) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onEnablableStateChange);
|
|
21
|
-
(_b = this.enablable) === null || _b === void 0 ? void 0 : _b.removeChangeObserver(this.dispose);
|
|
22
|
-
};
|
|
23
|
-
this.enablable = EnablablementEntity_1.EnablablementEntity.get(appObject);
|
|
24
|
-
if (!this.enablable) {
|
|
25
|
-
console.warn("[EnablableStatePM] App Object does not have a Enablable Entity");
|
|
26
|
-
this.dispose();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
this.enablable.addChangeObserver(this.onEnablableStateChange);
|
|
30
|
-
this.enablable.addOnDisposeObserver(this.dispose);
|
|
31
|
-
this.onEnablableStateChange();
|
|
32
|
-
}
|
|
33
|
-
vmsAreEqual(a, b) {
|
|
34
|
-
return a.enabled === b.enabled;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.EnablableStatePM = EnablableStatePM;
|
|
38
|
-
EnablableStatePM.type = "EnablableStatePM";
|
|
39
|
-
EnablableStatePM.defaultVM = {
|
|
40
|
-
enabled: false
|
|
41
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectEntity } from "../../../AppObject";
|
|
2
|
-
export declare class Hideable extends AppObjectEntity {
|
|
3
|
-
static readonly type = "HIDEABLE";
|
|
4
|
-
static addIfMissing(appObj: AppObject): Hideable;
|
|
5
|
-
static get(appObj: AppObject): Hideable | undefined;
|
|
6
|
-
private memoizedIsHidden;
|
|
7
|
-
get isHidden(): boolean;
|
|
8
|
-
set isHidden(val: boolean);
|
|
9
|
-
constructor(appObject: AppObject);
|
|
10
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Hideable = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const Entities_1 = require("../../../Entities");
|
|
6
|
-
class Hideable extends AppObject_1.AppObjectEntity {
|
|
7
|
-
constructor(appObject) {
|
|
8
|
-
super(appObject, Hideable.type);
|
|
9
|
-
this.memoizedIsHidden = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
10
|
-
}
|
|
11
|
-
static addIfMissing(appObj) {
|
|
12
|
-
const existing = appObj.getComponent(this.type);
|
|
13
|
-
if (existing) {
|
|
14
|
-
return existing;
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
return new Hideable(appObj);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
static get(appObj) {
|
|
21
|
-
return appObj.getComponent(this.type);
|
|
22
|
-
}
|
|
23
|
-
get isHidden() {
|
|
24
|
-
return this.memoizedIsHidden.val;
|
|
25
|
-
}
|
|
26
|
-
set isHidden(val) {
|
|
27
|
-
this.memoizedIsHidden.val = val;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.Hideable = Hideable;
|
|
31
|
-
Hideable.type = "HIDEABLE";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectPM } from "../../../AppObject/AppObjectPM";
|
|
3
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
4
|
-
export declare class IsHiddenPM extends AppObjectPM<boolean> {
|
|
5
|
-
static readonly type = "IsHiddenPM";
|
|
6
|
-
private hideable?;
|
|
7
|
-
onIsHiddenChange: () => void;
|
|
8
|
-
dispose: () => void;
|
|
9
|
-
vmsAreEqual(a: boolean, b: boolean): boolean;
|
|
10
|
-
constructor(appObject: AppObject);
|
|
11
|
-
static getForID(appObjID: string, appObjects: AppObjectRepo): IsHiddenPM | undefined;
|
|
12
|
-
}
|