@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,12 @@
|
|
|
1
|
+
import { AppObject, AppObjectPM, AppObjectRepo } from "../../../AppObject";
|
|
2
|
+
export interface InspectorTabVM {
|
|
3
|
+
selectedTab: string;
|
|
4
|
+
selectedTabIndex: number;
|
|
5
|
+
tabs: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultInspectorTabVM: InspectorTabVM;
|
|
8
|
+
export declare abstract class InspectorTabPM extends AppObjectPM<InspectorTabVM> {
|
|
9
|
+
static readonly type = "InspectorTabPM";
|
|
10
|
+
static get: (appObjects: AppObjectRepo) => InspectorTabPM | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare function makeInspectorTabPM(appObject: AppObject): InspectorTabPM;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeInspectorTabPM = exports.InspectorTabPM = exports.defaultInspectorTabVM = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const InspectorTabEntity_1 = require("../Entities/InspectorTabEntity");
|
|
6
|
+
exports.defaultInspectorTabVM = {
|
|
7
|
+
selectedTab: "",
|
|
8
|
+
selectedTabIndex: 0,
|
|
9
|
+
tabs: [],
|
|
10
|
+
};
|
|
11
|
+
class InspectorTabPM extends AppObject_1.AppObjectPM {
|
|
12
|
+
}
|
|
13
|
+
exports.InspectorTabPM = InspectorTabPM;
|
|
14
|
+
InspectorTabPM.type = "InspectorTabPM";
|
|
15
|
+
InspectorTabPM.get = (appObjects) => AppObject_1.getSingletonComponent(InspectorTabPM.type, appObjects);
|
|
16
|
+
function makeInspectorTabPM(appObject) {
|
|
17
|
+
return new InspectorTabPMImp(appObject);
|
|
18
|
+
}
|
|
19
|
+
exports.makeInspectorTabPM = makeInspectorTabPM;
|
|
20
|
+
class InspectorTabPMImp extends InspectorTabPM {
|
|
21
|
+
constructor(appObject) {
|
|
22
|
+
var _a;
|
|
23
|
+
super(appObject, InspectorTabPM.type);
|
|
24
|
+
this.onAppStateChange = () => {
|
|
25
|
+
if (!this.tabEntity)
|
|
26
|
+
return;
|
|
27
|
+
this.doUpdateView({
|
|
28
|
+
selectedTab: this.tabEntity.activeTab,
|
|
29
|
+
tabs: this.tabEntity.inspectorTabs,
|
|
30
|
+
selectedTabIndex: this.tabEntity.activeTabIndex,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
(_a = this.tabEntity) === null || _a === void 0 ? void 0 : _a.addChangeObserver(this.onAppStateChange);
|
|
34
|
+
this.onAppStateChange();
|
|
35
|
+
this.appObjects.registerSingleton(this);
|
|
36
|
+
}
|
|
37
|
+
get tabEntity() {
|
|
38
|
+
return this.getCachedSingleton(InspectorTabEntity_1.InspectorTabEntity.type);
|
|
39
|
+
}
|
|
40
|
+
vmsAreEqual(a, b) {
|
|
41
|
+
if (a.selectedTab !== b.selectedTab)
|
|
42
|
+
return false;
|
|
43
|
+
if (a.selectedTabIndex !== b.selectedTabIndex)
|
|
44
|
+
return false;
|
|
45
|
+
if (a.tabs.length !== b.tabs.length)
|
|
46
|
+
return false;
|
|
47
|
+
let listsAreTheSame = true;
|
|
48
|
+
a.tabs.forEach((tabA, i) => {
|
|
49
|
+
const tabB = b.tabs[i];
|
|
50
|
+
if (tabA !== tabB)
|
|
51
|
+
listsAreTheSame = false;
|
|
52
|
+
});
|
|
53
|
+
return listsAreTheSame;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InspectorTabPM";
|
|
@@ -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("./InspectorTabPM"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupMouseInput";
|
|
@@ -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("./setupMouseInput"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupMouseInput = void 0;
|
|
4
|
+
const Entities_1 = require("../Entities");
|
|
5
|
+
function setupMouseInput(appObject) {
|
|
6
|
+
const ao = appObject.getOrCreate("MouseInput");
|
|
7
|
+
Entities_1.makeMouseInput(ao);
|
|
8
|
+
}
|
|
9
|
+
exports.setupMouseInput = setupMouseInput;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OverlayColorEnums } from "../Entities/OverlayColor";
|
|
2
|
+
import { SerializedSystem } from "../../StateMachine/Entities/StateMachineEntity";
|
|
3
|
+
import { AppObjectUC, AppObject } from "../../../AppObject";
|
|
4
|
+
export declare abstract class SerializeOverlayColoredObjects extends AppObjectUC implements SerializedSystem {
|
|
5
|
+
static readonly type = "SerializeOverlayColoredObjects";
|
|
6
|
+
name: string;
|
|
7
|
+
abstract seriliziationVersion: number;
|
|
8
|
+
abstract getSystemState(): object;
|
|
9
|
+
abstract applySystemState(state: object, version: number, transitionDuration: number): void;
|
|
10
|
+
abstract applyDefaultState(transitionDuration: number): void;
|
|
11
|
+
}
|
|
12
|
+
export declare function makeSerializeOverlayColoredObjects(appObject: AppObject): SerializeOverlayColoredObjects;
|
|
13
|
+
export declare class SerializeOverlayColoredObjectsImp extends SerializeOverlayColoredObjects {
|
|
14
|
+
seriliziationVersion: number;
|
|
15
|
+
getSystemState(): object;
|
|
16
|
+
applySystemState(state: object, version: number, durationS: number): Promise<void> | void;
|
|
17
|
+
private applyStateV1;
|
|
18
|
+
applyDefaultState(): void;
|
|
19
|
+
constructor(appObj: AppObject);
|
|
20
|
+
}
|
|
21
|
+
export interface SerializedOverlayColoredObjectV1 {
|
|
22
|
+
id: string;
|
|
23
|
+
overlayColor: OverlayColorEnums;
|
|
24
|
+
}
|
|
25
|
+
export interface SerializedOverlayColoredObjectsV1 {
|
|
26
|
+
overlayColoredObjects: SerializedOverlayColoredObjectV1[];
|
|
27
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SerializeOverlayColoredObjectsImp = exports.makeSerializeOverlayColoredObjects = exports.SerializeOverlayColoredObjects = void 0;
|
|
4
|
+
const OverlayColor_1 = require("../Entities/OverlayColor");
|
|
5
|
+
const StateMachineEntity_1 = require("../../StateMachine/Entities/StateMachineEntity");
|
|
6
|
+
const AppObject_1 = require("../../../AppObject");
|
|
7
|
+
class SerializeOverlayColoredObjects extends AppObject_1.AppObjectUC {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.name = "overlaycolored-objects";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.SerializeOverlayColoredObjects = SerializeOverlayColoredObjects;
|
|
14
|
+
SerializeOverlayColoredObjects.type = "SerializeOverlayColoredObjects";
|
|
15
|
+
function makeSerializeOverlayColoredObjects(appObject) {
|
|
16
|
+
return new SerializeOverlayColoredObjectsImp(appObject);
|
|
17
|
+
}
|
|
18
|
+
exports.makeSerializeOverlayColoredObjects = makeSerializeOverlayColoredObjects;
|
|
19
|
+
class SerializeOverlayColoredObjectsImp extends SerializeOverlayColoredObjects {
|
|
20
|
+
constructor(appObj) {
|
|
21
|
+
super(appObj, SerializeOverlayColoredObjects.type);
|
|
22
|
+
this.seriliziationVersion = 1;
|
|
23
|
+
const stateMachine = this.appObjects.getSingleton(StateMachineEntity_1.StateMachineEntity.type);
|
|
24
|
+
if (stateMachine) {
|
|
25
|
+
stateMachine.registerSerializedSystem(this);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.warn("Unable to find StateMachineEntity");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
getSystemState() {
|
|
32
|
+
const overlayColoredObjects = [];
|
|
33
|
+
const allOverlayColors = this.appObjects.getAllComponents(OverlayColor_1.OverlayColor.type);
|
|
34
|
+
allOverlayColors.forEach((overlayColor) => {
|
|
35
|
+
if (overlayColor.overlayColor !== OverlayColor_1.OverlayColorEnums.NONE)
|
|
36
|
+
overlayColoredObjects.push({
|
|
37
|
+
id: overlayColor.appObject.id,
|
|
38
|
+
overlayColor: overlayColor.overlayColor,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const state = {
|
|
42
|
+
overlayColoredObjects,
|
|
43
|
+
};
|
|
44
|
+
return state;
|
|
45
|
+
}
|
|
46
|
+
applySystemState(state, version, durationS) {
|
|
47
|
+
if (version === 1) {
|
|
48
|
+
return this.applyStateV1(state, durationS);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
this.applyDefaultState();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
applyStateV1(state, durationS) {
|
|
55
|
+
const { overlayColoredObjects } = state;
|
|
56
|
+
if (!overlayColoredObjects) {
|
|
57
|
+
this.applyDefaultState();
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
// Create a Map for faster lookups
|
|
61
|
+
const overlayLookup = new Map();
|
|
62
|
+
overlayColoredObjects.forEach((overlayColorObj) => {
|
|
63
|
+
overlayLookup.set(overlayColorObj.id, overlayColorObj.overlayColor);
|
|
64
|
+
});
|
|
65
|
+
const allOverlayColors = this.appObjects.getAllComponents(OverlayColor_1.OverlayColor.type);
|
|
66
|
+
allOverlayColors.forEach((overlayColor) => {
|
|
67
|
+
var _a;
|
|
68
|
+
const appObjectId = overlayColor.appObject.id;
|
|
69
|
+
overlayColor.overlayColor =
|
|
70
|
+
(_a = overlayLookup.get(appObjectId)) !== null && _a !== void 0 ? _a : OverlayColor_1.OverlayColorEnums.NONE;
|
|
71
|
+
});
|
|
72
|
+
overlayLookup.forEach((desiredColor, remainingObjectId) => {
|
|
73
|
+
const appObject = this.appObjects.get(remainingObjectId);
|
|
74
|
+
if (appObject) {
|
|
75
|
+
const overlayColor = OverlayColor_1.OverlayColor.addIfMissing(appObject);
|
|
76
|
+
overlayColor.overlayColor = desiredColor;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
applyDefaultState() {
|
|
81
|
+
const allOverlayColors = this.appObjects.getAllComponents(OverlayColor_1.OverlayColor.type);
|
|
82
|
+
allOverlayColors.forEach((overlayColor) => {
|
|
83
|
+
overlayColor.overlayColor = OverlayColor_1.OverlayColorEnums.NONE;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.SerializeOverlayColoredObjectsImp = SerializeOverlayColoredObjectsImp;
|
|
@@ -11,3 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./SetOverlayColorUC"), exports);
|
|
14
|
+
__exportStar(require("./SerializeOverlayColoredObjects"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { DragScaleSceneRootUC } from "../UC";
|
|
4
|
+
export declare class DragScaleSceneRootUcMock extends DragScaleSceneRootUC {
|
|
5
|
+
doScale: jest.Mock<any, any>;
|
|
6
|
+
initializeScale: jest.Mock<any, any>;
|
|
7
|
+
finishScaling: jest.Mock<any, any>;
|
|
8
|
+
constructor(appObject: AppObject);
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DragScaleSceneRootUcMock = void 0;
|
|
4
|
+
const UC_1 = require("../UC");
|
|
5
|
+
class DragScaleSceneRootUcMock extends UC_1.DragScaleSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, UC_1.DragScaleSceneRootUC.type);
|
|
8
|
+
this.doScale = jest.fn();
|
|
9
|
+
this.initializeScale = jest.fn();
|
|
10
|
+
this.finishScaling = jest.fn();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.DragScaleSceneRootUcMock = DragScaleSceneRootUcMock;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { OrbitSceneRootUC } from "../UC/OrbitSceneRoot";
|
|
4
|
+
export declare class OrbitSceneRootUcMock extends OrbitSceneRootUC {
|
|
5
|
+
sensitivity: number;
|
|
6
|
+
doOrbit: jest.Mock<any, any>;
|
|
7
|
+
initializeOrbit: jest.Mock<any, any>;
|
|
8
|
+
finishOrbit: jest.Mock<any, any>;
|
|
9
|
+
cancelOrbit: jest.Mock<any, any>;
|
|
10
|
+
constructor(appObject: AppObject);
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrbitSceneRootUcMock = void 0;
|
|
4
|
+
const OrbitSceneRoot_1 = require("../UC/OrbitSceneRoot");
|
|
5
|
+
class OrbitSceneRootUcMock extends OrbitSceneRoot_1.OrbitSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, OrbitSceneRoot_1.OrbitSceneRootUC.type);
|
|
8
|
+
this.sensitivity = 1;
|
|
9
|
+
this.doOrbit = jest.fn();
|
|
10
|
+
this.initializeOrbit = jest.fn();
|
|
11
|
+
this.finishOrbit = jest.fn();
|
|
12
|
+
this.cancelOrbit = jest.fn();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.OrbitSceneRootUcMock = OrbitSceneRootUcMock;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { AppObject } from "../../../AppObject";
|
|
3
|
+
import { PanSceneRootUC } from "../UC/PanSceneRoot";
|
|
4
|
+
export declare class PanSceneRootUcMock extends PanSceneRootUC {
|
|
5
|
+
doPan: jest.Mock<any, any>;
|
|
6
|
+
initializePan: jest.Mock<any, any>;
|
|
7
|
+
finishPan: jest.Mock<any, any>;
|
|
8
|
+
cancelPan: jest.Mock<any, any>;
|
|
9
|
+
constructor(appObject: AppObject);
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PanSceneRootUcMock = void 0;
|
|
4
|
+
const PanSceneRoot_1 = require("../UC/PanSceneRoot");
|
|
5
|
+
class PanSceneRootUcMock extends PanSceneRoot_1.PanSceneRootUC {
|
|
6
|
+
constructor(appObject) {
|
|
7
|
+
super(appObject, PanSceneRoot_1.PanSceneRootUC.type);
|
|
8
|
+
this.doPan = jest.fn();
|
|
9
|
+
this.initializePan = jest.fn();
|
|
10
|
+
this.finishPan = jest.fn();
|
|
11
|
+
this.cancelPan = jest.fn();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PanSceneRootUcMock = PanSceneRootUcMock;
|
|
@@ -0,0 +1,14 @@
|
|
|
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("./OrbitSceneRootUcMock"), exports);
|
|
14
|
+
__exportStar(require("./PanSceneRootUcMock"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AppObject, AppObjectController } from "../../../AppObject";
|
|
2
|
+
import { KeyboardController } from "../../KeyboardInput/Entities/KeyboardInput";
|
|
3
|
+
export declare class KeyboardToClearSelection extends AppObjectController implements KeyboardController {
|
|
4
|
+
static type: string;
|
|
5
|
+
private get selection();
|
|
6
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
7
|
+
constructor(appObject: AppObject);
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyboardToClearSelection = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const KeyboardInput_1 = require("../../KeyboardInput/Entities/KeyboardInput");
|
|
6
|
+
const Entities_1 = require("../Entities");
|
|
7
|
+
class KeyboardToClearSelection extends AppObject_1.AppObjectController {
|
|
8
|
+
constructor(appObject) {
|
|
9
|
+
super(appObject, KeyboardToClearSelection.type);
|
|
10
|
+
this.onKeyDown = (e) => {
|
|
11
|
+
if (e.code === "Escape" && this.selection) {
|
|
12
|
+
this.selection.selectedObjectId = null;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const keyboardInput = KeyboardInput_1.KeyboardInputEntity.get(this.appObjects);
|
|
16
|
+
keyboardInput === null || keyboardInput === void 0 ? void 0 : keyboardInput.registerController(this);
|
|
17
|
+
}
|
|
18
|
+
get selection() {
|
|
19
|
+
return this.getCachedSingleton(Entities_1.Selection.type);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.KeyboardToClearSelection = KeyboardToClearSelection;
|
|
23
|
+
KeyboardToClearSelection.type = "KeyboardToClearSelection";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./setupSelection";
|
|
@@ -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("./setupSelection"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupSelection = void 0;
|
|
4
|
+
const Controller_1 = require("../Controller");
|
|
5
|
+
const Entities_1 = require("../Entities");
|
|
6
|
+
const PM_1 = require("../PM");
|
|
7
|
+
const UC_1 = require("../UC");
|
|
8
|
+
function setupSelection(appObjects) {
|
|
9
|
+
const appObj = appObjects.getOrCreate("Selection");
|
|
10
|
+
// Entities
|
|
11
|
+
Entities_1.makeSelection(appObj);
|
|
12
|
+
// UCs
|
|
13
|
+
UC_1.makeHoverAppObject(appObj);
|
|
14
|
+
UC_1.makePressAppObject(appObj);
|
|
15
|
+
UC_1.makeSelectAppObject(appObj);
|
|
16
|
+
// PMs
|
|
17
|
+
PM_1.makeSelectedObjectPM(appObj);
|
|
18
|
+
// Controllers
|
|
19
|
+
new Controller_1.MouseHoverOnAppObject(appObj);
|
|
20
|
+
new Controller_1.MousePressOnAppObject(appObj);
|
|
21
|
+
new Controller_1.TouchPressOnAppObject(appObj);
|
|
22
|
+
new Controller_1.MouseSelectAppObject(appObj);
|
|
23
|
+
new Controller_1.TapToSelectAppObject(appObj);
|
|
24
|
+
new Controller_1.KeyboardToClearSelection(appObj);
|
|
25
|
+
return appObj;
|
|
26
|
+
}
|
|
27
|
+
exports.setupSelection = setupSelection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./stickTargetAdapter";
|
|
@@ -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("./stickTargetAdapter"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stickTargetAdapter = void 0;
|
|
4
|
+
const StickTargetPM_1 = require("../PMs/StickTargetPM");
|
|
5
|
+
exports.stickTargetAdapter = {
|
|
6
|
+
defaultVM: StickTargetPM_1.defaultStickTargetVM,
|
|
7
|
+
subscribe: (id, appObjects, setVM) => {
|
|
8
|
+
if (!id)
|
|
9
|
+
return;
|
|
10
|
+
const pm = StickTargetPM_1.StickTargetPM.get(id, appObjects);
|
|
11
|
+
if (!pm) {
|
|
12
|
+
appObjects.submitError("stickTargetAdapter", "Unable to find StickTargetPM");
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
pm.addView(setVM);
|
|
16
|
+
},
|
|
17
|
+
unsubscribe: (id, appObjects, setVM) => {
|
|
18
|
+
const pm = StickTargetPM_1.StickTargetPM.get(id, appObjects);
|
|
19
|
+
if (pm) {
|
|
20
|
+
pm.removeView(setVM);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppObject, AppObjectController } from "../../../AppObject";
|
|
2
|
+
import { MouseController, MouseInputEvent } from "../../MouseInput";
|
|
3
|
+
export declare class DoubleClickToStickMC extends AppObjectController implements MouseController {
|
|
4
|
+
static type: string;
|
|
5
|
+
readonly maxClickTimeMS = 300;
|
|
6
|
+
readonly maxClickDistancePx = 5;
|
|
7
|
+
private initialClickPos;
|
|
8
|
+
private initialClickTime;
|
|
9
|
+
private clickCount;
|
|
10
|
+
private get mouseInput();
|
|
11
|
+
private get tryStickSceneMesh();
|
|
12
|
+
onClick: (e: MouseInputEvent) => void;
|
|
13
|
+
private cancelDoubleClick;
|
|
14
|
+
constructor(appObject: AppObject);
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DoubleClickToStickMC = void 0;
|
|
4
|
+
const AppObject_1 = require("../../../AppObject");
|
|
5
|
+
const ValueObjects_1 = require("../../../ValueObjects");
|
|
6
|
+
const MouseInput_1 = require("../../MouseInput");
|
|
7
|
+
const TryStickAppObjectUC_1 = require("../UCs/TryStickAppObjectUC");
|
|
8
|
+
class DoubleClickToStickMC extends AppObject_1.AppObjectController {
|
|
9
|
+
constructor(appObject) {
|
|
10
|
+
var _a;
|
|
11
|
+
super(appObject, DoubleClickToStickMC.type);
|
|
12
|
+
this.maxClickTimeMS = 300;
|
|
13
|
+
this.maxClickDistancePx = 5;
|
|
14
|
+
this.initialClickPos = ValueObjects_1.Vector2.Zero();
|
|
15
|
+
this.initialClickTime = 0;
|
|
16
|
+
this.clickCount = 0;
|
|
17
|
+
this.onClick = (e) => {
|
|
18
|
+
if (!this.tryStickSceneMesh) {
|
|
19
|
+
this.error("Missing Component");
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (e.button !== 0) {
|
|
23
|
+
this.cancelDoubleClick();
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this.clickCount = 1 + this.clickCount;
|
|
27
|
+
if (this.clickCount === 1) {
|
|
28
|
+
this.initialClickPos = e.position;
|
|
29
|
+
this.initialClickTime = Date.now();
|
|
30
|
+
}
|
|
31
|
+
else if (this.clickCount === 2) {
|
|
32
|
+
const movement = ValueObjects_1.Vector2.Subtract(this.initialClickPos, e.position).magnitued;
|
|
33
|
+
const passedTime = Date.now() - this.initialClickTime;
|
|
34
|
+
if (passedTime <= this.maxClickTimeMS &&
|
|
35
|
+
movement <= this.maxClickDistancePx) {
|
|
36
|
+
this.tryStickSceneMesh(e.position);
|
|
37
|
+
}
|
|
38
|
+
this.cancelDoubleClick();
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
this.cancelDoubleClick = () => {
|
|
42
|
+
this.initialClickPos = ValueObjects_1.Vector2.Zero();
|
|
43
|
+
this.initialClickTime = 0;
|
|
44
|
+
this.clickCount = 0;
|
|
45
|
+
};
|
|
46
|
+
(_a = this.mouseInput) === null || _a === void 0 ? void 0 : _a.registerController(this);
|
|
47
|
+
}
|
|
48
|
+
get mouseInput() {
|
|
49
|
+
return this.getCachedSingleton(MouseInput_1.MouseInputEntity.type);
|
|
50
|
+
}
|
|
51
|
+
get tryStickSceneMesh() {
|
|
52
|
+
var _a;
|
|
53
|
+
return (_a = this.getCachedSingleton(TryStickAppObjectUC_1.TryStickAppObjectUC.type)) === null || _a === void 0 ? void 0 : _a.tryWithPixel;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.DoubleClickToStickMC = DoubleClickToStickMC;
|
|
57
|
+
DoubleClickToStickMC.type = "DoubleClickToStickMC";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppObject, AppObjectController } from "../../../AppObject";
|
|
2
|
+
import { TouchController, TouchInputEvent } from "../../TouchController";
|
|
3
|
+
export declare class DoubleTapToStickTC extends AppObjectController implements TouchController {
|
|
4
|
+
static type: string;
|
|
5
|
+
readonly tapTimeMS = 300;
|
|
6
|
+
readonly maxTapDistancePx = 30;
|
|
7
|
+
private initialTouchPos;
|
|
8
|
+
private initialTouchTime;
|
|
9
|
+
private tapCount;
|
|
10
|
+
private get touchInput();
|
|
11
|
+
private get tryStickSceneMesh();
|
|
12
|
+
onTap: (e: TouchInputEvent) => void;
|
|
13
|
+
private cancelDoubleTap;
|
|
14
|
+
constructor(appObject: AppObject);
|
|
15
|
+
}
|