@vived/app 4.22.0 → 4.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Components/App/Adapters/index.d.ts +4 -0
- package/lib/Components/{KeyboardInput/Mocks → App/Adapters}/index.js +4 -1
- package/lib/Components/App/Adapters/isAuthoringAdapter.d.ts +2 -0
- package/lib/Components/App/Adapters/isAuthoringAdapter.js +23 -0
- package/lib/Components/App/Adapters/isReviewingAdapter.d.ts +2 -0
- package/lib/Components/App/Adapters/isReviewingAdapter.js +23 -0
- package/lib/Components/App/Adapters/slideNavigationAdapter.d.ts +3 -0
- package/lib/Components/App/Adapters/slideNavigationAdapter.js +23 -0
- package/lib/Components/App/Adapters/slideTextAdapter.d.ts +2 -0
- package/lib/Components/App/Adapters/slideTextAdapter.js +23 -0
- package/lib/Components/App/Entity/BaseAppState.d.ts +2 -0
- package/lib/Components/App/Entity/BaseAppState.js +7 -0
- package/lib/Components/App/Mocks/IsAuthoringMock.d.ts +8 -0
- package/lib/Components/App/Mocks/IsAuthoringMock.js +15 -0
- package/lib/Components/App/Mocks/IsReviewingMock.d.ts +8 -0
- package/lib/Components/App/Mocks/IsReviewingMock.js +15 -0
- package/lib/Components/App/Mocks/SlideNavigationMock.d.ts +8 -0
- package/lib/Components/App/Mocks/SlideNavigationMock.js +15 -0
- package/lib/Components/App/Mocks/SlideTextMock.d.ts +8 -0
- package/lib/Components/App/Mocks/SlideTextMock.js +15 -0
- package/lib/Components/App/Mocks/index.d.ts +4 -0
- package/lib/Components/App/Mocks/index.js +4 -0
- package/lib/Components/App/PM/IsAuthoringPM.d.ts +2 -6
- package/lib/Components/App/PM/IsAuthoringPM.js +16 -10
- package/lib/Components/App/PM/IsReviewingPM.d.ts +2 -6
- package/lib/Components/App/PM/IsReviewingPM.js +16 -10
- package/lib/Components/App/PM/SlideNavigationPM.d.ts +12 -0
- package/lib/Components/App/PM/SlideNavigationPM.js +49 -0
- package/lib/Components/App/PM/SlideTextPM.d.ts +2 -5
- package/lib/Components/App/PM/SlideTextPM.js +17 -10
- package/lib/Components/App/PM/index.d.ts +1 -1
- package/lib/Components/App/PM/index.js +1 -1
- package/lib/Components/App/index.d.ts +1 -0
- package/lib/Components/App/index.js +1 -0
- package/lib/Components/RequestHandler/UC/SetAppStateUC.d.ts +9 -2
- package/lib/Components/RequestHandler/UC/SetAppStateUC.js +35 -27
- package/package.json +1 -1
- package/lib/Components/App/PM/HasNextPreviousStatePM.d.ts +0 -15
- package/lib/Components/App/PM/HasNextPreviousStatePM.js +0 -44
- package/lib/Components/ChannelModel/Mocks/ProcessChannelModelUCMock.d.ts +0 -8
- package/lib/Components/ChannelModel/Mocks/ProcessChannelModelUCMock.js +0 -15
- package/lib/Components/ChannelModel/UC/InitializeChannelModelFromGLB.d.ts +0 -0
- package/lib/Components/ChannelModel/UC/InitializeChannelModelFromGLB.js +0 -1
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.d.ts +0 -6
- package/lib/Components/ChannelModel/UC/ProcessChannelModelUC.js +0 -9
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.d.ts +0 -9
- package/lib/Components/ChannelModel/UC/SetupChannelModelUC.js +0 -11
- package/lib/Components/HoverLabel/Mocks/index.d.ts +0 -1
- package/lib/Components/HoverLabel/Mocks/index.js +0 -13
- package/lib/Components/HoverLabel/PM/HoverLabelPM.d.ts +0 -19
- package/lib/Components/HoverLabel/PM/HoverLabelPM.js +0 -65
- package/lib/Components/KeyboardInput/Mocks/index.d.ts +0 -1
- package/lib/Components/Landmarks/Mocks/index.d.ts +0 -1
- package/lib/Components/Landmarks/Mocks/index.js +0 -13
- package/lib/Components/MouseInput/Mocks/index.d.ts +0 -1
- package/lib/Components/MouseInput/Mocks/index.js +0 -13
- package/lib/Components/Question/Mocks/index.d.ts +0 -2
- package/lib/Components/Question/Mocks/index.js +0 -14
- package/lib/Components/RequestHandler/Mocks/index.d.ts +0 -1
- package/lib/Components/RequestHandler/Mocks/index.js +0 -13
- package/lib/Components/SceneRoot/Controllers/StylusMove.d.ts +0 -14
- package/lib/Components/SceneRoot/Controllers/StylusMove.js +0 -56
- package/lib/Components/SceneRoot/Controllers/StylusScale.d.ts +0 -14
- package/lib/Components/SceneRoot/Controllers/StylusScale.js +0 -58
- package/lib/Components/Selection/Controller/StylusHoverOnAppObject.d.ts +0 -11
- package/lib/Components/Selection/Controller/StylusHoverOnAppObject.js +0 -42
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.d.ts +0 -18
- package/lib/Components/Selection/Controller/StylusPressOnAppObject.js +0 -77
- package/lib/Components/Selection/Controller/StylusSelectAppObject.d.ts +0 -11
- package/lib/Components/Selection/Controller/StylusSelectAppObject.js +0 -44
- package/lib/Components/TouchController/Mock/index.d.ts +0 -2
- package/lib/Components/TouchController/Mock/index.js +0 -14
- package/lib/Components/UndoRedo/Mocks/index.d.ts +0 -1
- package/lib/Components/UndoRedo/Mocks/index.js +0 -13
- package/lib/Components/XR/Mocks/index.d.ts +0 -2
- package/lib/Components/XR/Mocks/index.js +0 -14
- package/lib/Components/zSpace/Controllers/EmulateStylus.d.ts +0 -10
- package/lib/Components/zSpace/Controllers/EmulateStylus.js +0 -113
- package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.d.ts +0 -14
- package/lib/Components/zSpace/Controllers/ZSpaceScaleRoot.js +0 -57
- package/lib/Components/zSpace/Controllers/index.d.ts +0 -1
- package/lib/Components/zSpace/Controllers/index.js +0 -13
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.d.ts +0 -29
- package/lib/Components/zSpace/Entities/ZSpaceStylusEntity.js +0 -115
- package/lib/Components/zSpace/Mocks/index.d.ts +0 -1
- package/lib/Components/zSpace/Mocks/index.js +0 -13
- package/lib/Components/zSpace/PM/StylusColorLengthPM.d.ts +0 -13
- package/lib/Components/zSpace/PM/StylusColorLengthPM.js +0 -77
- package/lib/Components/zSpace/PM/StylusIsInUsePM.d.ts +0 -6
- package/lib/Components/zSpace/PM/StylusIsInUsePM.js +0 -42
- package/lib/Types/ChannelModelData.d.ts +0 -67
- package/lib/Types/ChannelModelData.js +0 -21
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AppObject, AppObjectPM, AppObjectRepo } from "../../../AppObject";
|
|
2
|
-
export declare abstract class StylusIsInUsePM extends AppObjectPM<boolean> {
|
|
3
|
-
static readonly type = "StylusIsInUsePM";
|
|
4
|
-
static get: (appObjects: AppObjectRepo) => StylusIsInUsePM | undefined;
|
|
5
|
-
}
|
|
6
|
-
export declare function makeStylusIsInUsePM(appObject: AppObject): StylusIsInUsePM;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.makeStylusIsInUsePM = exports.StylusIsInUsePM = void 0;
|
|
4
|
-
const AppObject_1 = require("../../../AppObject");
|
|
5
|
-
const Entities_1 = require("../Entities");
|
|
6
|
-
class StylusIsInUsePM extends AppObject_1.AppObjectPM {
|
|
7
|
-
}
|
|
8
|
-
exports.StylusIsInUsePM = StylusIsInUsePM;
|
|
9
|
-
StylusIsInUsePM.type = "StylusIsInUsePM";
|
|
10
|
-
StylusIsInUsePM.get = (appObjects) => AppObject_1.getSingletonComponent(StylusIsInUsePM.type, appObjects);
|
|
11
|
-
function makeStylusIsInUsePM(appObject) {
|
|
12
|
-
return new StylusIsInUsePMImp(appObject);
|
|
13
|
-
}
|
|
14
|
-
exports.makeStylusIsInUsePM = makeStylusIsInUsePM;
|
|
15
|
-
class StylusIsInUsePMImp extends StylusIsInUsePM {
|
|
16
|
-
constructor(appObject) {
|
|
17
|
-
super(appObject, StylusIsInUsePM.type);
|
|
18
|
-
this.onRepoChange = () => {
|
|
19
|
-
if (!this.stylus)
|
|
20
|
-
return;
|
|
21
|
-
this.doUpdateView(this.stylus.isInUse);
|
|
22
|
-
};
|
|
23
|
-
this.dispose = () => {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
super.dispose();
|
|
26
|
-
(_a = this.stylus) === null || _a === void 0 ? void 0 : _a.removeChangeObserver(this.onRepoChange);
|
|
27
|
-
(_b = this.stylus) === null || _b === void 0 ? void 0 : _b.removeOnDisposeObserver(this.dispose);
|
|
28
|
-
};
|
|
29
|
-
this.stylus = appObject.getComponent(Entities_1.ZSpaceStylusEntity.type);
|
|
30
|
-
if (this.stylus) {
|
|
31
|
-
this.stylus.addChangeObserver(this.onRepoChange);
|
|
32
|
-
this.stylus.addOnDisposeObserver(() => this.dispose());
|
|
33
|
-
this.onRepoChange();
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
this.warn("App Object does not have a ZSpace Stylus Entity");
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
vmsAreEqual(a, b) {
|
|
40
|
-
return a === b;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export interface ChannelModelDataMeshDTOv1 {
|
|
2
|
-
version: number;
|
|
3
|
-
id: string;
|
|
4
|
-
meshPaths: string[];
|
|
5
|
-
label: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ChannelModelDataMeshDTOv0 {
|
|
8
|
-
id: string;
|
|
9
|
-
meshPaths: string[];
|
|
10
|
-
label: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ChannelModelDTOv0 {
|
|
13
|
-
version: number;
|
|
14
|
-
objects: ChannelModelDataMeshDTOv0[];
|
|
15
|
-
name: string;
|
|
16
|
-
description: string;
|
|
17
|
-
bounds_min: {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
z: number;
|
|
21
|
-
};
|
|
22
|
-
bounds_max: {
|
|
23
|
-
x: number;
|
|
24
|
-
y: number;
|
|
25
|
-
z: number;
|
|
26
|
-
};
|
|
27
|
-
defaultPosition: {
|
|
28
|
-
x: number;
|
|
29
|
-
y: number;
|
|
30
|
-
z: number;
|
|
31
|
-
};
|
|
32
|
-
defaultRotation: {
|
|
33
|
-
x: number;
|
|
34
|
-
y: number;
|
|
35
|
-
z: number;
|
|
36
|
-
w: number;
|
|
37
|
-
};
|
|
38
|
-
defaultScale: number;
|
|
39
|
-
}
|
|
40
|
-
export interface ChannelModelDTOv1 {
|
|
41
|
-
version: number;
|
|
42
|
-
objects: ChannelModelDataMeshDTOv1[];
|
|
43
|
-
name: string;
|
|
44
|
-
bounds_min: {
|
|
45
|
-
x: number;
|
|
46
|
-
y: number;
|
|
47
|
-
z: number;
|
|
48
|
-
};
|
|
49
|
-
bounds_max: {
|
|
50
|
-
x: number;
|
|
51
|
-
y: number;
|
|
52
|
-
z: number;
|
|
53
|
-
};
|
|
54
|
-
defaultPosition: {
|
|
55
|
-
x: number;
|
|
56
|
-
y: number;
|
|
57
|
-
z: number;
|
|
58
|
-
};
|
|
59
|
-
defaultRotation: {
|
|
60
|
-
x: number;
|
|
61
|
-
y: number;
|
|
62
|
-
z: number;
|
|
63
|
-
w: number;
|
|
64
|
-
};
|
|
65
|
-
defaultScale: number;
|
|
66
|
-
}
|
|
67
|
-
export declare function convertChannelModelDataV0toV1(v0: ChannelModelDTOv0): ChannelModelDTOv1;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertChannelModelDataV0toV1 = void 0;
|
|
4
|
-
function convertChannelModelDataV0toV1(v0) {
|
|
5
|
-
const { objects, name, bounds_max, bounds_min, defaultPosition, defaultRotation, defaultScale } = v0;
|
|
6
|
-
const objectsV2 = objects.map(obj => {
|
|
7
|
-
const { id, label, meshPaths } = obj;
|
|
8
|
-
return {
|
|
9
|
-
version: 1,
|
|
10
|
-
id, label, meshPaths
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
version: 1,
|
|
15
|
-
objects: objectsV2,
|
|
16
|
-
name,
|
|
17
|
-
bounds_max,
|
|
18
|
-
bounds_min, defaultPosition, defaultRotation, defaultScale
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
exports.convertChannelModelDataV0toV1 = convertChannelModelDataV0toV1;
|