From 2ec11cf252a1d9ba5aea1c1b32615237ea3603b1 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 03 三月 2024 16:18:05 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/player.js |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/player.js b/zy-asrs-flow/src/pages/map/player.js
index abe51e4..d78c682 100644
--- a/zy-asrs-flow/src/pages/map/player.js
+++ b/zy-asrs-flow/src/pages/map/player.js
@@ -5,7 +5,6 @@
 
     constructor(dom, dark) {
         this.darkModel = dark;
-
         // init
         this.app = generatePixiApp();
         dom.appendChild(this.app.view);
@@ -28,10 +27,8 @@
                 this.mapPan(event);
             }
         })
-
         this.activateMapScale();
         this.showCoordinates();
-
         this.appTicker();
     }
 
@@ -45,9 +42,7 @@
             } else if (delta === -1) {
                 this.scale *= 1.1;
             }
-
             this.mapContainer.scale.set(this.scale);
-
             this.mapContainer.children.forEach(child => {
                 // child.scale.set(1 / this.scale); // 闃叉鍥炬爣鍙樺皬
             })
@@ -57,7 +52,6 @@
     mapPan = (event) => {
         this.pan = true;
         let previousPosition = { x: event.clientX, y: event.clientY };
-
         const mouseMoveHandler = (event) => {
             if (this.pan) {
                 const dx = event.clientX - previousPosition.x;
@@ -69,14 +63,11 @@
                 previousPosition = { x: event.clientX, y: event.clientY };
             }
         };
-
         this.app.view.addEventListener('mousemove', mouseMoveHandler);
-
         this.app.view.addEventListener('mouseup', () => {
             this.app.view.removeEventListener('mousemove', mouseMoveHandler);
             this.pan = false;
         });
-
     }
 
     showCoordinates = () => {
@@ -94,9 +85,7 @@
             const mouseY = (event.clientY - this.mapContainer.position.y) / this.scale;
             coordinatesText.text = `{ x: ${mouseX.toFixed(2)}, y: ${mouseY.toFixed(2)} }`;
         };
-
         this.app.view.addEventListener('mousemove', mouseMoveInfoTextHandler);
-
     }
 
     appTicker = () => {

--
Gitblit v1.9.1