feat(tools): humanize tap coordinates; default off in tests

This commit is contained in:
2026-07-15 19:29:57 +08:00
parent d8e7be4ccb
commit 85f0d6e188
4 changed files with 60 additions and 3 deletions
+4 -1
View File
@@ -28,7 +28,10 @@ class HumanizeConfig:
def load_humanize_config(env: Mapping[str, str] | None = None) -> HumanizeConfig:
values = env or os.environ
if env is None:
values: Mapping[str, str] = os.environ
else:
values = env
return HumanizeConfig(
enabled=_parse_bool(values.get(ENABLED_ENV), default=True),
tap_radius_px=_parse_float(values.get(TAP_RADIUS_ENV), DEFAULT_TAP_RADIUS_PX),