Skip to content

Fix tooth numbering#22

Open
AmirabbasJ wants to merge 1 commit into
biomathcode:mainfrom
AmirabbasJ:fix-tooth-numbering
Open

Fix tooth numbering#22
AmirabbasJ wants to merge 1 commit into
biomathcode:mainfrom
AmirabbasJ:fix-tooth-numbering

Conversation

@AmirabbasJ

Copy link
Copy Markdown

Hey there, great package you made, keep it up, man.
I just noticed one major issue: the way you're mapping the FDI tooth numbering is flawed. This is from your storybook example:
image

You see, this should be 48 and not 38. This issue goes for the whole lower jaw, and also, if you only show the lower jaw, the numbers are wrong again:

image

I fixed this issue in this PR. It looks like your code labels some pairs of teeth as "upper left" when they're actually styled to be "upper right".

I also fixed the issue that I mentioned above by examples, by hard-coding the prefix inside each quadrant, because the main reason that the mapping was going wrong was because you were relying on index which is not a good idea.

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@AmirabbasJ is attempting to deploy a commit to the Pratik Sharma's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant