diff --git a/paths.html b/paths.html index 2d42ac6..fe41db1 100644 --- a/paths.html +++ b/paths.html @@ -1,20 +1,36 @@ + + @let allSinglePoints = getSinglePoints(); + @let firstPoint = allSinglePoints[0]; + @let lastPoint = allSinglePoints[allSinglePoints.length - 1]; + + + @for (singlePoint of allSinglePoints; track $index) { + + + {{singlePoint}} mm + } @for (point of points; track $index; let index=$index) { @let color = getRandomColor(index); @for (line of lineCountNumber(point.count); track line) { @let start = line % 2 === 1 ? point.start : point.end; @let end = line % 2 === 1 ? point.end : point.start; - @let offset = (start > end ? 0.5 : -0.5) * strokeWidth; + @let offset = (start > end ? 0.5 : -0.5) * normalizedStrokeWidth; - + @if (index - < points.length - 1 || (index===points.length && line < point.count)) { + [attr.y2]="(getLineNumber(index, line)+1) * lineGap + normalizedStrokeWidth" [attr.stroke]="color" + [attr.stroke-width]="normalizedStrokeWidth" /> } } }