Skip to content

Commit c99220a

Browse files
author
Arti M
committed
fix: Spelling mistakes
1 parent 0d47b7f commit c99220a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/class-definitions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ type set = (update: { position: CursorPosition, data?: CursorData })
343343
Example usage:
344344
345345
```ts
346-
window.addEventListner('mousemove', ({ clientX, clientY }) => {
346+
window.addEventListener('mousemove', ({ clientX, clientY }) => {
347347
space.cursors.set({ position: { x: clientX, y: clientY }, data: { color: "red" } });
348348
});
349349
```

docs/usage.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Then call `.set`:
296296

297297
```ts
298298
const lastPositions = await space.cursors.getAll();
299-
window.addEventListner('mousemove', ({ clientX, clientY }) => {
299+
window.addEventListener('mousemove', ({ clientX, clientY }) => {
300300
space.cursors.set({ position: { x: clientX, y: clientY } });
301301
});
302302
```
@@ -320,13 +320,13 @@ A `CursorUpdate` is an object with 2 properties. `position` is an object with 2
320320
}
321321
}
322322
}
323-
window.addEventListner('mousemove', ({ clientX, clientY }) => {
323+
window.addEventListener('mousemove', ({ clientX, clientY }) => {
324324
space.cursors.set({ position: { x: clientX, y: clientY }, data: { color: 'red' } });
325325
});
326326
```
327327

328328
Example of calling `getAll` to get the last positions for the named cursor `slidedeck-cursors`:
329-
### Inital cursor position and data
329+
### Initial cursor position and data
330330

331331
To retrieve the initial position and data of all cursors within a space, you can use the `space.cursors.getAll()` method. This returns an object keyed by `connectionId`. The value is the last `cursorUpdate` set by the given `connectionId`.
332332

0 commit comments

Comments
 (0)