Repository navigation
Feat/sketchy styles - #12
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Neat, Loose and Wild Rough.js levels, per-annotation and in Screen Draw. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hatching, cross-hatch, zigzag and dots for rectangles and ellipses in the capture canvas, the PNG export and Screen Draw. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lect outline Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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 free
to 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.
This pull request introduces support for advanced line styles and hand-drawn effects in the annotation system, with a focus on frontend-generated geometry for strokes and fills. It also adds validation to ensure safe and consistent rendering, updates the tech stack, and enhances user-facing features and documentation.
Support for advanced annotation styles and geometry:
StrokeGeometrystruct to represent precomputed geometry for styled (dashed, dotted, sketchy) and rounded shapes, including support for polylines, dots, and hand-drawn pattern fills. This geometry is now included in relevant annotation types (Line,Arrow,CurvedArrow,Rectangle,Ellipse) and is validated before rendering. [1] [2] [3] [4] [5] [6] [7]render_annotationand helpers) now draws annotations using this geometry if present, supporting fills, patterned fills, strokes, and dots for a wide variety of line and fill styles.Validation and safety:
validate_scene_geometry) to reject non-finite coordinates, degenerate strokes, and to cap the total number of geometry points, preventing resource exhaustion or malformed input from affecting the exporter. [1] [2]User-facing features and documentation:
Rough.jsfor sketchy strokes.Dependencies:
roughjsas a dependency in the desktop app to support frontend generation of sketchy and hand-drawn effects.Testing: