Skip to content

Commit

Permalink
Resolve TypeScript error in gradient unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
enourbakhsh committed Nov 13, 2024
1 parent c70276d commit 8a3a72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/rendering-util/createGradient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const calculatePolygonBBox = (points: number[][]) => {
const calculatePathBBox = (path: SVGPathElement, nsteps = 100) => {
const length = path.getTotalLength();
const step = length / nsteps;
const points = [];
const points: number[][] = [];
for (let i = 0; i <= length; i += step) {
const point = path.getPointAtLength(i);
points.push([point.x, point.y]);
Expand Down

0 comments on commit 8a3a72a

Please sign in to comment.