You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d3c38d0
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(canvas): tighten showHriOverlay readability per second review
Three cosmetic cleanups in the merged showHriOverlay branch:
- Hoist `isEanUpc` once; derive `isUprightEanUpc` and
`useUprightTransform` from it. Eliminates three repeated
`EAN_UPC_TYPES.has(obj.type)` call sites.
- Collapse four parallel `clipX/Y/Width/Height` ternaries into a
single `clipProps` object spread, with extents read directly from
the EAN/UPC overlay return rather than via pre-if-defaulted
locals.
- Drop the unused `rotatedBboxDims` export from
`rotatedGroupTransform.ts` (only its own test referenced it).
No behaviour change.
0 commit comments