refactor: fonts (#1323)
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Code quality / quality (push) Has been cancelled

* refactor: add font management module and update global types

* fix: declare global declareFont

* test: all map loading test
This commit is contained in:
Marc Emmanuel 2026-02-17 14:07:43 +01:00 committed by GitHub
parent cff57dc4c8
commit bce65ce2b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 578 additions and 146 deletions

View file

@ -1,4 +1,5 @@
export const byId = document.getElementById.bind(document);
export const byId = <T extends HTMLElement>(id: string): T | undefined =>
document.getElementById(id) as T;
declare global {
interface Window {