Resizable frames pane + a text view of raw bytes - #47
Merged
Conversation
- a 6px grip on the top edge of the frames pane drags the `.sim` grid's bottom row (120px … container−160px), persisted per-viewer in localStorage. - the single `hex` toggle in an expanded frame becomes `hex` / `text` — `text` decodes the bytes as UTF-8 with control / non-printable chars shown as `·`. Both toggle independently.
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.
Two things on the simulate view's frames pane:
ns-resizegrip on the pane's top edge drags the.simgrid's bottom row (clamped 120px … container height − 160px). The height
is remembered per-viewer (
localStorage), re-applied once the pane is inthe DOM.
hextoggle is nowhex/text.textdecodes the raw bytes as UTF-8 and renders control /non-printable chars as
·— so a datagram/JSON frame reads as its JSON,a MessagePack frame shows its readable string bits. The two toggle
independently (
.onstate on the button)..hex-toggle/.frame-hex→.bytes-toggle/.frame-bytes; the pane'sborder-topis dropped (the grip is the divider now). 24 tests + buildgreen.