From 623f8968b7e39b867be02efbc14d29033402a66f Mon Sep 17 00:00:00 2001 From: fan Date: Tue, 9 May 2023 09:35:58 +0800 Subject: [PATCH] =?UTF-8?q?ncc=E6=AF=94=E4=BE=8B=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/nccGraph/NccTrain/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jmapNew/shape/nccGraph/NccTrain/index.js b/src/jmapNew/shape/nccGraph/NccTrain/index.js index 4ce2af87d..cfc3c898b 100644 --- a/src/jmapNew/shape/nccGraph/NccTrain/index.js +++ b/src/jmapNew/shape/nccGraph/NccTrain/index.js @@ -58,7 +58,7 @@ export default class NccTrain extends Group { totalLength += length; stateI += step; } - const complateLength = totalLength * model.stationComplateRatio; + const complateLength = totalLength * model.stationCompleteRatio; let nowIndex = 0; let nowLength = complateLength; while (nowLength > lengthList[nowIndex]) { @@ -75,8 +75,8 @@ export default class NccTrain extends Group { } else if (pointIndexs.length) { const startP = runLinePoints[pointIndexs[0]]; const endP = runLinePoints[pointIndexs[1]]; - px = startP.x + Math.round(model.stationComplateRatio * (endP.x - startP.x)); - py = startP.y + Math.round(model.stationComplateRatio * (endP.y - startP.y)); + px = startP.x + Math.round(model.stationCompleteRatio * (endP.x - startP.x)); + py = startP.y + Math.round(model.stationCompleteRatio * (endP.y - startP.y)); angle = Math.atan2( startP.y - endP.y, startP.x - endP.x); angle = -angle; }