gate.threejs.two.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. import * as THREE from 'three';
  2. import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer.js';
  3. import { getTextCanvas, renderVideo } from '/@/utils/threejs/util';
  4. import UseThree from '../../../../utils/threejs/useThree';
  5. import { drawHot } from '/@/utils/threejs/util';
  6. import { useAppStore } from '/@/store/modules/app';
  7. // import * as dat from 'dat.gui';
  8. // const gui = new dat.GUI();
  9. // gui.domElement.style = 'position:absolute;top:100px;left:10px;z-index:99999999999999';
  10. class Fm1 {
  11. modelName = 'fm1';
  12. model; //
  13. group;
  14. isLRAnimation = true; // 是否开启左右摇摆动画
  15. direction = 1; // 摇摆方向
  16. animationTimer: NodeJS.Timeout | null = null; // 摇摆开启定时器
  17. player1;
  18. player2;
  19. deviceDetailCSS3D;
  20. playerStartClickTime1 = new Date().getTime();
  21. playerStartClickTime2 = new Date().getTime();
  22. fmClock = new THREE.Clock();
  23. mixers: THREE.AnimationMixer | undefined;
  24. appStore = useAppStore();
  25. backDamperOpenMesh;
  26. backDamperClosedMesh;
  27. frontDamperOpenMesh;
  28. frontDamperClosedMesh;
  29. clipActionArr = {
  30. frontDoor: null as unknown as THREE.AnimationAction,
  31. backDoor: null as unknown as THREE.AnimationAction,
  32. };
  33. constructor(model) {
  34. this.model = model;
  35. }
  36. addLight() {
  37. const directionalLight = new THREE.DirectionalLight(0xffffff, 1.5);
  38. directionalLight.position.set(344, 690, 344);
  39. this.group?.add(directionalLight);
  40. directionalLight.target = this.group as THREE.Object3D;
  41. const pointLight2 = new THREE.PointLight(0xffeeee, 1, 300);
  42. pointLight2.position.set(-4, 10, 1.8);
  43. pointLight2.shadow.bias = 0.05;
  44. this.group?.add(pointLight2);
  45. const pointLight3 = new THREE.PointLight(0xffeeee, 1, 200);
  46. pointLight3.position.set(-0.5, -0.5, 0.75);
  47. pointLight3.shadow.bias = 0.05;
  48. this.group?.add(pointLight3);
  49. // const pointLight4 = new THREE.PointLight(0xffeeee, 1, 150);
  50. // pointLight4.position.set(4.3, 1, -0.9);
  51. // pointLight4.shadow.bias = 0.05;
  52. // this.group?.add(pointLight4);
  53. // const pointLight5 = new THREE.PointLight(0xffeeee, 1, 150);
  54. // pointLight5.position.set(4.3, 1, -0.9);
  55. // pointLight5.shadow.bias = 0.05;
  56. // this.group?.add(pointLight5);
  57. // const pointLight6 = new THREE.PointLight(0xffeeee, 1, 150);
  58. // pointLight6.position.set(-4.4, 1, -0.9);
  59. // pointLight6.shadow.bias = 0.05;
  60. // this.group?.add(pointLight6);
  61. // const pointLightHelper2 = new THREE.PointLightHelper(pointLight2, 1);
  62. // this.model.scene?.add(pointLightHelper2);
  63. // gui.add(pointLight2.position, 'x', -300, 300);
  64. // gui.add(pointLight2.position, 'y', -300, 300);
  65. // gui.add(pointLight2.position, 'z', -300, 300);
  66. // gui.add(pointLight3.position, 'x', -300, 300);
  67. // gui.add(pointLight3.position, 'y', -300, 300);
  68. // gui.add(pointLight3.position, 'z', -300, 300);
  69. }
  70. // 重置摄像头
  71. resetCamera() {
  72. this.model.camera.far = 274;
  73. this.model.orbitControls?.update();
  74. this.model.camera.updateProjectionMatrix();
  75. }
  76. // 设置模型位置
  77. setModalPosition() {
  78. this.group?.scale.set(22, 22, 22);
  79. this.group?.position.set(-20, 20, 9);
  80. }
  81. /* 添加监控数据 */
  82. addMonitorText(selectData) {
  83. if (!this.group) {
  84. return;
  85. }
  86. const textArr = [
  87. {
  88. text: `远程控制快速密闭门`,
  89. font: 'normal 30px Arial',
  90. color: '#00FF00',
  91. strokeStyle: '#007400',
  92. x: 120,
  93. y: 100,
  94. },
  95. {
  96. text: `压力(Pa):`,
  97. font: 'normal 30px Arial',
  98. color: '#00FF00',
  99. strokeStyle: '#007400',
  100. x: 0,
  101. y: 155,
  102. },
  103. {
  104. text: `${selectData.frontRearDP}`,
  105. font: 'normal 30px Arial',
  106. color: '#00FF00',
  107. strokeStyle: '#007400',
  108. x: 290,
  109. y: 155,
  110. },
  111. {
  112. text: `动力源压力(MPa): `,
  113. font: 'normal 30px Arial',
  114. color: '#00FF00',
  115. strokeStyle: '#007400',
  116. x: 0,
  117. y: 215,
  118. },
  119. {
  120. text: ` ${selectData.sourcePressure}`,
  121. font: 'normal 30px Arial',
  122. color: '#00FF00',
  123. strokeStyle: '#007400',
  124. x: 280,
  125. y: 215,
  126. },
  127. {
  128. text: `故障诊断:`,
  129. font: 'normal 30px Arial',
  130. color: '#00FF00',
  131. strokeStyle: '#007400',
  132. x: 0,
  133. y: 275,
  134. },
  135. {
  136. text: `${selectData.warnLevel_str ? selectData.warnLevel_str : '-'}`,
  137. font: 'normal 30px Arial',
  138. color: '#00FF00',
  139. strokeStyle: '#007400',
  140. x: 280,
  141. y: 275,
  142. },
  143. {
  144. text: `煤炭科学技术研究院有限公司研制`,
  145. font: 'normal 28px Arial',
  146. color: '#00FF00',
  147. strokeStyle: '#007400',
  148. x: 20,
  149. y: 325,
  150. },
  151. ];
  152. //
  153. getTextCanvas(526, 346, textArr, '').then((canvas: HTMLCanvasElement) => {
  154. const textMap = new THREE.CanvasTexture(canvas); // 关键一步
  155. textMap.colorSpace = THREE.SRGBColorSpace;
  156. const textMaterial = new THREE.MeshBasicMaterial({
  157. // 关于材质并未讲解 实操即可熟悉 这里是漫反射类似纸张的材质,对应的就有高光类似金属的材质.
  158. map: textMap, // 设置纹理贴图
  159. transparent: true,
  160. side: THREE.FrontSide, // 这里是双面渲染的意思
  161. });
  162. textMaterial.blending = THREE.CustomBlending;
  163. const monitorPlane = this.group.getObjectByName('monitorText');
  164. if (monitorPlane) {
  165. monitorPlane.material = textMaterial;
  166. } else {
  167. const planeGeometry = new THREE.PlaneGeometry(526, 346); // 平面3维几何体PlaneGeometry
  168. const planeMesh = new THREE.Mesh(planeGeometry, textMaterial);
  169. planeMesh.name = 'monitorText';
  170. planeMesh.scale.set(0.002, 0.002, 0.002);
  171. planeMesh.position.set(-1.255, 0.09, -0.41);
  172. this.group.add(planeMesh);
  173. }
  174. textMap.dispose();
  175. });
  176. }
  177. /** 添加热点 */
  178. drawHots() {
  179. const hotPositions = [
  180. { x: -0.37, y: 0.26, z: -0.32 },
  181. { x: 0.28, y: -0.2, z: -0.43 },
  182. { x: 0.55, y: -0.22, z: -0.38 },
  183. ];
  184. for (let i = 0; i < 3; i++) {
  185. const hotPoint = drawHot(0.1);
  186. const position = hotPositions[i];
  187. hotPoint.scale.set(0.1, 0.1, 0.1);
  188. hotPoint.position.set(position.x, position.y, position.z);
  189. hotPoint.name = 'hotPoint' + i;
  190. this.group?.add(hotPoint);
  191. }
  192. }
  193. /* 风门动画 */
  194. render() {
  195. if (!this.model) {
  196. return;
  197. }
  198. if (this.mixers && this.fmClock.running) {
  199. this.mixers.update(2);
  200. }
  201. }
  202. /* 点击风窗,风窗全屏 */
  203. mousedownModel(intersects: THREE.Intersection<THREE.Object3D<THREE.Event>>[]) {
  204. if (this.animationTimer) {
  205. clearTimeout(this.animationTimer);
  206. this.animationTimer = null;
  207. }
  208. // 判断是否点击到视频
  209. intersects.find((intersect) => {
  210. const mesh = intersect.object;
  211. // if (mesh.name === 'player1') {
  212. // if (new Date().getTime() - this.playerStartClickTime1 < 400) {
  213. // // 双击,视频放大
  214. // if (this.player1) {
  215. // this.player1.requestPictureInPicture();
  216. // }
  217. // }
  218. // this.playerStartClickTime1 = new Date().getTime();
  219. // return true;
  220. // } else if (mesh.name === 'player2') {
  221. // if (new Date().getTime() - this.playerStartClickTime2 < 400) {
  222. // // 双击,视频放大
  223. // if (this.player2) {
  224. // this.player2.requestPictureInPicture();
  225. // }
  226. // }
  227. // this.playerStartClickTime2 = new Date().getTime();
  228. // return true;
  229. // } else if (mesh.name.startsWith('hotPoint')) {
  230. // if (this.deviceDetailCSS3D) {
  231. // this.deviceDetailCSS3D.position.set(mesh.position.x + 0.035, mesh.position.y + 0.68, mesh.position.z + 0.02);
  232. // console.log('[ deviceDetailCSS3D.position ] >', this.deviceDetailCSS3D.position);
  233. // this.deviceDetailCSS3D.visible = true;
  234. // return true;
  235. // }
  236. // } else {
  237. // if (this.deviceDetailCSS3D) this.deviceDetailCSS3D.visible = false;
  238. // console.log('[ 点击事件 ] >');
  239. // }
  240. return false;
  241. });
  242. }
  243. mouseUpModel() {}
  244. /* 提取风门序列帧,初始化前后门动画 */
  245. initAnimation() {
  246. const fmGroup = this.group?.getObjectByName('quickObfurage-door');
  247. if (fmGroup) {
  248. const tracks = fmGroup.animations[0].tracks;
  249. const fontTracks: any[] = [],
  250. backTracks: any[] = [];
  251. for (let i = 0; i < tracks.length; i++) {
  252. const track = tracks[i];
  253. if (track.name.startsWith('qianmen')) {
  254. fontTracks.push(track);
  255. } else if (track.name.startsWith('houmen')) {
  256. backTracks.push(track);
  257. }
  258. }
  259. this.mixers = new THREE.AnimationMixer(fmGroup);
  260. const frontDoor = new THREE.AnimationClip('frontDoor', 4, fontTracks);
  261. const frontClipAction = this.mixers.clipAction(frontDoor, fmGroup);
  262. frontClipAction.clampWhenFinished = true;
  263. frontClipAction.loop = THREE.LoopOnce;
  264. this.clipActionArr.frontDoor = frontClipAction;
  265. const backDoor = new THREE.AnimationClip('backDoor', 4, backTracks);
  266. const backClipAction = this.mixers.clipAction(backDoor, fmGroup);
  267. backClipAction.clampWhenFinished = true;
  268. backClipAction.loop = THREE.LoopOnce;
  269. this.clipActionArr.backDoor = backClipAction;
  270. }
  271. }
  272. deviceDetailCard(position = { x: 0, y: 0, z: 0 }) {
  273. const element = document.getElementById('deviceCard') as HTMLElement;
  274. if (element) {
  275. this.deviceDetailCSS3D = new CSS2DObject(element);
  276. this.deviceDetailCSS3D.name = 'deviceCard';
  277. this.deviceDetailCSS3D.position.set(position.x, position.y, position.z);
  278. this.deviceDetailCSS3D.visible = false;
  279. // this.model.scene.add(this.deviceDetailCSS3D);
  280. this.group.add(this.deviceDetailCSS3D);
  281. }
  282. }
  283. // 播放动画
  284. play(handlerState, timeScale = 0.01) {
  285. let handler = () => {};
  286. switch (handlerState) {
  287. case 1: // 打开前门
  288. handler = () => {
  289. this.clipActionArr.frontDoor.paused = true;
  290. this.clipActionArr.frontDoor.reset();
  291. this.clipActionArr.frontDoor.time = 1.2;
  292. this.clipActionArr.frontDoor.timeScale = timeScale;
  293. // this.clipActionArr.frontDoor.clampWhenFinished = true;
  294. this.clipActionArr.frontDoor.play();
  295. this.fmClock.start();
  296. // 显示打开前门文字
  297. if (this.frontDamperOpenMesh) this.frontDamperOpenMesh.visible = true;
  298. if (this.frontDamperClosedMesh) this.frontDamperClosedMesh.visible = false;
  299. };
  300. break;
  301. case 2: // 关闭前门
  302. handler = () => {
  303. this.clipActionArr.frontDoor.paused = true;
  304. this.clipActionArr.frontDoor.reset(); //
  305. this.clipActionArr.frontDoor.time = 4;
  306. this.clipActionArr.frontDoor.timeScale = -timeScale;
  307. // this.clipActionArr.frontDoor.clampWhenFinished = true;
  308. this.clipActionArr.frontDoor.play();
  309. this.fmClock.start();
  310. if (this.frontDamperOpenMesh) this.frontDamperOpenMesh.visible = false;
  311. if (this.frontDamperClosedMesh) this.frontDamperClosedMesh.visible = true;
  312. };
  313. break;
  314. case 3: // 打开后门
  315. handler = () => {
  316. this.clipActionArr.backDoor.paused = true;
  317. this.clipActionArr.backDoor.reset();
  318. this.clipActionArr.backDoor.time = 1.2;
  319. this.clipActionArr.backDoor.timeScale = timeScale;
  320. // this.clipActionArr.backDoor.clampWhenFinished = true;
  321. this.clipActionArr.backDoor.play();
  322. this.fmClock.start();
  323. if (this.backDamperOpenMesh) this.backDamperOpenMesh.visible = true;
  324. if (this.backDamperClosedMesh) this.backDamperClosedMesh.visible = false;
  325. };
  326. break;
  327. case 4: // 关闭后门
  328. handler = () => {
  329. this.clipActionArr.backDoor.paused = true;
  330. this.clipActionArr.backDoor.reset();
  331. this.clipActionArr.backDoor.time = 4;
  332. this.clipActionArr.backDoor.timeScale = -timeScale;
  333. // this.clipActionArr.backDoor.clampWhenFinished = true;
  334. this.clipActionArr.backDoor.play();
  335. this.fmClock.start();
  336. if (this.backDamperOpenMesh) this.backDamperOpenMesh.visible = false;
  337. if (this.backDamperClosedMesh) this.backDamperClosedMesh.visible = true;
  338. };
  339. break;
  340. // case 5: // 打开前后门
  341. // handler = () => {
  342. // this.clipActionArr.backDoor.paused = true;
  343. // this.clipActionArr.frontDoor.paused = true;
  344. // this.clipActionArr.frontDoor.reset();
  345. // this.clipActionArr.frontDoor.time = 0;
  346. // this.clipActionArr.frontDoor.timeScale = 0.01;
  347. // this.clipActionArr.frontDoor.clampWhenFinished = true;
  348. // this.clipActionArr.frontDoor.play();
  349. // this.clipActionArr.backDoor.reset();
  350. // this.clipActionArr.backDoor.time = 0;
  351. // this.clipActionArr.backDoor.timeScale = 0.01;
  352. // this.clipActionArr.backDoor.clampWhenFinished = true;
  353. // this.clipActionArr.backDoor.play();
  354. // this.frontClock.start();
  355. // this.backClock.start();
  356. // };
  357. // break;
  358. // case 6: // 关闭前后门
  359. // handler = () => {
  360. // debugger;
  361. // this.clipActionArr.backDoor.paused = true;
  362. // this.clipActionArr.frontDoor.paused = true;
  363. // this.clipActionArr.frontDoor.reset();
  364. // this.clipActionArr.frontDoor.time = 4;
  365. // this.clipActionArr.frontDoor.timeScale = -0.01;
  366. // this.clipActionArr.frontDoor.clampWhenFinished = true;
  367. // this.clipActionArr.frontDoor.play();
  368. // this.clipActionArr.backDoor.reset();
  369. // this.clipActionArr.backDoor.time = 4;
  370. // this.clipActionArr.backDoor.timeScale = -0.01;
  371. // this.clipActionArr.backDoor.clampWhenFinished = true;
  372. // this.clipActionArr.backDoor.play();
  373. // this.frontClock.start();
  374. // this.backClock.start();
  375. // };
  376. // break;
  377. default:
  378. }
  379. handler();
  380. // model.clock.start();
  381. // const honglvdeng = group.getObjectByName('honglvdeng');
  382. // const material = honglvdeng.material;
  383. // setTimeout(() => {
  384. // if (handlerState === 2 || handlerState === 4 || handlerState === 6) {
  385. // material.color = new THREE.Color(0x00ff00);
  386. // } else {
  387. // material.color = new THREE.Color(0xff0000);
  388. // }
  389. // }, 1000);
  390. }
  391. async initCamera(dom1?, dom2?) {
  392. const videoPlayer1 = dom1;
  393. const videoPlayer2 = dom2;
  394. this.player1 = dom1;
  395. this.player2 = dom2;
  396. let monitorPlane: THREE.Mesh | null = null;
  397. if (!videoPlayer1 || !videoPlayer2) {
  398. const textArr = [
  399. {
  400. text: `无信号输入`,
  401. font: 'normal 40px Arial',
  402. color: '#009900',
  403. strokeStyle: '#002200',
  404. x: 170,
  405. y: 40,
  406. },
  407. ];
  408. const canvas = await getTextCanvas(320, 180, '', 'noSinge.png');
  409. let textMaterial: THREE.MeshBasicMaterial | null = null;
  410. if (canvas) {
  411. const textMap = new THREE.CanvasTexture(canvas); // 关键一步
  412. textMaterial = new THREE.MeshBasicMaterial({
  413. map: textMap, // 设置纹理贴图
  414. transparent: true,
  415. side: THREE.DoubleSide, // 这里是双面渲染的意思
  416. });
  417. textMaterial.blending = THREE.CustomBlending;
  418. const planeGeometry = new THREE.PlaneGeometry(100, 100); // 平面3维几何体PlaneGeometry
  419. monitorPlane = new THREE.Mesh(planeGeometry, textMaterial);
  420. textMaterial.dispose();
  421. planeGeometry.dispose();
  422. textMap.dispose();
  423. }
  424. }
  425. const player1 = this.group.getObjectByName('player1');
  426. if (player1) {
  427. this.model.clearMesh(player1);
  428. this.group.remove(player1);
  429. }
  430. const noPlayer1 = this.group.getObjectByName('noPlayer1');
  431. if (noPlayer1) {
  432. this.model.clearMesh(noPlayer1);
  433. this.group.remove(noPlayer1);
  434. }
  435. if (!videoPlayer1 && videoPlayer1 === null) {
  436. if (monitorPlane && !this.group.getObjectByName('noPlayer1')) {
  437. const planeMesh = monitorPlane.clone();
  438. planeMesh.name = 'noPlayer1';
  439. planeMesh.scale.set(0.0085, 0.0056, 0.012);
  440. planeMesh.position.set(-4.23, 0.02, -0.39);
  441. this.group?.add(planeMesh.clone());
  442. }
  443. } else if (videoPlayer1) {
  444. try {
  445. const mesh = renderVideo(this.group, videoPlayer1, 'player1');
  446. if (mesh) {
  447. mesh?.scale.set(-0.028, 0.0285, 1);
  448. mesh?.position.set(-4.262, 0.02, -0.4);
  449. mesh.rotation.y = -Math.PI;
  450. this.group.add(mesh);
  451. }
  452. } catch (error) {
  453. console.log('视频信号异常');
  454. }
  455. }
  456. const player2 = this.group.getObjectByName('player2');
  457. if (player2) {
  458. this.model.clearMesh(player2);
  459. this.group.remove(player2);
  460. }
  461. const noPlayer2 = this.group.getObjectByName('noPlayer2');
  462. if (noPlayer2) {
  463. this.model.clearMesh(noPlayer2);
  464. this.group.remove(noPlayer2);
  465. }
  466. if (!videoPlayer2 && videoPlayer2 === null) {
  467. if (monitorPlane && !this.group.getObjectByName('noPlayer2')) {
  468. const planeMesh = monitorPlane.clone();
  469. planeMesh.name = 'noPlayer2';
  470. planeMesh.scale.set(0.0085, 0.0056, 0.012);
  471. planeMesh.position.set(4.29, 0.02, -0.41);
  472. this.group?.add(planeMesh.clone());
  473. }
  474. } else if (videoPlayer2) {
  475. try {
  476. const mesh = renderVideo(this.group, videoPlayer2, 'player2');
  477. if (mesh) {
  478. mesh?.scale.set(-0.028, 0.0285, 1);
  479. mesh?.position.set(4.298, 0.02, -0.4);
  480. mesh.rotation.y = -Math.PI;
  481. this.group.add(mesh);
  482. }
  483. } catch (error) {
  484. console.log('视频信号异常');
  485. }
  486. }
  487. }
  488. mountedThree() {
  489. this.group = new THREE.Object3D();
  490. this.group.name = this.modelName;
  491. return new Promise((resolve) => {
  492. this.model.setGLTFModel(['quickObfurage-door', 'quickObfurage-wire', 'quickObfurage-wall'], this.group).then(() => {
  493. this.setModalPosition();
  494. // 初始化左右摇摆动画;
  495. this.initAnimation();
  496. // this.drawHots();
  497. this.addLight();
  498. // this.deviceDetailCard();
  499. this.model.animate();
  500. this.backDamperOpenMesh = this.group.getObjectByName('Dampler_open_1');
  501. if (this.backDamperOpenMesh) this.backDamperOpenMesh.visible = false;
  502. this.backDamperClosedMesh = this.group.getObjectByName('Damper_Closed_1');
  503. if (this.backDamperClosedMesh) this.backDamperClosedMesh.visible = true;
  504. this.frontDamperOpenMesh = this.group.getObjectByName('Damper_Open_2');
  505. if (this.frontDamperOpenMesh) this.frontDamperOpenMesh.visible = false;
  506. this.frontDamperClosedMesh = this.group.getObjectByName('Damper_Closed_2');
  507. if (this.frontDamperClosedMesh) this.frontDamperClosedMesh.visible = true;
  508. resolve(this.model);
  509. });
  510. });
  511. }
  512. destroy() {
  513. if (this.model) {
  514. if (this.mixers) {
  515. this.mixers.uncacheClip(this.clipActionArr.frontDoor.getClip());
  516. this.mixers.uncacheClip(this.clipActionArr.backDoor.getClip());
  517. this.mixers.uncacheAction(this.clipActionArr.frontDoor.getClip(), this.group);
  518. this.mixers.uncacheAction(this.clipActionArr.backDoor.getClip(), this.group);
  519. this.mixers.uncacheRoot(this.group);
  520. if (this.model.animations[0]) this.model.animations[0].tracks = [];
  521. }
  522. this.model.clearGroup(this.group);
  523. this.clipActionArr.backDoor = undefined;
  524. this.clipActionArr.frontDoor = undefined;
  525. this.mixers = undefined;
  526. // document.getElementById('damper3D').parentElement.remove(document.getElementById('damper3D'))
  527. }
  528. }
  529. }
  530. export default Fm1;