diff --git a/front/src/components/Gallery/gallery.vue b/front/src/components/Gallery/gallery.vue index c681e20..da2e963 100644 --- a/front/src/components/Gallery/gallery.vue +++ b/front/src/components/Gallery/gallery.vue @@ -66,18 +66,18 @@ onMounted(async () => { .selectAll("path") .data(circles) .join("path") - .attr("d", (d, i) => voronoi.renderCell(i)) - .attr('fill', (d, i) => i < (range - 2) ? `url(#img${i})` : 'none') + .attr("d", (_, i) => voronoi.renderCell(i)) + .attr('fill', (_, i) => i < (range - 2) ? `url(#img${i})` : 'none') .call(d3.drag() - .on("start", (event, d) => circle.filter(p => p === d).raise().attr("stroke", "black")) + .on("start", (_, d) => circle.filter(p => p === d).raise().attr("stroke", "black")) .on("drag", (event, d: any) => (d.x = event.x, d.y = event.y)) - .on("end", (event, d) => circle.filter(p => p === d).attr("stroke", null)) + .on("end", (_, d) => circle.filter(p => p === d).attr("stroke", null)) .on("start.update drag.update end.update", update) as any) function update() { voronoi = d3.Delaunay.from(circles, d => d.x, d => d.y).voronoi([0, 0, width, height]); circle.attr("cx", d => d.x).attr("cy", d => d.y); - cell.attr("d", (d, i) => voronoi.renderCell(i)); + cell.attr("d", (_, i) => voronoi.renderCell(i)); mesh.attr("d", voronoi.render()); } diff --git a/front/src/components/Main/main_load_models.vue b/front/src/components/Main/main_load_models.vue index e991291..e62f762 100644 --- a/front/src/components/Main/main_load_models.vue +++ b/front/src/components/Main/main_load_models.vue @@ -1,11 +1,11 @@