@vived/app 4.26.1 → 4.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Components/BaseApp/Adapters/index.d.ts +4 -0
- package/lib/Components/BaseApp/Adapters/index.js +16 -0
- package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.d.ts +2 -0
- package/lib/Components/BaseApp/Adapters/isAuthoringAdapter.js +23 -0
- package/lib/Components/BaseApp/Adapters/isReviewingAdapter.d.ts +2 -0
- package/lib/Components/BaseApp/Adapters/isReviewingAdapter.js +23 -0
- package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.d.ts +3 -0
- package/lib/Components/BaseApp/Adapters/slideNavigationAdapter.js +23 -0
- package/lib/Components/BaseApp/Adapters/slideTextAdapter.d.ts +2 -0
- package/lib/Components/BaseApp/Adapters/slideTextAdapter.js +23 -0
- package/lib/Components/BaseApp/Controller/clickContinue.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/clickContinue.js +13 -0
- package/lib/Components/BaseApp/Controller/clickEditSlideText.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/clickEditSlideText.js +13 -0
- package/lib/Components/BaseApp/Controller/index.d.ts +5 -0
- package/lib/Components/BaseApp/Controller/index.js +17 -0
- package/lib/Components/BaseApp/Controller/removeRenderCanvas.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/removeRenderCanvas.js +13 -0
- package/lib/Components/BaseApp/Controller/submitRenderCanvas.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/submitRenderCanvas.js +13 -0
- package/lib/Components/BaseApp/Controller/updateContentSize.d.ts +2 -0
- package/lib/Components/BaseApp/Controller/updateContentSize.js +13 -0
- package/lib/Components/BaseApp/Entity/BaseAppState.d.ts +20 -0
- package/lib/Components/BaseApp/Entity/BaseAppState.js +68 -0
- package/lib/Components/BaseApp/Entity/index.d.ts +1 -0
- package/lib/Components/BaseApp/Entity/index.js +13 -0
- package/lib/Components/BaseApp/Mocks/IsAuthoringMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/IsAuthoringMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/IsReviewingMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/IsReviewingMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.d.ts +10 -0
- package/lib/Components/BaseApp/Mocks/MockAppRenderingUC.js +16 -0
- package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.d.ts +10 -0
- package/lib/Components/BaseApp/Mocks/MockRenderCanvasUC.js +16 -0
- package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.d.ts +9 -0
- package/lib/Components/BaseApp/Mocks/MockUpdateContentSizeUC.js +15 -0
- package/lib/Components/BaseApp/Mocks/SlideNavigationMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/SlideNavigationMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/SlideTextMock.d.ts +8 -0
- package/lib/Components/BaseApp/Mocks/SlideTextMock.js +15 -0
- package/lib/Components/BaseApp/Mocks/index.d.ts +7 -0
- package/lib/Components/BaseApp/Mocks/index.js +19 -0
- package/lib/Components/BaseApp/PM/IsAuthoringPM.d.ts +6 -0
- package/lib/Components/BaseApp/PM/IsAuthoringPM.js +39 -0
- package/lib/Components/BaseApp/PM/IsReviewingPM.d.ts +6 -0
- package/lib/Components/BaseApp/PM/IsReviewingPM.js +39 -0
- package/lib/Components/BaseApp/PM/SlideNavigationPM.d.ts +12 -0
- package/lib/Components/BaseApp/PM/SlideNavigationPM.js +49 -0
- package/lib/Components/BaseApp/PM/SlideTextPM.d.ts +6 -0
- package/lib/Components/BaseApp/PM/SlideTextPM.js +34 -0
- package/lib/Components/BaseApp/PM/index.d.ts +4 -0
- package/lib/Components/BaseApp/PM/index.js +16 -0
- package/lib/Components/BaseApp/UC/AppRenderingUC.d.ts +7 -0
- package/lib/Components/BaseApp/UC/AppRenderingUC.js +9 -0
- package/lib/Components/BaseApp/UC/EditSlideTextUC.d.ts +10 -0
- package/lib/Components/BaseApp/UC/EditSlideTextUC.js +57 -0
- package/lib/Components/BaseApp/UC/RenderCanvasUC.d.ts +10 -0
- package/lib/Components/BaseApp/UC/RenderCanvasUC.js +88 -0
- package/lib/Components/BaseApp/UC/SerializeBaseAppState.d.ts +17 -0
- package/lib/Components/BaseApp/UC/SerializeBaseAppState.js +59 -0
- package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.d.ts +11 -0
- package/lib/Components/BaseApp/UC/UndoRedoEditSlideText.js +43 -0
- package/lib/Components/BaseApp/UC/UpdateContentSizeUC.d.ts +7 -0
- package/lib/Components/BaseApp/UC/UpdateContentSizeUC.js +33 -0
- package/lib/Components/BaseApp/UC/index.d.ts +7 -0
- package/lib/Components/BaseApp/UC/index.js +19 -0
- package/lib/Components/BaseApp/index.d.ts +6 -0
- package/lib/Components/BaseApp/index.js +18 -0
- package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.d.ts +3 -0
- package/lib/Components/Callouts/Adapters/calloutLinePointsAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/calloutListAdapter.d.ts +2 -0
- package/lib/Components/Callouts/Adapters/calloutListAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.d.ts +3 -0
- package/lib/Components/Callouts/Adapters/calloutOffsetAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/calloutSizeAdapter.d.ts +2 -0
- package/lib/Components/Callouts/Adapters/calloutSizeAdapter.js +23 -0
- package/lib/Components/Callouts/Adapters/index.d.ts +4 -0
- package/lib/Components/Callouts/Adapters/index.js +16 -0
- package/lib/Components/Callouts/Controller/MouseAddCalloutMC.d.ts +13 -0
- package/lib/Components/Callouts/Controller/MouseAddCalloutMC.js +43 -0
- package/lib/Components/Callouts/Controller/MouseCalloutRoll.d.ts +9 -0
- package/lib/Components/Callouts/Controller/MouseCalloutRoll.js +27 -0
- package/lib/Components/Callouts/Controller/TouchAddCalloutTC.d.ts +13 -0
- package/lib/Components/Callouts/Controller/TouchAddCalloutTC.js +47 -0
- package/lib/Components/Callouts/Controller/deleteAllCallouts.d.ts +2 -0
- package/lib/Components/Callouts/Controller/deleteAllCallouts.js +13 -0
- package/lib/Components/Callouts/Controller/deleteCallout.d.ts +2 -0
- package/lib/Components/Callouts/Controller/deleteCallout.js +13 -0
- package/lib/Components/Callouts/Controller/index.d.ts +6 -0
- package/lib/Components/Callouts/Controller/index.js +18 -0
- package/lib/Components/Callouts/Controller/submitCalloutSize.d.ts +2 -0
- package/lib/Components/Callouts/Controller/submitCalloutSize.js +13 -0
- package/lib/Components/Callouts/Controller/updateCalloutSize.d.ts +2 -0
- package/lib/Components/Callouts/Controller/updateCalloutSize.js +13 -0
- package/lib/Components/Callouts/Entities/CalloutEntity.d.ts +51 -0
- package/lib/Components/Callouts/Entities/CalloutEntity.js +141 -0
- package/lib/Components/Callouts/Entities/CalloutGlobals.d.ts +11 -0
- package/lib/Components/Callouts/Entities/CalloutGlobals.js +29 -0
- package/lib/Components/Callouts/Entities/CalloutRepo.d.ts +15 -0
- package/lib/Components/Callouts/Entities/CalloutRepo.js +57 -0
- package/lib/Components/Callouts/Entities/index.d.ts +3 -0
- package/lib/Components/Callouts/Entities/index.js +15 -0
- package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutLinePointsPmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CalloutListPmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutListPmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutOffsetPmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CalloutSizePmMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/CalloutSizePmMock.js +11 -0
- package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.d.ts +8 -0
- package/lib/Components/Callouts/Mocks/CreateCalloutUcMock.js +12 -0
- package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/DeleteCalloutUcMock.js +11 -0
- package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.d.ts +7 -0
- package/lib/Components/Callouts/Mocks/MoveCalloutToCamUcMock.js +11 -0
- package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.d.ts +8 -0
- package/lib/Components/Callouts/Mocks/SetCalloutSizeUcMock.js +12 -0
- package/lib/Components/Callouts/Mocks/TryAddCalloutMock.d.ts +14 -0
- package/lib/Components/Callouts/Mocks/TryAddCalloutMock.js +21 -0
- package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.d.ts +9 -0
- package/lib/Components/Callouts/Mocks/TryBumpLabelUcMock.js +13 -0
- package/lib/Components/Callouts/Mocks/index.d.ts +8 -0
- package/lib/Components/Callouts/Mocks/index.js +20 -0
- package/lib/Components/Callouts/PM/CalloutLinePointsPM.d.ts +7 -0
- package/lib/Components/Callouts/PM/CalloutLinePointsPM.js +97 -0
- package/lib/Components/Callouts/PM/CalloutListPM.d.ts +6 -0
- package/lib/Components/Callouts/PM/CalloutListPM.js +49 -0
- package/lib/Components/Callouts/PM/CalloutOffsetPM.d.ts +7 -0
- package/lib/Components/Callouts/PM/CalloutOffsetPM.js +37 -0
- package/lib/Components/Callouts/PM/CalloutSizePM.d.ts +6 -0
- package/lib/Components/Callouts/PM/CalloutSizePM.js +41 -0
- package/lib/Components/Callouts/PM/index.d.ts +4 -0
- package/lib/Components/Callouts/PM/index.js +16 -0
- package/lib/Components/Callouts/UC/CalloutScaleHook.d.ts +11 -0
- package/lib/Components/Callouts/UC/CalloutScaleHook.js +48 -0
- package/lib/Components/Callouts/UC/CreateCalloutUC.d.ts +11 -0
- package/lib/Components/Callouts/UC/CreateCalloutUC.js +64 -0
- package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.d.ts +10 -0
- package/lib/Components/Callouts/UC/CreateCalloutUndoRedo.js +36 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.d.ts +8 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUC.js +43 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.d.ts +10 -0
- package/lib/Components/Callouts/UC/DeleteAllCalloutsUndoRedo.js +40 -0
- package/lib/Components/Callouts/UC/DeleteCallout.d.ts +8 -0
- package/lib/Components/Callouts/UC/DeleteCallout.js +38 -0
- package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.d.ts +10 -0
- package/lib/Components/Callouts/UC/DeleteCalloutUndoRedo.js +36 -0
- package/lib/Components/Callouts/UC/LookAtCameraUC.d.ts +7 -0
- package/lib/Components/Callouts/UC/LookAtCameraUC.js +104 -0
- package/lib/Components/Callouts/UC/MoveCalloutToCamUC.d.ts +14 -0
- package/lib/Components/Callouts/UC/MoveCalloutToCamUC.js +35 -0
- package/lib/Components/Callouts/UC/SerializeCallouts.d.ts +17 -0
- package/lib/Components/Callouts/UC/SerializeCallouts.js +94 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUC.d.ts +9 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUC.js +63 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.d.ts +15 -0
- package/lib/Components/Callouts/UC/SetCalloutSizeUndoRedo.js +28 -0
- package/lib/Components/Callouts/UC/TryAddCallout.d.ts +14 -0
- package/lib/Components/Callouts/UC/TryAddCallout.js +111 -0
- package/lib/Components/Callouts/UC/TryBumpLabelUC.d.ts +9 -0
- package/lib/Components/Callouts/UC/TryBumpLabelUC.js +61 -0
- package/lib/Components/Callouts/UC/TryPanLabelUC.d.ts +3 -0
- package/lib/Components/Callouts/UC/TryPanLabelUC.js +38 -0
- package/lib/Components/Callouts/UC/index.d.ts +13 -0
- package/lib/Components/Callouts/UC/index.js +25 -0
- package/lib/Components/Callouts/index.d.ts +6 -0
- package/lib/Components/Callouts/index.js +18 -0
- package/lib/Components/Camera/Adapters/cameraAdapter.d.ts +3 -0
- package/lib/Components/Camera/Adapters/cameraAdapter.js +19 -0
- package/lib/Components/Camera/Adapters/index.d.ts +1 -0
- package/lib/Components/Camera/Adapters/index.js +13 -0
- package/lib/Components/Camera/Mocks/CameraPmMock.d.ts +8 -0
- package/lib/Components/Camera/Mocks/CameraPmMock.js +15 -0
- package/lib/Components/Camera/Mocks/index.d.ts +1 -0
- package/lib/Components/Camera/Mocks/index.js +13 -0
- package/lib/Components/Challenge/Mocks/ChallengeEntityMock.d.ts +17 -0
- package/lib/Components/Challenge/Mocks/ChallengeEntityMock.js +38 -0
- package/lib/Components/Challenge/Mocks/ChallengeMock.d.ts +11 -0
- package/lib/Components/Challenge/Mocks/ChallengeMock.js +13 -0
- package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/modelHasCalloutsAdapter.js +27 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsHaveOverlayAdapter.js +27 -0
- package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.d.ts +2 -0
- package/lib/Components/ChannelModel/Controllers/clearActiveObjectsOverlays.js +23 -0
- package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ClearModelObjectOverlaysUCMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ModelHasCalloutsPmMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsHaveOverlayPMMock.js +11 -0
- package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.d.ts +6 -0
- package/lib/Components/ChannelModel/PMs/ModelHasCalloutsPM.js +47 -0
- package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.d.ts +6 -0
- package/lib/Components/ChannelModel/PMs/ModelObjectsHaveOverlayPM.js +58 -0
- package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.d.ts +13 -0
- package/lib/Components/ChannelModel/UC/ClearAllColorOverlayUndoRedo.js +37 -0
- package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.d.ts +7 -0
- package/lib/Components/ChannelModel/UC/ClearModelObjectOverlaysUC.js +53 -0
- package/lib/Components/Hideable/UCs/SerializeHideableObjects.d.ts +23 -0
- package/lib/Components/Hideable/UCs/SerializeHideableObjects.js +90 -0
- package/lib/Components/ObjectPick/Adapters/index.d.ts +1 -0
- package/lib/Components/ObjectPick/Adapters/index.js +13 -0
- package/lib/Components/ObjectPick/Adapters/objectPickAdapter.d.ts +3 -0
- package/lib/Components/ObjectPick/Adapters/objectPickAdapter.js +19 -0
- package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.d.ts +11 -0
- package/lib/Components/ObjectPick/Controllers/MouseObjectPickMC.js +45 -0
- package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.d.ts +9 -0
- package/lib/Components/ObjectPick/Controllers/StylusObjectPickSC.js +30 -0
- package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.d.ts +11 -0
- package/lib/Components/ObjectPick/Controllers/TouchObjectPickTC.js +42 -0
- package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/addCorrectObjectPickID.js +13 -0
- package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/clearCorrectObjectPickIDs.js +13 -0
- package/lib/Components/ObjectPick/Controllers/index.d.ts +7 -0
- package/lib/Components/ObjectPick/Controllers/index.js +19 -0
- package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/removeCorrectObjectPickID.js +13 -0
- package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.d.ts +2 -0
- package/lib/Components/ObjectPick/Controllers/toggleIsSelectingCorrectObjectPicks.js +14 -0
- package/lib/Components/ObjectPick/Entities/ObjectPickEntity.d.ts +22 -0
- package/lib/Components/ObjectPick/Entities/ObjectPickEntity.js +82 -0
- package/lib/Components/ObjectPick/Entities/index.d.ts +1 -0
- package/lib/Components/ObjectPick/Entities/index.js +13 -0
- package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/AddCorrectObjectIdUcMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/ClearCorrectObjectIdsUCMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/ObjectPickPmMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/RemoveCorrectObjectIdUcMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.d.ts +9 -0
- package/lib/Components/ObjectPick/Mocks/TrySelectObjectPickUCMock.js +16 -0
- package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.d.ts +9 -0
- package/lib/Components/ObjectPick/Mocks/TrySubmitObjectPickUCMock.js +16 -0
- package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.d.ts +8 -0
- package/lib/Components/ObjectPick/Mocks/ValidateObjectPickUcMock.js +15 -0
- package/lib/Components/ObjectPick/Mocks/index.d.ts +7 -0
- package/lib/Components/ObjectPick/Mocks/index.js +19 -0
- package/lib/Components/ObjectPick/PM/ObjectPickPM.d.ts +14 -0
- package/lib/Components/ObjectPick/PM/ObjectPickPM.js +72 -0
- package/lib/Components/ObjectPick/PM/index.d.ts +1 -0
- package/lib/Components/ObjectPick/PM/index.js +13 -0
- package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/AddCorrectObjectIdUC.js +48 -0
- package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/ClearCorrectObjectIdsUC.js +55 -0
- package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/RemoveCorrectObjectIdUC.js +48 -0
- package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.d.ts +16 -0
- package/lib/Components/ObjectPick/UseCases/SerializeObjectPick.js +54 -0
- package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.d.ts +9 -0
- package/lib/Components/ObjectPick/UseCases/TrySelectObjectPickUC.js +83 -0
- package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.d.ts +9 -0
- package/lib/Components/ObjectPick/UseCases/TrySubmitObjectPickUC.js +69 -0
- package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.d.ts +10 -0
- package/lib/Components/ObjectPick/UseCases/ValidateObjectPickUC.js +62 -0
- package/lib/Components/ObjectPick/UseCases/index.d.ts +7 -0
- package/lib/Components/ObjectPick/UseCases/index.js +19 -0
- package/lib/Components/ObjectPick/index.d.ts +6 -0
- package/lib/Components/ObjectPick/index.js +18 -0
- package/lib/Components/Question/UC/registerQuestionChallenge.d.ts +2 -0
- package/lib/Components/Question/UC/registerQuestionChallenge.js +20 -0
- package/lib/Components/Stylus/Adapters/index.d.ts +1 -0
- package/lib/Components/Stylus/Adapters/index.js +13 -0
- package/lib/Components/Stylus/Adapters/stylusIsInUseAdapter.d.ts +2 -0
- package/lib/Components/Stylus/Adapters/stylusIsInUseAdapter.js +19 -0
- package/lib/Components/Stylus/Mocks/StylusIsInUsePMMock.d.ts +8 -0
- package/lib/Components/Stylus/Mocks/StylusIsInUsePMMock.js +15 -0
- package/lib/Components/Stylus/Mocks/index.d.ts +1 -0
- package/lib/Components/Stylus/Mocks/index.js +1 -0
- package/lib/Components/Stylus/index.d.ts +1 -0
- package/lib/Components/Stylus/index.js +1 -0
- package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.d.ts +13 -0
- package/lib/Components/Transform3D/Controllers/Mouse/TryMousePanTransformMC.js +51 -0
- package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.d.ts +12 -0
- package/lib/Components/Transform3D/Controllers/Touch/TryTouchPanTransformTC.js +53 -0
- package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.d.ts +13 -0
- package/lib/Components/Transform3D/Mocks/TryPanTransformUcMock.js +17 -0
- package/lib/Components/Transform3D/UC/TryPanTransformUC.d.ts +27 -0
- package/lib/Components/Transform3D/UC/TryPanTransformUC.js +79 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
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("./CalloutEntity"), exports);
|
|
14
|
+
__exportStar(require("./CalloutGlobals"), exports);
|
|
15
|
+
__exportStar(require("./CalloutRepo"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { CalloutLinePointsPM } from "../PM/CalloutLinePointsPM";
|
|
4
|
+
export declare class CalloutLinePointsPmMock extends CalloutLinePointsPM {
|
|
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.CalloutLinePointsPmMock = void 0;
|
|
4
|
+
const CalloutLinePointsPM_1 = require("../PM/CalloutLinePointsPM");
|
|
5
|
+
class CalloutLinePointsPmMock extends CalloutLinePointsPM_1.CalloutLinePointsPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, CalloutLinePointsPM_1.CalloutLinePointsPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CalloutLinePointsPmMock = CalloutLinePointsPmMock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { CalloutListPM } from "../PM/CalloutListPM";
|
|
4
|
+
export declare class CalloutListPmMock extends CalloutListPM {
|
|
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.CalloutListPmMock = void 0;
|
|
4
|
+
const CalloutListPM_1 = require("../PM/CalloutListPM");
|
|
5
|
+
class CalloutListPmMock extends CalloutListPM_1.CalloutListPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, CalloutListPM_1.CalloutListPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CalloutListPmMock = CalloutListPmMock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { CalloutOffsetPM } from "../PM/CalloutOffsetPM";
|
|
4
|
+
export declare class CalloutOffsetPmMock extends CalloutOffsetPM {
|
|
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.CalloutOffsetPmMock = void 0;
|
|
4
|
+
const CalloutOffsetPM_1 = require("../PM/CalloutOffsetPM");
|
|
5
|
+
class CalloutOffsetPmMock extends CalloutOffsetPM_1.CalloutOffsetPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, CalloutOffsetPM_1.CalloutOffsetPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CalloutOffsetPmMock = CalloutOffsetPmMock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { CalloutSizePM } from "../PM/CalloutSizePM";
|
|
4
|
+
export declare class CalloutSizePmMock extends CalloutSizePM {
|
|
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.CalloutSizePmMock = void 0;
|
|
4
|
+
const CalloutSizePM_1 = require("../PM/CalloutSizePM");
|
|
5
|
+
class CalloutSizePmMock extends CalloutSizePM_1.CalloutSizePM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, CalloutSizePM_1.CalloutSizePM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CalloutSizePmMock = CalloutSizePmMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { CreateCalloutUC } from "../UC/CreateCalloutUC";
|
|
4
|
+
export declare class CreateCalloutUcMock extends CreateCalloutUC {
|
|
5
|
+
fromDTO: jest.Mock<any, any>;
|
|
6
|
+
fromPick: jest.Mock<any, any>;
|
|
7
|
+
constructor(appObject: AppObject);
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateCalloutUcMock = void 0;
|
|
4
|
+
const CreateCalloutUC_1 = require("../UC/CreateCalloutUC");
|
|
5
|
+
class CreateCalloutUcMock extends CreateCalloutUC_1.CreateCalloutUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, CreateCalloutUC_1.CreateCalloutUC.type);
|
|
8
|
+
this.fromDTO = jest.fn();
|
|
9
|
+
this.fromPick = jest.fn();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CreateCalloutUcMock = CreateCalloutUcMock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { DeleteCalloutUC } from "../UC/DeleteCallout";
|
|
4
|
+
export declare class DeleteCalloutUcMock extends DeleteCalloutUC {
|
|
5
|
+
delete: 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.DeleteCalloutUcMock = void 0;
|
|
4
|
+
const DeleteCallout_1 = require("../UC/DeleteCallout");
|
|
5
|
+
class DeleteCalloutUcMock extends DeleteCallout_1.DeleteCalloutUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, DeleteCallout_1.DeleteCalloutUC.type);
|
|
8
|
+
this.delete = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.DeleteCalloutUcMock = DeleteCalloutUcMock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { MoveCalloutToCamUC } from "../UC/MoveCalloutToCamUC";
|
|
4
|
+
export declare class MoveCalloutToCamUcMock extends MoveCalloutToCamUC {
|
|
5
|
+
moveCalloutToCam: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObj: AppObject);
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MoveCalloutToCamUcMock = void 0;
|
|
4
|
+
const MoveCalloutToCamUC_1 = require("../UC/MoveCalloutToCamUC");
|
|
5
|
+
class MoveCalloutToCamUcMock extends MoveCalloutToCamUC_1.MoveCalloutToCamUC {
|
|
6
|
+
constructor(appObj) {
|
|
7
|
+
super(appObj, MoveCalloutToCamUC_1.MoveCalloutToCamUC.type);
|
|
8
|
+
this.moveCalloutToCam = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MoveCalloutToCamUcMock = MoveCalloutToCamUcMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { SetCalloutSizeUC } from "../UC/SetCalloutSizeUC";
|
|
4
|
+
export declare class SetCalloutSizeUcMock extends SetCalloutSizeUC {
|
|
5
|
+
updateSize: jest.Mock<any, any>;
|
|
6
|
+
submitSize: jest.Mock<any, any>;
|
|
7
|
+
constructor(appObject: AppObject);
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetCalloutSizeUcMock = void 0;
|
|
4
|
+
const SetCalloutSizeUC_1 = require("../UC/SetCalloutSizeUC");
|
|
5
|
+
class SetCalloutSizeUcMock extends SetCalloutSizeUC_1.SetCalloutSizeUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, SetCalloutSizeUC_1.SetCalloutSizeUC.type);
|
|
8
|
+
this.updateSize = jest.fn();
|
|
9
|
+
this.submitSize = jest.fn();
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SetCalloutSizeUcMock = SetCalloutSizeUcMock;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { TryAddCalloutUC } from "../UC/TryAddCallout";
|
|
4
|
+
export declare class TryAddCalloutMock extends TryAddCalloutUC {
|
|
5
|
+
allow: jest.Mock<any, any>;
|
|
6
|
+
initializeWithPixel: jest.Mock<any, any>;
|
|
7
|
+
moveWithPixel: jest.Mock<any, any>;
|
|
8
|
+
initializeWithRay: jest.Mock<any, any>;
|
|
9
|
+
moveWithRay: jest.Mock<any, any>;
|
|
10
|
+
stop: jest.Mock<any, any>;
|
|
11
|
+
cancel: jest.Mock<any, any>;
|
|
12
|
+
constructor(appObject: AppObject);
|
|
13
|
+
}
|
|
14
|
+
export declare function makeTryAddCalloutMock(appObjects: AppObjectRepo): TryAddCalloutMock;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeTryAddCalloutMock = exports.TryAddCalloutMock = void 0;
|
|
4
|
+
const TryAddCallout_1 = require("../UC/TryAddCallout");
|
|
5
|
+
class TryAddCalloutMock extends TryAddCallout_1.TryAddCalloutUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, TryAddCallout_1.TryAddCalloutUC.type);
|
|
8
|
+
this.allow = jest.fn();
|
|
9
|
+
this.initializeWithPixel = jest.fn();
|
|
10
|
+
this.moveWithPixel = jest.fn();
|
|
11
|
+
this.initializeWithRay = jest.fn();
|
|
12
|
+
this.moveWithRay = jest.fn();
|
|
13
|
+
this.stop = jest.fn();
|
|
14
|
+
this.cancel = jest.fn();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.TryAddCalloutMock = TryAddCalloutMock;
|
|
18
|
+
function makeTryAddCalloutMock(appObjects) {
|
|
19
|
+
return new TryAddCalloutMock(appObjects.getOrCreate("TryAddCalloutMock"));
|
|
20
|
+
}
|
|
21
|
+
exports.makeTryAddCalloutMock = makeTryAddCalloutMock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { TryBumpLabelUC } from "../UC/TryBumpLabelUC";
|
|
4
|
+
export declare class TryBumpLabelUcMock extends TryBumpLabelUC {
|
|
5
|
+
allow: jest.Mock<any, any>;
|
|
6
|
+
tryWithRay: jest.Mock<any, any>;
|
|
7
|
+
tryWithPixel: jest.Mock<any, any>;
|
|
8
|
+
constructor(appObject: AppObject);
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TryBumpLabelUcMock = void 0;
|
|
4
|
+
const TryBumpLabelUC_1 = require("../UC/TryBumpLabelUC");
|
|
5
|
+
class TryBumpLabelUcMock extends TryBumpLabelUC_1.TryBumpLabelUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, TryBumpLabelUC_1.TryBumpLabelUC.type);
|
|
8
|
+
this.allow = jest.fn();
|
|
9
|
+
this.tryWithRay = jest.fn();
|
|
10
|
+
this.tryWithPixel = jest.fn();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.TryBumpLabelUcMock = TryBumpLabelUcMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./CalloutLinePointsPmMock";
|
|
2
|
+
export * from "./CalloutListPmMock";
|
|
3
|
+
export * from "./CalloutOffsetPmMock";
|
|
4
|
+
export * from "./CalloutSizePmMock";
|
|
5
|
+
export * from "./CreateCalloutUcMock";
|
|
6
|
+
export * from "./DeleteCalloutUcMock";
|
|
7
|
+
export * from "./SetCalloutSizeUcMock";
|
|
8
|
+
export * from "./TryAddCalloutMock";
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./CalloutLinePointsPmMock"), exports);
|
|
14
|
+
__exportStar(require("./CalloutListPmMock"), exports);
|
|
15
|
+
__exportStar(require("./CalloutOffsetPmMock"), exports);
|
|
16
|
+
__exportStar(require("./CalloutSizePmMock"), exports);
|
|
17
|
+
__exportStar(require("./CreateCalloutUcMock"), exports);
|
|
18
|
+
__exportStar(require("./DeleteCalloutUcMock"), exports);
|
|
19
|
+
__exportStar(require("./SetCalloutSizeUcMock"), exports);
|
|
20
|
+
__exportStar(require("./TryAddCalloutMock"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppObject, AppObjectPM, AppObjectRepo } from "../../../AppObject";
|
|
2
|
+
import { Vector3 } from "../../../ValueObjects";
|
|
3
|
+
export declare abstract class CalloutLinePointsPM extends AppObjectPM<Vector3[]> {
|
|
4
|
+
static readonly type = "CalloutLinePointsPM";
|
|
5
|
+
static getById(id: string, appObjects: AppObjectRepo): CalloutLinePointsPM | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function makeCalloutLinePointsPM(appObject: AppObject): CalloutLinePointsPM;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCalloutLinePointsPM = exports.CalloutLinePointsPM = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const SceneRootEntity_1 = require("../../SceneRoot/Entities/SceneRootEntity");
|
|
7
|
+
const CalloutEntity_1 = require("../Entities/CalloutEntity");
|
|
8
|
+
class CalloutLinePointsPM extends AppObject_1.AppObjectPM {
|
|
9
|
+
static getById(id, appObjects) {
|
|
10
|
+
var _a;
|
|
11
|
+
return (_a = appObjects
|
|
12
|
+
.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(CalloutLinePointsPM.type);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.CalloutLinePointsPM = CalloutLinePointsPM;
|
|
16
|
+
CalloutLinePointsPM.type = "CalloutLinePointsPM";
|
|
17
|
+
function makeCalloutLinePointsPM(appObject) {
|
|
18
|
+
return new CalloutLinePMImp(appObject);
|
|
19
|
+
}
|
|
20
|
+
exports.makeCalloutLinePointsPM = makeCalloutLinePointsPM;
|
|
21
|
+
class CalloutLinePMImp extends CalloutLinePointsPM {
|
|
22
|
+
constructor(appObject) {
|
|
23
|
+
super(appObject, CalloutLinePointsPM.type);
|
|
24
|
+
this.bumpScaleFactor = 0.002;
|
|
25
|
+
this.onChange = () => {
|
|
26
|
+
if (!this.callout || !this.sceneRootEntity)
|
|
27
|
+
return;
|
|
28
|
+
const bumpSize = this.bumpScaleFactor / this.sceneRootEntity.scale;
|
|
29
|
+
const startPos = this.callout.rootTransform.localPosition;
|
|
30
|
+
const startDir = ValueObjects_1.Vector3.Transform(ValueObjects_1.Vector3.Forward(), this.callout.rootTransform.localMatrix);
|
|
31
|
+
const startBumpOffset = ValueObjects_1.Vector3.NewVectorOfLength(startDir, bumpSize);
|
|
32
|
+
const startBump = ValueObjects_1.Vector3.Add(startPos, startBumpOffset);
|
|
33
|
+
const endPos = this.callout.labelTransform.localPosition;
|
|
34
|
+
const offsetDirection = this.callout.offsetDirection;
|
|
35
|
+
let localEndDir = ValueObjects_1.Vector3.Left();
|
|
36
|
+
if (offsetDirection === "DOWN") {
|
|
37
|
+
localEndDir = ValueObjects_1.Vector3.Up();
|
|
38
|
+
}
|
|
39
|
+
else if (offsetDirection === "UP") {
|
|
40
|
+
localEndDir = ValueObjects_1.Vector3.Down();
|
|
41
|
+
}
|
|
42
|
+
else if (offsetDirection === "LEFT") {
|
|
43
|
+
localEndDir = ValueObjects_1.Vector3.Left();
|
|
44
|
+
}
|
|
45
|
+
else if (offsetDirection === "RIGHT") {
|
|
46
|
+
localEndDir = ValueObjects_1.Vector3.Right();
|
|
47
|
+
}
|
|
48
|
+
const endDir = ValueObjects_1.Vector3.Transform(localEndDir, this.callout.labelTransform.localMatrix);
|
|
49
|
+
const endBumpOffset = ValueObjects_1.Vector3.NewVectorOfLength(endDir, bumpSize);
|
|
50
|
+
const endBump = ValueObjects_1.Vector3.Add(endPos, endBumpOffset);
|
|
51
|
+
this.doUpdateView([startPos, startBump, endBump, endPos]);
|
|
52
|
+
};
|
|
53
|
+
this.dispose = () => {
|
|
54
|
+
var _a, _b, _c, _d;
|
|
55
|
+
super.dispose();
|
|
56
|
+
(_a = this.sceneRootEntity) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onChange);
|
|
57
|
+
(_b = this.callout) === null || _b === void 0 ? void 0 : _b.removeChangeObserver(this.onChange);
|
|
58
|
+
(_c = this.callout) === null || _c === void 0 ? void 0 : _c.rootTransform.removeChangeObserver(this.onChange);
|
|
59
|
+
(_d = this.callout) === null || _d === void 0 ? void 0 : _d.labelTransform.removeChangeObserver(this.onChange);
|
|
60
|
+
};
|
|
61
|
+
if (this.callout) {
|
|
62
|
+
this.callout.addChangeObserver(this.onChange);
|
|
63
|
+
this.callout.rootTransform.addChangeObserver(this.onChange);
|
|
64
|
+
this.callout.labelTransform.addChangeObserver(this.onChange);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.error("App Object does not have a callout Entity");
|
|
68
|
+
}
|
|
69
|
+
if (this.sceneRootEntity) {
|
|
70
|
+
this.sceneRootEntity.addChangeObserver(this.onChange);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
this.error("Unable to find scene root");
|
|
74
|
+
}
|
|
75
|
+
this.onChange();
|
|
76
|
+
}
|
|
77
|
+
get callout() {
|
|
78
|
+
return this.getCachedLocalComponent(CalloutEntity_1.CalloutEntity.type);
|
|
79
|
+
}
|
|
80
|
+
get sceneRootEntity() {
|
|
81
|
+
return this.getCachedSingleton(SceneRootEntity_1.SceneRootEntity.type);
|
|
82
|
+
}
|
|
83
|
+
vmsAreEqual(a, b) {
|
|
84
|
+
if (a.length !== b.length)
|
|
85
|
+
return false;
|
|
86
|
+
let arraysAreTheSame = true;
|
|
87
|
+
a.forEach((aVec, i) => {
|
|
88
|
+
if (!arraysAreTheSame)
|
|
89
|
+
return;
|
|
90
|
+
const bVec = b[i];
|
|
91
|
+
if (!ValueObjects_1.Vector3.Equal(aVec, bVec)) {
|
|
92
|
+
arraysAreTheSame = false;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
return arraysAreTheSame;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AppObject, AppObjectPM, AppObjectRepo } from "../../../AppObject";
|
|
2
|
+
export declare abstract class CalloutListPM extends AppObjectPM<string[]> {
|
|
3
|
+
static readonly type = "CalloutListPM";
|
|
4
|
+
static getById(id: string, appObjects: AppObjectRepo): CalloutListPM | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare function makeCalloutListPM(appObject: AppObject): CalloutListPM;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCalloutListPM = exports.CalloutListPM = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const CalloutRepo_1 = require("../Entities/CalloutRepo");
|
|
6
|
+
class CalloutListPM extends AppObject_1.AppObjectPM {
|
|
7
|
+
static getById(id, appObjects) {
|
|
8
|
+
var _a;
|
|
9
|
+
return (_a = appObjects.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(CalloutListPM.type);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CalloutListPM = CalloutListPM;
|
|
13
|
+
CalloutListPM.type = "CalloutListPM";
|
|
14
|
+
function makeCalloutListPM(appObject) {
|
|
15
|
+
return new CalloutListPMImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeCalloutListPM = makeCalloutListPM;
|
|
18
|
+
class CalloutListPMImp extends CalloutListPM {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
var _a;
|
|
21
|
+
super(appObject, CalloutListPM.type);
|
|
22
|
+
this.onRepoChange = () => {
|
|
23
|
+
if (!this.calloutRepo)
|
|
24
|
+
return;
|
|
25
|
+
const callouts = this.calloutRepo.getAll();
|
|
26
|
+
const ids = callouts.map((callout) => callout.appObject.id);
|
|
27
|
+
this.doUpdateView(ids);
|
|
28
|
+
};
|
|
29
|
+
(_a = this.calloutRepo) === null || _a === void 0 ? void 0 : _a.addChangeObserver(this.onRepoChange);
|
|
30
|
+
this.onRepoChange();
|
|
31
|
+
}
|
|
32
|
+
get calloutRepo() {
|
|
33
|
+
return this.getCachedLocalComponent(CalloutRepo_1.CalloutRepo.type);
|
|
34
|
+
}
|
|
35
|
+
vmsAreEqual(a, b) {
|
|
36
|
+
if (a.length !== b.length)
|
|
37
|
+
return false;
|
|
38
|
+
let idAreTheSame = true;
|
|
39
|
+
a.forEach((aId, i) => {
|
|
40
|
+
if (!idAreTheSame)
|
|
41
|
+
return;
|
|
42
|
+
const bId = b[i];
|
|
43
|
+
if (aId !== bId) {
|
|
44
|
+
idAreTheSame = false;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
return idAreTheSame;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppObject, AppObjectPM, AppObjectRepo } from "../../../AppObject";
|
|
2
|
+
import { CalloutOffsetDirection } from "../Entities/CalloutEntity";
|
|
3
|
+
export declare abstract class CalloutOffsetPM extends AppObjectPM<CalloutOffsetDirection> {
|
|
4
|
+
static readonly type = "CalloutOffsetPM";
|
|
5
|
+
static get(id: string, appObjects: AppObjectRepo): CalloutOffsetPM | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function makeCalloutOffsetPM(appObject: AppObject): CalloutOffsetPM;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCalloutOffsetPM = exports.CalloutOffsetPM = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const CalloutEntity_1 = require("../Entities/CalloutEntity");
|
|
6
|
+
class CalloutOffsetPM extends AppObject_1.AppObjectPM {
|
|
7
|
+
static get(id, appObjects) {
|
|
8
|
+
var _a;
|
|
9
|
+
return (_a = appObjects
|
|
10
|
+
.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(CalloutOffsetPM.type);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.CalloutOffsetPM = CalloutOffsetPM;
|
|
14
|
+
CalloutOffsetPM.type = "CalloutOffsetPM";
|
|
15
|
+
function makeCalloutOffsetPM(appObject) {
|
|
16
|
+
return new CalloutOffsetPMImp(appObject);
|
|
17
|
+
}
|
|
18
|
+
exports.makeCalloutOffsetPM = makeCalloutOffsetPM;
|
|
19
|
+
class CalloutOffsetPMImp extends CalloutOffsetPM {
|
|
20
|
+
constructor(appObject) {
|
|
21
|
+
var _a;
|
|
22
|
+
super(appObject, CalloutOffsetPM.type);
|
|
23
|
+
this.onChange = () => {
|
|
24
|
+
if (!this.callout)
|
|
25
|
+
return;
|
|
26
|
+
this.doUpdateView(this.callout.offsetDirection);
|
|
27
|
+
};
|
|
28
|
+
(_a = this.callout) === null || _a === void 0 ? void 0 : _a.addChangeObserver(this.onChange);
|
|
29
|
+
this.onChange();
|
|
30
|
+
}
|
|
31
|
+
get callout() {
|
|
32
|
+
return this.getCachedLocalComponent(CalloutEntity_1.CalloutEntity.type);
|
|
33
|
+
}
|
|
34
|
+
vmsAreEqual(a, b) {
|
|
35
|
+
return a === b;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AppObject, AppObjectPM, AppObjectRepo } from "../../../AppObject";
|
|
2
|
+
export declare abstract class CalloutSizePM extends AppObjectPM<number> {
|
|
3
|
+
static readonly type = "CalloutSizePM";
|
|
4
|
+
static get(id: string, appObjects: AppObjectRepo): CalloutSizePM | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare function makeCalloutSizePM(appObject: AppObject): CalloutSizePM;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCalloutSizePM = exports.CalloutSizePM = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const CalloutEntity_1 = require("../Entities/CalloutEntity");
|
|
6
|
+
class CalloutSizePM extends AppObject_1.AppObjectPM {
|
|
7
|
+
static get(id, appObjects) {
|
|
8
|
+
var _a;
|
|
9
|
+
return (_a = appObjects.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(CalloutSizePM.type);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CalloutSizePM = CalloutSizePM;
|
|
13
|
+
CalloutSizePM.type = "CalloutSizePM";
|
|
14
|
+
function makeCalloutSizePM(appObject) {
|
|
15
|
+
return new CalloutSizePMImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeCalloutSizePM = makeCalloutSizePM;
|
|
18
|
+
class CalloutSizePMImp extends CalloutSizePM {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
var _a;
|
|
21
|
+
super(appObject, CalloutSizePM.type);
|
|
22
|
+
this.onEntityChange = () => {
|
|
23
|
+
if (!this.calloutEntity)
|
|
24
|
+
return;
|
|
25
|
+
this.doUpdateView(this.calloutEntity.size);
|
|
26
|
+
};
|
|
27
|
+
this.dispose = () => {
|
|
28
|
+
var _a;
|
|
29
|
+
super.dispose();
|
|
30
|
+
(_a = this.calloutEntity) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onEntityChange);
|
|
31
|
+
};
|
|
32
|
+
(_a = this.calloutEntity) === null || _a === void 0 ? void 0 : _a.addChangeObserver(this.onEntityChange);
|
|
33
|
+
this.onEntityChange();
|
|
34
|
+
}
|
|
35
|
+
get calloutEntity() {
|
|
36
|
+
return this.getCachedLocalComponent(CalloutEntity_1.CalloutEntity.type);
|
|
37
|
+
}
|
|
38
|
+
vmsAreEqual(a, b) {
|
|
39
|
+
return a === b;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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("./CalloutLinePointsPM"), exports);
|
|
14
|
+
__exportStar(require("./CalloutListPM"), exports);
|
|
15
|
+
__exportStar(require("./CalloutOffsetPM"), exports);
|
|
16
|
+
__exportStar(require("./CalloutSizePM"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
export declare class CalloutScaleHook extends AppObjectUC {
|
|
3
|
+
static type: string;
|
|
4
|
+
private get sceneRoot();
|
|
5
|
+
private get callout();
|
|
6
|
+
private lastRootScale?;
|
|
7
|
+
private lastCalloutSize?;
|
|
8
|
+
private onEntityChange;
|
|
9
|
+
dispose: () => void;
|
|
10
|
+
constructor(appObject: AppObject);
|
|
11
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CalloutScaleHook = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const SceneRootEntity_1 = require("../../SceneRoot/Entities/SceneRootEntity");
|
|
7
|
+
const CalloutEntity_1 = require("../Entities/CalloutEntity");
|
|
8
|
+
class CalloutScaleHook extends AppObject_1.AppObjectUC {
|
|
9
|
+
constructor(appObject) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
super(appObject, CalloutScaleHook.type);
|
|
12
|
+
this.onEntityChange = () => {
|
|
13
|
+
var _a;
|
|
14
|
+
if (!this.callout || !this.sceneRoot) {
|
|
15
|
+
this.error("Missing Components");
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const rootScale = (_a = this.sceneRoot.scale) !== null && _a !== void 0 ? _a : 1;
|
|
19
|
+
const calloutSize = this.callout.size;
|
|
20
|
+
if (rootScale === this.lastRootScale &&
|
|
21
|
+
calloutSize === this.lastCalloutSize) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const scaler = calloutSize / rootScale;
|
|
25
|
+
const labelScale = new ValueObjects_1.Vector3(scaler, scaler, scaler);
|
|
26
|
+
this.callout.labelTransform.localScale = labelScale;
|
|
27
|
+
this.lastCalloutSize = calloutSize;
|
|
28
|
+
this.lastRootScale = rootScale;
|
|
29
|
+
};
|
|
30
|
+
this.dispose = () => {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
(_a = this.sceneRoot) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onEntityChange);
|
|
33
|
+
(_b = this.callout) === null || _b === void 0 ? void 0 : _b.removeChangeObserver(this.onEntityChange);
|
|
34
|
+
super.dispose();
|
|
35
|
+
};
|
|
36
|
+
(_a = this.sceneRoot) === null || _a === void 0 ? void 0 : _a.addChangeObserver(this.onEntityChange);
|
|
37
|
+
(_b = this.callout) === null || _b === void 0 ? void 0 : _b.addChangeObserver(this.onEntityChange);
|
|
38
|
+
this.onEntityChange();
|
|
39
|
+
}
|
|
40
|
+
get sceneRoot() {
|
|
41
|
+
return this.getCachedSingleton(SceneRootEntity_1.SceneRootEntity.type);
|
|
42
|
+
}
|
|
43
|
+
get callout() {
|
|
44
|
+
return this.getCachedLocalComponent(CalloutEntity_1.CalloutEntity.type);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.CalloutScaleHook = CalloutScaleHook;
|
|
48
|
+
CalloutScaleHook.type = "CalloutScaleHook";
|