Browse Source

添加注释

任一存 1 year ago
parent
commit
c3e00a4411
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/App.vue

+ 3 - 3
src/App.vue

@@ -314,8 +314,8 @@ export default {
       infoText: '',
       loadingHandler: null,
       formData: {
-        sceneCode: process.env.NODE_ENV === 'production' ? '' : 'SS-t-XkquhxxurM',
-        // sceneCode: process.env.NODE_ENV === 'production' ? '' : 'SS-t-NZUICC2fRLi',
+        // sceneCode: process.env.NODE_ENV === 'production' ? '' : 'SS-t-XkquhxxurM',
+        sceneCode: process.env.NODE_ENV === 'production' ? '' : 'SS-t-NZUICC2fRLi',
         path1: process.env.NODE_ENV === 'production' ? '' : '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,47,76,101,125',
         path2: '',
         startPoint: process.env.NODE_ENV === 'production' ? '' : '-38.5, 10.8',
@@ -515,7 +515,7 @@ export default {
         return (eachX - xCenter) * pxPerUnitLength + svgWidth / 2
       })
       let wholeYArrayInPx = yArray.map((eachY) => {
-        return (-1) * (eachY - yCenter) * pxPerUnitLength + svgHeight / 2
+        return (-1) * (eachY - yCenter) * pxPerUnitLength + svgHeight / 2 // 注意svg的y轴方向和人们习惯上的是相反的
       })
 
       // 组合成最终数据用来渲染