@vived/app 4.23.0 → 4.25.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/index.d.ts +1 -0
- package/lib/AppObject/index.js +1 -0
- package/lib/AppObject/printAppObjectDetails.d.ts +2 -0
- package/lib/AppObject/printAppObjectDetails.js +18 -0
- package/lib/Components/App/Controller/index.d.ts +1 -0
- package/lib/Components/App/Controller/index.js +1 -0
- package/lib/Components/App/Controller/updateContentSize.d.ts +2 -0
- package/lib/Components/App/Controller/updateContentSize.js +13 -0
- package/lib/Components/App/Entity/BaseAppState.d.ts +2 -0
- package/lib/Components/App/Entity/BaseAppState.js +7 -0
- package/lib/Components/App/Mocks/MockUpdateContentSizeUC.d.ts +9 -0
- package/lib/Components/App/Mocks/MockUpdateContentSizeUC.js +15 -0
- package/lib/Components/App/Mocks/index.d.ts +1 -0
- package/lib/Components/App/Mocks/index.js +1 -0
- package/lib/Components/App/UC/SerializeBaseAppState.d.ts +17 -0
- package/lib/Components/App/UC/SerializeBaseAppState.js +59 -0
- package/lib/Components/App/UC/UpdateContentSizeUC.d.ts +7 -0
- package/lib/Components/App/UC/UpdateContentSizeUC.js +33 -0
- package/lib/Components/App/UC/index.d.ts +2 -0
- package/lib/Components/App/UC/index.js +2 -0
- package/lib/Components/Challenge/Adapters/challengeAuthorHelpHookAdapter.d.ts +3 -0
- package/lib/Components/Challenge/Adapters/challengeAuthorHelpHookAdapter.js +23 -0
- package/lib/Components/Challenge/Adapters/challengeConsumerHelpHookAdapter.d.ts +3 -0
- package/lib/Components/Challenge/Adapters/challengeConsumerHelpHookAdapter.js +23 -0
- package/lib/Components/Challenge/Adapters/index.d.ts +3 -0
- package/lib/Components/Challenge/Adapters/index.js +15 -0
- package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.d.ts +3 -0
- package/lib/Components/Challenge/Adapters/selectedChallengeHookAdapter.js +29 -0
- package/lib/Components/Challenge/Controller/clickTryChallengeAgain.d.ts +2 -0
- package/lib/Components/Challenge/Controller/clickTryChallengeAgain.js +13 -0
- package/lib/Components/Challenge/Controller/index.d.ts +1 -0
- package/lib/Components/Challenge/Controller/index.js +1 -0
- package/lib/Components/Challenge/Mocks/TryChallengeAgainUcMock.d.ts +8 -0
- package/lib/Components/Challenge/Mocks/TryChallengeAgainUcMock.js +15 -0
- package/lib/Components/Challenge/Mocks/index.d.ts +1 -0
- package/lib/Components/Challenge/Mocks/index.js +1 -0
- package/lib/Components/Challenge/UCs/TryChallengeAgainUC.d.ts +6 -0
- package/lib/Components/Challenge/UCs/TryChallengeAgainUC.js +11 -0
- package/lib/Components/Challenge/UCs/index.d.ts +1 -0
- package/lib/Components/Challenge/UCs/index.js +1 -0
- package/lib/Components/Challenge/index.d.ts +1 -1
- package/lib/Components/Challenge/index.js +1 -1
- package/lib/Components/ChannelModel/Adapters/activeModelAdapter.js +2 -2
- package/lib/Components/ChannelModel/Adapters/activeModelObjectListAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/activeModelObjectListAdapter.js +23 -0
- package/lib/Components/ChannelModel/Adapters/index.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/index.js +2 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsAreHiddenAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsAreHiddenAdapter.js +27 -0
- package/lib/Components/ChannelModel/Controllers/index.d.ts +1 -1
- package/lib/Components/ChannelModel/Controllers/index.js +1 -1
- package/lib/Components/ChannelModel/Controllers/setModelObjectLabel.js +1 -1
- package/lib/Components/ChannelModel/Controllers/unhideAllActiveObjects.d.ts +2 -0
- package/lib/Components/ChannelModel/Controllers/unhideAllActiveObjects.js +23 -0
- package/lib/Components/ChannelModel/Entities/ChannelModel.d.ts +2 -0
- package/lib/Components/ChannelModel/Entities/ChannelModel.js +11 -2
- package/lib/Components/ChannelModel/Entities/ChannelModelObject.d.ts +2 -4
- package/lib/Components/ChannelModel/Entities/ChannelModelObject.js +3 -20
- package/lib/Components/ChannelModel/Mocks/ActiveModelObjectListMock.d.ts +8 -0
- package/lib/Components/ChannelModel/Mocks/ActiveModelObjectListMock.js +15 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsAreHiddenPMMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsAreHiddenPMMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/UnhideAllChannelModelObjectsUCMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/UnhideAllChannelModelObjectsUCMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/index.d.ts +3 -0
- package/lib/Components/ChannelModel/Mocks/index.js +3 -0
- package/lib/Components/ChannelModel/PMs/ActiveModelObjectListPM.d.ts +14 -0
- package/lib/Components/ChannelModel/PMs/ActiveModelObjectListPM.js +60 -0
- package/lib/Components/ChannelModel/PMs/ChannelModelObjectPM.js +2 -2
- package/lib/Components/ChannelModel/PMs/ChannelModelPM.js +1 -1
- package/lib/Components/ChannelModel/PMs/ModelObjectsAreHiddenPM.d.ts +6 -0
- package/lib/Components/ChannelModel/PMs/ModelObjectsAreHiddenPM.js +58 -0
- package/lib/Components/ChannelModel/PMs/index.d.ts +2 -0
- package/lib/Components/ChannelModel/PMs/index.js +2 -0
- package/lib/Components/ChannelModel/UC/SelectChannelModelUC.js +3 -0
- package/lib/Components/ChannelModel/UC/UnhideAllAppObjectsUndoRedo.d.ts +10 -0
- package/lib/Components/ChannelModel/UC/UnhideAllAppObjectsUndoRedo.js +39 -0
- package/lib/Components/ChannelModel/UC/UnhideAllChannelModelObjectsUC.d.ts +7 -0
- package/lib/Components/ChannelModel/UC/UnhideAllChannelModelObjectsUC.js +51 -0
- package/lib/Components/ChannelModel/UC/index.d.ts +2 -0
- package/lib/Components/ChannelModel/UC/index.js +2 -0
- package/lib/Components/Enablement/Adapters/enablementAdapter.d.ts +2 -0
- package/lib/Components/Enablement/Adapters/enablementAdapter.js +23 -0
- package/lib/Components/Enablement/Adapters/index.d.ts +1 -0
- package/lib/Components/Enablement/Adapters/index.js +13 -0
- package/lib/Components/Enablement/Entities/EnablementEntity.d.ts +17 -0
- package/lib/Components/Enablement/Entities/EnablementEntity.js +37 -0
- package/lib/Components/Enablement/Entities/index.d.ts +1 -1
- package/lib/Components/Enablement/Entities/index.js +1 -1
- package/lib/Components/Enablement/Mocks/EnabledStatePMMock.d.ts +7 -0
- package/lib/Components/Enablement/Mocks/EnabledStatePMMock.js +11 -0
- package/lib/Components/Enablement/Mocks/index.d.ts +1 -0
- package/lib/Components/Enablement/Mocks/index.js +13 -0
- package/lib/Components/Enablement/PM/EnabledStatePM.d.ts +8 -0
- package/lib/Components/Enablement/PM/EnabledStatePM.js +46 -0
- package/lib/Components/Enablement/PM/index.d.ts +1 -1
- package/lib/Components/Enablement/PM/index.js +1 -1
- package/lib/Components/Enablement/index.d.ts +2 -0
- package/lib/Components/Enablement/index.js +2 -0
- package/lib/Components/FramedScreen/Adapters/framedContainerAdapter.d.ts +3 -0
- package/lib/Components/FramedScreen/Adapters/framedContainerAdapter.js +23 -0
- package/lib/Components/FramedScreen/Adapters/framedScreenSizeAdapter.d.ts +3 -0
- package/lib/Components/FramedScreen/Adapters/framedScreenSizeAdapter.js +23 -0
- package/lib/Components/FramedScreen/Adapters/index.d.ts +2 -0
- package/lib/Components/FramedScreen/Adapters/index.js +14 -0
- package/lib/Components/FramedScreen/Mocks/FramedContainerPmMock.d.ts +7 -0
- package/lib/Components/FramedScreen/Mocks/FramedContainerPmMock.js +11 -0
- package/lib/Components/FramedScreen/Mocks/FramedScreenSizePmMock.d.ts +8 -0
- package/lib/Components/FramedScreen/Mocks/FramedScreenSizePmMock.js +15 -0
- package/lib/Components/FramedScreen/Mocks/index.d.ts +2 -0
- package/lib/Components/FramedScreen/Mocks/index.js +14 -0
- package/lib/Components/FramedScreen/PM/FramedContainerPM.d.ts +16 -0
- package/lib/Components/FramedScreen/PM/FramedContainerPM.js +66 -0
- package/lib/Components/FramedScreen/PM/FramedScreenSizePM.d.ts +2 -6
- package/lib/Components/FramedScreen/PM/FramedScreenSizePM.js +16 -14
- package/lib/Components/FramedScreen/PM/index.d.ts +1 -1
- package/lib/Components/FramedScreen/PM/index.js +1 -1
- package/lib/Components/FramedScreen/index.d.ts +2 -0
- package/lib/Components/FramedScreen/index.js +2 -0
- package/lib/Components/Hideable/Adapters/index.d.ts +1 -0
- package/lib/Components/Hideable/Adapters/index.js +13 -0
- package/lib/Components/Hideable/Adapters/isHiddenAdapter.d.ts +2 -0
- package/lib/Components/Hideable/Adapters/isHiddenAdapter.js +23 -0
- package/lib/Components/Hideable/Controllers/HideMC.d.ts +10 -0
- package/lib/Components/Hideable/Controllers/HideMC.js +32 -0
- package/lib/Components/Hideable/Controllers/HideTC.d.ts +10 -0
- package/lib/Components/Hideable/Controllers/HideTC.js +32 -0
- package/lib/Components/Hideable/Controllers/clickToggleIsHidden.d.ts +2 -0
- package/lib/Components/Hideable/Controllers/clickToggleIsHidden.js +14 -0
- package/lib/Components/Hideable/Controllers/index.d.ts +3 -0
- package/lib/Components/Hideable/Controllers/index.js +15 -0
- package/lib/Components/Hideable/Entities/Hideable.d.ts +2 -2
- package/lib/Components/Hideable/Entities/Hideable.js +6 -2
- package/lib/Components/Hideable/Mocks/HideUCMock.d.ts +8 -0
- package/lib/Components/Hideable/Mocks/HideUCMock.js +12 -0
- package/lib/Components/Hideable/Mocks/IsHiddenPMock.d.ts +7 -0
- package/lib/Components/Hideable/Mocks/IsHiddenPMock.js +11 -0
- package/lib/Components/Hideable/Mocks/TryHideWithPickUCMock.d.ts +9 -0
- package/lib/Components/Hideable/Mocks/TryHideWithPickUCMock.js +16 -0
- package/lib/Components/Hideable/Mocks/index.d.ts +3 -0
- package/lib/Components/Hideable/Mocks/index.js +15 -0
- package/lib/Components/Hideable/PM/IsHiddenPM.d.ts +3 -7
- package/lib/Components/Hideable/PM/IsHiddenPM.js +20 -12
- package/lib/Components/Hideable/UCs/HideUC.d.ts +8 -0
- package/lib/Components/Hideable/UCs/HideUC.js +74 -0
- package/lib/Components/Hideable/UCs/TryHideWithPickUC.d.ts +9 -0
- package/lib/Components/Hideable/UCs/TryHideWithPickUC.js +62 -0
- package/lib/Components/Hideable/UCs/index.d.ts +2 -0
- package/lib/Components/Hideable/UCs/index.js +14 -0
- package/lib/Components/Hideable/index.d.ts +4 -0
- package/lib/Components/Hideable/index.js +4 -0
- package/lib/Components/HoverLabel/Adapters/allowHoverLabelAdapter.d.ts +2 -0
- package/lib/Components/HoverLabel/Adapters/allowHoverLabelAdapter.js +23 -0
- package/lib/Components/HoverLabel/Adapters/index.d.ts +3 -0
- package/lib/Components/HoverLabel/Adapters/index.js +15 -0
- package/lib/Components/HoverLabel/Adapters/screenHoverLabelAdapter.d.ts +3 -0
- package/lib/Components/HoverLabel/Adapters/screenHoverLabelAdapter.js +23 -0
- package/lib/Components/HoverLabel/Adapters/worldHoverLabelAdapter.d.ts +3 -0
- package/lib/Components/HoverLabel/Adapters/worldHoverLabelAdapter.js +23 -0
- package/lib/Components/HoverLabel/Controllers/HoverLabelMouse.js +2 -2
- package/lib/Components/HoverLabel/Controllers/HoverLabelTouch.js +2 -2
- package/lib/Components/HoverLabel/Controllers/index.d.ts +1 -1
- package/lib/Components/HoverLabel/Controllers/index.js +1 -1
- package/lib/Components/HoverLabel/Controllers/toggleAllowHoverLabel.d.ts +2 -0
- package/lib/Components/HoverLabel/Controllers/toggleAllowHoverLabel.js +13 -0
- package/lib/Components/HoverLabel/Entities/HoverLabelEntity.d.ts +23 -0
- package/lib/Components/HoverLabel/Entities/HoverLabelEntity.js +102 -0
- package/lib/Components/HoverLabel/Entities/index.d.ts +1 -1
- package/lib/Components/HoverLabel/Entities/index.js +1 -1
- package/lib/Components/HoverLabel/Mocks/AllowHoverLabelPmMock.d.ts +8 -0
- package/lib/Components/HoverLabel/Mocks/AllowHoverLabelPmMock.js +15 -0
- package/lib/Components/HoverLabel/Mocks/ScreenHoverLabelPmMock.d.ts +8 -0
- package/lib/Components/HoverLabel/Mocks/ScreenHoverLabelPmMock.js +15 -0
- package/lib/Components/HoverLabel/Mocks/WorldHoverLabelPmMock.d.ts +8 -0
- package/lib/Components/HoverLabel/Mocks/WorldHoverLabelPmMock.js +15 -0
- package/lib/Components/HoverLabel/Mocks/index.d.ts +4 -0
- package/lib/Components/HoverLabel/Mocks/index.js +16 -0
- package/lib/Components/HoverLabel/PM/AllowHoverLabelPM.d.ts +4 -9
- package/lib/Components/HoverLabel/PM/AllowHoverLabelPM.js +16 -26
- package/lib/Components/HoverLabel/PM/ScreenHoverLabelPM.d.ts +2 -6
- package/lib/Components/HoverLabel/PM/ScreenHoverLabelPM.js +18 -20
- package/lib/Components/HoverLabel/PM/WorldHoverLabelPM.d.ts +2 -6
- package/lib/Components/HoverLabel/PM/WorldHoverLabelPM.js +18 -20
- package/lib/Components/HoverLabel/UseCases/SerializeAllowHoverLabel.js +2 -2
- package/lib/Components/HoverLabel/UseCases/ToggleAllowHoverLabel.js +2 -2
- package/lib/Components/HoverLabel/UseCases/TryShowHoverLabel.js +3 -3
- package/lib/Components/HoverLabel/index.d.ts +2 -0
- package/lib/Components/HoverLabel/index.js +2 -0
- package/lib/Components/KeyboardInput/Mocks/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/Mocks/index.js +13 -0
- package/lib/Components/KeyboardInput/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/index.js +1 -0
- package/lib/Components/Label/Adapters/index.d.ts +1 -0
- package/lib/Components/Label/Adapters/index.js +13 -0
- package/lib/Components/Label/Adapters/labelAdapter.d.ts +3 -0
- package/lib/Components/Label/Adapters/labelAdapter.js +23 -0
- package/lib/Components/Label/Entities/Label.d.ts +2 -1
- package/lib/Components/Label/Entities/Label.js +6 -0
- package/lib/Components/Label/Entities/LabelEntity.d.ts +16 -0
- package/lib/Components/Label/Entities/LabelEntity.js +67 -0
- package/lib/Components/Label/Entities/index.d.ts +1 -1
- package/lib/Components/Label/Entities/index.js +1 -1
- package/lib/Components/Label/Mocks/LabelPMMock.d.ts +7 -0
- package/lib/Components/Label/Mocks/LabelPMMock.js +11 -0
- package/lib/Components/Label/Mocks/index.d.ts +1 -0
- package/lib/Components/Label/Mocks/index.js +13 -0
- package/lib/Components/Label/PM/LabelPM.d.ts +3 -7
- package/lib/Components/Label/PM/LabelPM.js +26 -20
- package/lib/Components/Label/UC/ClearCustomLabelUC.d.ts +1 -1
- package/lib/Components/Label/UC/ClearCustomLabelUC.js +3 -4
- package/lib/Components/Label/UC/ClearCustomLabelUndoRedo.js +1 -1
- package/lib/Components/Label/UC/SetCustomLabelUC.d.ts +1 -1
- package/lib/Components/Label/UC/SetCustomLabelUC.js +3 -4
- package/lib/Components/Label/UC/SetCustomLabelUndoRedo.js +1 -1
- package/lib/Components/Label/index.d.ts +3 -1
- package/lib/Components/Label/index.js +3 -1
- package/lib/Components/Landmarks/Entities/LandmarkEntity.d.ts +2 -2
- package/lib/Components/Landmarks/Entities/LandmarkEntity.js +1 -1
- package/lib/Components/Landmarks/Mocks/MockLandmark.d.ts +2 -2
- package/lib/Components/Landmarks/UseCases/AddLandmarkUC.js +1 -1
- package/lib/Components/Landmarks/UseCases/SerializeLandmarks.d.ts +1 -1
- package/lib/Components/Landmarks/UseCases/SerializeLandmarks.js +4 -4
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.js +1 -1
- package/lib/Components/OverlayColor/Adapters/index.d.ts +1 -0
- package/lib/Components/OverlayColor/Adapters/index.js +13 -0
- package/lib/Components/OverlayColor/Adapters/overlayColorAdapter.d.ts +3 -0
- package/lib/Components/OverlayColor/Adapters/overlayColorAdapter.js +24 -0
- package/lib/Components/OverlayColor/Entities/OverlayColor.d.ts +2 -1
- package/lib/Components/OverlayColor/Entities/OverlayColor.js +4 -0
- package/lib/Components/OverlayColor/Mocks/OverlayColorPMMock.d.ts +7 -0
- package/lib/Components/OverlayColor/Mocks/OverlayColorPMMock.js +11 -0
- package/lib/Components/OverlayColor/Mocks/index.d.ts +1 -0
- package/lib/Components/OverlayColor/Mocks/index.js +13 -0
- package/lib/Components/OverlayColor/PM/OverlayColorPM.d.ts +2 -6
- package/lib/Components/OverlayColor/PM/OverlayColorPM.js +20 -12
- package/lib/Components/OverlayColor/index.d.ts +3 -1
- package/lib/Components/OverlayColor/index.js +3 -1
- package/lib/Components/Selection/Adapters/index.d.ts +2 -0
- package/lib/Components/Selection/Adapters/index.js +14 -0
- package/lib/Components/Selection/Adapters/selectableStateAdapter.d.ts +3 -0
- package/lib/Components/Selection/Adapters/selectableStateAdapter.js +23 -0
- package/lib/Components/Selection/Adapters/selectedObjectAdapter.d.ts +2 -0
- package/lib/Components/Selection/Adapters/selectedObjectAdapter.js +23 -0
- package/lib/Components/Selection/Controller/MouseHoverOnAppObject.js +1 -1
- package/lib/Components/Selection/Controller/MousePressOnAppObject.js +3 -3
- package/lib/Components/Selection/Controller/MouseSelectAppObject.js +1 -1
- package/lib/Components/Selection/Controller/StylusHoverOnAppObjectSC.d.ts +11 -0
- package/lib/Components/Selection/Controller/StylusHoverOnAppObjectSC.js +41 -0
- package/lib/Components/Selection/Controller/StylusPressOnAppObjectSC.d.ts +18 -0
- package/lib/Components/Selection/Controller/StylusPressOnAppObjectSC.js +70 -0
- package/lib/Components/Selection/Controller/StylusSelectAppObjectSC.d.ts +11 -0
- package/lib/Components/Selection/Controller/StylusSelectAppObjectSC.js +39 -0
- package/lib/Components/Selection/Controller/TapToSelectAppObject.js +1 -1
- package/lib/Components/Selection/Controller/TouchPressOnAppObject.js +4 -4
- package/lib/Components/Selection/Controller/index.d.ts +5 -3
- package/lib/Components/Selection/Controller/index.js +5 -3
- package/lib/Components/Selection/Controller/selectAppObject.d.ts +2 -0
- package/lib/Components/Selection/Controller/selectAppObject.js +14 -0
- package/lib/Components/Selection/Controller/setHoverOnAppObject.d.ts +2 -0
- package/lib/Components/Selection/Controller/setHoverOnAppObject.js +14 -0
- package/lib/Components/Selection/Entities/Selection.d.ts +1 -0
- package/lib/Components/Selection/Entities/Selection.js +9 -3
- package/lib/Components/Selection/Mocks/HoverAppObjectUCMock.d.ts +10 -0
- package/lib/Components/Selection/Mocks/HoverAppObjectUCMock.js +14 -0
- package/lib/Components/Selection/Mocks/PressAppObjectUCMock.d.ts +10 -0
- package/lib/Components/Selection/Mocks/PressAppObjectUCMock.js +14 -0
- package/lib/Components/Selection/Mocks/SelectAppObjectUCMock.d.ts +10 -0
- package/lib/Components/Selection/Mocks/SelectAppObjectUCMock.js +14 -0
- package/lib/Components/Selection/Mocks/SelectableStatePMMock.d.ts +7 -0
- package/lib/Components/Selection/Mocks/SelectableStatePMMock.js +11 -0
- package/lib/Components/Selection/Mocks/SelectedObjectPMMock.d.ts +8 -0
- package/lib/Components/Selection/Mocks/SelectedObjectPMMock.js +15 -0
- package/lib/Components/Selection/Mocks/index.d.ts +5 -0
- package/lib/Components/Selection/Mocks/index.js +17 -0
- package/lib/Components/Selection/PM/SelectableStatePM.d.ts +5 -7
- package/lib/Components/Selection/PM/SelectableStatePM.js +25 -18
- package/lib/Components/Selection/PM/SelectedObjectPM.d.ts +2 -0
- package/lib/Components/Selection/PM/SelectedObjectPM.js +10 -14
- package/lib/Components/Selection/UC/HoverAppObjectUC.d.ts +4 -2
- package/lib/Components/Selection/UC/HoverAppObjectUC.js +10 -6
- package/lib/Components/Selection/UC/PressAppObjectUC.d.ts +4 -2
- package/lib/Components/Selection/UC/PressAppObjectUC.js +10 -6
- package/lib/Components/Selection/UC/SelectAppObjectUC.d.ts +4 -2
- package/lib/Components/Selection/UC/SelectAppObjectUC.js +10 -6
- package/lib/Components/Selection/index.d.ts +4 -2
- package/lib/Components/Selection/index.js +4 -2
- package/lib/Components/StateMachine/Entities/StateMachineEntity.d.ts +1 -1
- package/lib/Components/StateMachine/Entities/StateMachineEntity.js +6 -2
- package/lib/Components/Tools/Adapters/index.d.ts +1 -0
- package/lib/Components/Tools/Adapters/index.js +13 -0
- package/lib/Components/Tools/Adapters/toolAdapter.d.ts +3 -0
- package/lib/Components/Tools/Adapters/toolAdapter.js +26 -0
- package/lib/Components/Tools/Controller/ToolHotkeys.js +1 -1
- package/lib/Components/Tools/Entities/ToolEntity.d.ts +5 -2
- package/lib/Components/Tools/Entities/ToolEntity.js +28 -8
- package/lib/Components/Tools/Entities/ToolRepository.js +4 -1
- package/lib/Components/Tools/Mocks/ToolPMMock.d.ts +8 -0
- package/lib/Components/Tools/Mocks/ToolPMMock.js +15 -0
- package/lib/Components/Tools/Mocks/index.d.ts +1 -0
- package/lib/Components/Tools/Mocks/index.js +13 -0
- package/lib/Components/Tools/PM/ToolPM.d.ts +16 -4
- package/lib/Components/Tools/PM/ToolPM.js +28 -21
- package/lib/Components/Tools/index.d.ts +3 -1
- package/lib/Components/Tools/index.js +3 -1
- package/lib/Components/TouchController/Entities/TouchInput.d.ts +1 -0
- package/lib/Components/TouchController/Entities/TouchInput.js +34 -0
- package/lib/Components/TouchController/Mock/index.d.ts +2 -0
- package/lib/Components/TouchController/Mock/index.js +14 -0
- package/lib/Components/TouchController/index.d.ts +1 -0
- package/lib/Components/TouchController/index.js +1 -0
- package/lib/Components/Transform3D/Adapters/canBeStuckAdapter.d.ts +2 -0
- package/lib/Components/Transform3D/Adapters/canBeStuckAdapter.js +23 -0
- package/lib/Components/Transform3D/Adapters/index.d.ts +2 -0
- package/lib/Components/Transform3D/Adapters/index.js +14 -0
- package/lib/Components/Transform3D/Adapters/transform3dAdapter.d.ts +3 -0
- package/lib/Components/Transform3D/Adapters/transform3dAdapter.js +23 -0
- package/lib/Components/Transform3D/Entities/Transform3D.d.ts +2 -1
- package/lib/Components/Transform3D/Entities/Transform3D.js +4 -0
- package/lib/Components/Transform3D/Mocks/CanBeStuckPmMock.d.ts +7 -0
- package/lib/Components/Transform3D/Mocks/CanBeStuckPmMock.js +11 -0
- package/lib/Components/Transform3D/Mocks/Transform3dPmMock.d.ts +7 -0
- package/lib/Components/Transform3D/Mocks/Transform3dPmMock.js +11 -0
- package/lib/Components/Transform3D/Mocks/index.d.ts +2 -0
- package/lib/Components/Transform3D/Mocks/index.js +2 -0
- package/lib/Components/Transform3D/PM/Transform3DPM.d.ts +1 -0
- package/lib/Components/Transform3D/PM/Transform3DPM.js +6 -13
- package/lib/Components/Transform3D/index.d.ts +1 -0
- package/lib/Components/Transform3D/index.js +1 -0
- package/lib/Components/UndoRedo/Mocks/MockUndoRedo.d.ts +2 -0
- package/lib/Components/UndoRedo/Mocks/MockUndoRedo.js +5 -1
- package/lib/Components/UndoRedo/Mocks/index.d.ts +1 -0
- package/lib/Components/UndoRedo/Mocks/index.js +13 -0
- package/lib/Components/UndoRedo/index.d.ts +1 -0
- package/lib/Components/UndoRedo/index.js +1 -0
- package/lib/Components/zSpace/Adapters/index.d.ts +4 -0
- package/lib/Components/zSpace/Adapters/index.js +16 -0
- package/lib/Components/zSpace/Adapters/zSpaceDisplayAdapter.d.ts +3 -0
- package/lib/Components/zSpace/Adapters/zSpaceDisplayAdapter.js +23 -0
- package/lib/Components/zSpace/Adapters/zSpaceIsEnabledAdapter.d.ts +2 -0
- package/lib/Components/zSpace/Adapters/zSpaceIsEnabledAdapter.js +23 -0
- package/lib/Components/zSpace/Adapters/zSpaceIsSupportedAdapter.d.ts +2 -0
- package/lib/Components/zSpace/Adapters/zSpaceIsSupportedAdapter.js +23 -0
- package/lib/Components/zSpace/Adapters/zSpaceViewerScaleAdapter.d.ts +2 -0
- package/lib/Components/zSpace/Adapters/zSpaceViewerScaleAdapter.js +23 -0
- package/lib/Components/zSpace/Mocks/ZSpaceDisplayPmMock.d.ts +8 -0
- package/lib/Components/zSpace/Mocks/ZSpaceDisplayPmMock.js +15 -0
- package/lib/Components/zSpace/Mocks/ZSpaceIsEnabledPmMock.d.ts +8 -0
- package/lib/Components/zSpace/Mocks/ZSpaceIsEnabledPmMock.js +15 -0
- package/lib/Components/zSpace/Mocks/ZSpaceIsSupportedPmMock.d.ts +8 -0
- package/lib/Components/zSpace/Mocks/ZSpaceIsSupportedPmMock.js +15 -0
- package/lib/Components/zSpace/Mocks/ZSpaceViewerScalePmMock.d.ts +8 -0
- package/lib/Components/zSpace/Mocks/ZSpaceViewerScalePmMock.js +15 -0
- package/lib/Components/zSpace/Mocks/index.d.ts +5 -0
- package/lib/Components/zSpace/Mocks/index.js +17 -0
- package/lib/Components/zSpace/PM/ZSpaceDisplayPM.d.ts +3 -0
- package/lib/Components/zSpace/PM/ZSpaceDisplayPM.js +20 -25
- package/lib/Components/zSpace/PM/ZSpaceIsEnabledPM.d.ts +2 -0
- package/lib/Components/zSpace/PM/ZSpaceIsEnabledPM.js +10 -16
- package/lib/Components/zSpace/PM/ZSpaceIsSupportedPM.js +10 -18
- package/lib/Components/zSpace/PM/ZSpaceViewerScalePM.d.ts +2 -1
- package/lib/Components/zSpace/PM/ZSpaceViewerScalePM.js +9 -16
- package/lib/Components/zSpace/index.d.ts +2 -0
- package/lib/Components/zSpace/index.js +2 -0
- package/lib/Entities/RangedNumber.d.ts +16 -0
- package/lib/Entities/RangedNumber.js +35 -0
- package/lib/Entities/index.d.ts +1 -0
- package/lib/Entities/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject";
|
|
1
2
|
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
3
|
import { AppObjectPM } from "../../../AppObject/AppObjectPM";
|
|
3
4
|
export interface ToolVM<ToolType> {
|
|
4
|
-
toolType: ToolType;
|
|
5
5
|
label: string;
|
|
6
6
|
enabled: boolean;
|
|
7
7
|
selected: boolean;
|
|
@@ -9,11 +9,23 @@ export interface ToolVM<ToolType> {
|
|
|
9
9
|
shortcutLabel: string;
|
|
10
10
|
tooltipLabel: string;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const defaultToolVM: {
|
|
13
|
+
label: string;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
selected: boolean;
|
|
16
|
+
show: boolean;
|
|
17
|
+
shortcutLabel: string;
|
|
18
|
+
tooltipLabel: string;
|
|
19
|
+
};
|
|
20
|
+
export declare abstract class ToolPM<ToolType> extends AppObjectPM<ToolVM<ToolType>> {
|
|
13
21
|
static readonly type = "ToolPM";
|
|
14
|
-
|
|
22
|
+
static get<ToolType>(id: string, appObjects: AppObjectRepo): ToolPM<ToolType> | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare function makeToolPM<ToolType>(appObject: AppObject): ToolPMImp<ToolType>;
|
|
25
|
+
declare class ToolPMImp<ToolType> extends ToolPM<ToolType> {
|
|
26
|
+
private get tool();
|
|
15
27
|
vmsAreEqual(a: ToolVM<ToolType>, b: ToolVM<ToolType>): boolean;
|
|
16
28
|
onToolChange: () => void;
|
|
17
|
-
dispose: () => void;
|
|
18
29
|
constructor(appObject: AppObject);
|
|
19
30
|
}
|
|
31
|
+
export {};
|
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolPM = void 0;
|
|
3
|
+
exports.makeToolPM = exports.ToolPM = exports.defaultToolVM = void 0;
|
|
4
4
|
const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
|
|
5
5
|
const ToolEntity_1 = require("../Entities/ToolEntity");
|
|
6
|
+
exports.defaultToolVM = {
|
|
7
|
+
label: "",
|
|
8
|
+
enabled: false,
|
|
9
|
+
selected: false,
|
|
10
|
+
show: false,
|
|
11
|
+
shortcutLabel: "",
|
|
12
|
+
tooltipLabel: "",
|
|
13
|
+
};
|
|
6
14
|
class ToolPM extends AppObjectPM_1.AppObjectPM {
|
|
15
|
+
static get(id, appObjects) {
|
|
16
|
+
var _a;
|
|
17
|
+
return (_a = appObjects.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(ToolPM.type);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ToolPM = ToolPM;
|
|
21
|
+
ToolPM.type = "ToolPM";
|
|
22
|
+
function makeToolPM(appObject) {
|
|
23
|
+
return new ToolPMImp(appObject);
|
|
24
|
+
}
|
|
25
|
+
exports.makeToolPM = makeToolPM;
|
|
26
|
+
class ToolPMImp extends ToolPM {
|
|
7
27
|
constructor(appObject) {
|
|
28
|
+
var _a;
|
|
8
29
|
super(appObject, ToolPM.type);
|
|
9
30
|
this.onToolChange = () => {
|
|
10
31
|
if (!this.tool)
|
|
11
32
|
return;
|
|
12
|
-
const {
|
|
33
|
+
const { state, label, shortcutLabel } = this.tool;
|
|
13
34
|
let enabled = false;
|
|
14
35
|
if (state === ToolEntity_1.ToolState.ACTIVE || state === ToolEntity_1.ToolState.ENABLED) {
|
|
15
36
|
enabled = true;
|
|
@@ -18,7 +39,6 @@ class ToolPM extends AppObjectPM_1.AppObjectPM {
|
|
|
18
39
|
const show = state === ToolEntity_1.ToolState.HIDDEN ? false : true;
|
|
19
40
|
const tooltipLabel = `${label} [${shortcutLabel}]`;
|
|
20
41
|
const vm = {
|
|
21
|
-
toolType,
|
|
22
42
|
enabled,
|
|
23
43
|
label,
|
|
24
44
|
selected,
|
|
@@ -28,24 +48,13 @@ class ToolPM extends AppObjectPM_1.AppObjectPM {
|
|
|
28
48
|
};
|
|
29
49
|
this.doUpdateView(vm);
|
|
30
50
|
};
|
|
31
|
-
this.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
this.tool = appObject.getComponent(ToolEntity_1.ToolEntity.type);
|
|
37
|
-
if (!this.tool) {
|
|
38
|
-
this.warn("ToolPM is being added to an object that does not have a Tool Entity");
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
this.tool.addChangeObserver(this.onToolChange);
|
|
43
|
-
this.onToolChange();
|
|
44
|
-
}
|
|
51
|
+
(_a = this.tool) === null || _a === void 0 ? void 0 : _a.addChangeObserver(this.onToolChange);
|
|
52
|
+
this.onToolChange();
|
|
53
|
+
}
|
|
54
|
+
get tool() {
|
|
55
|
+
return this.getCachedLocalComponent(ToolEntity_1.ToolEntity.type);
|
|
45
56
|
}
|
|
46
57
|
vmsAreEqual(a, b) {
|
|
47
|
-
if (a.toolType !== b.toolType)
|
|
48
|
-
return false;
|
|
49
58
|
if (a.enabled !== b.enabled)
|
|
50
59
|
return false;
|
|
51
60
|
if (a.label !== b.label)
|
|
@@ -61,5 +70,3 @@ class ToolPM extends AppObjectPM_1.AppObjectPM {
|
|
|
61
70
|
return true;
|
|
62
71
|
}
|
|
63
72
|
}
|
|
64
|
-
exports.ToolPM = ToolPM;
|
|
65
|
-
ToolPM.type = "ToolPM";
|
|
@@ -10,6 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./Adapters"), exports);
|
|
14
|
+
__exportStar(require("./Controller"), exports);
|
|
13
15
|
__exportStar(require("./Entities"), exports);
|
|
16
|
+
__exportStar(require("./Mocks"), exports);
|
|
14
17
|
__exportStar(require("./PM"), exports);
|
|
15
|
-
__exportStar(require("./Controller"), exports);
|
|
@@ -18,6 +18,7 @@ export interface TouchController {
|
|
|
18
18
|
onTouchMove?: (e: TouchInputEvent) => void;
|
|
19
19
|
onTouchEnd?: (e: TouchInputEvent) => void;
|
|
20
20
|
onTouchCancel?: (e: TouchInputEvent) => void;
|
|
21
|
+
onTap?: (e: TouchInputEvent) => void;
|
|
21
22
|
}
|
|
22
23
|
export declare abstract class TouchInputEntity extends AppObjectEntity {
|
|
23
24
|
static readonly type = "TouchInputEntity";
|
|
@@ -42,6 +42,9 @@ class TouchInputImp extends TouchInputEntity {
|
|
|
42
42
|
this.eventElementBounds = eventElement.getBoundingClientRect();
|
|
43
43
|
this._eventElement = eventElement;
|
|
44
44
|
};
|
|
45
|
+
this.considerTap = false;
|
|
46
|
+
this.tapStartPosition = ValueObjects_1.Vector2.Zero();
|
|
47
|
+
this.maxTapDistancePx = 5;
|
|
45
48
|
this.onTouchStart = (e) => {
|
|
46
49
|
if (e.cancelable)
|
|
47
50
|
e.preventDefault();
|
|
@@ -51,6 +54,19 @@ class TouchInputImp extends TouchInputEntity {
|
|
|
51
54
|
c.onTouchStart(touchInput);
|
|
52
55
|
}
|
|
53
56
|
});
|
|
57
|
+
if (touchInput.touchCount === 1) {
|
|
58
|
+
this.considerTap = true;
|
|
59
|
+
this.tapStartPosition = touchInput.touchCenter;
|
|
60
|
+
this.tapEvent = touchInput;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
this.cancelTap();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.cancelTap = () => {
|
|
67
|
+
this.considerTap = false;
|
|
68
|
+
this.tapStartPosition = ValueObjects_1.Vector2.Zero();
|
|
69
|
+
this.tapEvent = undefined;
|
|
54
70
|
};
|
|
55
71
|
this.onTouchMove = (e) => {
|
|
56
72
|
if (e.cancelable)
|
|
@@ -61,6 +77,15 @@ class TouchInputImp extends TouchInputEntity {
|
|
|
61
77
|
c.onTouchMove(touchInput);
|
|
62
78
|
}
|
|
63
79
|
});
|
|
80
|
+
if (!this.considerTap)
|
|
81
|
+
return;
|
|
82
|
+
if (touchInput.touchCount !== 1) {
|
|
83
|
+
this.cancelTap();
|
|
84
|
+
}
|
|
85
|
+
const movement = ValueObjects_1.Vector2.Subtract(this.tapStartPosition, touchInput.touchCenter).magnitued;
|
|
86
|
+
if (movement > this.maxTapDistancePx) {
|
|
87
|
+
this.cancelTap();
|
|
88
|
+
}
|
|
64
89
|
};
|
|
65
90
|
this.onTouchEnd = (e) => {
|
|
66
91
|
if (e.cancelable)
|
|
@@ -71,6 +96,14 @@ class TouchInputImp extends TouchInputEntity {
|
|
|
71
96
|
c.onTouchEnd(touchInput);
|
|
72
97
|
}
|
|
73
98
|
});
|
|
99
|
+
if (!this.considerTap || !this.tapEvent)
|
|
100
|
+
return;
|
|
101
|
+
this.controllers.forEach((c) => {
|
|
102
|
+
if (c.onTap) {
|
|
103
|
+
c.onTap(this.tapEvent);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
this.cancelTap();
|
|
74
107
|
};
|
|
75
108
|
this.onTouchCancel = (e) => {
|
|
76
109
|
if (e.cancelable)
|
|
@@ -81,6 +114,7 @@ class TouchInputImp extends TouchInputEntity {
|
|
|
81
114
|
c.onTouchCancel(touchInput);
|
|
82
115
|
}
|
|
83
116
|
});
|
|
117
|
+
this.cancelTap();
|
|
84
118
|
};
|
|
85
119
|
this.clearInputElement = () => {
|
|
86
120
|
if (!this._eventElement)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./MockTouchInput"), exports);
|
|
14
|
+
__exportStar(require("./mockTouchInputEvent"), exports);
|
|
@@ -11,4 +11,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./Entities"), exports);
|
|
14
|
+
__exportStar(require("./Mock"), exports);
|
|
14
15
|
__exportStar(require("./UC"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.canBeStuckAdapter = void 0;
|
|
4
|
+
const CanBeStuckPM_1 = require("../PM/CanBeStuckPM");
|
|
5
|
+
exports.canBeStuckAdapter = {
|
|
6
|
+
defaultVM: false,
|
|
7
|
+
subscribe: (id, appObjects, setVM) => {
|
|
8
|
+
const pm = CanBeStuckPM_1.CanBeStuckPM.getForID(id, appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("canBeStuckAdapter", "Unable to find CanBeStuckPM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (id, appObjects, setVM) => {
|
|
16
|
+
const pm = CanBeStuckPM_1.CanBeStuckPM.getForID(id, appObjects);
|
|
17
|
+
if (!pm) {
|
|
18
|
+
appObjects.submitError("canBeStuckAdapter", "Unable to find CanBeStuckPM");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
pm.removeView(setVM);
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./canBeStuckAdapter"), exports);
|
|
14
|
+
__exportStar(require("./transform3dAdapter"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transform3dAdapter = void 0;
|
|
4
|
+
const Transform3DPM_1 = require("../PM/Transform3DPM");
|
|
5
|
+
exports.transform3dAdapter = {
|
|
6
|
+
defaultVM: Transform3DPM_1.defaultTransform3DVM,
|
|
7
|
+
subscribe: (id, appObjects, setVM) => {
|
|
8
|
+
const pm = Transform3DPM_1.Transform3DPM.getForID(id, appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("transform3dAdapter", "Unable to find PM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (id, appObjects, setVM) => {
|
|
16
|
+
const pm = Transform3DPM_1.Transform3DPM.getForID(id, appObjects);
|
|
17
|
+
if (!pm) {
|
|
18
|
+
appObjects.submitError("transform3dAdapter", "Unable to find PM");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
pm.removeView(setVM);
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppObject, AppObjectEntity } from "../../../AppObject";
|
|
1
|
+
import { AppObject, AppObjectEntity, AppObjectRepo } from "../../../AppObject";
|
|
2
2
|
import { EaseFn } from "../../../Types";
|
|
3
3
|
import { Matrix, Quaternion, Vector3 } from "../../../ValueObjects";
|
|
4
4
|
export interface TransformLerpDTO {
|
|
@@ -13,6 +13,7 @@ export declare abstract class Transform3D extends AppObjectEntity {
|
|
|
13
13
|
static readonly type = "TRANSFORM_3D";
|
|
14
14
|
static addIfMissing(appObj: AppObject): Transform3D;
|
|
15
15
|
static get(appObj: AppObject): Transform3D | undefined;
|
|
16
|
+
static getByID(id: string, appObjects: AppObjectRepo): Transform3D | undefined;
|
|
16
17
|
abstract parent: Transform3D | undefined;
|
|
17
18
|
abstract localMatrix: Matrix;
|
|
18
19
|
abstract worldMatrix: Matrix;
|
|
@@ -16,6 +16,10 @@ class Transform3D extends AppObject_1.AppObjectEntity {
|
|
|
16
16
|
static get(appObj) {
|
|
17
17
|
return appObj.getComponent(this.type);
|
|
18
18
|
}
|
|
19
|
+
static getByID(id, appObjects) {
|
|
20
|
+
var _a;
|
|
21
|
+
return (_a = appObjects.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(this.type);
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
exports.Transform3D = Transform3D;
|
|
21
25
|
Transform3D.type = "TRANSFORM_3D";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { CanBeStuckPM } from "../PM/CanBeStuckPM";
|
|
4
|
+
export declare class CanBeStuckPmMock extends CanBeStuckPM {
|
|
5
|
+
vmsAreEqual: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CanBeStuckPmMock = void 0;
|
|
4
|
+
const CanBeStuckPM_1 = require("../PM/CanBeStuckPM");
|
|
5
|
+
class CanBeStuckPmMock extends CanBeStuckPM_1.CanBeStuckPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, CanBeStuckPM_1.CanBeStuckPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CanBeStuckPmMock = CanBeStuckPmMock;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Transform3dPmMock = void 0;
|
|
4
|
+
const PM_1 = require("../PM");
|
|
5
|
+
class Transform3dPmMock extends PM_1.Transform3DPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, PM_1.Transform3DPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.Transform3dPmMock = Transform3dPmMock;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export * from "./CanBeStuckPmMock";
|
|
1
2
|
export * from "./MockBumpTransformScaleAboutPixelPoint";
|
|
2
3
|
export * from "./MockPanTransformUC";
|
|
3
4
|
export * from "./MockPinchTransformUC";
|
|
4
5
|
export * from "./MockRayPanScaleTransformUC";
|
|
5
6
|
export * from "./MockRayScaleTransform";
|
|
7
|
+
export * from "./Transform3dPmMock";
|
|
@@ -10,8 +10,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./CanBeStuckPmMock"), exports);
|
|
13
14
|
__exportStar(require("./MockBumpTransformScaleAboutPixelPoint"), exports);
|
|
14
15
|
__exportStar(require("./MockPanTransformUC"), exports);
|
|
15
16
|
__exportStar(require("./MockPinchTransformUC"), exports);
|
|
16
17
|
__exportStar(require("./MockRayPanScaleTransformUC"), exports);
|
|
17
18
|
__exportStar(require("./MockRayScaleTransform"), exports);
|
|
19
|
+
__exportStar(require("./Transform3dPmMock"), exports);
|
|
@@ -11,4 +11,5 @@ export declare abstract class Transform3DPM extends AppObjectPM<Transform3DVM> {
|
|
|
11
11
|
static readonly type = "Transform3DPM";
|
|
12
12
|
static getForID(appObjID: string, appObjects: AppObjectRepo): Transform3DPM | undefined;
|
|
13
13
|
}
|
|
14
|
+
export declare const defaultTransform3DVM: Transform3DVM;
|
|
14
15
|
export declare function makeTransform3DPM(appObject: AppObject): Transform3DPM;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeTransform3DPM = exports.Transform3DPM = void 0;
|
|
3
|
+
exports.makeTransform3DPM = exports.defaultTransform3DVM = exports.Transform3DPM = void 0;
|
|
4
4
|
const AppObjectPM_1 = require("../../../AppObject/AppObjectPM");
|
|
5
5
|
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
6
|
const Transform3D_1 = require("../Entities/Transform3D");
|
|
@@ -15,6 +15,11 @@ class Transform3DPM extends AppObjectPM_1.AppObjectPM {
|
|
|
15
15
|
}
|
|
16
16
|
exports.Transform3DPM = Transform3DPM;
|
|
17
17
|
Transform3DPM.type = "Transform3DPM";
|
|
18
|
+
exports.defaultTransform3DVM = {
|
|
19
|
+
position: ValueObjects_1.Vector3.Zero(),
|
|
20
|
+
rotation: ValueObjects_1.Quaternion.Identity(),
|
|
21
|
+
scale: ValueObjects_1.Vector3.One(),
|
|
22
|
+
};
|
|
18
23
|
function makeTransform3DPM(appObject) {
|
|
19
24
|
return new Transform3DPMImp(appObject);
|
|
20
25
|
}
|
|
@@ -58,16 +63,4 @@ class Transform3DPMImp extends Transform3DPM {
|
|
|
58
63
|
return false;
|
|
59
64
|
return true;
|
|
60
65
|
}
|
|
61
|
-
static getForID(appObjID, appObjects) {
|
|
62
|
-
const appObj = appObjects.get(appObjID);
|
|
63
|
-
if (appObj === undefined) {
|
|
64
|
-
return undefined;
|
|
65
|
-
}
|
|
66
|
-
return appObj.getComponent(Transform3DPM.type);
|
|
67
|
-
}
|
|
68
66
|
}
|
|
69
|
-
Transform3DPMImp.defaultTransform3DVM = {
|
|
70
|
-
position: ValueObjects_1.Vector3.Zero(),
|
|
71
|
-
rotation: ValueObjects_1.Quaternion.Identity(),
|
|
72
|
-
scale: ValueObjects_1.Vector3.One(),
|
|
73
|
-
};
|
|
@@ -10,6 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./Adapters"), exports);
|
|
13
14
|
__exportStar(require("./Controllers"), exports);
|
|
14
15
|
__exportStar(require("./Entities"), exports);
|
|
15
16
|
__exportStar(require("./Mocks"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
+
import { AppObjectRepo } from "../../../AppObject";
|
|
2
3
|
import { AppObject } from "../../../AppObject/AppObject";
|
|
3
4
|
import { UndoRedoEntity } from "../Entities/UndoRedoEntity";
|
|
4
5
|
export declare class MockUndoRedo extends UndoRedoEntity {
|
|
@@ -10,3 +11,4 @@ export declare class MockUndoRedo extends UndoRedoEntity {
|
|
|
10
11
|
clearStack: jest.Mock<any, any>;
|
|
11
12
|
constructor(appObject: AppObject);
|
|
12
13
|
}
|
|
14
|
+
export declare function makeMockUndoRedo(appObjects: AppObjectRepo): MockUndoRedo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MockUndoRedo = void 0;
|
|
3
|
+
exports.makeMockUndoRedo = exports.MockUndoRedo = void 0;
|
|
4
4
|
const UndoRedoEntity_1 = require("../Entities/UndoRedoEntity");
|
|
5
5
|
class MockUndoRedo extends UndoRedoEntity_1.UndoRedoEntity {
|
|
6
6
|
constructor(appObject) {
|
|
@@ -18,3 +18,7 @@ class MockUndoRedo extends UndoRedoEntity_1.UndoRedoEntity {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.MockUndoRedo = MockUndoRedo;
|
|
21
|
+
function makeMockUndoRedo(appObjects) {
|
|
22
|
+
return new MockUndoRedo(appObjects.getOrCreate("MockUndoRedo"));
|
|
23
|
+
}
|
|
24
|
+
exports.makeMockUndoRedo = makeMockUndoRedo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MockUndoRedo";
|
|
@@ -0,0 +1,13 @@
|
|
|
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("./MockUndoRedo"), exports);
|
|
@@ -11,5 +11,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./Entities"), exports);
|
|
14
|
+
__exportStar(require("./Mocks"), exports);
|
|
14
15
|
__exportStar(require("./PM"), exports);
|
|
15
16
|
__exportStar(require("./Controllers"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
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("./zSpaceDisplayAdapter"), exports);
|
|
14
|
+
__exportStar(require("./zSpaceIsEnabledAdapter"), exports);
|
|
15
|
+
__exportStar(require("./zSpaceIsSupportedAdapter"), exports);
|
|
16
|
+
__exportStar(require("./zSpaceViewerScaleAdapter"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zSpaceDisplayAdapter = void 0;
|
|
4
|
+
const ZSpaceDisplayPM_1 = require("../PM/ZSpaceDisplayPM");
|
|
5
|
+
exports.zSpaceDisplayAdapter = {
|
|
6
|
+
defaultVM: ZSpaceDisplayPM_1.defaultZSpaceDisplayVM,
|
|
7
|
+
subscribe: (appObjects, setVM) => {
|
|
8
|
+
const pm = ZSpaceDisplayPM_1.ZSpaceDisplayPM.get(appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("zSpaceDisplayAdapter", "Unable to find ZSpaceDisplayPM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (appObjects, setVM) => {
|
|
16
|
+
const pm = ZSpaceDisplayPM_1.ZSpaceDisplayPM.get(appObjects);
|
|
17
|
+
if (!pm) {
|
|
18
|
+
appObjects.submitError("zSpaceDisplayAdapter", "Unable to find ZSpaceDisplayPM");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
pm.removeView(setVM);
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zSpaceIsEnabledAdapter = void 0;
|
|
4
|
+
const ZSpaceIsEnabledPM_1 = require("../PM/ZSpaceIsEnabledPM");
|
|
5
|
+
exports.zSpaceIsEnabledAdapter = {
|
|
6
|
+
defaultVM: false,
|
|
7
|
+
subscribe: (appObjects, setVM) => {
|
|
8
|
+
const pm = ZSpaceIsEnabledPM_1.ZSpaceIsEnabledPM.get(appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("zSpaceIsEnabledAdapter", "Unable to find ZSpaceIsEnabledPM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (appObjects, setVM) => {
|
|
16
|
+
const pm = ZSpaceIsEnabledPM_1.ZSpaceIsEnabledPM.get(appObjects);
|
|
17
|
+
if (!pm) {
|
|
18
|
+
appObjects.submitError("zSpaceIsEnabledAdapter", "Unable to find ZSpaceIsEnabledPM");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
pm.removeView(setVM);
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zSpaceIsSupportedAdapter = void 0;
|
|
4
|
+
const ZSpaceIsSupportedPM_1 = require("../PM/ZSpaceIsSupportedPM");
|
|
5
|
+
exports.zSpaceIsSupportedAdapter = {
|
|
6
|
+
defaultVM: false,
|
|
7
|
+
subscribe: (appObjects, setVM) => {
|
|
8
|
+
const pm = ZSpaceIsSupportedPM_1.ZSpaceIsSupportedPM.get(appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("zSpaceIsSupportedAdapter", "Unable to find ZSpaceIsSupportedPM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (appObjects, setVM) => {
|
|
16
|
+
const pm = ZSpaceIsSupportedPM_1.ZSpaceIsSupportedPM.get(appObjects);
|
|
17
|
+
if (!pm) {
|
|
18
|
+
appObjects.submitError("zSpaceIsSupportedAdapter", "Unable to find ZSpaceIsSupportedPM");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
pm.removeView(setVM);
|
|
22
|
+
},
|
|
23
|
+
};
|