Repository navigation
Conversation
`diagram: { wrap: true }`, or `wrap: { aspect: N }`, turns on ELK's
MULTI_EDGE wrapping, with cuts moved to the boundary the fewest lines
cross. Off by default, so a sheet without it lays out exactly as before.
Read from looms and plumbing plans alike, and from prepended files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds an opt-in
diagram.wrapoption that folds a long sheet into rows. It is off by default.What it does
wrapfromdiagram, so it works for looms, for plumbing plans and in a prepended file. A bad value is an error.elk.layered.wrapping.strategy: MULTI_EDGE,elk.aspectRatio,multiEdge.distancePenalty: 0.5, andadditionalEdgeSpacingequal to the sheet's edge spacing.NoSuchElementExceptionon any plan with a tee.Tuning on hailey
wrap: { aspect: 4 }gives two clean rows at 8048×2014, folded through the single pipe ahead of the first tee.wrap: truegives three rows, but the last row holds only the filtered water faucet.wrap: truereads well. Each fold crosses at most two hoses.Default output unchanged
I copied every hailey loom and plan, rendered them as svg, png and md with
mainand with this branch, and randiff -r. All 42 files are identical.Open
aspect.🤖 Generated with Claude Code