diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ff1702..ee96938 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/src/module.js b/src/module.js index fffe8d0..dc4003b 100644 --- a/src/module.js +++ b/src/module.js @@ -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 */ diff --git a/src/scripts/TokenNoteHoverHUD.js b/src/scripts/TokenNoteHoverHUD.js index 8fce1fe..ef22ca7 100644 --- a/src/scripts/TokenNoteHoverHUD.js +++ b/src/scripts/TokenNoteHoverHUD.js @@ -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;