Skip to content

refactor(editor): specify type for bbox in getSvgJsx#4732

Merged
steveruizok merged 1 commit intotldraw:mainfrom
nayounsang:bbox-type
Oct 19, 2024
Merged

refactor(editor): specify type for bbox in getSvgJsx#4732
steveruizok merged 1 commit intotldraw:mainfrom
nayounsang:bbox-type

Conversation

@nayounsang
Copy link
Contributor

@nayounsang nayounsang commented Oct 19, 2024

I found that bbox's type is any. Bbox is a let variable, so I thought it would be good to improve.

Change type

  • improvement

Test plan

  1. yarn run test
  • Just I change the type, so logic is not changed. It just checks to see if there are any type errors.

  • Unit tests

  • End to end tests

Release notes

  • Improved type safety for bounding box calculations in SVG exports.

@huppy-bot huppy-bot bot added the improvement Product improvement label Oct 19, 2024
@vercel
Copy link

vercel bot commented Oct 19, 2024

@nayounsang is attempting to deploy a commit to the tldraw Team on Vercel.

A member of the Team first needs to authorize it.

@steveruizok
Copy link
Collaborator

Thanks @nayounsang !

@steveruizok steveruizok added this pull request to the merge queue Oct 19, 2024
Merged via the queue into tldraw:main with commit 8ff67b9 Oct 19, 2024
@steveruizok steveruizok added the sdk Affects the tldraw sdk label Jan 2, 2026
@steveruizok steveruizok changed the title refactor: specify type at bbox refactor(editor): specify type for bbox in getSvgJsx Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Product improvement sdk Affects the tldraw sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants