Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New framework for displaying images in rendered documentation #2735

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alex-bel
Copy link

@alex-bel alex-bel commented Apr 3, 2024

  • Supports raster and SVG images
  • Re-rasterizes SVG images when view dimensions are changed
  • Supports changes tracking of local files via VirtualFileSystem; automatically reloads images if they are changed
  • Supports base64 data urls

DocRenderer and DocumentationEditorPane now properly handle content height change due to images being loaded lazily

Fixes IDEA-256643

Some screenshots explaining visual changes

Code editor and pop-up documentation pane - no fix:
editor_nofix

Code editor and pop-up documentation pane - with fix:
editor_fixed

SVGs in comments are rendered and there are no scaling artifacts in image in pop-up documentation pane

Documentation panels side-by side (left - with fix, right - without fix). Notice scaling artifacts on the rand hand side panel
documentation_panel_sxs

@alex-bel alex-bel force-pushed the adaptive-images branch 3 times, most recently from f14e68e to 0587baa Compare April 8, 2024 08:52
@alex-bel alex-bel marked this pull request as ready for review April 8, 2024 09:03
 - Supports raster and SVG images
 - Re-rasterizes SVG images when view dimensions are changed
 - Supports changes tracking of local files via VirtualFileSystem; automatically reloads images if they are changed
 - Supports base64 data urls

DocRenderer and DocumentationEditorPane now properly handle content height change due to images being loaded lazily

Fixes IDEA-256643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant