Skip to content

Commit

Permalink
iso compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ardittristan committed Oct 23, 2020
1 parent af4b7eb commit 18a60ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Patch Notes

## Version 1.0.6

Make marker work on isotopic maps.

## Version 1.0.5

Push compatible core version.
Expand Down
12 changes: 1 addition & 11 deletions marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,7 @@ class MarkersLayer extends CanvasLayer {
* @private
*/
_getMousePos() {
const mouse = canvas.app.renderer.plugins.interaction.mouse.global;
const t = this.worldTransform;

function calcCoord(axis) {
return (mouse[axis] - t['t' + axis]) / canvas.stage.scale[axis];
}

return {
x: calcCoord('x'),
y: calcCoord('y')
};
return canvas.app.renderer.plugins.interaction.mouse.getLocalPosition(canvas.stage);
}

displayPing(position, id, isNew = false) {
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "personalmarkers",
"title": "Personal Markers",
"description": "Add personal markers that only you can see.",
"version": "1.0.5",
"version": "1.0.6",
"author": "ardittristan#0001",
"esmodules": ["marker.js"],
"scripts": ["./lib/colorSettingStub.js"],
Expand Down

0 comments on commit 18a60ff

Please sign in to comment.