Make anchor position more robust

This commit is contained in:
pietervdvn 2021-06-24 01:33:15 +02:00
parent b8a72a5119
commit ad04dd0aba
2 changed files with 2 additions and 2 deletions

View file

@ -339,7 +339,7 @@ export default class LayerConfig {
const iconW = num(iconSize[0]);
let iconH = num(iconSize[1]);
const mode = iconSize[2] ?? "center"
const mode = iconSize[2]?.trim()?.toLowerCase() ?? "center"
let anchorW = iconW / 2;
let anchorH = iconH / 2;

View file

@ -2,7 +2,7 @@ import { Utils } from "../Utils";
export default class Constants {
public static vNumber = "0.8.0c";
public static vNumber = "0.8.0d";
// The user journey states thresholds when a new feature gets unlocked
public static userJourney = {