Skip to content

Commit

Permalink
Apply typo fixes from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Romain Francois <[email protected]>
  • Loading branch information
SlicedSilver and romfrancois committed Jul 17, 2023
1 parent 58c4579 commit 93abae8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/plugins/pixel-perfect-rendering/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ function centreOffset(lineBitmapWidth: number): number {

/**
* Calculates the bitmap position for an item with a desired length (height or width), and centred according to
* an position coordinate defined in media sizing.
* a position coordinate defined in media sizing.
* @param positionMedia - position coordinate for the bar (in media coordinates)
* @param pixelRatio - pixel ratio. Either horizontal for x positions, or vertical for y positions
* @param desiredWidthMedia - desired width (in media coordinates)
* @returns Position of of the start point and length dimension.
* @returns Position of the start point and length dimension.
*/
export function positionsLine(
positionMedia: number,
Expand Down Expand Up @@ -75,7 +75,7 @@ If you need to draw a shape between two coordinates (for example, y coordinates
* @param position1Media - media coordinate for the first point
* @param position2Media - media coordinate for the second point
* @param pixelRatio - pixel ratio for the corresponding axis (vertical or horizontal)
* @returns Position of of the start point and length dimension.
* @returns Position of the start point and length dimension.
*/
export function positionsBox(
position1Media: number,
Expand All @@ -91,7 +91,7 @@ export function positionsBox(
}
```

## Defaults Widths
## Default Widths

Please refer to the following pages for functions defining the default widths of shapes drawn by the library:

Expand Down

0 comments on commit 93abae8

Please sign in to comment.