Merge branch 'master' into feature_perf_dev
This commit is contained in:
@@ -136,7 +136,7 @@ const draw = (
|
|||||||
// ctx.setLineDash([8, 4])
|
// ctx.setLineDash([8, 4])
|
||||||
ctx.globalAlpha = 0.8
|
ctx.globalAlpha = 0.8
|
||||||
|
|
||||||
// 绘制贝塞尔曲线
|
// 绘制直线
|
||||||
ctx.beginPath()
|
ctx.beginPath()
|
||||||
ctx.moveTo(localX1, localY1)
|
ctx.moveTo(localX1, localY1)
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ const draw = (
|
|||||||
ctx.stroke()
|
ctx.stroke()
|
||||||
|
|
||||||
// 绘制箭头
|
// 绘制箭头
|
||||||
const arrowAngle = Math.atan2(localY2 - c2y, localX2 - c2x)
|
const arrowAngle = Math.atan2(localY2 - localY1, localX2 - localX1)
|
||||||
const arrowLength = 8
|
const arrowLength = 8
|
||||||
const arrowWidth = 4
|
const arrowWidth = 4
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user