chore: remove dead code and duplicate logic

- drop unused assertNever, canvg dependency (never imported),
  readonly re-export shim in VertebraPicker, stale equine named export
- unexport validateBoneElement (internal only)
- getBoneIdFromEvent now delegates to getAnnotatedElement (dup walk-up)
- rasterizeSvg: drop ignored _scale param (2 call sites + tests)
- extract byte-identical word-wrap into pdf/render/text.ts
- extract mergeBones helper in EditorRoute (block duplicated twice)
- fix stale canvg comment in observationPage
Checks: typecheck, lint, 174/174 tests, build all green
This commit is contained in:
Bastien Chanot committed 2026-07-12 04:47:54 +02:00
1 parent c55da07697
commit bbdc0e851a
14 files changed
+55 -141

No files matched your search

+2 -3
View File
@@ -1,7 +1,7 @@
import type { SpeciesManifest } from '@/domain/species/types'
import { EQUINE_VERTEBRAL_FORMULA } from './vertebrae'
export const equine: SpeciesManifest = {
const equine: SpeciesManifest = {
id: 'equine',
labelFr: 'Cheval',
mainSvg: '/species/equine/Horse.svg',
@@ -13,6 +13,5 @@ export const equine: SpeciesManifest = {
}
// Default export is the convention picked up by the registry's
// import.meta.glob() auto-discovery. Keep the named export for any
// code that still imports the manifest by name.
// import.meta.glob() auto-discovery.
export default equine