in src/lib/components/molecules/canvas-map/lib/styles/Text.js [134:157]
_getRelativeTranslation() {
switch (this.anchor) {
case TextAnchor.TOP:
return { x: -50, y: 0 }
case TextAnchor.BOTTOM:
return { x: -50, y: -100 }
case TextAnchor.LEFT:
return { x: 0, y: -50 }
case TextAnchor.RIGHT:
return { x: -100, y: -50 }
case TextAnchor.CENTER:
return { x: -50, y: -50 }
case TextAnchor.TOP_LEFT:
return { x: 0, y: 0 }
case TextAnchor.TOP_RIGHT:
return { x: -100, y: 0 }
case TextAnchor.BOTTOM_LEFT:
return { x: 0, y: -100 }
case TextAnchor.BOTTOM_RIGHT:
return { x: -100, y: -100 }
default:
return { x: 0, y: 0 }
}
}