Skip to content

Implement SVG-based text renderer in Model Explorer for better readability.#644

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_917720399
Open

Implement SVG-based text renderer in Model Explorer for better readability.#644
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_917720399

Conversation

@copybara-service
Copy link
Copy Markdown

Implement SVG-based text renderer in Model Explorer for better readability.

Changes:

  • Added svgTextRenderer and maxNodeLabelWidth to VisualizerConfig.
  • Implemented SvgTextRendererService for SVG element management.
  • Integrated SVG renderer into WebglRenderer with camera synchronization.
  • Updated GraphLayout worker for consistent dimension calculations.
  • Added user setting to toggle SVG text renderer (enabled by default).
  • Updated BUILD and added svg_text_renderer_test.ts.

Why:

  • SVG rendering provides higher quality text at small zoom levels compared to WebGL-based MSDF rendering.
  • It also supports non-ASCII characters.

…ility.

Changes:
- Added `svgTextRenderer` and `maxNodeLabelWidth` to `VisualizerConfig`.
- Implemented `SvgTextRendererService` for SVG element management.
- Integrated SVG renderer into `WebglRenderer` with camera synchronization.
- Updated `GraphLayout` worker for consistent dimension calculations.
- Added user setting to toggle SVG text renderer (enabled by default).
- Updated `BUILD` and added `svg_text_renderer_test.ts`.

Why:
- SVG rendering provides higher quality text at small zoom levels compared to WebGL-based MSDF rendering.
- It also supports non-ASCII characters.
PiperOrigin-RevId: 917720399
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 19, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants