Repository navigation
Instance model labels, fanout grid and summaries, PNG export - #48
Merged
Merged
Conversation
- view_options (View menu, host push, CLI flags, Python view_options=): instance_label name|model|both draws the cell model under the box; sink_rows wraps a column of sinks into a grid; max_sinks + group_by (model|hierarchy|role) gather a wide net's remaining sinks into summary boxes that expand when clicked. Drivers are always drawn. - PNG export with a scale factor: native --png/--scale, export_png push, naja-schematic render --png --scale, naja_schematic.export_png(). Software rasterizer of the ImGui drawing plus a dependency-free PNG encoder; the headless view now uses the dynamic font atlas.
The default encoding is cp1252 on Windows, which garbles the summary boxes' multiplication sign.
setup-python v6, upload-artifact v6, download-artifact v7 (the first Node 24 majors; artifacts are used by name/pattern only, which their breaking changes don't touch), setup-emsdk v16 at its new home (emscripten-core). msvc-dev-cmd has no Node 24 release: the MSVC environment is now set up inline from vcvarsall.bat.
ubuntu-latest moves to Ubuntu 26.04 from 2026-10-19. The native Linux build and the aarch64 runner were already on 24.04; now every Linux job is, so the wheels and tests don't change OS unannounced.
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.
What
Cell model on instances. New
instance_labelview option:name(the default),model(cell model under the box, no name) orboth. The model row is part of the layout footprint and a routing obstacle. It appears on screen, in SVG and in PNG.Fanout layout
sink_rows(default 8): a column with more sink-only boxes than this wraps into balanced columns.max_sinks(default 32) andgroup_by(model|hierarchy|role): a net draws its first sinks and gathers the rest into stacked summary boxes ("FDRE ×28"). Clicking one shows its sinks.SchematicLayout::planFanout()andlayeredPlacement(..., maxSinkRows).PNG export with a scale factor
--png out.png --scale 3, theexport_pngpush answered bypng_exported,naja-schematic render --png --scale, andnaja_schematic.export_png().RasterPainterrasterizes the same ImGui drawing in software at S×, so text is sharp.PngWriteris a dependency-free encoder.Where the options are set: the View menu (Instance Labels, Fanout), a
view_optionshost push, CLI flags on the native app, the server andrender(--instance-label,--sink-rows,--max-sinks,--group-by), andview_options=onViewerSession,ViewerServer,show()and the export functions.Behavior changes
--sink-rows 0 --max-sinks 0gives the old layout.Tests
tests/FanoutTest.cppandtests/RasterTest.cppare new; all 286 tests pass. Provider tests pass, and the render-only and WASM builds compile.wide_fanout.v. All 238 pass with the renderer required.test_notebook.pywas not run.reuse lintis clean.