Repository navigation
Clip router SVG geometry to viewport bounds - #1
Merged
Merged
Conversation
Clip belt, pipe, and tunnel segments in showcase_svg.py to the 48x36 viewport box. Wrap routed panels and placement panels in SVG clipPath elements. Extend 1-tile belts along their travel vector and query machine footprints dynamically. Remove duplicate reduction text that overlaps the placement badge. Add coordinate bounds tests for all four pipeline SVGs.
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.
Summary
tools/showcase_svg.pyto the48x36viewport box using Liang-Barsky clipping.<clipPath>groups to the router viewport and bothpipeline_placement.svgpanels.1-tile belt segments by0.38tiles alongDIR_STEPSso short belts keep true travel direction.entity_size()and add--refresh-svgstotools/build_showcase_site.py.pipeline_placement.svgright panel title so it clears the green-79.2% HPWLbadge.test/test_showcase_site.py.Verification
bazel test //test:showcase_site_test //tools:ruff_test //tools:ty_test //tools:ste_lint_testbazel build //site:pages_bundlebazel test //... --build_tests_only --test_tag_filters=-science,-openroad,-requires-game-data