@vived/app 4.28.0 → 4.28.1
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/Babylon/Factories/index.d.ts +1 -0
- package/lib/Components/Babylon/Factories/index.js +13 -0
- package/lib/Components/Babylon/Factories/setupBabylon.d.ts +2 -0
- package/lib/Components/Babylon/Factories/setupBabylon.js +11 -0
- package/lib/Components/Babylon/index.d.ts +2 -0
- package/lib/Components/Babylon/index.js +2 -0
- package/lib/Components/BaseApp/Factories/index.d.ts +1 -0
- package/lib/Components/BaseApp/Factories/index.js +13 -0
- package/lib/Components/BaseApp/Factories/setupBaseApp.d.ts +2 -0
- package/lib/Components/BaseApp/Factories/setupBaseApp.js +22 -0
- package/lib/Components/BaseApp/index.d.ts +1 -0
- package/lib/Components/BaseApp/index.js +1 -0
- package/lib/Components/Callouts/Factories/calloutFactory.d.ts +3 -0
- package/lib/Components/Callouts/Factories/calloutFactory.js +42 -0
- package/lib/Components/Callouts/Factories/calloutRepoFactory.d.ts +3 -0
- package/lib/Components/Callouts/Factories/calloutRepoFactory.js +19 -0
- package/lib/Components/Callouts/Factories/index.d.ts +3 -0
- package/lib/Components/Callouts/Factories/index.js +15 -0
- package/lib/Components/Callouts/Factories/setupCallouts.d.ts +2 -0
- package/lib/Components/Callouts/Factories/setupCallouts.js +24 -0
- package/lib/Components/Callouts/index.d.ts +1 -0
- package/lib/Components/Callouts/index.js +1 -0
- package/lib/Components/Camera/Factories/index.d.ts +1 -0
- package/lib/Components/Camera/Factories/index.js +13 -0
- package/lib/Components/Camera/Factories/setupCamera.d.ts +2 -0
- package/lib/Components/Camera/Factories/setupCamera.js +15 -0
- package/lib/Components/Camera/index.d.ts +1 -0
- package/lib/Components/Camera/index.js +1 -0
- package/lib/Components/Challenge/Factories/index.d.ts +1 -0
- package/lib/Components/Challenge/Factories/index.js +13 -0
- package/lib/Components/Challenge/Factories/setupChallenge.d.ts +2 -0
- package/lib/Components/Challenge/Factories/setupChallenge.js +46 -0
- package/lib/Components/Challenge/UCs/SetChallengeUC.d.ts +1 -1
- package/lib/Components/Challenge/index.d.ts +1 -0
- package/lib/Components/Challenge/index.js +1 -0
- package/lib/Components/ChannelModel/Factories/channelModelFactory.d.ts +3 -0
- package/lib/Components/ChannelModel/Factories/channelModelFactory.js +14 -0
- package/lib/Components/ChannelModel/Factories/channelObjectFactory.d.ts +3 -0
- package/lib/Components/ChannelModel/Factories/channelObjectFactory.js +19 -0
- package/lib/Components/ChannelModel/Factories/index.d.ts +3 -0
- package/lib/Components/ChannelModel/Factories/index.js +15 -0
- package/lib/Components/ChannelModel/Factories/setupChannelModels.d.ts +2 -0
- package/lib/Components/ChannelModel/Factories/setupChannelModels.js +25 -0
- package/lib/Components/ChannelModel/index.d.ts +1 -0
- package/lib/Components/ChannelModel/index.js +1 -0
- package/lib/Components/Dispatcher/Factories/index.d.ts +1 -0
- package/lib/Components/Dispatcher/Factories/index.js +13 -0
- package/lib/Components/Dispatcher/Factories/setupDispatchers.d.ts +3 -0
- package/lib/Components/Dispatcher/Factories/setupDispatchers.js +35 -0
- package/lib/Components/Dispatcher/index.d.ts +1 -0
- package/lib/Components/Dispatcher/index.js +1 -0
- package/lib/Components/GLBModel/Factories/glbModelFactory.d.ts +3 -0
- package/lib/Components/GLBModel/Factories/glbModelFactory.js +12 -0
- package/lib/Components/GLBModel/Factories/index.d.ts +2 -0
- package/lib/Components/GLBModel/Factories/index.js +14 -0
- package/lib/Components/GLBModel/Factories/setupGLBModel.d.ts +2 -0
- package/lib/Components/GLBModel/Factories/setupGLBModel.js +11 -0
- package/lib/Components/GLBModel/index.d.ts +1 -0
- package/lib/Components/GLBModel/index.js +1 -0
- package/lib/Components/KeyboardInput/Factories/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/Factories/index.js +13 -0
- package/lib/Components/KeyboardInput/Factories/setupKeyboard.d.ts +2 -0
- package/lib/Components/KeyboardInput/Factories/setupKeyboard.js +9 -0
- package/lib/Components/KeyboardInput/index.d.ts +1 -0
- package/lib/Components/KeyboardInput/index.js +1 -0
- package/lib/Components/LabelDrop/Factories/index.d.ts +2 -0
- package/lib/Components/LabelDrop/Factories/index.js +14 -0
- package/lib/Components/LabelDrop/Factories/labelDropItemFactory.d.ts +3 -0
- package/lib/Components/LabelDrop/Factories/labelDropItemFactory.js +24 -0
- package/lib/Components/LabelDrop/Factories/setupLabelDrop.d.ts +2 -0
- package/lib/Components/LabelDrop/Factories/setupLabelDrop.js +51 -0
- package/lib/Components/LabelDrop/index.d.ts +1 -0
- package/lib/Components/LabelDrop/index.js +1 -0
- package/lib/Components/Landmarks/Factories/index.d.ts +3 -0
- package/lib/Components/Landmarks/Factories/index.js +15 -0
- package/lib/Components/Landmarks/Factories/landmarkFactory.d.ts +3 -0
- package/lib/Components/Landmarks/Factories/landmarkFactory.js +40 -0
- package/lib/Components/Landmarks/Factories/landmarkRepoFactory.d.ts +3 -0
- package/lib/Components/Landmarks/Factories/landmarkRepoFactory.js +16 -0
- package/lib/Components/Landmarks/Factories/setupLandmarks.d.ts +2 -0
- package/lib/Components/Landmarks/Factories/setupLandmarks.js +32 -0
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.d.ts +2 -2
- package/lib/Components/Landmarks/UseCases/TryAddNewLandmarkUC.js +2 -2
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.d.ts +2 -2
- package/lib/Components/Landmarks/UseCases/TryPreviewLandmarkUC.js +2 -2
- package/lib/Components/Landmarks/index.d.ts +1 -0
- package/lib/Components/Landmarks/index.js +1 -0
- package/lib/Components/ObjectPick/Factories/index.d.ts +1 -0
- package/lib/Components/ObjectPick/Factories/index.js +13 -0
- package/lib/Components/ObjectPick/Factories/setupObjectPick.d.ts +2 -0
- package/lib/Components/ObjectPick/Factories/setupObjectPick.js +26 -0
- package/lib/Components/ObjectPick/index.d.ts +1 -0
- package/lib/Components/ObjectPick/index.js +1 -0
- package/lib/Components/RequestHandler/Factories/index.d.ts +1 -0
- package/lib/Components/RequestHandler/Factories/index.js +13 -0
- package/lib/Components/RequestHandler/Factories/setupAppHandlers.d.ts +3 -0
- package/lib/Components/RequestHandler/Factories/setupAppHandlers.js +20 -0
- package/lib/Components/RequestHandler/index.d.ts +1 -0
- package/lib/Components/RequestHandler/index.js +1 -0
- package/lib/Components/StateMachine/Factories/index.d.ts +1 -0
- package/lib/Components/StateMachine/Factories/index.js +13 -0
- package/lib/Components/StateMachine/Factories/setupStateMachine.d.ts +2 -0
- package/lib/Components/StateMachine/Factories/setupStateMachine.js +12 -0
- package/lib/Components/StateMachine/index.d.ts +1 -0
- package/lib/Components/StateMachine/index.js +1 -0
- package/lib/Components/ThemeColors/Factories/index.d.ts +1 -0
- package/lib/Components/ThemeColors/Factories/index.js +13 -0
- package/lib/Components/ThemeColors/Factories/setupTheme.d.ts +2 -0
- package/lib/Components/ThemeColors/Factories/setupTheme.js +12 -0
- package/lib/Components/ThemeColors/index.d.ts +1 -0
- package/lib/Components/ThemeColors/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupBabylon";
|
|
@@ -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("./setupBabylon"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupBabylon = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
const PM_1 = require("../PM");
|
|
6
|
+
function setupBabylon(appObjects) {
|
|
7
|
+
const appObj = appObjects.getOrCreate("Babylon");
|
|
8
|
+
Entities_1.makeBabylonEntity(appObj);
|
|
9
|
+
new PM_1.ShowBabylonInspectorPM(appObj);
|
|
10
|
+
}
|
|
11
|
+
exports.setupBabylon = setupBabylon;
|
|
@@ -11,6 +11,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./Entities"), exports);
|
|
14
|
+
__exportStar(require("./Factories"), exports);
|
|
14
15
|
__exportStar(require("./Mocks"), exports);
|
|
15
16
|
__exportStar(require("./UC"), exports);
|
|
16
17
|
__exportStar(require("./PM"), exports);
|
|
18
|
+
__exportStar(require("./Factories/setupBabylon"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupBaseApp";
|
|
@@ -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("./setupBaseApp"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupBaseApp = void 0;
|
|
4
|
+
const Entity_1 = require("../Entity");
|
|
5
|
+
const PM_1 = require("../PM");
|
|
6
|
+
const UC_1 = require("../UC");
|
|
7
|
+
function setupBaseApp(appObjects) {
|
|
8
|
+
const ao = appObjects.getOrCreate("BaseApp");
|
|
9
|
+
// Entity
|
|
10
|
+
Entity_1.makeBaseAppState(ao);
|
|
11
|
+
// UCs
|
|
12
|
+
UC_1.makeEditSlideTextUC(ao);
|
|
13
|
+
new UC_1.SerializeBaseAppState(ao);
|
|
14
|
+
UC_1.makeUpdateContentSizeUC(ao);
|
|
15
|
+
UC_1.makeRenderCanvasUC(ao);
|
|
16
|
+
// PMs
|
|
17
|
+
PM_1.makeIsReviewingPM(ao);
|
|
18
|
+
PM_1.makeSlideTextPM(ao);
|
|
19
|
+
PM_1.makeIsAuthoringPM(ao);
|
|
20
|
+
PM_1.makeSlideNavigationPM(ao);
|
|
21
|
+
}
|
|
22
|
+
exports.setupBaseApp = setupBaseApp;
|
|
@@ -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("./Entity"), exports);
|
|
16
|
+
__exportStar(require("./Factories"), exports);
|
|
16
17
|
__exportStar(require("./Mocks"), exports);
|
|
17
18
|
__exportStar(require("./PM"), exports);
|
|
18
19
|
__exportStar(require("./UC"), exports);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCalloutFactory = void 0;
|
|
4
|
+
const Hideable_1 = require("../../Hideable");
|
|
5
|
+
const Label_1 = require("../../Label");
|
|
6
|
+
const OverlayColor_1 = require("../../OverlayColor");
|
|
7
|
+
const Selection_1 = require("../../Selection");
|
|
8
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
9
|
+
const Entities_1 = require("../Entities");
|
|
10
|
+
const PM_1 = require("../PM");
|
|
11
|
+
const UC_1 = require("../UC");
|
|
12
|
+
function makeCalloutFactory(appObjects) {
|
|
13
|
+
return function calloutFactory(id) {
|
|
14
|
+
const appObject = appObjects.getOrCreate(id);
|
|
15
|
+
const callout = Entities_1.makeCalloutEntity(appObject);
|
|
16
|
+
// UCs
|
|
17
|
+
UC_1.makeDeleteCalloutUC(appObject);
|
|
18
|
+
new UC_1.CalloutScaleHook(appObject);
|
|
19
|
+
new Label_1.SetCustomLabelUC(appObject);
|
|
20
|
+
new Label_1.ClearCustomLabelUC(appObject);
|
|
21
|
+
Transform3D_1.makePanTransformUC(callout.labelTransform.appObject);
|
|
22
|
+
new OverlayColor_1.SetOverlayColorUC(appObject);
|
|
23
|
+
UC_1.makeSetCalloutSizeUC(appObject);
|
|
24
|
+
UC_1.makeLookAtCameraUC(appObject);
|
|
25
|
+
// PMs
|
|
26
|
+
Label_1.makeLabelPM(appObject);
|
|
27
|
+
Transform3D_1.makeTransform3DPM(callout.rootTransform.appObject);
|
|
28
|
+
Transform3D_1.makeTransform3DPM(callout.labelTransform.appObject);
|
|
29
|
+
Hideable_1.makeIsHiddenPM(appObject);
|
|
30
|
+
OverlayColor_1.makeOverlayColorPM(appObject);
|
|
31
|
+
Selection_1.makeSelectableStatePM(appObject);
|
|
32
|
+
PM_1.makeCalloutLinePointsPM(appObject);
|
|
33
|
+
PM_1.makeCalloutOffsetPM(appObject);
|
|
34
|
+
PM_1.makeCalloutSizePM(appObject);
|
|
35
|
+
const selection = Selection_1.Selection.get(appObject.appObjectRepo);
|
|
36
|
+
if (selection) {
|
|
37
|
+
selection.addSelectable(callout.selectable);
|
|
38
|
+
}
|
|
39
|
+
return callout;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.makeCalloutFactory = makeCalloutFactory;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeCalloutRepoFactory = void 0;
|
|
4
|
+
const calloutFactory_1 = require("./calloutFactory");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
const PM_1 = require("../PM");
|
|
7
|
+
const UC_1 = require("../UC");
|
|
8
|
+
function makeCalloutRepoFactory(appObjects) {
|
|
9
|
+
return function calloutRepoFactory(id) {
|
|
10
|
+
const appObject = appObjects.getOrCreate(id);
|
|
11
|
+
const repo = Entities_1.CalloutRepo.addIfMissing(appObject);
|
|
12
|
+
repo.calloutFactory = calloutFactory_1.makeCalloutFactory(appObjects);
|
|
13
|
+
// UCs
|
|
14
|
+
UC_1.makeCreateCalloutUC(appObject);
|
|
15
|
+
PM_1.makeCalloutListPM(appObject);
|
|
16
|
+
return repo;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.makeCalloutRepoFactory = makeCalloutRepoFactory;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./calloutFactory"), exports);
|
|
14
|
+
__exportStar(require("./calloutRepoFactory"), exports);
|
|
15
|
+
__exportStar(require("./setupCallouts"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupCallouts = void 0;
|
|
4
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
5
|
+
const calloutRepoFactory_1 = require("./calloutRepoFactory");
|
|
6
|
+
const Controller_1 = require("../Controller");
|
|
7
|
+
const Entities_1 = require("../Entities");
|
|
8
|
+
const UC_1 = require("../UC");
|
|
9
|
+
function setupCallouts(appObjects) {
|
|
10
|
+
const calloutsAO = appObjects.getOrCreate("Callouts");
|
|
11
|
+
const globals = Entities_1.makeCalloutGlobals(calloutsAO);
|
|
12
|
+
globals.calloutRepoFactory = calloutRepoFactory_1.makeCalloutRepoFactory(appObjects);
|
|
13
|
+
// UCs
|
|
14
|
+
UC_1.makeTryPanLabelUC(calloutsAO);
|
|
15
|
+
UC_1.makeTryAddCalloutUC(calloutsAO);
|
|
16
|
+
new UC_1.SerializeCallouts(calloutsAO);
|
|
17
|
+
UC_1.makeDeleteAllCalloutsUC(calloutsAO);
|
|
18
|
+
// Controllers
|
|
19
|
+
new Controller_1.MouseAddCalloutMC(calloutsAO);
|
|
20
|
+
new Controller_1.TouchAddCalloutTC(calloutsAO);
|
|
21
|
+
new Transform3D_1.TryMousePanTransformMC(calloutsAO);
|
|
22
|
+
new Transform3D_1.TryTouchPanTransformTC(calloutsAO);
|
|
23
|
+
}
|
|
24
|
+
exports.setupCallouts = setupCallouts;
|
|
@@ -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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupCamera";
|
|
@@ -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("./setupCamera"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupCamera = void 0;
|
|
4
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
5
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
const PM_1 = require("../PM");
|
|
8
|
+
function setupCamera(appObjects) {
|
|
9
|
+
const ao = appObjects.getOrCreate("Camera");
|
|
10
|
+
const camera = Entities_1.makeCameraEntity(ao);
|
|
11
|
+
PM_1.makeCameraPM(ao);
|
|
12
|
+
Transform3D_1.makeTransform3DPM(ao);
|
|
13
|
+
camera.transform.localPosition = new ValueObjects_1.Vector3(0, 0, -0.6);
|
|
14
|
+
}
|
|
15
|
+
exports.setupCamera = setupCamera;
|
|
@@ -12,5 +12,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./Adapters"), exports);
|
|
14
14
|
__exportStar(require("./Entities"), exports);
|
|
15
|
+
__exportStar(require("./Factories"), exports);
|
|
15
16
|
__exportStar(require("./Mocks"), exports);
|
|
16
17
|
__exportStar(require("./PM"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupChallenge";
|
|
@@ -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("./setupChallenge"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupChallenge = void 0;
|
|
4
|
+
const LabelDrop_1 = require("../../LabelDrop");
|
|
5
|
+
const ObjectPick_1 = require("../../ObjectPick");
|
|
6
|
+
const Question_1 = require("../../Question");
|
|
7
|
+
const Entities_1 = require("../Entities");
|
|
8
|
+
const PMs_1 = require("../PMs");
|
|
9
|
+
const UCs_1 = require("../UCs");
|
|
10
|
+
function setupChallenge(appObjects) {
|
|
11
|
+
const ao = appObjects.getOrCreate("Challenge");
|
|
12
|
+
// Entity
|
|
13
|
+
const challenge = Entities_1.makeChallengeEntity(ao);
|
|
14
|
+
// UCs
|
|
15
|
+
new UCs_1.SerializeChallengeUC(ao);
|
|
16
|
+
UCs_1.makeSetChallengeUC(ao);
|
|
17
|
+
UCs_1.makeShowChallengeHelpUC(ao);
|
|
18
|
+
UCs_1.makeTryChallengeAgainUC(ao);
|
|
19
|
+
// PM
|
|
20
|
+
PMs_1.makeChallengeAuthorHelpPM(ao);
|
|
21
|
+
PMs_1.makeChallengeConsumerHelpPM(ao);
|
|
22
|
+
PMs_1.makeSelectedChallengePM(ao);
|
|
23
|
+
// Register challenges
|
|
24
|
+
const question = Question_1.QuestionEntity.get(appObjects);
|
|
25
|
+
if (!question) {
|
|
26
|
+
appObjects.submitError("setupChallenge", "No QuestionEntity");
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
challenge.registerChallenge(question);
|
|
30
|
+
}
|
|
31
|
+
const labelDrop = LabelDrop_1.LabelDropRepo.get(appObjects);
|
|
32
|
+
if (!labelDrop) {
|
|
33
|
+
appObjects.submitError("setupChallenge", "No LabelDropEntity");
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
challenge.registerChallenge(labelDrop);
|
|
37
|
+
}
|
|
38
|
+
const objectPick = ObjectPick_1.ObjectPickEntity.get(appObjects);
|
|
39
|
+
if (!objectPick) {
|
|
40
|
+
appObjects.submitError("setupChallenge", "No ObjectPickEntity");
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
challenge.registerChallenge(objectPick);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.setupChallenge = setupChallenge;
|
|
@@ -4,4 +4,4 @@ export declare abstract class SetChallengeUC extends AppObjectUC {
|
|
|
4
4
|
abstract setChallenge(challenge: string): void;
|
|
5
5
|
static get(appObjects: AppObjectRepo): SetChallengeUC | undefined;
|
|
6
6
|
}
|
|
7
|
-
export declare function makeSetChallengeUC
|
|
7
|
+
export declare function makeSetChallengeUC(appObject: AppObject): SetChallengeUC;
|
|
@@ -12,6 +12,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./Controller"), exports);
|
|
14
14
|
__exportStar(require("./Entities"), exports);
|
|
15
|
+
__exportStar(require("./Factories"), exports);
|
|
15
16
|
__exportStar(require("./Mocks"), exports);
|
|
16
17
|
__exportStar(require("./PMs"), exports);
|
|
17
18
|
__exportStar(require("./Adapters"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeChannelModelFactory = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
const channelObjectFactory_1 = require("./channelObjectFactory");
|
|
6
|
+
function makeChannelModelFactory(appObjects) {
|
|
7
|
+
return function channelModelFactory(id) {
|
|
8
|
+
const ao = appObjects.getOrCreate(id);
|
|
9
|
+
const entity = Entities_1.makeChannelModelEntity(ao);
|
|
10
|
+
entity.modelObjectFactory = channelObjectFactory_1.makeChannelObjectFactory(appObjects);
|
|
11
|
+
return entity;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.makeChannelModelFactory = makeChannelModelFactory;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeChannelObjectFactory = void 0;
|
|
4
|
+
const Label_1 = require("../../Label");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
const PMs_1 = require("../PMs");
|
|
7
|
+
function makeChannelObjectFactory(appObjects) {
|
|
8
|
+
return function channelObjectFactory(id) {
|
|
9
|
+
const ao = appObjects.getOrCreate(id);
|
|
10
|
+
const channelModelEntity = Entities_1.makeChannelModelObject(ao);
|
|
11
|
+
new Label_1.ClearCustomLabelUC(ao);
|
|
12
|
+
new Label_1.SetCustomLabelUC(ao);
|
|
13
|
+
// PM
|
|
14
|
+
PMs_1.makeChannelModelObjectPM(ao);
|
|
15
|
+
Label_1.makeLabelPM(ao);
|
|
16
|
+
return channelModelEntity;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
exports.makeChannelObjectFactory = makeChannelObjectFactory;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./channelModelFactory"), exports);
|
|
14
|
+
__exportStar(require("./channelObjectFactory"), exports);
|
|
15
|
+
__exportStar(require("./setupChannelModels"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupChannelModels = void 0;
|
|
4
|
+
const Transform3D_1 = require("../../Transform3D");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
const PMs_1 = require("../PMs");
|
|
7
|
+
const UC_1 = require("../UC");
|
|
8
|
+
const channelModelFactory_1 = require("./channelModelFactory");
|
|
9
|
+
function setupChannelModels(appObjects) {
|
|
10
|
+
const appObj = appObjects.getOrCreate("ChannelModels");
|
|
11
|
+
const repo = Entities_1.makeChannelModelRepo(appObj);
|
|
12
|
+
// UCs
|
|
13
|
+
UC_1.makeLoadChannelModelUC(appObj);
|
|
14
|
+
UC_1.makeSelectChannelModelUC(appObj);
|
|
15
|
+
Transform3D_1.makeTryPanTransformUC(appObj);
|
|
16
|
+
UC_1.makeValidateChannelModel(appObj);
|
|
17
|
+
// PMs
|
|
18
|
+
PMs_1.makeActiveModelPM(appObj);
|
|
19
|
+
PMs_1.makeActiveModelObjectListPM(appObj);
|
|
20
|
+
// Controllers
|
|
21
|
+
new Transform3D_1.TryMousePanTransformMC(appObj);
|
|
22
|
+
new Transform3D_1.TryTouchPanTransformTC(appObj);
|
|
23
|
+
repo.channelModelFactory = channelModelFactory_1.makeChannelModelFactory(appObjects);
|
|
24
|
+
}
|
|
25
|
+
exports.setupChannelModels = setupChannelModels;
|
|
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./Adapters"), exports);
|
|
14
14
|
__exportStar(require("./Controllers"), exports);
|
|
15
15
|
__exportStar(require("./Entities"), exports);
|
|
16
|
+
__exportStar(require("./Factories"), exports);
|
|
16
17
|
__exportStar(require("./Mocks"), exports);
|
|
17
18
|
__exportStar(require("./PMs"), exports);
|
|
18
19
|
__exportStar(require("./UC"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupDispatchers";
|
|
@@ -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("./setupDispatchers"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupDispatchers = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
const UC_1 = require("../UC");
|
|
6
|
+
function setupDispatchers(appObjects, hostHandler) {
|
|
7
|
+
const dispatcherAO = appObjects.getOrCreate("App Dispatcher");
|
|
8
|
+
Entities_1.makeAppDispatcher(dispatcherAO, hostHandler);
|
|
9
|
+
UC_1.makeAppIsReadyUC(dispatcherAO);
|
|
10
|
+
UC_1.makeDispatchStartZSpaceUC(dispatcherAO);
|
|
11
|
+
UC_1.makeDispatchStateChangeUC(dispatcherAO);
|
|
12
|
+
UC_1.makeDispatchStopZSpaceUC(dispatcherAO);
|
|
13
|
+
UC_1.makeGetAssetBlobURLUC(dispatcherAO);
|
|
14
|
+
UC_1.makeGetAssetFolderURLUC(dispatcherAO);
|
|
15
|
+
UC_1.makeGetAssetMetaUC(dispatcherAO);
|
|
16
|
+
UC_1.makeGetAssetsForOwnerUC(dispatcherAO);
|
|
17
|
+
UC_1.makeGetLinkedAssetsUC(dispatcherAO);
|
|
18
|
+
UC_1.makeGoToPreviousStateUC(dispatcherAO);
|
|
19
|
+
UC_1.makeGoToNextStateUC(dispatcherAO);
|
|
20
|
+
UC_1.makeHasPreviousStateUC(dispatcherAO);
|
|
21
|
+
UC_1.makeHasNextStateUC(dispatcherAO);
|
|
22
|
+
UC_1.makeIsAssetFetchedUC(dispatcherAO);
|
|
23
|
+
UC_1.makeIsZSpaceAvailableUC(dispatcherAO);
|
|
24
|
+
UC_1.makeLogUC(dispatcherAO);
|
|
25
|
+
UC_1.makeRegisterExternalStylesheetsUC(dispatcherAO);
|
|
26
|
+
UC_1.makeShowAlertUC(dispatcherAO);
|
|
27
|
+
UC_1.makeShowConfirmUC(dispatcherAO);
|
|
28
|
+
UC_1.makeShowMarkdownEditorUC(dispatcherAO);
|
|
29
|
+
UC_1.makeShowSelectModelUC(dispatcherAO);
|
|
30
|
+
UC_1.makeShowSpinnerUC(dispatcherAO);
|
|
31
|
+
UC_1.makeStateHasChangedUC(dispatcherAO);
|
|
32
|
+
UC_1.makeStateIsCompleteUC(dispatcherAO);
|
|
33
|
+
UC_1.makeSubmitResultUC(dispatcherAO);
|
|
34
|
+
}
|
|
35
|
+
exports.setupDispatchers = setupDispatchers;
|
|
@@ -12,5 +12,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./Controllers"), exports);
|
|
14
14
|
__exportStar(require("./Entities"), exports);
|
|
15
|
+
__exportStar(require("./Factories"), exports);
|
|
15
16
|
__exportStar(require("./Mocks"), exports);
|
|
16
17
|
__exportStar(require("./UC"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeGlbModelFactory = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
function makeGlbModelFactory(appObjects) {
|
|
6
|
+
return function glbModelFactory(id) {
|
|
7
|
+
const ao = appObjects.getOrCreate(id);
|
|
8
|
+
const entity = Entities_1.makeGlbModelEntity(ao);
|
|
9
|
+
return entity;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
exports.makeGlbModelFactory = makeGlbModelFactory;
|