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; }