Skip to content

Commit

Permalink
#5497 – Refactor (SnakeModePolymerBondRenderer): Refactor `generateBe…
Browse files Browse the repository at this point in the history
…nd(4)`
  • Loading branch information
DmitriiP-EPAM authored Dec 3, 2024
1 parent 7c04b5e commit 94e5c71
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,9 @@ function generateBend(
dx: number,
dy: number,
): string {
return `q ${SMOOTH_CORNER_SIZE * dx1},${SMOOTH_CORNER_SIZE * dy1} ${
SMOOTH_CORNER_SIZE * dx
},${SMOOTH_CORNER_SIZE * dy} `;
const controlPoint = `${SMOOTH_CORNER_SIZE * dx1},${
SMOOTH_CORNER_SIZE * dy1
}`;
const endPoint = `${SMOOTH_CORNER_SIZE * dx},${SMOOTH_CORNER_SIZE * dy}`;
return `q ${controlPoint} ${endPoint} `;
}

0 comments on commit 94e5c71

Please sign in to comment.