Add PDF export, file-size display, trapezium shape and multiple rendering/selection fixes - #16
Open
Dcode9 wants to merge 1 commit into
Open
Add PDF export, file-size display, trapezium shape and multiple rendering/selection fixes#16Dcode9 wants to merge 1 commit into
Dcode9 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Motivation
Description
.board-card-metaand.board-file-sizestyling and adjusted toolbar/tool-config layout to better handle pinned configs and responsive widths.formatBoardFileSize,estimateBoardFileSize,getBoardDrawingDataandexportBoardToPdf, added an "Export PDF" button to board cards, and display file size for each board and preview update.trapeziumoption to the shapes popover and implementedtrapeziumsupport acrossgetQuadrilateralPoints, drawing, bounds, and eraser hit-testing.requestRenderscheduling andrenderFrametracking, introduced stroke bounds caching (strokeBoundsCacheandgetStrokeBounds/getStrokeLocalBounds), limited preview strokes via amaxStrokesparam todrawDrawingToCanvas, and switched to exponential zoom factors for wheel/touch for smoother zooming.makeStrokePointvelocity-based width smoothing, enabledvariableWidthfor pen strokes, increased zoom clamp safety, fixed DPR/scaling issues, and removed fragile touch-hold eraser gesture in favor of explicit eraser handling.getSelectionIndices,copySelectedStrokes,pasteSelectedStrokes), wired keyboard shortcuts forCtrl+C/Ctrl+V, made shapes auto-select after finishing, and refined resize/rotate handle calculations.Testing
npm test, which completed successfully.npm run lint, which passed without errors.npm run build) as a smoke check, which succeeded.Codex Task