@shapediver/viewer.features.drawing-tools 3.12.11 → 3.12.13
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/dist/business/implementation/managers/interaction/InteractionManagerAdapter.d.ts +36 -0
- package/dist/business/implementation/managers/interaction/InteractionManagerAdapter.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/InteractionManagerAdapter.js +77 -0
- package/dist/business/implementation/managers/interaction/InteractionManagerAdapter.js.map +1 -0
- package/dist/business/implementation/managers/interaction/InteractionManagerRefactored.d.ts +82 -0
- package/dist/business/implementation/managers/interaction/InteractionManagerRefactored.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/InteractionManagerRefactored.js +406 -0
- package/dist/business/implementation/managers/interaction/InteractionManagerRefactored.js.map +1 -0
- package/dist/business/implementation/managers/interaction/actions/InteractionActions.d.ts +107 -0
- package/dist/business/implementation/managers/interaction/actions/InteractionActions.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/actions/InteractionActions.js +191 -0
- package/dist/business/implementation/managers/interaction/actions/InteractionActions.js.map +1 -0
- package/dist/business/implementation/managers/interaction/config/InteractionConfig.d.ts +134 -0
- package/dist/business/implementation/managers/interaction/config/InteractionConfig.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/config/InteractionConfig.js +218 -0
- package/dist/business/implementation/managers/interaction/config/InteractionConfig.js.map +1 -0
- package/dist/business/implementation/managers/interaction/gestures/GestureRecognition.d.ts +118 -0
- package/dist/business/implementation/managers/interaction/gestures/GestureRecognition.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/gestures/GestureRecognition.js +352 -0
- package/dist/business/implementation/managers/interaction/gestures/GestureRecognition.js.map +1 -0
- package/dist/business/implementation/managers/interaction/index.d.ts +13 -0
- package/dist/business/implementation/managers/interaction/index.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/index.js +49 -0
- package/dist/business/implementation/managers/interaction/index.js.map +1 -0
- package/dist/business/implementation/managers/interaction/interfaces/IInteractionManagerForStrategy.d.ts +24 -0
- package/dist/business/implementation/managers/interaction/interfaces/IInteractionManagerForStrategy.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/interfaces/IInteractionManagerForStrategy.js +3 -0
- package/dist/business/implementation/managers/interaction/interfaces/IInteractionManagerForStrategy.js.map +1 -0
- package/dist/business/implementation/managers/interaction/mobile-detection-example.d.ts +24 -0
- package/dist/business/implementation/managers/interaction/mobile-detection-example.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/mobile-detection-example.js +112 -0
- package/dist/business/implementation/managers/interaction/mobile-detection-example.js.map +1 -0
- package/dist/business/implementation/managers/interaction/strategies/DesktopInteractionStrategy.d.ts +37 -0
- package/dist/business/implementation/managers/interaction/strategies/DesktopInteractionStrategy.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/strategies/DesktopInteractionStrategy.js +290 -0
- package/dist/business/implementation/managers/interaction/strategies/DesktopInteractionStrategy.js.map +1 -0
- package/dist/business/implementation/managers/interaction/strategies/IInteractionStrategy.d.ts +52 -0
- package/dist/business/implementation/managers/interaction/strategies/IInteractionStrategy.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/strategies/IInteractionStrategy.js +21 -0
- package/dist/business/implementation/managers/interaction/strategies/IInteractionStrategy.js.map +1 -0
- package/dist/business/implementation/managers/interaction/strategies/MobileInteractionStrategy.d.ts +72 -0
- package/dist/business/implementation/managers/interaction/strategies/MobileInteractionStrategy.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/strategies/MobileInteractionStrategy.js +442 -0
- package/dist/business/implementation/managers/interaction/strategies/MobileInteractionStrategy.js.map +1 -0
- package/dist/business/implementation/managers/interaction/test-mobile-detection.d.ts +24 -0
- package/dist/business/implementation/managers/interaction/test-mobile-detection.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/test-mobile-detection.js +136 -0
- package/dist/business/implementation/managers/interaction/test-mobile-detection.js.map +1 -0
- package/dist/business/implementation/managers/interaction/test-refactored.d.ts +9 -0
- package/dist/business/implementation/managers/interaction/test-refactored.d.ts.map +1 -0
- package/dist/business/implementation/managers/interaction/test-refactored.js +57 -0
- package/dist/business/implementation/managers/interaction/test-refactored.js.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Simple test to verify the refactored interaction manager works correctly
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.testRefactoredInteractionManager = void 0;
|
|
7
|
+
const InteractionConfig_1 = require("./config/InteractionConfig");
|
|
8
|
+
const InteractionManagerRefactored_1 = require("./InteractionManagerRefactored");
|
|
9
|
+
/**
|
|
10
|
+
* Test function to verify the interface implementation and temporary point functionality
|
|
11
|
+
*/
|
|
12
|
+
function testRefactoredInteractionManager(drawingToolsManager) {
|
|
13
|
+
console.log("Testing refactored interaction manager...");
|
|
14
|
+
try {
|
|
15
|
+
// Test with desktop config
|
|
16
|
+
const desktopConfig = InteractionConfig_1.InteractionConfigFactory.createDesktopConfig();
|
|
17
|
+
const interactionManager = new InteractionManagerRefactored_1.InteractionManagerRefactored(drawingToolsManager, desktopConfig);
|
|
18
|
+
// Test that the helper is accessible through the interface
|
|
19
|
+
const helper = interactionManager.interactionManagerHelper;
|
|
20
|
+
console.log("✓ Helper accessible through interface:", !!helper);
|
|
21
|
+
// Test that the helper's checkHover method exists
|
|
22
|
+
if (helper && typeof helper.checkHover === "function") {
|
|
23
|
+
console.log("✓ checkHover method exists on helper");
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
console.error("✗ checkHover method not found on helper");
|
|
27
|
+
}
|
|
28
|
+
// Test insertion handler access
|
|
29
|
+
const insertionHandler = interactionManager.insertionInteractionHandler;
|
|
30
|
+
if (insertionHandler && typeof insertionHandler.onMove === "function") {
|
|
31
|
+
console.log("✓ insertionHandler.onMove method exists (temporary point functionality)");
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
console.error("✗ insertionHandler.onMove method not found");
|
|
35
|
+
}
|
|
36
|
+
// Test that startInsertion method exists
|
|
37
|
+
if (typeof interactionManager.startInsertion === "function") {
|
|
38
|
+
console.log("✓ startInsertion method exists");
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
console.error("✗ startInsertion method not found");
|
|
42
|
+
}
|
|
43
|
+
// Test mobile config
|
|
44
|
+
const mobileConfig = InteractionConfig_1.InteractionConfigFactory.createMobileConfig();
|
|
45
|
+
const mobileManager = new InteractionManagerRefactored_1.InteractionManagerRefactored(drawingToolsManager, mobileConfig);
|
|
46
|
+
console.log("✓ Mobile configuration works");
|
|
47
|
+
console.log("✓ Refactored interaction manager created successfully");
|
|
48
|
+
console.log("✓ Temporary point functionality should now work on mouse move");
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
console.error("✗ Error testing refactored interaction manager:", error);
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.testRefactoredInteractionManager = testRefactoredInteractionManager;
|
|
57
|
+
//# sourceMappingURL=test-refactored.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-refactored.js","sourceRoot":"","sources":["../../../../../src/business/implementation/managers/interaction/test-refactored.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,kEAAoE;AACpE,iFAA4E;AAE5E;;GAEG;AACH,SAAgB,gCAAgC,CAC/C,mBAAwC;IAExC,OAAO,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;IAEzD,IAAI;QACH,2BAA2B;QAC3B,MAAM,aAAa,GAAG,4CAAwB,CAAC,mBAAmB,EAAE,CAAC;QACrE,MAAM,kBAAkB,GAAG,IAAI,2DAA4B,CAC1D,mBAAmB,EACnB,aAAa,CACb,CAAC;QAEF,2DAA2D;QAC3D,MAAM,MAAM,GAAG,kBAAkB,CAAC,wB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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.features.drawing-tools",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"testEnvironment": "node"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@shapediver/viewer": "3.12.
|
|
44
|
-
"@shapediver/viewer.features.interaction": "3.12.
|
|
45
|
-
"@shapediver/viewer.rendering-engine.intersection-restriction-engine": "3.12.
|
|
46
|
-
"@shapediver/viewer.rendering-engine.rendering-engine-threejs": "3.12.
|
|
47
|
-
"@shapediver/viewer.shared.math": "3.12.
|
|
48
|
-
"@shapediver/viewer.shared.node-tree": "3.12.
|
|
49
|
-
"@shapediver/viewer.shared.services": "3.12.
|
|
50
|
-
"@shapediver/viewer.shared.types": "3.12.
|
|
43
|
+
"@shapediver/viewer": "3.12.13",
|
|
44
|
+
"@shapediver/viewer.features.interaction": "3.12.13",
|
|
45
|
+
"@shapediver/viewer.rendering-engine.intersection-restriction-engine": "3.12.13",
|
|
46
|
+
"@shapediver/viewer.rendering-engine.rendering-engine-threejs": "3.12.13",
|
|
47
|
+
"@shapediver/viewer.shared.math": "3.12.13",
|
|
48
|
+
"@shapediver/viewer.shared.node-tree": "3.12.13",
|
|
49
|
+
"@shapediver/viewer.shared.services": "3.12.13",
|
|
50
|
+
"@shapediver/viewer.shared.types": "3.12.13",
|
|
51
51
|
"@types/three": "0.162.0",
|
|
52
52
|
"three": "0.162.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "9e4f01fd60bfbc86ec41a172da391e5c945e641d"
|
|
55
55
|
}
|