feat 对齐数据

This commit is contained in:
Ironsp
2026-09-17 16:26:30 +08:00
parent c1d2958095
commit faf4ea1155
5 changed files with 82 additions and 60 deletions

View File

@@ -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()