@vived/app 4.30.0 → 4.32.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/Factories/setupBaseApp.d.ts +2 -2
- package/lib/Components/BaseApp/Factories/setupBaseApp.js +1 -0
- package/lib/Components/ChannelModel/UC/SelectChannelModelUC.js +7 -0
- package/lib/Components/InspectorTab/Adapters/index.d.ts +1 -0
- package/lib/Components/InspectorTab/Adapters/index.js +13 -0
- package/lib/Components/InspectorTab/Adapters/inspectorTabAdapter.d.ts +3 -0
- package/lib/Components/InspectorTab/Adapters/inspectorTabAdapter.js +23 -0
- package/lib/Components/InspectorTab/Controllers/KeyboardToSetTab.d.ts +10 -0
- package/lib/Components/InspectorTab/Controllers/KeyboardToSetTab.js +45 -0
- package/lib/Components/InspectorTab/Controllers/clickSetInspectorTab.d.ts +2 -0
- package/lib/Components/InspectorTab/Controllers/clickSetInspectorTab.js +13 -0
- package/lib/Components/InspectorTab/Controllers/clickSetInspectorTabIndex.d.ts +2 -0
- package/lib/Components/InspectorTab/Controllers/clickSetInspectorTabIndex.js +13 -0
- package/lib/Components/InspectorTab/Controllers/index.d.ts +3 -0
- package/lib/Components/InspectorTab/Controllers/index.js +15 -0
- package/lib/Components/InspectorTab/Entities/InspectorTabEntity.d.ts +12 -0
- package/lib/Components/InspectorTab/Entities/InspectorTabEntity.js +54 -0
- package/lib/Components/InspectorTab/Entities/index.d.ts +1 -0
- package/lib/Components/InspectorTab/Entities/index.js +13 -0
- package/lib/Components/InspectorTab/Factories/index.d.ts +1 -0
- package/lib/Components/InspectorTab/Factories/index.js +13 -0
- package/lib/Components/InspectorTab/Factories/setupInspectorTabs.d.ts +2 -0
- package/lib/Components/InspectorTab/Factories/setupInspectorTabs.js +17 -0
- package/lib/Components/InspectorTab/Mocks/InspectorTabPmMock.d.ts +8 -0
- package/lib/Components/InspectorTab/Mocks/InspectorTabPmMock.js +15 -0
- package/lib/Components/InspectorTab/Mocks/index.d.ts +1 -0
- package/lib/Components/InspectorTab/Mocks/index.js +13 -0
- package/lib/Components/InspectorTab/PMs/InspectorTabPM.d.ts +12 -0
- package/lib/Components/InspectorTab/PMs/InspectorTabPM.js +55 -0
- package/lib/Components/InspectorTab/PMs/index.d.ts +1 -0
- package/lib/Components/InspectorTab/PMs/index.js +13 -0
- package/lib/Components/InspectorTab/index.d.ts +6 -0
- package/lib/Components/InspectorTab/index.js +18 -0
- package/lib/Components/MouseInput/Factories/index.d.ts +1 -0
- package/lib/Components/MouseInput/Factories/index.js +13 -0
- package/lib/Components/MouseInput/Factories/setupMouseInput.d.ts +2 -0
- package/lib/Components/MouseInput/Factories/setupMouseInput.js +9 -0
- package/lib/Components/MouseInput/index.d.ts +1 -0
- package/lib/Components/MouseInput/index.js +1 -0
- package/lib/Components/OverlayColor/UC/SerializeOverlayColoredObjects.d.ts +27 -0
- package/lib/Components/OverlayColor/UC/SerializeOverlayColoredObjects.js +87 -0
- package/lib/Components/OverlayColor/UC/index.d.ts +1 -0
- package/lib/Components/OverlayColor/UC/index.js +1 -0
- package/lib/Components/SceneRoot/Controllers/DoubleTapToFocus.d.ts +1 -1
- package/lib/Components/SceneRoot/Controllers/DoubleTapToFocus.js +3 -5
- package/lib/Components/SceneRoot/Controllers/MouseClickToFocus.d.ts +1 -1
- package/lib/Components/SceneRoot/Controllers/MouseClickToFocus.js +6 -5
- package/lib/Components/SceneRoot/Controllers/MouseDoubleClickToRecenter.d.ts +1 -1
- package/lib/Components/SceneRoot/Controllers/MouseDoubleClickToRecenter.js +3 -5
- package/lib/Components/SceneRoot/Controllers/MouseOrbit.d.ts +2 -1
- package/lib/Components/SceneRoot/Controllers/MouseOrbit.js +19 -6
- package/lib/Components/SceneRoot/Controllers/MousePan.d.ts +2 -1
- package/lib/Components/SceneRoot/Controllers/MousePan.js +19 -6
- package/lib/Components/SceneRoot/Controllers/MouseRoll.d.ts +1 -1
- package/lib/Components/SceneRoot/Controllers/MouseRoll.js +3 -5
- package/lib/Components/SceneRoot/Controllers/MouseScale.d.ts +2 -1
- package/lib/Components/SceneRoot/Controllers/MouseScale.js +16 -6
- package/lib/Components/SceneRoot/Controllers/ScaleSceneRootSC.d.ts +2 -2
- package/lib/Components/SceneRoot/Controllers/ScaleSceneRootSC.js +8 -11
- package/lib/Components/SceneRoot/Controllers/SceneRootMoveSC.d.ts +2 -2
- package/lib/Components/SceneRoot/Controllers/SceneRootMoveSC.js +9 -12
- package/lib/Components/SceneRoot/Controllers/TouchOrbit.d.ts +3 -1
- package/lib/Components/SceneRoot/Controllers/TouchOrbit.js +24 -6
- package/lib/Components/SceneRoot/Controllers/TouchPan.d.ts +3 -1
- package/lib/Components/SceneRoot/Controllers/TouchPan.js +24 -6
- package/lib/Components/SceneRoot/Controllers/TouchPinch.d.ts +2 -2
- package/lib/Components/SceneRoot/Controllers/TouchPinch.js +12 -6
- package/lib/Components/SceneRoot/Controllers/TouchScale.d.ts +2 -2
- package/lib/Components/SceneRoot/Controllers/TouchScale.js +16 -5
- package/lib/Components/SceneRoot/Factories/index.d.ts +1 -0
- package/lib/Components/SceneRoot/Factories/index.js +13 -0
- package/lib/Components/SceneRoot/Factories/setupSceneRoot.d.ts +3 -0
- package/lib/Components/SceneRoot/Factories/setupSceneRoot.js +45 -0
- package/lib/Components/SceneRoot/Mocks/DragScaleSceneRootUcMock.d.ts +9 -0
- package/lib/Components/SceneRoot/Mocks/DragScaleSceneRootUcMock.js +13 -0
- package/lib/Components/SceneRoot/Mocks/MockDragScaleSceneRootUC.d.ts +9 -0
- package/lib/Components/SceneRoot/Mocks/MockDragScaleSceneRootUC.js +13 -0
- package/lib/Components/SceneRoot/Mocks/MockFocusOnPixelUC.d.ts +10 -0
- package/lib/Components/SceneRoot/Mocks/MockFocusOnPixelUC.js +15 -0
- package/lib/Components/SceneRoot/Mocks/MockOrbitSceneRootUC.d.ts +11 -0
- package/lib/Components/SceneRoot/Mocks/MockOrbitSceneRootUC.js +15 -0
- package/lib/Components/SceneRoot/Mocks/MockPanSceneRootUC.d.ts +10 -0
- package/lib/Components/SceneRoot/Mocks/MockPanSceneRootUC.js +14 -0
- package/lib/Components/SceneRoot/Mocks/MockPinchSceneRootUC.d.ts +10 -0
- package/lib/Components/SceneRoot/Mocks/MockPinchSceneRootUC.js +14 -0
- package/lib/Components/SceneRoot/Mocks/OrbitSceneRootUcMock.d.ts +11 -0
- package/lib/Components/SceneRoot/Mocks/OrbitSceneRootUcMock.js +15 -0
- package/lib/Components/SceneRoot/Mocks/PanSceneRootUcMock.d.ts +10 -0
- package/lib/Components/SceneRoot/Mocks/PanSceneRootUcMock.js +14 -0
- package/lib/Components/SceneRoot/Mocks/index.d.ts +5 -0
- package/lib/Components/SceneRoot/Mocks/index.js +17 -0
- package/lib/Components/SceneRoot/UC/CenterSceneRootOnPixelPick.js +1 -1
- package/lib/Components/SceneRoot/UC/FocusOnPixel.js +1 -1
- package/lib/Components/SceneRoot/index.d.ts +3 -1
- package/lib/Components/SceneRoot/index.js +3 -1
- package/lib/Components/Selection/Controller/KeyboardToClearSelection.d.ts +8 -0
- package/lib/Components/Selection/Controller/KeyboardToClearSelection.js +23 -0
- package/lib/Components/Selection/Controller/index.d.ts +1 -0
- package/lib/Components/Selection/Controller/index.js +1 -0
- package/lib/Components/Selection/Factories/index.d.ts +1 -0
- package/lib/Components/Selection/Factories/index.js +13 -0
- package/lib/Components/Selection/Factories/setupSelection.d.ts +2 -0
- package/lib/Components/Selection/Factories/setupSelection.js +27 -0
- package/lib/Components/Selection/index.d.ts +1 -0
- package/lib/Components/Selection/index.js +1 -0
- package/lib/Components/Stick/UCs/TryStickAppObjectUC.js +10 -0
- package/lib/Components/StoredView/Adapters/hasStoredViewAdapter.d.ts +2 -0
- package/lib/Components/StoredView/Adapters/hasStoredViewAdapter.js +19 -0
- package/lib/Components/StoredView/Adapters/index.d.ts +1 -0
- package/lib/Components/StoredView/Adapters/index.js +13 -0
- package/lib/Components/StoredView/Controllers/clearStoredView.d.ts +2 -0
- package/lib/Components/StoredView/Controllers/clearStoredView.js +13 -0
- package/lib/Components/StoredView/Controllers/index.d.ts +4 -0
- package/lib/Components/StoredView/Controllers/index.js +16 -0
- package/lib/Components/StoredView/Controllers/restoreStoredView.d.ts +2 -0
- package/lib/Components/StoredView/Controllers/restoreStoredView.js +13 -0
- package/lib/Components/StoredView/Controllers/setViewInXR.d.ts +2 -0
- package/lib/Components/StoredView/Controllers/setViewInXR.js +13 -0
- package/lib/Components/StoredView/Controllers/storeCurrentView.d.ts +2 -0
- package/lib/Components/StoredView/Controllers/storeCurrentView.js +13 -0
- package/lib/Components/StoredView/Factories/index.d.ts +1 -0
- package/lib/Components/StoredView/Factories/index.js +13 -0
- package/lib/Components/StoredView/Factories/setupStoredView.d.ts +2 -0
- package/lib/Components/StoredView/Factories/setupStoredView.js +21 -0
- package/lib/Components/StoredView/Mocks/ClearStoredViewUcMock.d.ts +8 -0
- package/lib/Components/StoredView/Mocks/ClearStoredViewUcMock.js +15 -0
- package/lib/Components/StoredView/Mocks/HasStoredViewPmMock.d.ts +8 -0
- package/lib/Components/StoredView/Mocks/HasStoredViewPmMock.js +15 -0
- package/lib/Components/StoredView/Mocks/RestoreStoredViewUcMock.d.ts +9 -0
- package/lib/Components/StoredView/Mocks/RestoreStoredViewUcMock.js +17 -0
- package/lib/Components/StoredView/Mocks/SetViewInXRUcMock.d.ts +8 -0
- package/lib/Components/StoredView/Mocks/SetViewInXRUcMock.js +15 -0
- package/lib/Components/StoredView/Mocks/StoreCurrentViewUcMock.d.ts +8 -0
- package/lib/Components/StoredView/Mocks/StoreCurrentViewUcMock.js +15 -0
- package/lib/Components/StoredView/Mocks/index.d.ts +1 -0
- package/lib/Components/StoredView/Mocks/index.js +13 -0
- package/lib/Components/StoredView/PM/HasStoredViewPM.js +7 -9
- package/lib/Components/StoredView/UC/ClearStoredViewUC.d.ts +0 -1
- package/lib/Components/StoredView/UC/ClearStoredViewUC.js +4 -15
- package/lib/Components/StoredView/UC/RestoreStoredViewUC.d.ts +0 -1
- package/lib/Components/StoredView/UC/RestoreStoredViewUC.js +8 -22
- package/lib/Components/StoredView/UC/SerializeStoredView.js +3 -6
- package/lib/Components/StoredView/UC/SetInXRUC.d.ts +0 -1
- package/lib/Components/StoredView/UC/SetInXRUC.js +4 -15
- package/lib/Components/StoredView/UC/StoreCurrentViewUC.d.ts +0 -1
- package/lib/Components/StoredView/UC/StoreCurrentViewUC.js +7 -19
- package/lib/Components/StoredView/index.d.ts +3 -0
- package/lib/Components/StoredView/index.js +3 -0
- package/lib/Components/Tools/Adapters/toolAdapter.d.ts +1 -1
- package/lib/Components/Tools/Adapters/toolAdapter.js +16 -23
- package/lib/Components/Tools/Controller/ToolHotkeys.d.ts +1 -1
- package/lib/Components/Tools/Controller/triggerTool.d.ts +1 -1
- package/lib/Components/Tools/Entities/ToolEntity.d.ts +7 -7
- package/lib/Components/Tools/Entities/ToolEntity.js +1 -2
- package/lib/Components/Tools/Entities/ToolRepository.d.ts +12 -11
- package/lib/Components/Tools/Entities/ToolRepository.js +30 -26
- package/lib/Components/Tools/Factories/index.d.ts +1 -0
- package/lib/Components/Tools/Factories/index.js +13 -0
- package/lib/Components/Tools/Factories/setupTools.d.ts +3 -0
- package/lib/Components/Tools/Factories/setupTools.js +15 -0
- package/lib/Components/Tools/Factories/toolFactory.d.ts +3 -0
- package/lib/Components/Tools/Factories/toolFactory.js +14 -0
- package/lib/Components/Tools/Mocks/MockToolRepo.d.ts +17 -0
- package/lib/Components/Tools/Mocks/MockToolRepo.js +28 -0
- package/lib/Components/Tools/Mocks/ToolPMMock.d.ts +2 -2
- package/lib/Components/Tools/Mocks/index.d.ts +1 -0
- package/lib/Components/Tools/Mocks/index.js +1 -0
- package/lib/Components/Tools/PM/ToolPM.d.ts +6 -6
- package/lib/Components/Tools/index.d.ts +1 -0
- package/lib/Components/Tools/index.js +1 -0
- package/lib/Components/TouchController/Factories/index.d.ts +1 -0
- package/lib/Components/TouchController/Factories/index.js +13 -0
- package/lib/Components/TouchController/Factories/setupTouchInput.d.ts +2 -0
- package/lib/Components/TouchController/Factories/setupTouchInput.js +9 -0
- package/lib/Components/TouchController/index.d.ts +1 -0
- package/lib/Components/TouchController/index.js +1 -0
- package/lib/Components/UndoRedo/Factories/index.d.ts +1 -0
- package/lib/Components/UndoRedo/Factories/index.js +13 -0
- package/lib/Components/UndoRedo/Factories/setupUndoRedo.d.ts +2 -0
- package/lib/Components/UndoRedo/Factories/setupUndoRedo.js +18 -0
- package/lib/Components/UndoRedo/UCs/UndoRedoButtonStatesHook.d.ts +11 -0
- package/lib/Components/UndoRedo/UCs/UndoRedoButtonStatesHook.js +55 -0
- package/lib/Components/UndoRedo/UCs/index.d.ts +1 -0
- package/lib/Components/UndoRedo/UCs/index.js +13 -0
- package/lib/Components/UndoRedo/index.d.ts +3 -1
- package/lib/Components/UndoRedo/index.js +3 -1
- package/lib/Components/index.d.ts +1 -0
- package/lib/Components/index.js +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TouchScale = void 0;
|
|
4
4
|
const AppObjectController_1 = require("../../../AppObject/AppObjectController");
|
|
5
|
+
const Tools_1 = require("../../Tools");
|
|
5
6
|
const TouchController_1 = require("../../TouchController");
|
|
6
7
|
const DragScaleSceneRoot_1 = require("../UC/DragScaleSceneRoot");
|
|
7
8
|
class TouchScale extends AppObjectController_1.AppObjectController {
|
|
@@ -9,7 +10,15 @@ class TouchScale extends AppObjectController_1.AppObjectController {
|
|
|
9
10
|
super(appObject, TouchScale.type);
|
|
10
11
|
this.isScaling = false;
|
|
11
12
|
this.allow = (e) => {
|
|
12
|
-
|
|
13
|
+
var _a;
|
|
14
|
+
const zoomTool = (_a = this.toolRepo) === null || _a === void 0 ? void 0 : _a.getTool("ZOOM");
|
|
15
|
+
if (!zoomTool)
|
|
16
|
+
return false;
|
|
17
|
+
const zoomToolIsActive = zoomTool.state === Tools_1.ToolState.ACTIVE;
|
|
18
|
+
if (e.touches.length === 1 && zoomToolIsActive) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
return false;
|
|
13
22
|
};
|
|
14
23
|
this.onTouchStart = (e) => {
|
|
15
24
|
var _a;
|
|
@@ -39,10 +48,6 @@ class TouchScale extends AppObjectController_1.AppObjectController {
|
|
|
39
48
|
(_a = this.dragScaleRootUC) === null || _a === void 0 ? void 0 : _a.finishScaling();
|
|
40
49
|
};
|
|
41
50
|
const appObjects = appObject.appObjectRepo;
|
|
42
|
-
this.dragScaleRootUC = DragScaleSceneRoot_1.DragScaleSceneRootUC.get(appObjects);
|
|
43
|
-
if (!this.dragScaleRootUC) {
|
|
44
|
-
this.warn("Unable to finde DragScaleSceneRootUC");
|
|
45
|
-
}
|
|
46
51
|
const touchInput = TouchController_1.TouchInputEntity.get(appObjects);
|
|
47
52
|
if (touchInput) {
|
|
48
53
|
touchInput.registerController(this);
|
|
@@ -51,6 +56,12 @@ class TouchScale extends AppObjectController_1.AppObjectController {
|
|
|
51
56
|
this.warn("Unable to find TouchInputEntity");
|
|
52
57
|
}
|
|
53
58
|
}
|
|
59
|
+
get dragScaleRootUC() {
|
|
60
|
+
return this.getCachedLocalComponent(DragScaleSceneRoot_1.DragScaleSceneRootUC.type);
|
|
61
|
+
}
|
|
62
|
+
get toolRepo() {
|
|
63
|
+
return this.getCachedSingleton(Tools_1.ToolRepository.type);
|
|
64
|
+
}
|
|
54
65
|
}
|
|
55
66
|
exports.TouchScale = TouchScale;
|
|
56
67
|
TouchScale.type = "TouchScale";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupSceneRoot";
|
|
@@ -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("./setupSceneRoot"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupSceneRoot = void 0;
|
|
4
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
5
|
+
const Controllers_1 = require("../Controllers");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
const UC_1 = require("../UC");
|
|
8
|
+
function setupSceneRoot(appObjects, defaultData) {
|
|
9
|
+
const ao = appObjects.getOrCreate("SceneRoot");
|
|
10
|
+
const entity = Entities_1.makeSceneRootEntity(ao);
|
|
11
|
+
if (defaultData) {
|
|
12
|
+
entity.applyDefaultData(defaultData);
|
|
13
|
+
}
|
|
14
|
+
// UCs
|
|
15
|
+
UC_1.makeBumpSceneRootScaleAboutPixelPointUC(ao);
|
|
16
|
+
UC_1.makeCenterSceneRootOnPixelPickUC(ao);
|
|
17
|
+
UC_1.makeDragScaleSceneRootUC(ao);
|
|
18
|
+
UC_1.makeFocusOnPixelUC(ao);
|
|
19
|
+
UC_1.makeOrbitSceneRootUC(ao);
|
|
20
|
+
UC_1.makePanSceneRootUC(ao);
|
|
21
|
+
UC_1.makePinchSceneRootUC(ao);
|
|
22
|
+
new UC_1.ScaleSceneRootWithRay(ao);
|
|
23
|
+
UC_1.makeSerializeSceneRoot(ao);
|
|
24
|
+
Transform3D_1.makeStylusMoveTransformUC(ao);
|
|
25
|
+
const scaleUC = Transform3D_1.makeScaleTransformUC(ao);
|
|
26
|
+
scaleUC.raySensitivity = 10;
|
|
27
|
+
scaleUC.pixelSensitivity = 0.01;
|
|
28
|
+
// PMs
|
|
29
|
+
Transform3D_1.makeTransform3DPM(ao);
|
|
30
|
+
// Controllers
|
|
31
|
+
new Controllers_1.MouseClickToFocus(ao);
|
|
32
|
+
new Controllers_1.MouseOrbit(ao);
|
|
33
|
+
new Controllers_1.MousePan(ao);
|
|
34
|
+
new Controllers_1.MouseRoll(ao);
|
|
35
|
+
new Controllers_1.MouseScale(ao);
|
|
36
|
+
new Controllers_1.DoubleTapToFocus(ao);
|
|
37
|
+
new Controllers_1.TouchOrbit(ao);
|
|
38
|
+
new Controllers_1.TouchPan(ao);
|
|
39
|
+
new Controllers_1.TouchPinch(ao);
|
|
40
|
+
new Controllers_1.TouchScale(ao);
|
|
41
|
+
new Controllers_1.SceneRootMoveSC(ao);
|
|
42
|
+
new Controllers_1.ScaleSceneRootSC(ao);
|
|
43
|
+
return ao;
|
|
44
|
+
}
|
|
45
|
+
exports.setupSceneRoot = setupSceneRoot;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { DragScaleSceneRootUC } from "../UC";
|
|
4
|
+
export declare class DragScaleSceneRootUcMock extends DragScaleSceneRootUC {
|
|
5
|
+
doScale: jest.Mock<any, any>;
|
|
6
|
+
initializeScale: jest.Mock<any, any>;
|
|
7
|
+
finishScaling: 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.DragScaleSceneRootUcMock = void 0;
|
|
4
|
+
const UC_1 = require("../UC");
|
|
5
|
+
class DragScaleSceneRootUcMock extends UC_1.DragScaleSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, UC_1.DragScaleSceneRootUC.type);
|
|
8
|
+
this.doScale = jest.fn();
|
|
9
|
+
this.initializeScale = jest.fn();
|
|
10
|
+
this.finishScaling = jest.fn();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.DragScaleSceneRootUcMock = DragScaleSceneRootUcMock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { DragScaleSceneRootUC } from "../UC";
|
|
4
|
+
export declare class MockDragScaleSceneRootUC extends DragScaleSceneRootUC {
|
|
5
|
+
doScale: jest.Mock<any, any>;
|
|
6
|
+
initializeScale: jest.Mock<any, any>;
|
|
7
|
+
finishScaling: 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.MockDragScaleSceneRootUC = void 0;
|
|
4
|
+
const UC_1 = require("../UC");
|
|
5
|
+
class MockDragScaleSceneRootUC extends UC_1.DragScaleSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, UC_1.DragScaleSceneRootUC.type);
|
|
8
|
+
this.doScale = jest.fn();
|
|
9
|
+
this.initializeScale = jest.fn();
|
|
10
|
+
this.finishScaling = jest.fn();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.MockDragScaleSceneRootUC = MockDragScaleSceneRootUC;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { EaseFn } from "../../../Types";
|
|
4
|
+
import { FocusOnPixelUC } from "../UC";
|
|
5
|
+
export declare class MockFocusOnPixelUC extends FocusOnPixelUC {
|
|
6
|
+
durationMS: number;
|
|
7
|
+
easeFn: EaseFn;
|
|
8
|
+
centerOnPixel: jest.Mock<any, any>;
|
|
9
|
+
constructor(appObject: AppObject);
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockFocusOnPixelUC = void 0;
|
|
4
|
+
const UC_1 = require("../UC");
|
|
5
|
+
class MockFocusOnPixelUC extends UC_1.FocusOnPixelUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, UC_1.FocusOnPixelUC.type);
|
|
8
|
+
this.durationMS = 500;
|
|
9
|
+
this.easeFn = (val) => {
|
|
10
|
+
return val;
|
|
11
|
+
};
|
|
12
|
+
this.centerOnPixel = jest.fn();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.MockFocusOnPixelUC = MockFocusOnPixelUC;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { OrbitSceneRootUC } from "../UC/OrbitSceneRoot";
|
|
4
|
+
export declare class MockOrbitSceneRootUC extends OrbitSceneRootUC {
|
|
5
|
+
sensitivity: number;
|
|
6
|
+
doOrbit: jest.Mock<any, any>;
|
|
7
|
+
initializeOrbit: jest.Mock<any, any>;
|
|
8
|
+
finishOrbit: jest.Mock<any, any>;
|
|
9
|
+
cancelOrbit: jest.Mock<any, any>;
|
|
10
|
+
constructor(appObject: AppObject);
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockOrbitSceneRootUC = void 0;
|
|
4
|
+
const OrbitSceneRoot_1 = require("../UC/OrbitSceneRoot");
|
|
5
|
+
class MockOrbitSceneRootUC extends OrbitSceneRoot_1.OrbitSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, OrbitSceneRoot_1.OrbitSceneRootUC.type);
|
|
8
|
+
this.sensitivity = 1;
|
|
9
|
+
this.doOrbit = jest.fn();
|
|
10
|
+
this.initializeOrbit = jest.fn();
|
|
11
|
+
this.finishOrbit = jest.fn();
|
|
12
|
+
this.cancelOrbit = jest.fn();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.MockOrbitSceneRootUC = MockOrbitSceneRootUC;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { PanSceneRootUC } from "../UC/PanSceneRoot";
|
|
4
|
+
export declare class MockPanSceneRootUC extends PanSceneRootUC {
|
|
5
|
+
doPan: jest.Mock<any, any>;
|
|
6
|
+
initializePan: jest.Mock<any, any>;
|
|
7
|
+
finishPan: jest.Mock<any, any>;
|
|
8
|
+
cancelPan: jest.Mock<any, any>;
|
|
9
|
+
constructor(appObject: AppObject);
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockPanSceneRootUC = void 0;
|
|
4
|
+
const PanSceneRoot_1 = require("../UC/PanSceneRoot");
|
|
5
|
+
class MockPanSceneRootUC extends PanSceneRoot_1.PanSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, PanSceneRoot_1.PanSceneRootUC.type);
|
|
8
|
+
this.doPan = jest.fn();
|
|
9
|
+
this.initializePan = jest.fn();
|
|
10
|
+
this.finishPan = jest.fn();
|
|
11
|
+
this.cancelPan = jest.fn();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.MockPanSceneRootUC = MockPanSceneRootUC;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { PinchSceneRootUC } from "../UC";
|
|
4
|
+
export declare class MockPinchSceneRootUC extends PinchSceneRootUC {
|
|
5
|
+
sensitivity: number;
|
|
6
|
+
doPinch: jest.Mock<any, any>;
|
|
7
|
+
initializePinch: jest.Mock<any, any>;
|
|
8
|
+
finishPinch: jest.Mock<any, any>;
|
|
9
|
+
constructor(appObject: AppObject);
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockPinchSceneRootUC = void 0;
|
|
4
|
+
const UC_1 = require("../UC");
|
|
5
|
+
class MockPinchSceneRootUC extends UC_1.PinchSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, UC_1.PinchSceneRootUC.type);
|
|
8
|
+
this.sensitivity = 1;
|
|
9
|
+
this.doPinch = jest.fn();
|
|
10
|
+
this.initializePinch = jest.fn();
|
|
11
|
+
this.finishPinch = jest.fn();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.MockPinchSceneRootUC = MockPinchSceneRootUC;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { OrbitSceneRootUC } from "../UC/OrbitSceneRoot";
|
|
4
|
+
export declare class OrbitSceneRootUcMock extends OrbitSceneRootUC {
|
|
5
|
+
sensitivity: number;
|
|
6
|
+
doOrbit: jest.Mock<any, any>;
|
|
7
|
+
initializeOrbit: jest.Mock<any, any>;
|
|
8
|
+
finishOrbit: jest.Mock<any, any>;
|
|
9
|
+
cancelOrbit: jest.Mock<any, any>;
|
|
10
|
+
constructor(appObject: AppObject);
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrbitSceneRootUcMock = void 0;
|
|
4
|
+
const OrbitSceneRoot_1 = require("../UC/OrbitSceneRoot");
|
|
5
|
+
class OrbitSceneRootUcMock extends OrbitSceneRoot_1.OrbitSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, OrbitSceneRoot_1.OrbitSceneRootUC.type);
|
|
8
|
+
this.sensitivity = 1;
|
|
9
|
+
this.doOrbit = jest.fn();
|
|
10
|
+
this.initializeOrbit = jest.fn();
|
|
11
|
+
this.finishOrbit = jest.fn();
|
|
12
|
+
this.cancelOrbit = jest.fn();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.OrbitSceneRootUcMock = OrbitSceneRootUcMock;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { PanSceneRootUC } from "../UC/PanSceneRoot";
|
|
4
|
+
export declare class PanSceneRootUcMock extends PanSceneRootUC {
|
|
5
|
+
doPan: jest.Mock<any, any>;
|
|
6
|
+
initializePan: jest.Mock<any, any>;
|
|
7
|
+
finishPan: jest.Mock<any, any>;
|
|
8
|
+
cancelPan: jest.Mock<any, any>;
|
|
9
|
+
constructor(appObject: AppObject);
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PanSceneRootUcMock = void 0;
|
|
4
|
+
const PanSceneRoot_1 = require("../UC/PanSceneRoot");
|
|
5
|
+
class PanSceneRootUcMock extends PanSceneRoot_1.PanSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, PanSceneRoot_1.PanSceneRootUC.type);
|
|
8
|
+
this.doPan = jest.fn();
|
|
9
|
+
this.initializePan = jest.fn();
|
|
10
|
+
this.finishPan = jest.fn();
|
|
11
|
+
this.cancelPan = jest.fn();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PanSceneRootUcMock = PanSceneRootUcMock;
|
|
@@ -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("./MockDragScaleSceneRootUC"), exports);
|
|
14
|
+
__exportStar(require("./MockFocusOnPixelUC"), exports);
|
|
15
|
+
__exportStar(require("./MockOrbitSceneRootUC"), exports);
|
|
16
|
+
__exportStar(require("./MockPanSceneRootUC"), exports);
|
|
17
|
+
__exportStar(require("./MockPinchSceneRootUC"), exports);
|
|
@@ -20,7 +20,7 @@ class CenterSceneRootOnPixelPickImp extends CenterSceneRootOnPixelPickUC {
|
|
|
20
20
|
constructor(appObject) {
|
|
21
21
|
super(appObject, CenterSceneRootOnPixelPickUC.type);
|
|
22
22
|
this.durationMS = 500;
|
|
23
|
-
this.easeFn = Utilities_1.
|
|
23
|
+
this.easeFn = Utilities_1.cubicInOut;
|
|
24
24
|
this.centerOnPixel = (pixel) => {
|
|
25
25
|
if (!this.sceneRoot)
|
|
26
26
|
return;
|
|
@@ -20,7 +20,7 @@ class FocusOnPixelImp extends FocusOnPixelUC {
|
|
|
20
20
|
constructor(appObject) {
|
|
21
21
|
super(appObject, FocusOnPixelUC.type);
|
|
22
22
|
this.durationMS = 500;
|
|
23
|
-
this.easeFn = Utilities_1.
|
|
23
|
+
this.easeFn = Utilities_1.cubicInOut;
|
|
24
24
|
this.centerOnPixel = (pixel) => {
|
|
25
25
|
if (!this.sceneRoot)
|
|
26
26
|
return;
|
|
@@ -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("./Controllers"), exports);
|
|
13
14
|
__exportStar(require("./Entities"), exports);
|
|
15
|
+
__exportStar(require("./Factories"), exports);
|
|
16
|
+
__exportStar(require("./Mocks"), exports);
|
|
14
17
|
__exportStar(require("./UC"), exports);
|
|
15
|
-
__exportStar(require("./Controllers"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AppObject, AppObjectController } from "../../../AppObject";
|
|
2
|
+
import { KeyboardController } from "../../KeyboardInput/Entities/KeyboardInput";
|
|
3
|
+
export declare class KeyboardToClearSelection extends AppObjectController implements KeyboardController {
|
|
4
|
+
static type: string;
|
|
5
|
+
private get selection();
|
|
6
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
7
|
+
constructor(appObject: AppObject);
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyboardToClearSelection = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const KeyboardInput_1 = require("../../KeyboardInput/Entities/KeyboardInput");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
class KeyboardToClearSelection extends AppObject_1.AppObjectController {
|
|
8
|
+
constructor(appObject) {
|
|
9
|
+
super(appObject, KeyboardToClearSelection.type);
|
|
10
|
+
this.onKeyDown = (e) => {
|
|
11
|
+
if (e.code === "Escape" && this.selection) {
|
|
12
|
+
this.selection.selectedObjectId = null;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const keyboardInput = KeyboardInput_1.KeyboardInputEntity.get(this.appObjects);
|
|
16
|
+
keyboardInput === null || keyboardInput === void 0 ? void 0 : keyboardInput.registerController(this);
|
|
17
|
+
}
|
|
18
|
+
get selection() {
|
|
19
|
+
return this.getCachedSingleton(Entities_1.Selection.type);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.KeyboardToClearSelection = KeyboardToClearSelection;
|
|
23
|
+
KeyboardToClearSelection.type = "KeyboardToClearSelection";
|
|
@@ -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("./KeyboardToClearSelection"), exports);
|
|
13
14
|
__exportStar(require("./MouseHoverOnAppObject"), exports);
|
|
14
15
|
__exportStar(require("./MousePressOnAppObject"), exports);
|
|
15
16
|
__exportStar(require("./MouseSelectAppObject"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupSelection";
|
|
@@ -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("./setupSelection"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupSelection = void 0;
|
|
4
|
+
const Controller_1 = require("../Controller");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
const PM_1 = require("../PM");
|
|
7
|
+
const UC_1 = require("../UC");
|
|
8
|
+
function setupSelection(appObjects) {
|
|
9
|
+
const appObj = appObjects.getOrCreate("Selection");
|
|
10
|
+
// Entities
|
|
11
|
+
Entities_1.makeSelection(appObj);
|
|
12
|
+
// UCs
|
|
13
|
+
UC_1.makeHoverAppObject(appObj);
|
|
14
|
+
UC_1.makePressAppObject(appObj);
|
|
15
|
+
UC_1.makeSelectAppObject(appObj);
|
|
16
|
+
// PMs
|
|
17
|
+
PM_1.makeSelectedObjectPM(appObj);
|
|
18
|
+
// Controllers
|
|
19
|
+
new Controller_1.MouseHoverOnAppObject(appObj);
|
|
20
|
+
new Controller_1.MousePressOnAppObject(appObj);
|
|
21
|
+
new Controller_1.TouchPressOnAppObject(appObj);
|
|
22
|
+
new Controller_1.MouseSelectAppObject(appObj);
|
|
23
|
+
new Controller_1.TapToSelectAppObject(appObj);
|
|
24
|
+
new Controller_1.KeyboardToClearSelection(appObj);
|
|
25
|
+
return appObj;
|
|
26
|
+
}
|
|
27
|
+
exports.setupSelection = setupSelection;
|
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./Adapters"), exports);
|
|
14
14
|
__exportStar(require("./Controller"), exports);
|
|
15
15
|
__exportStar(require("./Entities"), exports);
|
|
16
|
+
__exportStar(require("./Factories"), exports);
|
|
16
17
|
__exportStar(require("./Mocks"), exports);
|
|
17
18
|
__exportStar(require("./PM"), exports);
|
|
18
19
|
__exportStar(require("./UC"), exports);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.makeTryStickAppObjectUC = exports.TryStickAppObjectUC = void 0;
|
|
4
4
|
const AppObject_1 = require("../../../AppObject");
|
|
5
5
|
const UC_1 = require("../../Babylon/UC");
|
|
6
|
+
const Tools_1 = require("../../Tools");
|
|
6
7
|
const StickUC_1 = require("./StickUC");
|
|
7
8
|
class TryStickAppObjectUC extends AppObject_1.AppObjectUC {
|
|
8
9
|
static get(appObjects) {
|
|
@@ -19,6 +20,12 @@ class TryStickAppObjectUCImp extends TryStickAppObjectUC {
|
|
|
19
20
|
constructor(appObject) {
|
|
20
21
|
super(appObject, TryStickAppObjectUC.type);
|
|
21
22
|
this.allow = () => {
|
|
23
|
+
var _a;
|
|
24
|
+
const peelTool = (_a = this.toolRepo) === null || _a === void 0 ? void 0 : _a.getTool("PEEL");
|
|
25
|
+
if (!peelTool)
|
|
26
|
+
return false;
|
|
27
|
+
if (peelTool.state !== Tools_1.ToolState.ACTIVE)
|
|
28
|
+
return false;
|
|
22
29
|
return true;
|
|
23
30
|
};
|
|
24
31
|
this.tryWithPixel = (pixel) => {
|
|
@@ -49,6 +56,9 @@ class TryStickAppObjectUCImp extends TryStickAppObjectUC {
|
|
|
49
56
|
};
|
|
50
57
|
this.appObjects.registerSingleton(this);
|
|
51
58
|
}
|
|
59
|
+
get toolRepo() {
|
|
60
|
+
return this.getCachedSingleton(Tools_1.ToolRepository.type);
|
|
61
|
+
}
|
|
52
62
|
get pixelPick() {
|
|
53
63
|
var _a;
|
|
54
64
|
return (_a = this.getCachedSingleton(UC_1.ScenePixelPickUC.type)) === null || _a === void 0 ? void 0 : _a.scenePixelPick;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasStoredViewAdapter = void 0;
|
|
4
|
+
const HasStoredViewPM_1 = require("../PM/HasStoredViewPM");
|
|
5
|
+
exports.hasStoredViewAdapter = {
|
|
6
|
+
defaultVM: false,
|
|
7
|
+
subscribe: (appObjects, setVM) => {
|
|
8
|
+
const pm = HasStoredViewPM_1.HasStoredViewPM.get(appObjects);
|
|
9
|
+
if (!pm) {
|
|
10
|
+
appObjects.submitError("inspectorTabAdapter", "Unable to find HasStoredViewPM");
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
pm.addView(setVM);
|
|
14
|
+
},
|
|
15
|
+
unsubscribe: (appObjects, setVM) => {
|
|
16
|
+
var _a;
|
|
17
|
+
(_a = HasStoredViewPM_1.HasStoredViewPM.get(appObjects)) === null || _a === void 0 ? void 0 : _a.removeView(setVM);
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./hasStoredViewAdapter";
|
|
@@ -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("./hasStoredViewAdapter"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clearStoredView = void 0;
|
|
4
|
+
const ClearStoredViewUC_1 = require("../UC/ClearStoredViewUC");
|
|
5
|
+
function clearStoredView(appObjects) {
|
|
6
|
+
const uc = ClearStoredViewUC_1.ClearStoredViewUC.get(appObjects);
|
|
7
|
+
if (!uc) {
|
|
8
|
+
appObjects.submitError("clearStoredView", "Unable to find ClearStoredViewUC");
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
uc.clearStoredView();
|
|
12
|
+
}
|
|
13
|
+
exports.clearStoredView = clearStoredView;
|
|
@@ -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("./clearStoredView"), exports);
|
|
14
|
+
__exportStar(require("./restoreStoredView"), exports);
|
|
15
|
+
__exportStar(require("./setViewInXR"), exports);
|
|
16
|
+
__exportStar(require("./storeCurrentView"), exports);
|