piker/piker
Gud Boi 379f757832 Gate `size_to_values()` on macOS in `_axes.py`
NOTE, this reversion was discovered as needed by @goodboy after
extensively manually testing the new zoom-by-font-size feats introduced
alongside macOS support.

Use class-body `if _friggin_macos:` branching to
conditionally define `size_to_values()` for both
`PriceAxis` and `DynamicDateAxis` — macOS gets the
new `_updateWidth()`/`_updateHeight()` + geometry
recalc path, other platforms fall back to the
original `setWidth()`/`setHeight()` calls.

Deats,
- add `platform` import and module-level
  `_friggin_macos: bool` flag.
- `PriceAxis.size_to_values()`: macOS branch calls
  `_updateWidth()` + `updateGeometry()`; else branch
  uses `self.setWidth(self.typical_br.width())`.
- `DynamicDateAxis.size_to_values()`: macOS branch
  calls `_updateHeight()` + `updateGeometry()`; else
  uses `self.setHeight(self.typical_br.height() + 1)`.
- reorder imports: `platform` before `typing`.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-11-14 15:41:51 -05:00
..
accounting .clearing: lazily spawn `brokerd` from `emsd` 2026-11-09 17:05:43 -05:00
brokers Retry incomplete IB schedule coverage 2026-11-13 17:30:25 -05:00
clearing .clearing: lazily spawn `brokerd` from `emsd` 2026-11-09 17:05:43 -05:00
cli brokerd: slim RPC caps + `ib` client-id offset 2026-11-09 17:05:43 -05:00
data Expose storage state through `piker store` 2026-11-12 09:48:06 -05:00
fsp Use `tractor.ipc._shm` types directly across codebase 2026-03-17 18:00:29 -04:00
service Add `datad` daemon machinery to `.data` 2026-11-09 17:05:39 -05:00
storage Simplify `store` series and SHM discovery 2026-11-12 09:48:09 -05:00
testing Pass a config `tmp_dir: Path` to the runtime when testing 2023-03-09 15:37:43 -05:00
toolz Delegate `.toolz.open_crash_handler()` to `tractor.devx` 2024-01-16 10:26:38 -05:00
tsp Retry incomplete IB schedule coverage 2026-11-13 17:30:25 -05:00
ui Gate `size_to_values()` on macOS in `_axes.py` 2026-11-14 15:41:51 -05:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Start `piker.service` sub-package 2023-03-09 15:37:42 -05:00
_cacheables.py Move `._cacheables.open_cached_client()` into `.brokers` pkg mod 2023-06-27 13:41:47 -04:00
calc.py Retry incomplete IB schedule coverage 2026-11-13 17:30:25 -05:00
config.py Fix `pytest` config-dir isolation in subactors 2026-10-07 03:10:41 -04:00
log.py Preserve exact `piker` logger namespaces 2026-10-07 03:10:41 -04:00
types.py Point `.types.Struct` to `tractor.msg.pretty_struct` 2026-02-22 16:07:53 -05:00