Skip to content

Docs/readme canvas limitation#70

Merged
u8array merged 3 commits into
mainfrom
docs/readme-canvas-limitation
May 17, 2026
Merged

Docs/readme canvas limitation#70
u8array merged 3 commits into
mainfrom
docs/readme-canvas-limitation

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 17, 2026

No description provided.

u8array added 2 commits May 17, 2026 17:47
Both shapes now wrap body + a dedicated EllipseSelectionOverlay in a
top-left-anchored Group, matching the box pattern. The selection blue
traces the declared outer bbox instead of re-stroking the inset body,
so a thick outline shape keeps the marker on its outer pixel.

Drops nodeOrigin: 'center' from the ellipse/circle registries since
the Group origin is now top-left; the transformer reads node.x()/y()
directly without the center-to-top-left conversion.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request standardizes the coordinate system for canvas objects by wrapping center-anchored shapes, such as ellipses and circles, in a top-left positioned Group. This change simplifies the transformation logic, enabling the removal of the transformNodeTopLeft utility and the nodeOrigin property from object definitions. Additionally, the README.md was updated to clarify text rendering limitations in the canvas preview. Feedback was provided to update a documentation comment in KonvaObject.tsx to accurately reflect that all shapes are now wrapped in a Group node.

Comment thread src/components/Canvas/KonvaObject.tsx Outdated
@u8array u8array merged commit e4d9cd4 into main May 17, 2026
2 checks passed
@u8array u8array deleted the docs/readme-canvas-limitation branch May 17, 2026 16:20
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