@vived/app 4.6.1 → 4.7.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/AppObject/AppObjectPM.js +1 -1
- 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/MockScenePixelPickUC.d.ts +7 -0
- package/lib/Components/Babylon/Mocks/MockScenePixelPickUC.js +11 -0
- 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/HoverLabel/Controllers/HoverLabelMouse.d.ts +17 -0
- package/lib/Components/HoverLabel/Controllers/HoverLabelMouse.js +61 -0
- package/lib/Components/HoverLabel/Controllers/HoverLabelTouch.d.ts +22 -0
- package/lib/Components/HoverLabel/Controllers/HoverLabelTouch.js +74 -0
- package/lib/Components/HoverLabel/Controllers/ToggleAllowHoverLabelController.d.ts +2 -0
- package/lib/Components/HoverLabel/Controllers/ToggleAllowHoverLabelController.js +13 -0
- package/lib/{Controllers → Components/HoverLabel/Controllers}/index.d.ts +2 -2
- package/lib/{Controllers → Components/HoverLabel/Controllers}/index.js +2 -2
- package/lib/Components/HoverLabel/Entities/HoverLabel.d.ts +33 -0
- package/lib/Components/HoverLabel/Entities/HoverLabel.js +86 -0
- package/lib/Components/HoverLabel/Entities/index.d.ts +1 -0
- package/lib/{PresentationManagers/SceneModel → Components/HoverLabel/Entities}/index.js +1 -1
- package/lib/Components/HoverLabel/PM/AllowHoverLabelPM.d.ts +11 -0
- package/lib/Components/HoverLabel/PM/AllowHoverLabelPM.js +45 -0
- package/lib/Components/HoverLabel/PM/HoverLabelPM.d.ts +19 -0
- package/lib/Components/HoverLabel/PM/HoverLabelPM.js +66 -0
- package/lib/{PresentationManagers/HoverLabels → Components/HoverLabel/PM}/index.d.ts +1 -1
- package/lib/{PresentationManagers/HoverLabels → Components/HoverLabel/PM}/index.js +1 -1
- package/lib/Components/HoverLabel/UseCases/SerializeAllowHoverLabel.d.ts +15 -0
- package/lib/Components/HoverLabel/UseCases/SerializeAllowHoverLabel.js +57 -0
- package/lib/Components/HoverLabel/UseCases/ToggleAllowHoverLabel.d.ts +13 -0
- package/lib/Components/HoverLabel/UseCases/ToggleAllowHoverLabel.js +40 -0
- package/lib/Components/HoverLabel/UseCases/TryShowHoverLabel.d.ts +14 -0
- package/lib/Components/HoverLabel/UseCases/TryShowHoverLabel.js +61 -0
- package/lib/Components/HoverLabel/UseCases/index.d.ts +3 -0
- package/lib/{AppObjectComponents/ChannelModel → Components/HoverLabel/UseCases}/index.js +3 -2
- package/lib/Components/HoverLabel/index.d.ts +4 -0
- package/lib/{AppObjectComponents/Hideable → Components/HoverLabel}/index.js +4 -2
- 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/Touch/TouchLandmark.d.ts +20 -0
- package/lib/Components/Landmarks/Controller/Touch/TouchLandmark.js +84 -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/Tools/Factory/index.d.ts +2 -0
- package/lib/{UseCases/SceneObjects → 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/lib/Components/index.d.ts +1 -0
- package/lib/Components/index.js +1 -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/Enablement/index.js +0 -14
- 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/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/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,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupTool = void 0;
|
|
4
|
+
const ToolEntity_1 = require("../Entities/ToolEntity");
|
|
5
|
+
const ToolPM_1 = require("../PM/ToolPM");
|
|
6
|
+
function setupTool(toolData, appObjects) {
|
|
7
|
+
const tool = appObjects.getOrCreate(toolData.label);
|
|
8
|
+
const toolEntity = ToolEntity_1.makeToolEntity(toolData, tool);
|
|
9
|
+
const pm = new ToolPM_1.ToolPM(tool);
|
|
10
|
+
return toolEntity;
|
|
11
|
+
}
|
|
12
|
+
exports.setupTool = setupTool;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
2
|
+
import { ToolData } from "../Entities/ToolEntity";
|
|
3
|
+
import { ToolRepository } from "../Entities/ToolRepository";
|
|
4
|
+
export declare function setupToolRepo<ToolTypes>(data: ToolData<ToolTypes>[], appObjects: AppObjectRepo): ToolRepository<ToolTypes>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupToolRepo = void 0;
|
|
4
|
+
const ToolHotkeys_1 = require("../Controller/ToolHotkeys");
|
|
5
|
+
const ToolRepository_1 = require("../Entities/ToolRepository");
|
|
6
|
+
function setupToolRepo(data, appObjects) {
|
|
7
|
+
const toolRepo = appObjects.getOrCreate("ToolRepo");
|
|
8
|
+
const entity = ToolRepository_1.makeToolRepo(toolRepo);
|
|
9
|
+
entity.setupToolsFromData(data);
|
|
10
|
+
new ToolHotkeys_1.ToolHotkeys(toolRepo);
|
|
11
|
+
return entity;
|
|
12
|
+
}
|
|
13
|
+
exports.setupToolRepo = setupToolRepo;
|
package/lib/Components/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectEntity } from "../../../AppObject";
|
|
2
|
-
import { Quaternion, Vector3 } from "../../../ValueObjects";
|
|
3
|
-
export declare enum ChannelModelState {
|
|
4
|
-
INIT = "Initialized",
|
|
5
|
-
LOADING = "Loading",
|
|
6
|
-
READY = "Ready",
|
|
7
|
-
ERROR = "Error"
|
|
8
|
-
}
|
|
9
|
-
export declare class ChannelModel extends AppObjectEntity {
|
|
10
|
-
static readonly type = "CHANNEL_MODEL";
|
|
11
|
-
static addIfMissing(appObj: AppObject): ChannelModel;
|
|
12
|
-
static get(appObj: AppObject): ChannelModel | undefined;
|
|
13
|
-
private _name;
|
|
14
|
-
get name(): string;
|
|
15
|
-
set name(name: string);
|
|
16
|
-
private _boundsMin;
|
|
17
|
-
get bounds_min(): Vector3;
|
|
18
|
-
set bounds_min(bounds_min: Vector3);
|
|
19
|
-
private _boundsMax;
|
|
20
|
-
get bounds_max(): Vector3;
|
|
21
|
-
set bounds_max(bounds_max: Vector3);
|
|
22
|
-
private _defaultPosition;
|
|
23
|
-
get defaultPosition(): Vector3;
|
|
24
|
-
set defaultPosition(position: Vector3);
|
|
25
|
-
private _defaultRotation;
|
|
26
|
-
get defaultRotation(): Quaternion;
|
|
27
|
-
set defaultRotation(rotation: Quaternion);
|
|
28
|
-
private _defaultScale;
|
|
29
|
-
get defaultScale(): number;
|
|
30
|
-
set defaultScale(scale: number);
|
|
31
|
-
private _state;
|
|
32
|
-
get state(): ChannelModelState;
|
|
33
|
-
set state(val: ChannelModelState);
|
|
34
|
-
private _error;
|
|
35
|
-
get error(): Error | undefined;
|
|
36
|
-
set error(val: Error | undefined);
|
|
37
|
-
private _meshList;
|
|
38
|
-
get meshList(): string[];
|
|
39
|
-
set meshList(val: string[]);
|
|
40
|
-
dispose: () => void;
|
|
41
|
-
constructor(appObject: AppObject);
|
|
42
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChannelModel = exports.ChannelModelState = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const Entities_1 = require("../../../Entities");
|
|
6
|
-
const ValueObjects_1 = require("../../../ValueObjects");
|
|
7
|
-
var ChannelModelState;
|
|
8
|
-
(function (ChannelModelState) {
|
|
9
|
-
ChannelModelState["INIT"] = "Initialized";
|
|
10
|
-
ChannelModelState["LOADING"] = "Loading";
|
|
11
|
-
ChannelModelState["READY"] = "Ready";
|
|
12
|
-
ChannelModelState["ERROR"] = "Error";
|
|
13
|
-
})(ChannelModelState = exports.ChannelModelState || (exports.ChannelModelState = {}));
|
|
14
|
-
class ChannelModel extends AppObject_1.AppObjectEntity {
|
|
15
|
-
constructor(appObject) {
|
|
16
|
-
super(appObject, ChannelModel.type);
|
|
17
|
-
this._name = new Entities_1.MemoizedString("", this.notifyOnChange);
|
|
18
|
-
this._boundsMin = new Entities_1.MemoizedVector3(ValueObjects_1.Vector3.Zero(), this.notifyOnChange);
|
|
19
|
-
this._boundsMax = new Entities_1.MemoizedVector3(ValueObjects_1.Vector3.Zero(), this.notifyOnChange);
|
|
20
|
-
this._defaultPosition = new Entities_1.MemoizedVector3(ValueObjects_1.Vector3.Zero(), this.notifyOnChange);
|
|
21
|
-
this._defaultRotation = new Entities_1.MemoizedQuaternion(ValueObjects_1.Quaternion.Identity(), this.notifyOnChange);
|
|
22
|
-
this._defaultScale = new Entities_1.MemoizedNumber(1, this.notifyOnChange);
|
|
23
|
-
this._state = new Entities_1.MemoizedString(ChannelModelState.INIT, this.notifyOnChange);
|
|
24
|
-
this._meshList = [];
|
|
25
|
-
this.dispose = () => {
|
|
26
|
-
super.dispose();
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
static addIfMissing(appObj) {
|
|
30
|
-
const existing = appObj.getComponent(this.type);
|
|
31
|
-
if (existing) {
|
|
32
|
-
return existing;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return new ChannelModel(appObj);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
static get(appObj) {
|
|
39
|
-
return appObj.getComponent(this.type);
|
|
40
|
-
}
|
|
41
|
-
get name() {
|
|
42
|
-
return this._name.val;
|
|
43
|
-
}
|
|
44
|
-
set name(name) {
|
|
45
|
-
this._name.val = name;
|
|
46
|
-
}
|
|
47
|
-
get bounds_min() {
|
|
48
|
-
return this._boundsMin.val;
|
|
49
|
-
}
|
|
50
|
-
set bounds_min(bounds_min) {
|
|
51
|
-
this._boundsMin.val = bounds_min;
|
|
52
|
-
}
|
|
53
|
-
get bounds_max() {
|
|
54
|
-
return this._boundsMax.val;
|
|
55
|
-
}
|
|
56
|
-
set bounds_max(bounds_max) {
|
|
57
|
-
this._boundsMax.val = bounds_max;
|
|
58
|
-
}
|
|
59
|
-
get defaultPosition() {
|
|
60
|
-
return this._defaultPosition.val;
|
|
61
|
-
}
|
|
62
|
-
set defaultPosition(position) {
|
|
63
|
-
this._defaultPosition.val = position;
|
|
64
|
-
}
|
|
65
|
-
get defaultRotation() {
|
|
66
|
-
return this._defaultRotation.val;
|
|
67
|
-
}
|
|
68
|
-
set defaultRotation(rotation) {
|
|
69
|
-
this._defaultRotation.val = rotation;
|
|
70
|
-
}
|
|
71
|
-
get defaultScale() {
|
|
72
|
-
return this._defaultScale.val;
|
|
73
|
-
}
|
|
74
|
-
set defaultScale(scale) {
|
|
75
|
-
this._defaultScale.val = scale;
|
|
76
|
-
}
|
|
77
|
-
get state() {
|
|
78
|
-
return this._state.val;
|
|
79
|
-
}
|
|
80
|
-
set state(val) {
|
|
81
|
-
this._state.val = val;
|
|
82
|
-
}
|
|
83
|
-
get error() {
|
|
84
|
-
return this._error;
|
|
85
|
-
}
|
|
86
|
-
set error(val) {
|
|
87
|
-
this._error = val;
|
|
88
|
-
this._state.val = ChannelModelState.ERROR;
|
|
89
|
-
}
|
|
90
|
-
get meshList() {
|
|
91
|
-
return [...this._meshList];
|
|
92
|
-
}
|
|
93
|
-
set meshList(val) {
|
|
94
|
-
this._meshList = [...val];
|
|
95
|
-
this.notifyOnChange();
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.ChannelModel = ChannelModel;
|
|
99
|
-
ChannelModel.type = "CHANNEL_MODEL";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectEntityRepo, AppObjectRepo } from "../../../AppObject";
|
|
2
|
-
import { ChannelModel } from "./ChannelModel";
|
|
3
|
-
export declare class ChannelModelRepo extends AppObjectEntityRepo<ChannelModel> {
|
|
4
|
-
static readonly type = "CHANNEL_MODEL_REPO";
|
|
5
|
-
static get(appObjects: AppObjectRepo): ChannelModelRepo | undefined;
|
|
6
|
-
static addToAO(appObj: AppObject): ChannelModelRepo;
|
|
7
|
-
private memoizedIsLoading;
|
|
8
|
-
get isLoadingChannelModel(): boolean;
|
|
9
|
-
set isLoadingChannelModel(val: boolean);
|
|
10
|
-
makeIfMissing(appObject: AppObject): ChannelModel;
|
|
11
|
-
constructor(appObject: AppObject);
|
|
12
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChannelModelRepo = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const Entities_1 = require("../../../Entities");
|
|
6
|
-
const ChannelModel_1 = require("./ChannelModel");
|
|
7
|
-
class ChannelModelRepo extends AppObject_1.AppObjectEntityRepo {
|
|
8
|
-
constructor(appObject) {
|
|
9
|
-
super(appObject, ChannelModelRepo.type);
|
|
10
|
-
this.memoizedIsLoading = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
|
|
11
|
-
}
|
|
12
|
-
static get(appObjects) {
|
|
13
|
-
const repo = appObjects.getAllComponents(ChannelModelRepo.type);
|
|
14
|
-
if (repo.length === 0) {
|
|
15
|
-
console.warn("[ChannelModelRepo] Unable to find a repo. Add one on Mount");
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
else if (repo.length > 1) {
|
|
19
|
-
console.warn("[ChannelModelRepo]Multiple Repos have been found. There should only be one. Using the first one");
|
|
20
|
-
}
|
|
21
|
-
return repo[0];
|
|
22
|
-
}
|
|
23
|
-
static addToAO(appObj) {
|
|
24
|
-
return new ChannelModelRepo(appObj);
|
|
25
|
-
}
|
|
26
|
-
get isLoadingChannelModel() {
|
|
27
|
-
return this.memoizedIsLoading.val;
|
|
28
|
-
}
|
|
29
|
-
set isLoadingChannelModel(val) {
|
|
30
|
-
this.memoizedIsLoading.val = val;
|
|
31
|
-
}
|
|
32
|
-
makeIfMissing(appObject) {
|
|
33
|
-
const existing = this.getForAppObject(appObject.id);
|
|
34
|
-
if (existing) {
|
|
35
|
-
return existing;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
const newEntity = new ChannelModel_1.ChannelModel(appObject);
|
|
39
|
-
this.add(newEntity);
|
|
40
|
-
return newEntity;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.ChannelModelRepo = ChannelModelRepo;
|
|
45
|
-
ChannelModelRepo.type = "CHANNEL_MODEL_REPO";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectEntity } from "../../../AppObject/AppObjectEntity";
|
|
3
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
4
|
-
export declare type Handler = (request: Request) => void;
|
|
5
|
-
export interface Request {
|
|
6
|
-
type: string;
|
|
7
|
-
version: number;
|
|
8
|
-
payload?: unknown;
|
|
9
|
-
}
|
|
10
|
-
export declare abstract class AppDispatcher extends AppObjectEntity {
|
|
11
|
-
static readonly type = "APP_DISPATCHER";
|
|
12
|
-
abstract dispatch: (request: Request) => void;
|
|
13
|
-
abstract formRequestAndDispatch: (type: string, version: number, payload?: object | undefined) => void;
|
|
14
|
-
static get(appObjects: AppObjectRepo): AppDispatcher | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare function makeAppDispatcher(appObject: AppObject, hostHandler: Handler): AppDispatcher;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeAppDispatcher = exports.AppDispatcher = void 0;
|
|
4
|
-
const AppObjectEntity_1 = require("../../../AppObject/AppObjectEntity");
|
|
5
|
-
class AppDispatcher extends AppObjectEntity_1.AppObjectEntity {
|
|
6
|
-
static get(appObjects) {
|
|
7
|
-
const selectionEntities = appObjects.getAllComponents(AppDispatcher.type);
|
|
8
|
-
if (selectionEntities.length === 0) {
|
|
9
|
-
console.warn("Unable to find a App Dispatcher. Add one on Mount");
|
|
10
|
-
return undefined;
|
|
11
|
-
}
|
|
12
|
-
else if (selectionEntities.length > 1) {
|
|
13
|
-
console.warn("Multiple App Dispatcher have been found. There should only be one. Using the first one");
|
|
14
|
-
}
|
|
15
|
-
return selectionEntities[0];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.AppDispatcher = AppDispatcher;
|
|
19
|
-
AppDispatcher.type = "APP_DISPATCHER";
|
|
20
|
-
function makeAppDispatcher(appObject, hostHandler) {
|
|
21
|
-
return new AppDispatcherImp(appObject, hostHandler);
|
|
22
|
-
}
|
|
23
|
-
exports.makeAppDispatcher = makeAppDispatcher;
|
|
24
|
-
class AppDispatcherImp extends AppDispatcher {
|
|
25
|
-
constructor(appObject, hostHandler) {
|
|
26
|
-
super(appObject, AppDispatcher.type);
|
|
27
|
-
this.hostHandler = hostHandler;
|
|
28
|
-
this.dispatch = (request) => {
|
|
29
|
-
this.hostHandler(request);
|
|
30
|
-
};
|
|
31
|
-
this.formRequestAndDispatch = (type, version, payload) => {
|
|
32
|
-
const request = {
|
|
33
|
-
type,
|
|
34
|
-
version,
|
|
35
|
-
payload
|
|
36
|
-
};
|
|
37
|
-
this.hostHandler(request);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
|
-
import { AppObjectRepo } from "../../../AppObject/AppObjectRepo";
|
|
3
|
-
import { Handler } from "../Entities/AppDispatcher";
|
|
4
|
-
export declare const APP_DISPATCHER_ID = "AppDispatcher";
|
|
5
|
-
export declare function makeBasicDispatcher(appObjects: AppObjectRepo, hostHandler: Handler): AppObject;
|
|
@@ -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
|
-
}
|