Import and export Excalidraw, and paste from it - #87
Merged
Merged
Conversation
.excalidraw files and Excalidraw clipboard data become shapes, bound arrows and ink, with skipped elements listed. Export writes a file whose shapes carry their isketch kind, so a round trip is exact.
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.
FL-84.
src/domain/excalidraw.js):.excalidrawfiles and Excalidraw clipboard data. Rectangles, ellipses, diamonds, loose text and frames become shapes named by their bound text; arrows bound to a shape at both ends become connections (label, dashed, two-way, and a head at the start read the way it points); free drawing becomes ink with its pressure; deleted elements are ignored. Lines, images, embeds and loose arrows are counted and listed as skipped. Excalidraw's roughness turns on sketch style.customData, so a round trip is exact; seeded, so the output is stable.Tests:
excalidraw.spec.jsunit (9, round trip included) and e2e (2). e2e 138, vitest 279, lint and typecheck.