@vived/app 4.29.0 → 4.31.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/ChannelModel/Adapters/index.d.ts +1 -0
- package/lib/Components/ChannelModel/Adapters/index.js +1 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsAreStickableAdapter.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/modelObjectsAreStickableAdapter.js +27 -0
- package/lib/Components/ChannelModel/Controllers/index.d.ts +1 -0
- package/lib/Components/ChannelModel/Controllers/index.js +1 -0
- package/lib/Components/ChannelModel/Controllers/stickAllActiveObjects.d.ts +2 -0
- package/lib/Components/ChannelModel/Controllers/stickAllActiveObjects.js +23 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsAreStickableMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ModelObjectsAreStickableMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/StickAllChannelModelObjectsUCMock.d.ts +9 -0
- package/lib/Components/ChannelModel/Mocks/StickAllChannelModelObjectsUCMock.js +13 -0
- package/lib/Components/ChannelModel/Mocks/index.d.ts +2 -0
- package/lib/Components/ChannelModel/Mocks/index.js +2 -0
- package/lib/Components/ChannelModel/PMs/ModelObjectsAreStickablePM.d.ts +6 -0
- package/lib/Components/ChannelModel/PMs/ModelObjectsAreStickablePM.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/ChannelModel/UC/StickAllChannelModelObjectsUC.d.ts +7 -0
- package/lib/Components/ChannelModel/UC/StickAllChannelModelObjectsUC.js +87 -0
- package/lib/Components/ChannelModel/UC/index.d.ts +1 -0
- package/lib/Components/ChannelModel/UC/index.js +1 -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/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 +2 -0
- package/lib/Components/InspectorTab/Controllers/index.js +14 -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 +12 -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/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/Mocks/DragScaleSceneRootUcMock.d.ts +9 -0
- package/lib/Components/SceneRoot/Mocks/DragScaleSceneRootUcMock.js +13 -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 +2 -0
- package/lib/Components/SceneRoot/Mocks/index.js +14 -0
- package/lib/Components/Selection/Controller/KeyboardToClearSelection.d.ts +8 -0
- package/lib/Components/Selection/Controller/KeyboardToClearSelection.js +23 -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/Stick/Adapters/index.d.ts +1 -0
- package/lib/Components/Stick/Adapters/index.js +13 -0
- package/lib/Components/Stick/Adapters/stickTargetAdapter.d.ts +3 -0
- package/lib/Components/Stick/Adapters/stickTargetAdapter.js +23 -0
- package/lib/Components/Stick/Controllers/DoubleClickToStickMC.d.ts +15 -0
- package/lib/Components/Stick/Controllers/DoubleClickToStickMC.js +57 -0
- package/lib/Components/Stick/Controllers/DoubleTapToStickTC.d.ts +15 -0
- package/lib/Components/Stick/Controllers/DoubleTapToStickTC.js +52 -0
- package/lib/Components/Stick/Controllers/clickStick.d.ts +2 -0
- package/lib/Components/Stick/Controllers/clickStick.js +13 -0
- package/lib/Components/Stick/Controllers/index.d.ts +3 -0
- package/lib/Components/Stick/Controllers/index.js +15 -0
- package/lib/Components/Stick/Entities/Stickable.d.ts +22 -0
- package/lib/Components/Stick/Entities/Stickable.js +101 -0
- package/lib/Components/Stick/Entities/index.d.ts +1 -0
- package/lib/Components/Stick/Entities/index.js +13 -0
- package/lib/Components/Stick/Factories/index.d.ts +1 -0
- package/lib/Components/Stick/Factories/index.js +13 -0
- package/lib/Components/Stick/Factories/setupStick.d.ts +2 -0
- package/lib/Components/Stick/Factories/setupStick.js +15 -0
- package/lib/Components/Stick/Mocks/StickTargetPmMock.d.ts +7 -0
- package/lib/Components/Stick/Mocks/StickTargetPmMock.js +11 -0
- package/lib/Components/Stick/Mocks/StickUCMock.d.ts +7 -0
- package/lib/Components/Stick/Mocks/StickUCMock.js +11 -0
- package/lib/Components/Stick/Mocks/TryStickAppObjectUCMock.d.ts +10 -0
- package/lib/Components/Stick/Mocks/TryStickAppObjectUCMock.js +17 -0
- package/lib/Components/Stick/Mocks/index.d.ts +3 -0
- package/lib/Components/Stick/Mocks/index.js +15 -0
- package/lib/Components/Stick/PMs/StickTargetPM.d.ts +11 -0
- package/lib/Components/Stick/PMs/StickTargetPM.js +50 -0
- package/lib/Components/Stick/PMs/index.d.ts +1 -0
- package/lib/Components/Stick/PMs/index.js +13 -0
- package/lib/Components/Stick/UCs/PanTransformWithStickUC.d.ts +3 -0
- package/lib/Components/Stick/UCs/PanTransformWithStickUC.js +131 -0
- package/lib/Components/Stick/UCs/StickUC.d.ts +7 -0
- package/lib/Components/Stick/UCs/StickUC.js +71 -0
- package/lib/Components/Stick/UCs/TryPickStickTarget.d.ts +8 -0
- package/lib/Components/Stick/UCs/TryPickStickTarget.js +26 -0
- package/lib/Components/Stick/UCs/TryStickAppObjectUC.d.ts +10 -0
- package/lib/Components/Stick/UCs/TryStickAppObjectUC.js +74 -0
- package/lib/Components/Stick/UCs/index.d.ts +4 -0
- package/lib/Components/Stick/UCs/index.js +16 -0
- package/lib/Components/Stick/index.d.ts +7 -0
- package/lib/Components/Stick/index.js +19 -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/Stylus/Factories/index.d.ts +1 -0
- package/lib/Components/Stylus/Factories/index.js +13 -0
- package/lib/Components/Stylus/Factories/setupStylus.d.ts +2 -0
- package/lib/Components/Stylus/Factories/setupStylus.js +19 -0
- package/lib/Components/Stylus/index.d.ts +1 -0
- package/lib/Components/Stylus/index.js +1 -0
- 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/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/Transform3D/UC/PanTransformUC.d.ts +28 -1
- package/lib/Components/Transform3D/UC/PanTransformUC.js +52 -34
- package/lib/Components/Transform3D/UC/TryPanTransformUC.d.ts +3 -2
- package/lib/Components/Transform3D/UC/index.d.ts +0 -1
- package/lib/Components/Transform3D/UC/index.js +0 -1
- 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/index.d.ts +1 -0
- package/lib/Components/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeStickUC = exports.StickUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const DispatchStateChangeUC_1 = require("../../Dispatcher/UC/DispatchStateChangeUC");
|
|
7
|
+
const Transform3D_1 = require("../../Transform3D/Entities/Transform3D");
|
|
8
|
+
const UndoRedoEntity_1 = require("../../UndoRedo/Entities/UndoRedoEntity");
|
|
9
|
+
const Stickable_1 = require("../Entities/Stickable");
|
|
10
|
+
class StickUC extends AppObject_1.AppObjectUC {
|
|
11
|
+
static get(id, appObjects) {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = appObjects.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(StickUC.type);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.StickUC = StickUC;
|
|
17
|
+
StickUC.type = "StickUC";
|
|
18
|
+
function makeStickUC(appObject) {
|
|
19
|
+
return new StickUCImp(appObject);
|
|
20
|
+
}
|
|
21
|
+
exports.makeStickUC = makeStickUC;
|
|
22
|
+
class StickUCImp extends StickUC {
|
|
23
|
+
constructor(appObject) {
|
|
24
|
+
super(appObject, StickUC.type);
|
|
25
|
+
this.doStick = () => {
|
|
26
|
+
var _a;
|
|
27
|
+
const transform = this.transform3D;
|
|
28
|
+
const dispatch = this.dispatchStateChange;
|
|
29
|
+
if (!transform || !this.stickEntity || !dispatch) {
|
|
30
|
+
this.error("Missing Components");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (!this.stickEntity.canBeStuck)
|
|
34
|
+
return;
|
|
35
|
+
const startPos = transform.localPosition;
|
|
36
|
+
const finalPos = this.stickEntity.stickPosition;
|
|
37
|
+
const startRot = transform.localRotation;
|
|
38
|
+
const finalRot = this.stickEntity.stickRotation;
|
|
39
|
+
const startScale = transform.localScale;
|
|
40
|
+
const finalScale = new ValueObjects_1.Vector3(this.stickEntity.stickScale, this.stickEntity.stickScale, this.stickEntity.stickScale);
|
|
41
|
+
this.stickEntity.doStick(dispatch);
|
|
42
|
+
(_a = this.undo) === null || _a === void 0 ? void 0 : _a.submitAction({
|
|
43
|
+
undoAction: () => {
|
|
44
|
+
transform.localPosition = startPos;
|
|
45
|
+
transform.localRotation = startRot;
|
|
46
|
+
transform.localScale = startScale;
|
|
47
|
+
dispatch();
|
|
48
|
+
},
|
|
49
|
+
redoAction: () => {
|
|
50
|
+
transform.localPosition = finalPos;
|
|
51
|
+
transform.localRotation = finalRot;
|
|
52
|
+
transform.localScale = finalScale;
|
|
53
|
+
dispatch();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
get stickEntity() {
|
|
59
|
+
return this.getCachedLocalComponent(Stickable_1.StickableEntity.type);
|
|
60
|
+
}
|
|
61
|
+
get transform3D() {
|
|
62
|
+
return this.getCachedLocalComponent(Transform3D_1.Transform3D.type);
|
|
63
|
+
}
|
|
64
|
+
get dispatchStateChange() {
|
|
65
|
+
var _a;
|
|
66
|
+
return (_a = this.getCachedSingleton(DispatchStateChangeUC_1.DispatchStateChangeUC.type)) === null || _a === void 0 ? void 0 : _a.doDispatch;
|
|
67
|
+
}
|
|
68
|
+
get undo() {
|
|
69
|
+
return this.getCachedSingleton(UndoRedoEntity_1.UndoRedoEntity.type);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { ParametricLine } from "../../../ValueObjects";
|
|
3
|
+
export declare abstract class TryPickStickTargetUC extends AppObjectUC {
|
|
4
|
+
static type: string;
|
|
5
|
+
abstract tryPick(ray: ParametricLine): boolean;
|
|
6
|
+
static get(id: string, appObjects: AppObjectRepo): TryPickStickTargetUC | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare function makeTryPickStickTargetUC(appObject: AppObject): TryPickStickTargetUC;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeTryPickStickTargetUC = exports.TryPickStickTargetUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
class TryPickStickTargetUC extends AppObject_1.AppObjectUC {
|
|
6
|
+
static get(id, appObjects) {
|
|
7
|
+
var _a;
|
|
8
|
+
return (_a = appObjects
|
|
9
|
+
.get(id)) === null || _a === void 0 ? void 0 : _a.getComponent(TryPickStickTargetUC.type);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TryPickStickTargetUC = TryPickStickTargetUC;
|
|
13
|
+
TryPickStickTargetUC.type = "TryPickStickTargetUC";
|
|
14
|
+
function makeTryPickStickTargetUC(appObject) {
|
|
15
|
+
return new TryPickStickTargetUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeTryPickStickTargetUC = makeTryPickStickTargetUC;
|
|
18
|
+
class TryPickStickTargetUCImp extends TryPickStickTargetUC {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
super(appObject, TryPickStickTargetUC.type);
|
|
21
|
+
this.tryPick = (pickRay) => {
|
|
22
|
+
this.warn("Picker needs to be injected");
|
|
23
|
+
return false;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppObject, AppObjectRepo, AppObjectUC } from "../../../AppObject";
|
|
2
|
+
import { ParametricLine, Vector2 } from "../../../ValueObjects";
|
|
3
|
+
export declare abstract class TryStickAppObjectUC extends AppObjectUC {
|
|
4
|
+
static type: string;
|
|
5
|
+
abstract tryWithRay(ray: ParametricLine): void;
|
|
6
|
+
abstract tryWithPixel(pixel: Vector2): void;
|
|
7
|
+
abstract allow(): void;
|
|
8
|
+
static get(appObjects: AppObjectRepo): TryStickAppObjectUC | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare function makeTryStickAppObjectUC(appObject: AppObject): TryStickAppObjectUC;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeTryStickAppObjectUC = exports.TryStickAppObjectUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const UC_1 = require("../../Babylon/UC");
|
|
6
|
+
const StickUC_1 = require("./StickUC");
|
|
7
|
+
class TryStickAppObjectUC extends AppObject_1.AppObjectUC {
|
|
8
|
+
static get(appObjects) {
|
|
9
|
+
return AppObject_1.getSingletonComponent(TryStickAppObjectUC.type, appObjects);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TryStickAppObjectUC = TryStickAppObjectUC;
|
|
13
|
+
TryStickAppObjectUC.type = "TryStickAppObjectUC";
|
|
14
|
+
function makeTryStickAppObjectUC(appObject) {
|
|
15
|
+
return new TryStickAppObjectUCImp(appObject);
|
|
16
|
+
}
|
|
17
|
+
exports.makeTryStickAppObjectUC = makeTryStickAppObjectUC;
|
|
18
|
+
class TryStickAppObjectUCImp extends TryStickAppObjectUC {
|
|
19
|
+
constructor(appObject) {
|
|
20
|
+
super(appObject, TryStickAppObjectUC.type);
|
|
21
|
+
this.allow = () => {
|
|
22
|
+
return true;
|
|
23
|
+
};
|
|
24
|
+
this.tryWithPixel = (pixel) => {
|
|
25
|
+
var _a;
|
|
26
|
+
if (!this.allow())
|
|
27
|
+
return;
|
|
28
|
+
if (!this.pixelPick) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const appObjectID = (_a = this.pixelPick(pixel)) === null || _a === void 0 ? void 0 : _a.appObjectID;
|
|
32
|
+
if (!appObjectID) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.stickByID(appObjectID);
|
|
36
|
+
};
|
|
37
|
+
this.tryWithRay = (pickRay) => {
|
|
38
|
+
var _a;
|
|
39
|
+
if (!this.allow())
|
|
40
|
+
return;
|
|
41
|
+
if (!this.rayPick) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const appObjectID = (_a = this.rayPick(pickRay)) === null || _a === void 0 ? void 0 : _a.appObjectID;
|
|
45
|
+
if (!appObjectID) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
this.stickByID(appObjectID);
|
|
49
|
+
};
|
|
50
|
+
this.appObjects.registerSingleton(this);
|
|
51
|
+
}
|
|
52
|
+
get pixelPick() {
|
|
53
|
+
var _a;
|
|
54
|
+
return (_a = this.getCachedSingleton(UC_1.ScenePixelPickUC.type)) === null || _a === void 0 ? void 0 : _a.scenePixelPick;
|
|
55
|
+
}
|
|
56
|
+
get rayPick() {
|
|
57
|
+
var _a;
|
|
58
|
+
return (_a = this.getCachedSingleton(UC_1.SceneRayPickUC.type)) === null || _a === void 0 ? void 0 : _a.sceneRayPick;
|
|
59
|
+
}
|
|
60
|
+
stickByID(id) {
|
|
61
|
+
const appObj = this.appObjects.get(id);
|
|
62
|
+
if (!appObj) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (!appObj.hasComponent(StickUC_1.StickUC.type)) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const stickUC = appObj.getComponent(StickUC_1.StickUC.type);
|
|
69
|
+
if (!stickUC) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
stickUC.doStick();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -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("./PanTransformWithStickUC"), exports);
|
|
14
|
+
__exportStar(require("./StickUC"), exports);
|
|
15
|
+
__exportStar(require("./TryPickStickTarget"), exports);
|
|
16
|
+
__exportStar(require("./TryStickAppObjectUC"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./Adapters"), exports);
|
|
14
|
+
__exportStar(require("./Controllers"), exports);
|
|
15
|
+
__exportStar(require("./Entities"), exports);
|
|
16
|
+
__exportStar(require("./Factories"), exports);
|
|
17
|
+
__exportStar(require("./Mocks"), exports);
|
|
18
|
+
__exportStar(require("./PMs"), exports);
|
|
19
|
+
__exportStar(require("./UCs"), exports);
|
|
@@ -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);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.restoreStoredView = void 0;
|
|
4
|
+
const RestoreStoredViewUC_1 = require("../UC/RestoreStoredViewUC");
|
|
5
|
+
function restoreStoredView(appObjects) {
|
|
6
|
+
const uc = RestoreStoredViewUC_1.RestoreStoredViewUC.get(appObjects);
|
|
7
|
+
if (!uc) {
|
|
8
|
+
appObjects.submitError("restoreStoredView", "Unable to find RestoreStoredViewUC");
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
uc.restoreStoredView();
|
|
12
|
+
}
|
|
13
|
+
exports.restoreStoredView = restoreStoredView;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setViewInXR = void 0;
|
|
4
|
+
const SetInXRUC_1 = require("../UC/SetInXRUC");
|
|
5
|
+
function setViewInXR(appObjects) {
|
|
6
|
+
const uc = SetInXRUC_1.SetViewInXRUC.get(appObjects);
|
|
7
|
+
if (!uc) {
|
|
8
|
+
appObjects.submitError("setViewInXR", "Unable to find SetViewInXRUC");
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
uc.setViewInXR();
|
|
12
|
+
}
|
|
13
|
+
exports.setViewInXR = setViewInXR;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.storeCurrentView = void 0;
|
|
4
|
+
const StoreCurrentViewUC_1 = require("../UC/StoreCurrentViewUC");
|
|
5
|
+
function storeCurrentView(appObjects) {
|
|
6
|
+
const uc = StoreCurrentViewUC_1.StoreCurrentViewUC.get(appObjects);
|
|
7
|
+
if (!uc) {
|
|
8
|
+
appObjects.submitError("storeCurrentView", "Unable to find StoreCurrentViewUC");
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
uc.storeCurrentView();
|
|
12
|
+
}
|
|
13
|
+
exports.storeCurrentView = storeCurrentView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupStoredView";
|
|
@@ -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("./setupStoredView"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupStoredView = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
const PM_1 = require("../PM");
|
|
6
|
+
const UC_1 = require("../UC");
|
|
7
|
+
function setupStoredView(appObjects) {
|
|
8
|
+
const ao = appObjects.getOrCreate("StoredView");
|
|
9
|
+
// Entities
|
|
10
|
+
Entities_1.makeStoredView(ao);
|
|
11
|
+
// UCs
|
|
12
|
+
UC_1.makeStoreCurrentViewUC(ao);
|
|
13
|
+
UC_1.makeRestoreStoredViewUC(ao);
|
|
14
|
+
UC_1.makeClearStoredViewUC(ao);
|
|
15
|
+
UC_1.makeSetViewInXRUC(ao);
|
|
16
|
+
UC_1.makeSerializeStoredView(ao);
|
|
17
|
+
// PMs
|
|
18
|
+
PM_1.makeHasStoredViewPM(ao);
|
|
19
|
+
return ao;
|
|
20
|
+
}
|
|
21
|
+
exports.setupStoredView = setupStoredView;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { ClearStoredViewUC } from "../UC/ClearStoredViewUC";
|
|
4
|
+
export declare class ClearStoredViewUcMock extends ClearStoredViewUC {
|
|
5
|
+
clearStoredView: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeClearStoredViewUcMock(appObjects: AppObjectRepo): ClearStoredViewUcMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeClearStoredViewUcMock = exports.ClearStoredViewUcMock = void 0;
|
|
4
|
+
const ClearStoredViewUC_1 = require("../UC/ClearStoredViewUC");
|
|
5
|
+
class ClearStoredViewUcMock extends ClearStoredViewUC_1.ClearStoredViewUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, ClearStoredViewUC_1.ClearStoredViewUC.type);
|
|
8
|
+
this.clearStoredView = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ClearStoredViewUcMock = ClearStoredViewUcMock;
|
|
12
|
+
function makeClearStoredViewUcMock(appObjects) {
|
|
13
|
+
return new ClearStoredViewUcMock(appObjects.getOrCreate("ClearStoredViewUcMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeClearStoredViewUcMock = makeClearStoredViewUcMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { HasStoredViewPM } from "../PM/HasStoredViewPM";
|
|
4
|
+
export declare class HasStoredViewPmMock extends HasStoredViewPM {
|
|
5
|
+
vmsAreEqual: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeHasStoredViewPmMock(appObjects: AppObjectRepo): HasStoredViewPmMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeHasStoredViewPmMock = exports.HasStoredViewPmMock = void 0;
|
|
4
|
+
const HasStoredViewPM_1 = require("../PM/HasStoredViewPM");
|
|
5
|
+
class HasStoredViewPmMock extends HasStoredViewPM_1.HasStoredViewPM {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, HasStoredViewPM_1.HasStoredViewPM.type);
|
|
8
|
+
this.vmsAreEqual = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.HasStoredViewPmMock = HasStoredViewPmMock;
|
|
12
|
+
function makeHasStoredViewPmMock(appObjects) {
|
|
13
|
+
return new HasStoredViewPmMock(appObjects.getOrCreate("HasStoredViewPmMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeHasStoredViewPmMock = makeHasStoredViewPmMock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { RestoreStoredViewUC } from "../UC/RestoreStoredViewUC";
|
|
4
|
+
export declare class RestoreStoredViewUcMock extends RestoreStoredViewUC {
|
|
5
|
+
restoreStoredView: jest.Mock<any, any>;
|
|
6
|
+
ease: import("../../..").EaseFn;
|
|
7
|
+
constructor(appObject: AppObject);
|
|
8
|
+
}
|
|
9
|
+
export declare function makeRestoreStoredViewUcMock(appObjects: AppObjectRepo): RestoreStoredViewUcMock;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeRestoreStoredViewUcMock = exports.RestoreStoredViewUcMock = void 0;
|
|
4
|
+
const Utilities_1 = require("../../../Utilities");
|
|
5
|
+
const RestoreStoredViewUC_1 = require("../UC/RestoreStoredViewUC");
|
|
6
|
+
class RestoreStoredViewUcMock extends RestoreStoredViewUC_1.RestoreStoredViewUC {
|
|
7
|
+
constructor(appObject) {
|
|
8
|
+
super(appObject, RestoreStoredViewUC_1.RestoreStoredViewUC.type);
|
|
9
|
+
this.restoreStoredView = jest.fn();
|
|
10
|
+
this.ease = Utilities_1.easeLinear;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.RestoreStoredViewUcMock = RestoreStoredViewUcMock;
|
|
14
|
+
function makeRestoreStoredViewUcMock(appObjects) {
|
|
15
|
+
return new RestoreStoredViewUcMock(appObjects.getOrCreate("RestoreStoredViewUcMock"));
|
|
16
|
+
}
|
|
17
|
+
exports.makeRestoreStoredViewUcMock = makeRestoreStoredViewUcMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { SetViewInXRUC } from "../UC/SetInXRUC";
|
|
4
|
+
export declare class SetViewInXRUcMock extends SetViewInXRUC {
|
|
5
|
+
setViewInXR: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeSetViewInXRUcMock(appObjects: AppObjectRepo): SetViewInXRUcMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSetViewInXRUcMock = exports.SetViewInXRUcMock = void 0;
|
|
4
|
+
const SetInXRUC_1 = require("../UC/SetInXRUC");
|
|
5
|
+
class SetViewInXRUcMock extends SetInXRUC_1.SetViewInXRUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, SetInXRUC_1.SetViewInXRUC.type);
|
|
8
|
+
this.setViewInXR = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SetViewInXRUcMock = SetViewInXRUcMock;
|
|
12
|
+
function makeSetViewInXRUcMock(appObjects) {
|
|
13
|
+
return new SetViewInXRUcMock(appObjects.getOrCreate("SetViewInXRUcMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeSetViewInXRUcMock = makeSetViewInXRUcMock;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject, AppObjectRepo } from "../../../AppObject";
|
|
3
|
+
import { StoreCurrentViewUC } from "../UC/StoreCurrentViewUC";
|
|
4
|
+
export declare class StoreCurrentViewUcMock extends StoreCurrentViewUC {
|
|
5
|
+
storeCurrentView: jest.Mock<any, any>;
|
|
6
|
+
constructor(appObject: AppObject);
|
|
7
|
+
}
|
|
8
|
+
export declare function makeStoreCurrentViewUcMock(appObjects: AppObjectRepo): StoreCurrentViewUcMock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeStoreCurrentViewUcMock = exports.StoreCurrentViewUcMock = void 0;
|
|
4
|
+
const StoreCurrentViewUC_1 = require("../UC/StoreCurrentViewUC");
|
|
5
|
+
class StoreCurrentViewUcMock extends StoreCurrentViewUC_1.StoreCurrentViewUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, StoreCurrentViewUC_1.StoreCurrentViewUC.type);
|
|
8
|
+
this.storeCurrentView = jest.fn();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.StoreCurrentViewUcMock = StoreCurrentViewUcMock;
|
|
12
|
+
function makeStoreCurrentViewUcMock(appObjects) {
|
|
13
|
+
return new StoreCurrentViewUcMock(appObjects.getOrCreate("StoreCurrentViewUcMock"));
|
|
14
|
+
}
|
|
15
|
+
exports.makeStoreCurrentViewUcMock = makeStoreCurrentViewUcMock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./HasStoredViewPmMock";
|
|
@@ -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("./HasStoredViewPmMock"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupStylus";
|
|
@@ -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("./setupStylus"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupStylus = void 0;
|
|
4
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
5
|
+
const Entity_1 = require("../Entity");
|
|
6
|
+
const PMs_1 = require("../PMs");
|
|
7
|
+
const UCs_1 = require("../UCs");
|
|
8
|
+
function setupStylus(appObjects) {
|
|
9
|
+
const ao = appObjects.getOrCreate("Stylus");
|
|
10
|
+
// Entities
|
|
11
|
+
Entity_1.makeStylusEntity(ao);
|
|
12
|
+
// UCs
|
|
13
|
+
UCs_1.makeEmulateStylusUC(ao);
|
|
14
|
+
// PMs
|
|
15
|
+
PMs_1.makeStylusColorLengthPM(ao);
|
|
16
|
+
PMs_1.makeStylusIsInUsePM(ao);
|
|
17
|
+
Transform3D_1.makeTransform3DPM(ao);
|
|
18
|
+
}
|
|
19
|
+
exports.setupStylus = setupStylus;
|