Cleanup
This commit is contained in:
@@ -45,12 +45,12 @@ const arc = computed(() => {
|
||||
});
|
||||
|
||||
const splitIdx = Math.round(pct * 200);
|
||||
const { x: cx, y: cy } = pts[splitIdx];
|
||||
const { x: cx, y: cy } = <any>pts[splitIdx];
|
||||
|
||||
// Filled traveled path: close down to horizon baseline for fill
|
||||
const traveledPts = pts.slice(0, splitIdx + 1);
|
||||
const filledPath = traveledPts.map((p, i) => `${i === 0 ? 'M' : 'L'}${p.x.toFixed(1)},${p.y.toFixed(1)}`).join(' ')
|
||||
+ ` L${traveledPts[traveledPts.length - 1].x.toFixed(1)},${HORIZON}`
|
||||
+ ` L${(<any>traveledPts[traveledPts.length - 1]).x.toFixed(1)},${HORIZON}`
|
||||
+ ` L${x1},${HORIZON} Z`;
|
||||
|
||||
// Remaining path stroke only
|
||||
|
||||
Reference in New Issue
Block a user