docs: specify that pixel coordinates of hotspot are rounded to the nearest (#28)

Since we now have a raw API, we shall specify how this is calculated, so
users of the raw API can do the same in their rendering code.
This commit is contained in:
Jin Liu 2024-04-09 09:29:44 +08:00 committed by GitHub
parent 17ebb7fff0
commit e5e3d140a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ resize_algorithm = bilinear
# "hotspot" is where in your cursor the actual "click point" should be.
# this is in absolute coordinates. x+ is east, y+ is north.
# the pixel coordinates of the hotspot at size are rounded to the nearest:
# (round(size * hotspot_x), round(size * hotspot_y))
hotspot_x = 0.0 # this goes 0 - 1
hotspot_y = 0.0 # this goes 0 - 1