Repository navigation
Plumbing: read pipeviz plans and draw them on the same core - #4
Merged
Merged
Conversation
A pipeviz reader turns components into cards and each pipe in a chain into a tagged run, coloured by service and weighted by bore. A reversed pipe turns round through a node of its own, so its far end stays in the same layer. Long titles wrap, ports show their thread and gender, and a hex colour is one stripe rather than being split like a code. Release 0.3.0. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <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.
Step 6 of XDGFX/hailey#155: port pipeviz onto ferrule as its plumbing reader. Tagged
v0.3.0at the head of this branch.src/pipeviz.ts): picked for any file with a top-levelcomponentsorpipeskey. Prepends are deep-merged as pipeviz does. Components become cards, ports become pins with thread and gender, each pipe in a chain becomes a tagged run (coloured bycolouror service, weighted by bore), and parts that mate directly get an untagged join. It enforces pipeviz's validation rules, slightly more strictly.pipe^) leaves both ends eastward and turns round through a layout node of its own, so the far end stays in the same layer instead of being dragged a layer on.· 2with the word before it. Port detail is muted at the row's end. Core colours accept hex.#d2b48cwas split like a code and drew grey. In Hailey this turns three electrical fuse swatches tan, asshared.ymlasked. Every other electrical SVG and Markdown file is byte-identical.Tests: 67 pass, including a reader suite and a U-turn layout test. All four Hailey plumbing plans render.
Closes XDGFX/hailey#155
🤖 Generated with Claude Code