mirror of
				https://github.com/ethan-zf/cesium-plot-js.git
				synced 2025-11-04 01:04:18 +00:00 
			
		
		
		
	
						commit
						13cf991d8e
					
				@ -86,8 +86,8 @@ export default class CurvedArrow extends Base {
 | 
				
			|||||||
    const distance = Utils.wholeDistance(lnglatPoints);
 | 
					    const distance = Utils.wholeDistance(lnglatPoints);
 | 
				
			||||||
    let len = distance / this.arrowLengthScale;
 | 
					    let len = distance / this.arrowLengthScale;
 | 
				
			||||||
    len = len > this.maxArrowLength ? this.maxArrowLength : len;
 | 
					    len = len > this.maxArrowLength ? this.maxArrowLength : len;
 | 
				
			||||||
    const leftPnt = Utils.getThirdPoint(pnt1, pnt2, Math.PI / 6, len / 2, false);
 | 
					    const leftPnt = Utils.getThirdPoint(curvePoints[curvePoints.length - 2], curvePoints[curvePoints.length - 1], Math.PI / 6, len / 2, false);
 | 
				
			||||||
    const rightPnt = Utils.getThirdPoint(pnt1, pnt2, Math.PI / 6, len / 2, true);
 | 
					    const rightPnt = Utils.getThirdPoint(curvePoints[curvePoints.length - 2], curvePoints[curvePoints.length - 1], Math.PI / 6, len / 2, true);
 | 
				
			||||||
    const temp = [].concat(...curvePoints);
 | 
					    const temp = [].concat(...curvePoints);
 | 
				
			||||||
    const points = [...temp, ...leftPnt, ...pnt2, ...rightPnt];
 | 
					    const points = [...temp, ...leftPnt, ...pnt2, ...rightPnt];
 | 
				
			||||||
    const cartesianPoints = this.cesium.Cartesian3.fromDegreesArray(points);
 | 
					    const cartesianPoints = this.cesium.Cartesian3.fromDegreesArray(points);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user