Skip to content

Commit

Permalink
fix(plugin, type): fix TextOverlap type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
netil committed Jun 9, 2022
1 parent 2dc19a7 commit 80cc3b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Plugin/textoverlap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ export default class TextOverlap extends Plugin {

return d3Delaunay
.from(points)
.voronoi([...min, ...max]); // bounds = [xmin, ymin, xmax, ymax], default value: [0, 0, 960, 500]
.voronoi([
...min as [number, number],
...max as [number, number]
]); // bounds = [xmin, ymin, xmax, ymax], default value: [0, 0, 960, 500]
}

/**
Expand Down

0 comments on commit 80cc3b7

Please sign in to comment.