From e5e3d140a495970871242333ae53977ff8a85c2d Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Tue, 9 Apr 2024 09:29:44 +0800 Subject: [PATCH] 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. --- docs/MAKING_THEMES.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/MAKING_THEMES.md b/docs/MAKING_THEMES.md index 4fa3348..56ab550 100644 --- a/docs/MAKING_THEMES.md +++ b/docs/MAKING_THEMES.md @@ -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