@vived/app 4.24.0 → 4.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Components/App/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/index.d.ts +1 -0
- package/lib/Components/ChannelModel/Adapters/index.js +1 -0
- package/lib/Components/ChannelModel/Adapters/modelHasLandmarksAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/modelHasLandmarksAdapter.js +27 -0
- package/lib/Components/ChannelModel/Mocks/ModelHasLandmarksPmMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ModelHasLandmarksPmMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/index.d.ts +1 -0
- package/lib/Components/ChannelModel/Mocks/index.js +1 -0
- package/lib/Components/ChannelModel/PMs/ModelHasLandmarksPM.d.ts +6 -0
- package/lib/Components/ChannelModel/PMs/ModelHasLandmarksPM.js +56 -0
- package/lib/Components/ChannelModel/PMs/index.d.ts +1 -0
- package/lib/Components/ChannelModel/PMs/index.js +1 -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/Landmarks/Adapters/index.d.ts +2 -0
- package/lib/Components/Landmarks/Adapters/index.js +14 -0
- package/lib/Components/Landmarks/Adapters/landmarkListAdapter.d.ts +2 -0
- package/lib/Components/Landmarks/Adapters/landmarkListAdapter.js +25 -0
- package/lib/Components/Landmarks/Adapters/landmarkSizeAdapter.d.ts +2 -0
- package/lib/Components/Landmarks/Adapters/landmarkSizeAdapter.js +23 -0
- package/lib/Components/Landmarks/Controller/MouseLandmark.d.ts +3 -13
- package/lib/Components/Landmarks/Controller/MouseLandmark.js +8 -16
- package/lib/Components/Landmarks/Controller/SubmitLandmarkSize.d.ts +1 -1
- package/lib/Components/Landmarks/Controller/SubmitLandmarkSize.js +2 -8
- package/lib/Components/Landmarks/Controller/TouchLandmark.d.ts +2 -12
- package/lib/Components/Landmarks/Controller/TouchLandmark.js +12 -19
- package/lib/Components/Landmarks/Controller/UpdateLandmarkSize.d.ts +1 -1
- package/lib/Components/Landmarks/Controller/UpdateLandmarkSize.js +3 -9
- package/lib/Components/Landmarks/Controller/deleteAllLandmarks.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/deleteAllLandmarks.js +13 -0
- package/lib/Components/Landmarks/Controller/deleteLandmark.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/deleteLandmark.js +14 -0
- package/lib/Components/Landmarks/Controller/index.d.ts +2 -1
- package/lib/Components/Landmarks/Controller/index.js +2 -1
- package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/submitLandmarkSizeX.js +19 -0
- package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.d.ts +2 -0
- package/lib/Components/Landmarks/Controller/updateLandmarkSizeX.js +19 -0
- package/lib/Components/Landmarks/Entities/LandmarkEntity.d.ts +5 -3
- package/lib/Components/Landmarks/Entities/LandmarkEntity.js +18 -6
- package/lib/Components/Landmarks/Entities/LandmarkGlobals.d.ts +2 -3
- package/lib/Components/Landmarks/Entities/LandmarkGlobals.js +5 -10
- package/lib/Components/Landmarks/Entities/LandmarkRepo.d.ts +7 -1
- package/lib/Components/Landmarks/Entities/LandmarkRepo.js +26 -4
- package/lib/Components/Landmarks/Mocks/DeleteAllLandmarksUcMock.d.ts +8 -0
- package/lib/Components/Landmarks/Mocks/DeleteAllLandmarksUcMock.js +15 -0
- package/lib/Components/Landmarks/Mocks/DeleteLandmarkUcMock.d.ts +7 -0
- package/lib/Components/Landmarks/Mocks/DeleteLandmarkUcMock.js +11 -0
- package/lib/Components/Landmarks/Mocks/LandmarkListPmMock.d.ts +7 -0
- package/lib/Components/Landmarks/Mocks/LandmarkListPmMock.js +11 -0
- package/lib/Components/Landmarks/Mocks/LandmarkSizePmMock.d.ts +7 -0
- package/lib/Components/Landmarks/Mocks/LandmarkSizePmMock.js +11 -0
- package/lib/Components/Landmarks/Mocks/MockLandmark.d.ts +3 -1
- package/lib/Components/Landmarks/Mocks/MockLandmark.js +9 -0
- package/lib/Components/Landmarks/Mocks/MockTryAddNewLandmarkUC.d.ts +10 -0
- package/lib/Components/Landmarks/Mocks/MockTryAddNewLandmarkUC.js +17 -0
- package/lib/Components/Landmarks/Mocks/MockTryPreviewLandmarkUC.d.ts +10 -0
- package/lib/Components/Landmarks/Mocks/MockTryPreviewLandmarkUC.js +17 -0
- package/lib/Components/Landmarks/Mocks/SetLandmarkSizeUcMark.d.ts +8 -0
- package/lib/Components/Landmarks/Mocks/SetLandmarkSizeUcMark.js +12 -0
- package/lib/Components/Landmarks/Mocks/index.d.ts +6 -0
- package/lib/Components/Landmarks/Mocks/index.js +18 -0
- package/lib/Components/Landmarks/Mocks/makeLandmarkDTO.d.ts +2 -0
- package/lib/Components/Landmarks/Mocks/makeLandmarkDTO.js +20 -0
- package/lib/Components/Landmarks/PM/LandmarkListPM.d.ts +4 -8
- package/lib/Components/Landmarks/PM/LandmarkListPM.js +19 -26
- package/lib/Components/Landmarks/PM/LandmarkSizePM.d.ts +4 -8
- package/lib/Components/Landmarks/PM/LandmarkSizePM.js +19 -20
- package/lib/Components/Landmarks/UseCases/AddLandmarkUndoRedo.d.ts +4 -6
- package/lib/Components/Landmarks/UseCases/AddLandmarkUndoRedo.js +14 -27
- package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUC.d.ts +7 -0
- package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUC.js +35 -0
- package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUndoRedo.d.ts +10 -0
- package/lib/Components/Landmarks/UseCases/DeleteAllLandmarksUndoRedo.js +37 -0
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUC.d.ts +5 -6
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUC.js +24 -34
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUndoRedo.d.ts +4 -6
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUndoRedo.js +14 -27
- package/lib/Components/Landmarks/UseCases/SerializeLandmarks.d.ts +2 -0
- package/lib/Components/Landmarks/UseCases/SerializeLandmarks.js +27 -40
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUC.d.ts +6 -9
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUC.js +33 -27
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUndoRedo.d.ts +10 -6
- package/lib/Components/Landmarks/UseCases/SetLandmarkSizeUndoRedo.js +11 -20
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.d.ts +1 -0
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.js +22 -18
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.d.ts +3 -8
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.js +17 -18
- package/lib/Components/Landmarks/UseCases/index.d.ts +1 -1
- package/lib/Components/Landmarks/UseCases/index.js +1 -1
- package/lib/Components/Landmarks/index.d.ts +2 -0
- package/lib/Components/Landmarks/index.js +2 -0
- package/lib/Components/StateMachine/Entities/StateMachineEntity.d.ts +1 -1
- package/lib/Components/StateMachine/Entities/StateMachineEntity.js +6 -2
- 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,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject";
|
|
2
2
|
import { UndoRedoAction } from "../../UndoRedo/Entities/UndoRedoEntity";
|
|
3
|
+
import { LandmarkEntity } from "../Entities/LandmarkEntity";
|
|
4
|
+
export interface UndoLandmarkSizeDTO {
|
|
5
|
+
landmark: LandmarkEntity;
|
|
6
|
+
undoSize: number;
|
|
7
|
+
redoSize: number;
|
|
8
|
+
}
|
|
3
9
|
export declare class SetLandmarkSizeUndoRedo implements UndoRedoAction {
|
|
4
|
-
private
|
|
5
|
-
private
|
|
6
|
-
private appObject;
|
|
7
|
-
private landmark?;
|
|
10
|
+
private data;
|
|
11
|
+
private appObjects;
|
|
8
12
|
undoAction: () => void;
|
|
9
13
|
redoAction: () => void;
|
|
10
|
-
constructor(
|
|
14
|
+
constructor(data: UndoLandmarkSizeDTO, appObjects: AppObjectRepo);
|
|
11
15
|
}
|
|
@@ -3,32 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetLandmarkSizeUndoRedo = void 0;
|
|
4
4
|
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
5
5
|
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
6
|
-
const LandmarkEntity_1 = require("../Entities/LandmarkEntity");
|
|
7
6
|
class SetLandmarkSizeUndoRedo {
|
|
8
|
-
constructor(
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.appObject = appObject;
|
|
7
|
+
constructor(data, appObjects) {
|
|
8
|
+
this.data = data;
|
|
9
|
+
this.appObjects = appObjects;
|
|
12
10
|
this.undoAction = () => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
11
|
+
const { landmark, undoSize } = this.data;
|
|
12
|
+
landmark.size = undoSize;
|
|
13
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObjects);
|
|
17
14
|
};
|
|
18
15
|
this.redoAction = () => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
DispatchStateChangeUC_1.dispatchStateChange(this.appObject.appObjectRepo);
|
|
16
|
+
const { landmark, redoSize } = this.data;
|
|
17
|
+
landmark.size = redoSize;
|
|
18
|
+
DispatchStateChangeUC_1.dispatchStateChange(this.appObjects);
|
|
23
19
|
};
|
|
24
|
-
|
|
25
|
-
if (!this.landmark) {
|
|
26
|
-
appObject.appObjectRepo.submitWarning("SetLandmarkSizeUndoRedo", "Unable to find LandmarkEntity");
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObject.appObjectRepo);
|
|
20
|
+
const undoRedo = UndoRedoEntity_1.UndoRedoEntity.get(appObjects);
|
|
30
21
|
if (!undoRedo) {
|
|
31
|
-
|
|
22
|
+
appObjects.submitWarning("SetLandmarkSizeUndoRedo", "Unable to find UndoRedoEntity");
|
|
32
23
|
return;
|
|
33
24
|
}
|
|
34
25
|
undoRedo.submitAction(this);
|
|
@@ -3,6 +3,7 @@ import { ParametricLine } from "../../../ValueObjects";
|
|
|
3
3
|
import { LandmarkEntity } from "../Entities/LandmarkEntity";
|
|
4
4
|
export declare abstract class TryAddNewLandmarkUC extends AppObjectUC {
|
|
5
5
|
static readonly type = "TryAddNewLandmarkUC";
|
|
6
|
+
abstract allow(): boolean;
|
|
6
7
|
abstract addFromRay(ray: ParametricLine): LandmarkEntity | undefined;
|
|
7
8
|
static get(appObj: AppObject): TryAddNewLandmarkUC | undefined;
|
|
8
9
|
}
|
|
@@ -6,8 +6,8 @@ const ValueObjects_1 = require("../../../ValueObjects");
|
|
|
6
6
|
const Babylon_1 = require("../../Babylon");
|
|
7
7
|
const Dispatcher_1 = require("../../Dispatcher");
|
|
8
8
|
const Label_1 = require("../../Label");
|
|
9
|
+
const Entities_1 = require("../Entities");
|
|
9
10
|
const LandmarkGlobals_1 = require("../Entities/LandmarkGlobals");
|
|
10
|
-
const AddLandmarkUC_1 = require("./AddLandmarkUC");
|
|
11
11
|
const AddLandmarkUndoRedo_1 = require("./AddLandmarkUndoRedo");
|
|
12
12
|
class TryAddNewLandmarkUC extends AppObject_1.AppObjectUC {
|
|
13
13
|
static get(appObj) {
|
|
@@ -21,35 +21,39 @@ function makeTryAddLandmarkUC(appObject) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.makeTryAddLandmarkUC = makeTryAddLandmarkUC;
|
|
23
23
|
class TryAddNewLandmarkUCImp extends TryAddNewLandmarkUC {
|
|
24
|
+
get globals() {
|
|
25
|
+
return this.getCachedSingleton(LandmarkGlobals_1.LandmarkGlobals.type);
|
|
26
|
+
}
|
|
27
|
+
allow() {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
24
30
|
addFromRay(ray) {
|
|
25
|
-
|
|
26
|
-
if (!scenePick ||
|
|
27
|
-
!scenePick.worldPickPoint ||
|
|
28
|
-
!scenePick.normal ||
|
|
29
|
-
!scenePick.appObjectID) {
|
|
31
|
+
if (!this.allow()) {
|
|
30
32
|
return;
|
|
31
33
|
}
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
if (!
|
|
34
|
+
const scenePick = Babylon_1.sceneRayPick(ray, this.appObjects);
|
|
35
|
+
const appObjectID = scenePick === null || scenePick === void 0 ? void 0 : scenePick.appObjectID;
|
|
36
|
+
if (!appObjectID ||
|
|
37
|
+
!scenePick ||
|
|
38
|
+
!(scenePick === null || scenePick === void 0 ? void 0 : scenePick.worldPickPoint) ||
|
|
39
|
+
!(scenePick === null || scenePick === void 0 ? void 0 : scenePick.normal)) {
|
|
35
40
|
return;
|
|
36
41
|
}
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
this.warn("Failed to add landmark");
|
|
42
|
+
const landmarkRepo = Entities_1.LandmarkRepo.getByID(appObjectID, this.appObjects);
|
|
43
|
+
if (!landmarkRepo) {
|
|
40
44
|
return;
|
|
41
45
|
}
|
|
46
|
+
const newLandmark = landmarkRepo.createLandmark();
|
|
42
47
|
newLandmark.transform.worldPosition = scenePick.worldPickPoint;
|
|
43
48
|
newLandmark.transform.worldRotation = ValueObjects_1.Quaternion.FromDirectionVector(scenePick.normal);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
newLandmark.
|
|
47
|
-
newLandmark.overlayColor.overlayColor = globals.lastColor;
|
|
49
|
+
if (this.globals) {
|
|
50
|
+
newLandmark.size = this.globals.lastSize;
|
|
51
|
+
newLandmark.overlayColor.overlayColor = this.globals.lastColor;
|
|
48
52
|
}
|
|
49
|
-
const label =
|
|
53
|
+
const label = Label_1.LabelEntity.getByID(appObjectID, this.appObjects);
|
|
50
54
|
newLandmark.label.default = label ? label.default : "";
|
|
51
55
|
newLandmark.selectable.selected = true;
|
|
52
|
-
new AddLandmarkUndoRedo_1.AddLandmarkUndoRedo(newLandmark.data, this.
|
|
56
|
+
new AddLandmarkUndoRedo_1.AddLandmarkUndoRedo(newLandmark.data, this.appObjects);
|
|
53
57
|
Dispatcher_1.dispatchStateChange(this.appObjects);
|
|
54
58
|
return newLandmark;
|
|
55
59
|
}
|
|
@@ -2,14 +2,9 @@ import { AppObject, AppObjectUC } from "../../../AppObject";
|
|
|
2
2
|
import { ParametricLine } from "../../../ValueObjects";
|
|
3
3
|
export declare abstract class TryPreviewLandmarkUC extends AppObjectUC {
|
|
4
4
|
static readonly type = "TryPreviewLandmarkUC";
|
|
5
|
+
abstract allow(): boolean;
|
|
5
6
|
abstract tryPreviewLandmark: (ray: ParametricLine, pressed: boolean) => boolean | undefined;
|
|
7
|
+
abstract hidePreview: () => void;
|
|
6
8
|
static get(appObj: AppObject): TryPreviewLandmarkUC | undefined;
|
|
7
9
|
}
|
|
8
|
-
export declare function makeTryPreviewLandmark(appObject: AppObject):
|
|
9
|
-
declare class TryPreviewLandmarkUCImp extends TryPreviewLandmarkUC {
|
|
10
|
-
private previewLandmark?;
|
|
11
|
-
private hidePreview;
|
|
12
|
-
tryPreviewLandmark: (ray: ParametricLine, pressed: boolean) => false | undefined;
|
|
13
|
-
constructor(appObject: AppObject);
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
10
|
+
export declare function makeTryPreviewLandmark(appObject: AppObject): TryPreviewLandmarkUC;
|
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.makeTryPreviewLandmark = exports.TryPreviewLandmarkUC = void 0;
|
|
4
4
|
const AppObject_1 = require("../../../AppObject");
|
|
5
5
|
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
-
const App_1 = require("../../App");
|
|
7
6
|
const Babylon_1 = require("../../Babylon");
|
|
8
|
-
const
|
|
7
|
+
const LandmarkEntity_1 = require("../Entities/LandmarkEntity");
|
|
9
8
|
const LandmarkRepo_1 = require("../Entities/LandmarkRepo");
|
|
10
9
|
class TryPreviewLandmarkUC extends AppObject_1.AppObjectUC {
|
|
11
10
|
static get(appObj) {
|
|
@@ -21,14 +20,17 @@ function makeTryPreviewLandmark(appObject) {
|
|
|
21
20
|
exports.makeTryPreviewLandmark = makeTryPreviewLandmark;
|
|
22
21
|
class TryPreviewLandmarkUCImp extends TryPreviewLandmarkUC {
|
|
23
22
|
constructor(appObject) {
|
|
24
|
-
var _a;
|
|
25
23
|
super(appObject, TryPreviewLandmarkUC.type);
|
|
24
|
+
this.hidePreview = () => {
|
|
25
|
+
if (!this.landmark)
|
|
26
|
+
return;
|
|
27
|
+
this.landmark.hideable.isHidden = true;
|
|
28
|
+
};
|
|
26
29
|
this.tryPreviewLandmark = (ray, pressed) => {
|
|
27
|
-
if (!this.
|
|
30
|
+
if (!this.landmark) {
|
|
28
31
|
return false;
|
|
29
32
|
}
|
|
30
|
-
|
|
31
|
-
if (!baseApp || !baseApp.isAuthoring) {
|
|
33
|
+
if (!this.allow()) {
|
|
32
34
|
this.hidePreview();
|
|
33
35
|
return false;
|
|
34
36
|
}
|
|
@@ -45,19 +47,16 @@ class TryPreviewLandmarkUCImp extends TryPreviewLandmarkUC {
|
|
|
45
47
|
this.hidePreview();
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
51
|
-
this.
|
|
50
|
+
this.landmark.hideable.isHidden = false;
|
|
51
|
+
this.landmark.position = scenePick.worldPickPoint;
|
|
52
|
+
this.landmark.rotation = ValueObjects_1.Quaternion.FromDirectionVector(scenePick.normal);
|
|
53
|
+
this.landmark.selectable.pressed = pressed;
|
|
52
54
|
};
|
|
53
|
-
this.previewLandmark = (_a = this.appObject.getComponent(LandmarkGlobals_1.LandmarkGlobals.type)) === null || _a === void 0 ? void 0 : _a.previewLandmark;
|
|
54
|
-
if (!this.previewLandmark) {
|
|
55
|
-
console.warn("No preview landmark");
|
|
56
|
-
}
|
|
57
55
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
get landmark() {
|
|
57
|
+
return this.getCachedLocalComponent(LandmarkEntity_1.LandmarkEntity.type);
|
|
58
|
+
}
|
|
59
|
+
allow() {
|
|
60
|
+
return true;
|
|
62
61
|
}
|
|
63
62
|
}
|
|
@@ -10,8 +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("./AddLandmarkUC"), exports);
|
|
14
13
|
__exportStar(require("./AddLandmarkUndoRedo"), exports);
|
|
14
|
+
__exportStar(require("./DeleteAllLandmarksUC"), exports);
|
|
15
15
|
__exportStar(require("./DeleteLandmarkUC"), exports);
|
|
16
16
|
__exportStar(require("./DeleteLandmarkUndoRedo"), exports);
|
|
17
17
|
__exportStar(require("./SerializeLandmarks"), exports);
|
|
@@ -10,7 +10,9 @@ 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("./Controller"), exports);
|
|
14
15
|
__exportStar(require("./Entities"), exports);
|
|
16
|
+
__exportStar(require("./Mocks"), exports);
|
|
15
17
|
__exportStar(require("./PM"), exports);
|
|
16
18
|
__exportStar(require("./UseCases"), exports);
|
|
@@ -13,7 +13,7 @@ export interface SystemState {
|
|
|
13
13
|
export interface SerializedSystem {
|
|
14
14
|
name: string;
|
|
15
15
|
seriliziationVersion: number;
|
|
16
|
-
getSystemState(): object;
|
|
16
|
+
getSystemState(): object | undefined;
|
|
17
17
|
applySystemState(state: object, version: number, transitionDuration: number): void;
|
|
18
18
|
applyDefaultState(transitionDuration: number): void;
|
|
19
19
|
}
|
|
@@ -46,13 +46,17 @@ class StateMachineImp extends StateMachineEntity {
|
|
|
46
46
|
};
|
|
47
47
|
this.getSerializedStates = () => {
|
|
48
48
|
const systems = Array.from(this.serializedSystems.values());
|
|
49
|
-
const serializedStates =
|
|
49
|
+
const serializedStates = [];
|
|
50
|
+
systems.forEach((system) => {
|
|
50
51
|
const state = system.getSystemState();
|
|
51
|
-
|
|
52
|
+
if (!state)
|
|
53
|
+
return;
|
|
54
|
+
const systemState = {
|
|
52
55
|
seriliziationVersion: system.seriliziationVersion,
|
|
53
56
|
name: system.name,
|
|
54
57
|
state,
|
|
55
58
|
};
|
|
59
|
+
serializedStates.push(systemState);
|
|
56
60
|
});
|
|
57
61
|
return {
|
|
58
62
|
version: this.serilizationVersion,
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zSpaceViewerScaleAdapter = void 0;
|
|
4
|
+
const ZSpaceViewerScalePM_1 = require("../PM/ZSpaceViewerScalePM");
|
|
5
|
+
exports.zSpaceViewerScaleAdapter = {
|
|
6
|
+
defaultVM: 1,
|
|
7
|
+
subscribe: (appObjects, setVM) => {
|
|
8
|
+
const pm = ZSpaceViewerScalePM_1.ZSpaceViewerScalePM.get(appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("zSpaceViewerScaleAdapter", "Unable to find ZSpaceViewerScalePM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (appObjects, setVM) => {
|
|
16
|
+
const pm = ZSpaceViewerScalePM_1.ZSpaceViewerScalePM.get(appObjects);
|
|
17
|
+
if (!pm) {
|
|
18
|
+
appObjects.submitError("zSpaceViewerScaleAdapter", "Unable to find ZSpaceViewerScalePM");
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
pm.removeView(setVM);
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { ZSpaceDisplayPM } from "../PM/ZSpaceDisplayPM";
|
|
4
|
+
export declare class ZSpaceDisplayPmMock extends ZSpaceDisplayPM {
|
|
5
|
+
vmsAreEqual: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeZSpaceDisplayPmMock(appObjects: AppObjectRepo): ZSpaceDisplayPmMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeZSpaceDisplayPmMock = exports.ZSpaceDisplayPmMock = void 0;
|
|
4
|
+
const ZSpaceDisplayPM_1 = require("../PM/ZSpaceDisplayPM");
|
|
5
|
+
class ZSpaceDisplayPmMock extends ZSpaceDisplayPM_1.ZSpaceDisplayPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, ZSpaceDisplayPM_1.ZSpaceDisplayPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ZSpaceDisplayPmMock = ZSpaceDisplayPmMock;
|
|
12
|
+
function makeZSpaceDisplayPmMock(appObjects) {
|
|
13
|
+
return new ZSpaceDisplayPmMock(appObjects.getOrCreate("ZSpaceDisplayPmMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeZSpaceDisplayPmMock = makeZSpaceDisplayPmMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { ZSpaceIsEnabledPM } from "../PM";
|
|
4
|
+
export declare class ZSpaceIsEnabledPmMock extends ZSpaceIsEnabledPM {
|
|
5
|
+
vmsAreEqual: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeZSpaceIsEnabledPmMock(appObjects: AppObjectRepo): ZSpaceIsEnabledPmMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeZSpaceIsEnabledPmMock = exports.ZSpaceIsEnabledPmMock = void 0;
|
|
4
|
+
const PM_1 = require("../PM");
|
|
5
|
+
class ZSpaceIsEnabledPmMock extends PM_1.ZSpaceIsEnabledPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, PM_1.ZSpaceIsEnabledPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ZSpaceIsEnabledPmMock = ZSpaceIsEnabledPmMock;
|
|
12
|
+
function makeZSpaceIsEnabledPmMock(appObjects) {
|
|
13
|
+
return new ZSpaceIsEnabledPmMock(appObjects.getOrCreate("ZSpaceIsEnabledPmMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeZSpaceIsEnabledPmMock = makeZSpaceIsEnabledPmMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { ZSpaceIsSupportedPM } from "../PM/ZSpaceIsSupportedPM";
|
|
4
|
+
export declare class ZSpaceIsSupportedPmMock extends ZSpaceIsSupportedPM {
|
|
5
|
+
vmsAreEqual: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeZSpaceIsSupportedPmMock(appObjects: AppObjectRepo): ZSpaceIsSupportedPmMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeZSpaceIsSupportedPmMock = exports.ZSpaceIsSupportedPmMock = void 0;
|
|
4
|
+
const ZSpaceIsSupportedPM_1 = require("../PM/ZSpaceIsSupportedPM");
|
|
5
|
+
class ZSpaceIsSupportedPmMock extends ZSpaceIsSupportedPM_1.ZSpaceIsSupportedPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, ZSpaceIsSupportedPM_1.ZSpaceIsSupportedPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ZSpaceIsSupportedPmMock = ZSpaceIsSupportedPmMock;
|
|
12
|
+
function makeZSpaceIsSupportedPmMock(appObjects) {
|
|
13
|
+
return new ZSpaceIsSupportedPmMock(appObjects.getOrCreate("ZSpaceIsSupportedPmMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeZSpaceIsSupportedPmMock = makeZSpaceIsSupportedPmMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { ZSpaceViewerScalePM } from "../PM/ZSpaceViewerScalePM";
|
|
4
|
+
export declare class ZSpaceViewerScalePmMock extends ZSpaceViewerScalePM {
|
|
5
|
+
vmsAreEqual: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeZSpaceViewerScalePmMock(appObjects: AppObjectRepo): ZSpaceViewerScalePmMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeZSpaceViewerScalePmMock = exports.ZSpaceViewerScalePmMock = void 0;
|
|
4
|
+
const ZSpaceViewerScalePM_1 = require("../PM/ZSpaceViewerScalePM");
|
|
5
|
+
class ZSpaceViewerScalePmMock extends ZSpaceViewerScalePM_1.ZSpaceViewerScalePM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, ZSpaceViewerScalePM_1.ZSpaceViewerScalePM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ZSpaceViewerScalePmMock = ZSpaceViewerScalePmMock;
|
|
12
|
+
function makeZSpaceViewerScalePmMock(appObjects) {
|
|
13
|
+
return new ZSpaceViewerScalePmMock(appObjects.getOrCreate("ZSpaceViewerScalePmMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeZSpaceViewerScalePmMock = makeZSpaceViewerScalePmMock;
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./MockCheckZSpaceDisplaySizeUC"), exports);
|
|
14
|
+
__exportStar(require("./ZSpaceDisplayPmMock"), exports);
|
|
15
|
+
__exportStar(require("./ZSpaceIsEnabledPmMock"), exports);
|
|
16
|
+
__exportStar(require("./ZSpaceIsSupportedPmMock"), exports);
|
|
17
|
+
__exportStar(require("./ZSpaceViewerScalePmMock"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppObjectRepo } from "../../../AppObject";
|
|
1
2
|
import { AppObject } from "../../../AppObject/AppObject";
|
|
2
3
|
import { AppObjectPM } from "../../../AppObject/AppObjectPM";
|
|
3
4
|
import { Vector2 } from "../../../ValueObjects";
|
|
@@ -6,7 +7,9 @@ export interface ZSpaceDisplayVM {
|
|
|
6
7
|
pixelSize: Vector2;
|
|
7
8
|
worldSize: Vector2;
|
|
8
9
|
}
|
|
10
|
+
export declare const defaultZSpaceDisplayVM: ZSpaceDisplayVM;
|
|
9
11
|
export declare abstract class ZSpaceDisplayPM extends AppObjectPM<ZSpaceDisplayVM> {
|
|
10
12
|
static readonly type = "ZSpaceDisplayPM";
|
|
13
|
+
static get: (appObjects: AppObjectRepo) => ZSpaceDisplayPM | undefined;
|
|
11
14
|
}
|
|
12
15
|
export declare function makeZSpaceDisplayPM(appObject: AppObject): ZSpaceDisplayPM;
|