From 93abae8c3d0e5f6f4a9878595a8738a8dba15320 Mon Sep 17 00:00:00 2001 From: Mark Silverwood Date: Mon, 17 Jul 2023 11:42:45 +0100 Subject: [PATCH] Apply typo fixes from code review Co-authored-by: Romain Francois --- website/docs/plugins/pixel-perfect-rendering/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/plugins/pixel-perfect-rendering/index.md b/website/docs/plugins/pixel-perfect-rendering/index.md index d1017ac2de..8d6834c0ac 100644 --- a/website/docs/plugins/pixel-perfect-rendering/index.md +++ b/website/docs/plugins/pixel-perfect-rendering/index.md @@ -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, @@ -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, @@ -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: