Skip to content

Commit c342e29

Browse files
authored
docs: fix some typos
1 parent 9d95b12 commit c342e29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/inserting-pictures.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Creating pictures in Excel is a bit complicated, mostly due to the many, many di
66
- One-cell anchors - specify which cell the picture starts, and the width/height of the image.
77
- Absolute anchors - specify the offset of the image, and the width/height of the image.
88

9-
OpenXML Drawings have an odd (understandable, but still odd) positioning system. Use the pixelsToEMUs method available in the Positioning.js to turn a pixel amount into EMU's, which is what is needed for any offset specification.
9+
OpenXML Drawings have an odd (understandable, but still odd) positioning system. Use the `pixelsToEMUs` method available in the `Positioning.js` to turn a pixel amount into EMU's, which is what is needed for any offset specification.
1010

11-
> **Note** Please note that pictures **must be provided as `base64` format**, you can look on the internet on how to do that or if you're using ViteJS then look at the Vite loader plugin at the end of this document.
11+
> **Note** Please note that pictures **must be provided as `base64` format**, you can look on the internet on how to do that or if you're using ViteJS then scroll to the end of this document to see a code example of a custom Vite loader plugin.
1212
1313
```ts
1414
import { Drawings, ExcelBuilder, Picture, Positioning } from 'excel-builder-vanilla';
@@ -69,9 +69,9 @@ downloader('Fruit WB.xlsx', data);
6969

7070
### Vite `base64` loader plugin
7171

72-
For loading an image as `base64` with ViteJS, you could do it easily with a Vite loader plugin.
72+
For loading an image as `base64` with ViteJS, you could do it easily with a custom Vite loader plugin.
7373

74-
> The code below was pulled from this Stack Overflow [answer](https://stackoverflow.com/a/78012267/1212166)
74+
> The code shown below was copied from this Stack Overflow [answer](https://stackoverflow.com/a/78012267/1212166)
7575
7676
```ts
7777
import { readFileSync } from 'node:fs';

0 commit comments

Comments
 (0)