Skip to content

Commit

Permalink
Document every function
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Dec 23, 2024
1 parent 26db22a commit 933dec6
Show file tree
Hide file tree
Showing 24 changed files with 1,101 additions and 213 deletions.
4 changes: 3 additions & 1 deletion redraw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Unreleased
## v1.1.1 - 2024-12-23

- Add documentation for every functions.
- Bump minimal required versions.
- Add `offset_x`, `offset_y`, `altitude_angle` & `azimuth_angle`.

## v1.1.0 - 2024-21-08

Expand Down
2 changes: 1 addition & 1 deletion redraw/gleam.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "redraw"
target = "javascript"
version = "1.1.0"
version = "1.1.1"

# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
Expand Down
16 changes: 16 additions & 0 deletions redraw/src/events.ffi.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ export function clientY(event) {
return event.clientY
}

export function offsetX(event) {
return event.offsetX
}

export function offsetY(event) {
return event.offsetY
}

export function metaKey(event) {
return event.metaKey
}
Expand Down Expand Up @@ -170,6 +178,14 @@ export function isPrimary(event) {
return event.isPrimary
}

export function altitudeAngle(event) {
return event.altitudeAngle
}

export function azimuthAngle(event) {
return event.azimuthAngle
}

export function pointerId(event) {
return event.pointerId
}
Expand Down
Loading

0 comments on commit 933dec6

Please sign in to comment.