feat 对齐数据
This commit is contained in:
@@ -142,7 +142,7 @@ function draw() {
|
||||
ctx.setLineWidth(ROLLER_WIDTH)
|
||||
for (let i = 1; i < coords.length; i++) {
|
||||
ctx.beginPath()
|
||||
ctx.setStrokeStyle(compactionColor(path[i].compaction))
|
||||
ctx.setStrokeStyle(compactionColor(path[i].compaction_value))
|
||||
ctx.moveTo(coords[i - 1].x, coords[i - 1].y)
|
||||
ctx.lineTo(coords[i].x, coords[i].y)
|
||||
ctx.stroke()
|
||||
|
||||
Reference in New Issue
Block a user