@vived/app 2.18.0 → 2.18.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/Entities/TouchInput.js +8 -4
- package/package.json +1 -1
- package/lib/Core/BaseApp/Boundary.d.ts +0 -49
- package/lib/Core/BaseApp/Boundary.js +0 -2
- package/lib/Core/BaseApp/Entity.d.ts +0 -11
- package/lib/Core/BaseApp/Entity.js +0 -2
- package/lib/Core/BaseApp/Errors/ErrorDuplicateSystemName.d.ts +0 -3
- package/lib/Core/BaseApp/Errors/ErrorDuplicateSystemName.js +0 -12
- package/lib/Core/BaseApp/Errors/ErrorNoHostHandler.d.ts +0 -3
- package/lib/Core/BaseApp/Errors/ErrorNoHostHandler.js +0 -10
- package/lib/Core/BaseApp/Errors/ErrorUnsupportedVersionNumber.d.ts +0 -3
- package/lib/Core/BaseApp/Errors/ErrorUnsupportedVersionNumber.js +0 -10
- package/lib/Core/BaseApp/Errors/index.d.ts +0 -3
- package/lib/Core/BaseApp/Errors/index.js +0 -15
- package/lib/Core/BaseApp/UseCase.d.ts +0 -43
- package/lib/Core/BaseApp/UseCase.js +0 -250
- package/lib/Core/BaseAppState/Boundary.d.ts +0 -14
- package/lib/Core/BaseAppState/Boundary.js +0 -2
- package/lib/Core/BaseAppState/Entity.d.ts +0 -5
- package/lib/Core/BaseAppState/Entity.js +0 -2
- package/lib/Core/BaseAppState/UseCase.d.ts +0 -16
- package/lib/Core/BaseAppState/UseCase.js +0 -54
- package/lib/Core/BaseAppState/UseCase_Imp.d.ts +0 -16
- package/lib/Core/BaseAppState/UseCase_Imp.js +0 -54
- package/lib/Core/DevicePreview/DevicePreviewUC_Imp.d.ts +0 -16
- package/lib/Core/DevicePreview/DevicePreviewUC_Imp.js +0 -56
- package/lib/Core/DevicePreview/boundary.d.ts +0 -14
- package/lib/Core/DevicePreview/boundary.js +0 -2
- package/lib/Core/DevicePreview/entity.d.ts +0 -5
- package/lib/Core/DevicePreview/entity.js +0 -2
- package/lib/Core/DispatchToHost/Entity.d.ts +0 -4
- package/lib/Core/DispatchToHost/Entity.js +0 -2
- package/lib/Core/DispatchToHost/UseCase.d.ts +0 -12
- package/lib/Core/DispatchToHost/UseCase.js +0 -70
- package/lib/Core/DispatchToHost/boundary.d.ts +0 -9
- package/lib/Core/DispatchToHost/boundary.js +0 -2
- package/lib/Core/Serilization/Boundary.d.ts +0 -20
- package/lib/Core/Serilization/Boundary.js +0 -2
- package/lib/Core/Serilization/Entity.d.ts +0 -3
- package/lib/Core/Serilization/Entity.js +0 -2
- package/lib/Core/Serilization/ErrorDuplicateSystemName.d.ts +0 -3
- package/lib/Core/Serilization/ErrorDuplicateSystemName.js +0 -12
- package/lib/Core/Serilization/ErrorUnsupportedVersionNumber.d.ts +0 -3
- package/lib/Core/Serilization/ErrorUnsupportedVersionNumber.js +0 -10
- package/lib/Core/Serilization/Errors.d.ts +0 -6
- package/lib/Core/Serilization/Errors.js +0 -19
- package/lib/Core/Serilization/UseCase.d.ts +0 -10
- package/lib/Core/Serilization/UseCase.js +0 -52
- package/lib/Core/Serilization/UseCase_Imp.d.ts +0 -10
- package/lib/Core/Serilization/UseCase_Imp.js +0 -51
- package/lib/Core/index.d.ts +0 -3
- package/lib/Core/index.js +0 -19
- package/lib/Entities/Color.d.ts +0 -20
- package/lib/Entities/Color.js +0 -59
- package/lib/Entities/LineSegment2D.d.ts +0 -11
- package/lib/Entities/LineSegment2D.js +0 -70
- package/lib/Entities/MouseSceneInput.d.ts +0 -15
- package/lib/Entities/MouseSceneInput.js +0 -109
- package/lib/Entities/OrbitCamera.d.ts +0 -76
- package/lib/Entities/OrbitCamera.js +0 -243
- package/lib/Entities/ParametricLine.d.ts +0 -29
- package/lib/Entities/ParametricLine.js +0 -79
- package/lib/Entities/ParametricPlane.d.ts +0 -20
- package/lib/Entities/ParametricPlane.js +0 -63
- package/lib/Entities/Vector2.d.ts +0 -21
- package/lib/Entities/Vector2.js +0 -83
- package/lib/Entities/Vector3.d.ts +0 -19
- package/lib/Entities/Vector3.js +0 -75
- package/lib/Interface/Controllers/appHandler.d.ts +0 -12
- package/lib/Interface/Controllers/appHandler.js +0 -94
- package/lib/Interface/Controllers/defaultAppHanlderFunctions.d.ts +0 -3
- package/lib/Interface/Controllers/defaultAppHanlderFunctions.js +0 -31
- package/lib/Interface/Controllers/dispatchStateChange.d.ts +0 -2
- package/lib/Interface/Controllers/dispatchStateChange.js +0 -10
- package/lib/Interface/Controllers/index.d.ts +0 -9
- package/lib/Interface/Controllers/index.js +0 -21
- package/lib/Interface/Controllers/makeAppHandler.d.ts +0 -12
- package/lib/Interface/Controllers/makeAppHandler.js +0 -96
- package/lib/Interface/Controllers/setDevicePreview.d.ts +0 -2
- package/lib/Interface/Controllers/setDevicePreview.js +0 -14
- package/lib/Interface/Controllers/setIsAuthoring.d.ts +0 -2
- package/lib/Interface/Controllers/setIsAuthoring.js +0 -14
- package/lib/Interface/Controllers/setState.d.ts +0 -2
- package/lib/Interface/Controllers/setState.js +0 -21
- package/lib/Interface/Controllers/showBabylonInspector.d.ts +0 -2
- package/lib/Interface/Controllers/showBabylonInspector.js +0 -9
- package/lib/Interface/Controllers/startApp.d.ts +0 -1
- package/lib/Interface/Controllers/startApp.js +0 -9
- package/lib/Interface/Controllers/stopApp.d.ts +0 -2
- package/lib/Interface/Controllers/stopApp.js +0 -10
- package/lib/Interface/PresentationManagers/DevicePreviewPM.d.ts +0 -13
- package/lib/Interface/PresentationManagers/DevicePreviewPM.js +0 -25
- package/lib/Interface/PresentationManagers/IsAuthoringPM.d.ts +0 -10
- package/lib/Interface/PresentationManagers/IsAuthoringPM.js +0 -23
- package/lib/Interface/PresentationManagers/ShowBabylonInspectorPM.d.ts +0 -10
- package/lib/Interface/PresentationManagers/ShowBabylonInspectorPM.js +0 -23
- package/lib/Interface/PresentationManagers/index.d.ts +0 -3
- package/lib/Interface/PresentationManagers/index.js +0 -15
- package/lib/Interface/appHandler.d.ts +0 -12
- package/lib/Interface/appHandler.js +0 -94
- package/lib/Interface/index.d.ts +0 -2
- package/lib/Interface/index.js +0 -14
- package/lib/PresentationManagers/OrbitCameraPM.d.ts +0 -14
- package/lib/PresentationManagers/OrbitCameraPM.js +0 -31
- package/lib/UseCases/LerpOrbitCamera.d.ts +0 -36
- package/lib/UseCases/LerpOrbitCamera.js +0 -71
- package/lib/UseCases/OrbitCamera/LerpOrbitCamera.d.ts +0 -36
- package/lib/UseCases/OrbitCamera/LerpOrbitCamera.js +0 -71
- package/lib/UseCases/OrbitCamera/PixelDolly_OrbitCamera.d.ts +0 -9
- package/lib/UseCases/OrbitCamera/PixelDolly_OrbitCamera.js +0 -31
- package/lib/UseCases/OrbitCamera/PixelPlanePan_OrbitCamera.d.ts +0 -10
- package/lib/UseCases/OrbitCamera/PixelPlanePan_OrbitCamera.js +0 -31
- package/lib/UseCases/OrbitCamera/SerializeOrbitCamera.d.ts +0 -22
- package/lib/UseCases/OrbitCamera/SerializeOrbitCamera.js +0 -81
- package/lib/UseCases/OrbitCamera/index.d.ts +0 -4
- package/lib/UseCases/OrbitCamera/index.js +0 -16
- package/lib/UseCases/SerializeCamera.d.ts +0 -21
- package/lib/UseCases/SerializeCamera.js +0 -59
- package/lib/UseCases/SerializeOrbitCamera.d.ts +0 -21
- package/lib/UseCases/SerializeOrbitCamera.js +0 -59
- package/lib/UseCases/SerializedCamDemo.d.ts +0 -0
- package/lib/UseCases/SerializedCamDemo.js +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
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("./PixelPlanePan_OrbitCamera"), exports);
|
|
14
|
-
__exportStar(require("./LerpOrbitCamera"), exports);
|
|
15
|
-
__exportStar(require("./SerializeOrbitCamera"), exports);
|
|
16
|
-
__exportStar(require("./PixelDolly_OrbitCamera"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OrbitCamera, SerializedSystem, StateMachine } from "../Entities";
|
|
2
|
-
export declare class SerializedCamera implements SerializedSystem {
|
|
3
|
-
name: string;
|
|
4
|
-
seriliziationVersion: number;
|
|
5
|
-
private orbitCamera;
|
|
6
|
-
private stateMachine;
|
|
7
|
-
private defaultState?;
|
|
8
|
-
getSystemState(): object;
|
|
9
|
-
applySystemState(serializedState: object, version: number, transitionTime: number): void;
|
|
10
|
-
applyDefaultState(transitionDuration: number): void;
|
|
11
|
-
private applyV1Data;
|
|
12
|
-
constructor(orbitCamera: OrbitCamera, stateMachine: StateMachine, defaultState?: CameraDataV1);
|
|
13
|
-
}
|
|
14
|
-
export interface CameraDataV1 {
|
|
15
|
-
alpha: number;
|
|
16
|
-
beta: number;
|
|
17
|
-
radius: number;
|
|
18
|
-
target_x: number;
|
|
19
|
-
target_y: number;
|
|
20
|
-
target_z: number;
|
|
21
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SerializedCamera = void 0;
|
|
4
|
-
const _1 = require(".");
|
|
5
|
-
const Entities_1 = require("../Entities");
|
|
6
|
-
class SerializedCamera {
|
|
7
|
-
constructor(orbitCamera, stateMachine, defaultState) {
|
|
8
|
-
this.name = "orbitCamera";
|
|
9
|
-
this.seriliziationVersion = 1;
|
|
10
|
-
this.orbitCamera = orbitCamera;
|
|
11
|
-
this.stateMachine = stateMachine;
|
|
12
|
-
this.defaultState = defaultState;
|
|
13
|
-
stateMachine.registerSerializedSystem(this);
|
|
14
|
-
}
|
|
15
|
-
getSystemState() {
|
|
16
|
-
const data = {
|
|
17
|
-
alpha: this.orbitCamera.alpha,
|
|
18
|
-
beta: this.orbitCamera.beta,
|
|
19
|
-
radius: this.orbitCamera.radius,
|
|
20
|
-
target_x: this.orbitCamera.target.x,
|
|
21
|
-
target_y: this.orbitCamera.target.y,
|
|
22
|
-
target_z: this.orbitCamera.target.z,
|
|
23
|
-
};
|
|
24
|
-
return data;
|
|
25
|
-
}
|
|
26
|
-
applySystemState(serializedState, version, transitionTime) {
|
|
27
|
-
try {
|
|
28
|
-
if (version === 1) {
|
|
29
|
-
const castState = serializedState;
|
|
30
|
-
this.applyV1Data(castState, transitionTime);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
console.warn(`[SerializedCamera] Unsupported version number ${version}. Defaulting`);
|
|
34
|
-
this.applyDefaultState(transitionTime);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) {
|
|
38
|
-
console.warn(`[SerializedCamera] Caught when deserializing ${e}. Defaulting`);
|
|
39
|
-
this.applyDefaultState(transitionTime);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
applyDefaultState(transitionDuration) {
|
|
43
|
-
if (this.defaultState) {
|
|
44
|
-
this.applyV1Data(this.defaultState, transitionDuration);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
applyV1Data(data, transitionTime) {
|
|
48
|
-
const { alpha, beta, radius, target_x, target_y, target_z } = data;
|
|
49
|
-
const lerpParams = {
|
|
50
|
-
duration: transitionTime,
|
|
51
|
-
finalRadius: radius,
|
|
52
|
-
finalBeta: beta,
|
|
53
|
-
finalAlpha: alpha,
|
|
54
|
-
finalTarget: new Entities_1.Vector3(target_x, target_y, target_z),
|
|
55
|
-
};
|
|
56
|
-
new _1.LerpOrbitCamera(this.orbitCamera, this.stateMachine.transitionEaseFunction, lerpParams);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.SerializedCamera = SerializedCamera;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OrbitCamera, SerializedSystem, StateMachine } from "../Entities";
|
|
2
|
-
export declare class SerializedOrbitCamera implements SerializedSystem {
|
|
3
|
-
name: string;
|
|
4
|
-
seriliziationVersion: number;
|
|
5
|
-
private orbitCamera;
|
|
6
|
-
private stateMachine;
|
|
7
|
-
private defaultState?;
|
|
8
|
-
getSystemState(): object;
|
|
9
|
-
applySystemState(serializedState: object, version: number, transitionTime: number): void;
|
|
10
|
-
applyDefaultState(transitionDuration: number): void;
|
|
11
|
-
private applyV1Data;
|
|
12
|
-
constructor(orbitCamera: OrbitCamera, stateMachine: StateMachine, defaultState?: CameraDataV1);
|
|
13
|
-
}
|
|
14
|
-
export interface CameraDataV1 {
|
|
15
|
-
alpha: number;
|
|
16
|
-
beta: number;
|
|
17
|
-
radius: number;
|
|
18
|
-
target_x: number;
|
|
19
|
-
target_y: number;
|
|
20
|
-
target_z: number;
|
|
21
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SerializedOrbitCamera = void 0;
|
|
4
|
-
const _1 = require(".");
|
|
5
|
-
const Entities_1 = require("../Entities");
|
|
6
|
-
class SerializedOrbitCamera {
|
|
7
|
-
constructor(orbitCamera, stateMachine, defaultState) {
|
|
8
|
-
this.name = "orbitCamera";
|
|
9
|
-
this.seriliziationVersion = 1;
|
|
10
|
-
this.orbitCamera = orbitCamera;
|
|
11
|
-
this.stateMachine = stateMachine;
|
|
12
|
-
this.defaultState = defaultState;
|
|
13
|
-
stateMachine.registerSerializedSystem(this);
|
|
14
|
-
}
|
|
15
|
-
getSystemState() {
|
|
16
|
-
const data = {
|
|
17
|
-
alpha: this.orbitCamera.alpha,
|
|
18
|
-
beta: this.orbitCamera.beta,
|
|
19
|
-
radius: this.orbitCamera.radius,
|
|
20
|
-
target_x: this.orbitCamera.target.x,
|
|
21
|
-
target_y: this.orbitCamera.target.y,
|
|
22
|
-
target_z: this.orbitCamera.target.z,
|
|
23
|
-
};
|
|
24
|
-
return data;
|
|
25
|
-
}
|
|
26
|
-
applySystemState(serializedState, version, transitionTime) {
|
|
27
|
-
try {
|
|
28
|
-
if (version === 1) {
|
|
29
|
-
const castState = serializedState;
|
|
30
|
-
this.applyV1Data(castState, transitionTime);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
console.warn(`[SerializedCamera] Unsupported version number ${version}. Defaulting`);
|
|
34
|
-
this.applyDefaultState(transitionTime);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (e) {
|
|
38
|
-
console.warn(`[SerializedCamera] Caught when deserializing ${e}. Defaulting`);
|
|
39
|
-
this.applyDefaultState(transitionTime);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
applyDefaultState(transitionDuration) {
|
|
43
|
-
if (this.defaultState) {
|
|
44
|
-
this.applyV1Data(this.defaultState, transitionDuration);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
applyV1Data(data, transitionTime) {
|
|
48
|
-
const { alpha, beta, radius, target_x, target_y, target_z } = data;
|
|
49
|
-
const lerpParams = {
|
|
50
|
-
duration: transitionTime,
|
|
51
|
-
finalRadius: radius,
|
|
52
|
-
finalBeta: beta,
|
|
53
|
-
finalAlpha: alpha,
|
|
54
|
-
finalTarget: new Entities_1.Vector3(target_x, target_y, target_z),
|
|
55
|
-
};
|
|
56
|
-
new _1.LerpOrbitCamera(this.orbitCamera, this.stateMachine.transitionEaseFunction, lerpParams);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.SerializedOrbitCamera = SerializedOrbitCamera;
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|