Uh oh!
There was an error while loading. Please reload this page.
Backport improvements from TechPizzaDev fork. - #366
Merged
JimBobSquarePants merged 37 commits intoOct 30, 2025
Conversation
Uh oh!
There was an error while loading. Please reload this page.
This was referenced May 12, 2026
This was referenced Jun 16, 2026
This was referenced Jun 29, 2026
This was referenced Aug 8, 2026
This was referenced Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
Note: Most of the work here was done by @TechPizzaDev
This PR introduces several improvements and refactorings across the drawing and shapes components of the codebase. The most significant changes include refactoring the
ComplexPolygonandEllipsePolygonclasses for better performance and maintainability, updating the handling of Bezier and Arc line segments, and making various code quality and style improvements. Below are the most important changes grouped by theme:Shapes and Geometry Refactoring
ComplexPolygonto lazily compute bounds and internal paths, reducing upfront computation and improving performance. Introduced helper methods for internal path initialization and bounds calculation.EllipsePolygonto inherit fromPolygonand removed redundant internal state. Updated transformation logic to work with the new structure, simplifying the class and aligning it with other shape types.PolygonStrokerclass designed to replacePolygonOffsetterLine Segment Improvements
CubicBezierLineSegmentandArcLineSegmentto computeEndPointandFlatten()lazily, improving efficiency and consistency. Added a convenience constructor and a method to retrieve control points for Bezier segments.Code Quality and Style
opaqueconstant, use of slice syntax).Miscellaneous Fixes
RichTextGlyphRendererby referencing the correct path list.