|
@@ -5,6 +5,7 @@ import { threeWorld } from "@/stores/threeWorld.ts";
|
|
|
import { courseChapter3dShow } from "@/stores/courseChapter3dShow.ts";
|
|
|
import { ThreeWorldEvent } from "./ThreeWorldEvent/js/ThreeWorldEvent.ts";
|
|
|
import { ThreeWorldEventMain } from "./ThreeWorldEvent/js/ThreeWorldEventMain.ts";
|
|
|
+import { TypeEvent } from "./ThreeWorldEvent/event/TypeEvent.ts";
|
|
|
import { ref, watch } from "vue";
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -75,7 +76,7 @@ watch(
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- typeEvent(props.config?.threeDimensionalConfig);
|
|
|
+ TypeEvent.find().typeEvent(props.config?.threeDimensionalConfig);
|
|
|
|
|
|
}
|
|
|
);
|
|
@@ -112,7 +113,7 @@ const callbackLoadEndEvent = (json : { 'roleChoiceOpenBool' : true }) => {
|
|
|
// ############################## 这个时候,是真正的进入3d画面了,才显示其他按钮界面等
|
|
|
threeWorld().loadSuccess = true;
|
|
|
initScene();
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -158,13 +159,20 @@ const initScene = () => {
|
|
|
objNewIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene,
|
|
|
objNewIframe.objIframe.BABYLON
|
|
|
);
|
|
|
+
|
|
|
+ TypeEvent.find().initObj(
|
|
|
+ objNewIframe,
|
|
|
+ objNewIframe.objIframe,
|
|
|
+ objNewIframe.objIframe.ChengGuangYuanJing.CommonVal.find().objScene,
|
|
|
+ objNewIframe.objIframe.BABYLON
|
|
|
+ );
|
|
|
+
|
|
|
+ TypeEvent.find().typeEvent(props.config?.threeDimensionalConfig);
|
|
|
|
|
|
// // @ts-ignore
|
|
|
// threeWorld().obj.newIframe.cameraVisualAngleGetListNameGpsTo("检测车");
|
|
|
// // @ts-ignore
|
|
|
// threeWorld().obj.newIframe.roleShow(false);
|
|
|
-
|
|
|
- // typeEvent(props.config?.threeDimensionalConfig);
|
|
|
|
|
|
// // 触发自动点击逻辑
|
|
|
// // @ts-ignore
|
|
@@ -173,35 +181,6 @@ const initScene = () => {
|
|
|
}
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * 根据不同的类型,切换对应的3d逻辑
|
|
|
- */
|
|
|
-const typeEvent = (type : any) => {
|
|
|
-
|
|
|
- console.log(
|
|
|
- "根据不同的类型,切换对应的3d逻辑",
|
|
|
- type
|
|
|
- );
|
|
|
-
|
|
|
- switch(type) {
|
|
|
-
|
|
|
- // 操作帮助
|
|
|
- case 'operationHelp':
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- // 设备拆解
|
|
|
- case 'equipmentDisassembly':
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- default:
|
|
|
-
|
|
|
- break;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
|
|
|
</script>
|
|
|
|