Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jendave committed Jun 7, 2024
1 parent a2bc270 commit 3f5f448
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,28 +105,14 @@ jobs:
- name: NPM Run build
run: npm run build

# Create a "module.zip" archive containing all the module's required files.
# If you have other directories or files that will need to be added to
# your packaged module, add them here.
- name: Create Module Archive
run: |
# Note that `zip` will only emit warnings when a file or directory
# doesn't exist, it will not fail.
zip \
--recurse-paths \
./module.zip \
module.json \
index.js \
index.js.map \
README.md \
CHANGELOG.md \
LICENSE \
templates/ \
languages/
- name: Make package directory
run: mkdir package

# styles/ \
# Don't forget to add a backslash at the end of the line for any
# additional files or directories!
- name: Copy files to package directory
run: cp -r dist/* package

- name: Create zip file
run: (cd package && zip -r "$OLDPWD/module.zip" .)

# Update the GitHub release with the manifest and module archive files.
- name: Update Release With Files
Expand Down
5 changes: 5 additions & 0 deletions src/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ Hooks.on('renderHeadsUpDisplay', (app, html, data) => {
canvas.hud.tokenNoteHover = new TokenNoteHoverHUD();
});

// Hooks.on('canvasPan', () => {
// //canvas.hud.tokenNoteHover.clear();
// $.powerTip.reposition(canvas.hud.tokenNoteHover.element);
// });

/**
* Hook on Note hover
*/
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/TokenNoteHoverHUD.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ export default class TokenNoteHoverHUD extends BasePlaceableHUD {
let left = x;
let top = y;

// console.log(`x: ${x}, y: ${y}, width: ${width}, height: ${height}`);

let positionOffsetLeft = 0;
let positionOffsetTop = 0;

Expand Down

0 comments on commit 3f5f448

Please sign in to comment.