Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit df3e45c

Browse files
authored
v1.0.0 - PR #3 from glenn2223
First official release
2 parents be831b5 + baba73c commit df3e45c

File tree

5 files changed

+287
-559
lines changed

5 files changed

+287
-559
lines changed

CHANGELOG.md

+3-22
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,9 @@ All notable changes to this project will be documented in this file.
2626
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2727
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2828

29-
> **⚠ Alphas may contain breaking changes between releases.**
30-
>
31-
> When the release is NOT a major release, the breaking changes will only be relative to the prior `alpha` release
32-
>
33-
> As this package is not released (kind of), this change log will be cleared on the official release of `v1`
34-
35-
## v0.0.0-alpha.1
36-
37-
### Changes
38-
39-
- Updated the `gitnore`, `tsconfig` and `npm` package to appropriately handle the new `lib/` folder
40-
- Added dependencies for, and tweaked, linting
41-
- Added `.prettierrc` for consistent formatting (and applied it)
42-
- Added some package scripts for linting, formatting, building, etc
43-
- Added comment to a public static method
44-
- Removed `.npmignore` in favour of `"files"` in the `package.json`
45-
46-
<!--
47-
## [1.0.0] - 2021-06-##
29+
## [1.0.0] - 2022-05-12
4830

4931
**This was the first release**
5032

51-
[unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...development
52-
[1.0.0]: https://github.com/olivierlacan/keep-a-changelog/release/tag/v1.0.0
53-
-->
33+
[unreleased]: https://github.com/TopMarksDevelopment/JavaScript.HoverPosition/compare/v1.0.0...development
34+
[1.0.0]: https://github.com/TopMarksDevelopment/JavaScript.HoverPosition/release/tag/v1.0.0

README.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
A small package to help position a floating element. This can be positioned relative to another element or to a mouse event.
44

5+
### Links
6+
- [Change log](./CHANGELOG.md)
7+
- [License (MIT)](./LICENSE)
8+
59
## Usage
610

711
If you want to position an element to another fixed element then you can use the sample below
@@ -22,11 +26,11 @@ If you'd rather position the element to the mouse's movement then you can use th
2226
> ⚠ It is recommended to debounce the below sample, just to prevent performance issues
2327
2428
```TS
25-
document.addEventListener("mousemove", function(e){
29+
document.addEventListener("mousemove", function(mouse){
2630
const target = document.getElementById("Target"),
27-
position = new HoverPosition(
31+
pos = new HoverPosition(
2832
{
29-
anchor: document.getElementById("Anchor"),
33+
anchor: mouse,
3034
target: target,
3135
my: "top center",
3236
at: "bottom center",
@@ -114,12 +118,4 @@ So, as well as those above, it will also allow:
114118
- "bottom"
115119
- "center"
116120
- "left"
117-
- "right"
118-
119-
## Changes
120-
121-
You can see all the changes in our [change log](./CHANGELOG.md)
122-
123-
## License
124-
125-
This extension is licensed under the [MIT License](./LICENSE)
121+
- "right"

0 commit comments

Comments
 (0)