@vived/app 4.17.4 → 4.18.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/channelModelAdapter.d.ts +3 -0
- package/lib/Components/ChannelModel/Adapters/channelModelAdapter.js +23 -0
- package/lib/Components/ChannelModel/Adapters/channelModelObjectAdapter.d.ts +3 -0
- package/lib/Components/ChannelModel/Adapters/channelModelObjectAdapter.js +23 -0
- package/lib/Components/ChannelModel/Adapters/index.d.ts +2 -0
- package/lib/Components/ChannelModel/Adapters/index.js +14 -0
- package/lib/Components/ChannelModel/Controllers/index.d.ts +1 -0
- package/lib/Components/ChannelModel/Controllers/index.js +13 -0
- package/lib/Components/ChannelModel/Controllers/setModelObjectLabel.d.ts +2 -0
- package/lib/Components/ChannelModel/Controllers/setModelObjectLabel.js +14 -0
- package/lib/Components/ChannelModel/Entities/ChannelModel.d.ts +132 -34
- package/lib/Components/ChannelModel/Entities/ChannelModel.js +138 -23
- package/lib/Components/ChannelModel/Entities/ChannelModelObject.d.ts +15 -0
- package/lib/Components/ChannelModel/Entities/ChannelModelObject.js +64 -0
- package/lib/Components/ChannelModel/Entities/ChannelModelRepo.d.ts +8 -8
- package/lib/Components/ChannelModel/Entities/ChannelModelRepo.js +29 -18
- package/lib/Components/ChannelModel/Entities/index.d.ts +1 -0
- package/lib/Components/ChannelModel/Entities/index.js +1 -0
- package/lib/Components/ChannelModel/Mocks/ChannelModelObjectPMMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ChannelModelObjectPMMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/ChannelModelPMMock.d.ts +7 -0
- package/lib/Components/ChannelModel/Mocks/ChannelModelPMMock.js +11 -0
- package/lib/Components/ChannelModel/Mocks/ProcessChannelModelUCMock.d.ts +8 -0
- package/lib/Components/ChannelModel/Mocks/ProcessChannelModelUCMock.js +15 -0
- package/lib/Components/ChannelModel/Mocks/index.d.ts +3 -0
- package/lib/Components/ChannelModel/Mocks/index.js +15 -0
- package/lib/Components/ChannelModel/PMs/ChannelModelObjectPM.d.ts +12 -0
- package/lib/Components/ChannelModel/PMs/ChannelModelObjectPM.js +60 -0
- package/lib/Components/ChannelModel/PMs/ChannelModelPM.d.ts +11 -0
- package/lib/Components/ChannelModel/PMs/ChannelModelPM.js +66 -0
- package/lib/Components/ChannelModel/PMs/index.d.ts +2 -0
- package/lib/Components/ChannelModel/PMs/index.js +14 -0
- package/lib/Components/ChannelModel/UC/InitializeChannelModelFromGLB.d.ts +0 -0
- package/lib/Components/ChannelModel/UC/InitializeChannelModelFromGLB.js +1 -0
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.d.ts +3 -4
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.js +1 -131
- package/lib/Components/ChannelModel/index.d.ts +4 -0
- package/lib/Components/ChannelModel/index.js +4 -0
- package/lib/Components/GLBModel/Entities/GblModelRepo.d.ts +9 -0
- package/lib/Components/GLBModel/Entities/GblModelRepo.js +32 -0
- package/lib/Components/GLBModel/Entities/GlbModelEntity.d.ts +26 -0
- package/lib/Components/GLBModel/Entities/GlbModelEntity.js +56 -0
- package/lib/Components/GLBModel/Entities/index.d.ts +2 -0
- package/lib/Components/GLBModel/Entities/index.js +14 -0
- package/lib/Components/GLBModel/Mocks/LoadGlbFileUCMock.d.ts +8 -0
- package/lib/Components/GLBModel/Mocks/LoadGlbFileUCMock.js +15 -0
- package/lib/Components/GLBModel/Mocks/index.d.ts +1 -0
- package/lib/Components/GLBModel/Mocks/index.js +13 -0
- package/lib/Components/GLBModel/UCs/LoadGlbFileUC.d.ts +7 -0
- package/lib/Components/GLBModel/UCs/LoadGlbFileUC.js +11 -0
- package/lib/Components/GLBModel/UCs/index.d.ts +1 -0
- package/lib/Components/GLBModel/UCs/index.js +13 -0
- package/lib/Components/GLBModel/index.d.ts +3 -0
- package/lib/Components/GLBModel/index.js +15 -0
- package/lib/Components/Landmarks/UseCases/DeleteLandmarkUC.js +3 -3
- package/lib/Components/index.d.ts +1 -0
- package/lib/Components/index.js +1 -0
- package/lib/Types/ChannelModelData.d.ts +0 -1
- package/lib/Types/index.d.ts +0 -1
- package/lib/Types/index.js +0 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoadGlbFileUC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
class LoadGlbFileUC extends AppObject_1.AppObjectUC {
|
|
6
|
+
static get(appObjects) {
|
|
7
|
+
return AppObject_1.getSingletonComponent(LoadGlbFileUC.type, appObjects);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.LoadGlbFileUC = LoadGlbFileUC;
|
|
11
|
+
LoadGlbFileUC.type = "LoadGlbFileUC";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LoadGlbFileUC";
|
|
@@ -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("./LoadGlbFileUC"), exports);
|
|
@@ -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("./Entities"), exports);
|
|
14
|
+
__exportStar(require("./Mocks"), exports);
|
|
15
|
+
__exportStar(require("./UCs"), exports);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DeleteLandmarkUC = void 0;
|
|
4
4
|
const AppObject_1 = require("../../../AppObject");
|
|
5
5
|
const Dispatcher_1 = require("../../Dispatcher");
|
|
6
|
-
const
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
7
|
const DeleteLandmarkUndoRedo_1 = require("./DeleteLandmarkUndoRedo");
|
|
8
8
|
class DeleteLandmarkUC extends AppObject_1.AppObjectUC {
|
|
9
9
|
constructor(appObject) {
|
|
@@ -14,7 +14,7 @@ class DeleteLandmarkUC extends AppObject_1.AppObjectUC {
|
|
|
14
14
|
const landmarkAppObject = this.appObjects.get(id);
|
|
15
15
|
let landmarkEntity;
|
|
16
16
|
if (landmarkAppObject) {
|
|
17
|
-
landmarkEntity =
|
|
17
|
+
landmarkEntity = Entities_1.LandmarkEntity.get(landmarkAppObject);
|
|
18
18
|
}
|
|
19
19
|
if (createUndo && landmarkEntity) {
|
|
20
20
|
new DeleteLandmarkUndoRedo_1.DeleteLandmarkUndoRedo(landmarkEntity.data, this.appObject);
|
|
@@ -27,7 +27,7 @@ class DeleteLandmarkUC extends AppObject_1.AppObjectUC {
|
|
|
27
27
|
Dispatcher_1.dispatchStateChange(this.appObjects);
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
this.landmarkRepo = appObject.getComponent(
|
|
30
|
+
this.landmarkRepo = appObject.getComponent(Entities_1.LandmarkRepo.type);
|
|
31
31
|
if (!this.landmarkRepo) {
|
|
32
32
|
this.warn("App Object does not have a Landmark Repo");
|
|
33
33
|
}
|
package/lib/Components/index.js
CHANGED
|
@@ -18,6 +18,7 @@ __exportStar(require("./ChannelModel"), exports);
|
|
|
18
18
|
__exportStar(require("./Dispatcher"), exports);
|
|
19
19
|
__exportStar(require("./Enablement"), exports);
|
|
20
20
|
__exportStar(require("./FramedScreen"), exports);
|
|
21
|
+
__exportStar(require("./GLBModel"), exports);
|
|
21
22
|
__exportStar(require("./Hideable"), exports);
|
|
22
23
|
__exportStar(require("./HoverLabel"), exports);
|
|
23
24
|
__exportStar(require("./KeyboardInput"), exports);
|
|
@@ -9,7 +9,6 @@ export interface ChannelModelDataMeshDTOv0 {
|
|
|
9
9
|
meshPaths: string[];
|
|
10
10
|
label: string;
|
|
11
11
|
}
|
|
12
|
-
export declare type ChannelModelDTO = ChannelModelDTOv0 | ChannelModelDTOv1;
|
|
13
12
|
export interface ChannelModelDTOv0 {
|
|
14
13
|
version: number;
|
|
15
14
|
objects: ChannelModelDataMeshDTOv0[];
|
package/lib/Types/index.d.ts
CHANGED
package/lib/Types/index.js
CHANGED
|
@@ -12,7 +12,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./AppBoundary"), exports);
|
|
14
14
|
__exportStar(require("./AssetMetaDTO"), exports);
|
|
15
|
-
__exportStar(require("./ChannelModelData"), exports);
|
|
16
15
|
__exportStar(require("./EaseFn"), exports);
|
|
17
16
|
__exportStar(require("./PmAdapter"), exports);
|
|
18
17
|
__exportStar(require("./ReactHookPmAdapter"), exports);
|