Skip to content

Update shape rendering for tldraw2#73

Draft
kepstin wants to merge 2 commits intomainfrom
tldraw2-shapes
Draft

Update shape rendering for tldraw2#73
kepstin wants to merge 2 commits intomainfrom
tldraw2-shapes

Conversation

@kepstin
Copy link
Copy Markdown
Contributor

@kepstin kepstin commented Apr 7, 2026

This currently fixes just the polygonal geo shapes, see the comment on db1dd29

WIP untested code. I expect to be doing more refactoring before this is ready to be merged.

Fixes #66, #72

kepstin added 2 commits April 6, 2026 11:19
Write updated rendering code for all the polygonal geo shapes, which
can share a substantial amount of code between all of the shapes (the
only difference between shapes is the list of shape vertices). To allow
using class inheritance for this, some of the abstract base classes
(protocols) had to be re-arranged to avoid import loops.

The missing octagon, pentagon, and rhombus-2 shapes are also implemented
since they were trivial to add.
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.

Appearance mismatch between live session and recording

1 participant