From 707f271ed6df7c6f890c70b99859b2f5380c8551 Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Mon, 16 Jan 2023 12:01:11 -0500 Subject: [PATCH] fix pixi marker anchors --- client/package.json | 2 +- client/src/hooks/usePixi.ts | 3 +-- server/Cargo.lock | 2 +- server/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/package.json b/client/package.json index 65a25639..a6a6e880 100644 --- a/client/package.json +++ b/client/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "koji", - "version": "0.3.3", + "version": "0.3.4", "description": "Tool to make RDM routes", "main": "server/dist/index.js", "author": "TurtIeSocks <58572875+TurtIeSocks@users.noreply.github.com>", diff --git a/client/src/hooks/usePixi.ts b/client/src/hooks/usePixi.ts index 39837bf3..6b5ac7a0 100644 --- a/client/src/hooks/usePixi.ts +++ b/client/src/hooks/usePixi.ts @@ -113,14 +113,13 @@ export default function usePixi(markers: PixiMarker[]) { } const markerTexture = PIXILoader.resources[`marker_${resolvedIconId}`].texture - // const markerTexture = new PIXI.Texture.fromImage(url); if (markerTexture) { const markerSprite = PIXI.Sprite.from(markerTexture) + markerSprite.anchor.set(0.5, 0.5) const markerCoords = project(p) markerSprite.x = markerCoords.x markerSprite.y = markerCoords.y markerSprite.scale.set(1 / scale) - container.addChild(markerSprite) } }) diff --git a/server/Cargo.lock b/server/Cargo.lock index ff394fb4..55c396c6 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -1814,7 +1814,7 @@ dependencies = [ [[package]] name = "koji" -version = "0.3.3" +version = "0.3.4" dependencies = [ "api", ] diff --git a/server/Cargo.toml b/server/Cargo.toml index 4552b75e..5df7d3f8 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "koji" -version = "0.3.3" +version = "0.3.4" edition = "2021" [workspace]