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

Allow KImages to refer to arbitrary URIs, which will be linked in the SVG #187

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

NiklasRentzCAU
Copy link
Member

A first implementation to include images in the SVG outside of the bundled language server jar in the diagram. URIs available to the application can be used with this, e.g. URLs to images found online.
To refer to a URI image, add a KImage to the model with bundleName = "URI" and the URI in the imagePath attribute.

This implementation just refers to those images, a different implementation also enabling to refer to e.g. image files next to the visualized model will be worth expanding on this feature, as well as downloading and embedding the images in the SVG instead of linking to them for better compatibility during SVG export.

@NiklasRentzCAU NiklasRentzCAU added enhancement New feature or request klighd-core labels Jul 25, 2024
@NiklasRentzCAU NiklasRentzCAU self-assigned this Jul 25, 2024
@NiklasRentzCAU
Copy link
Member Author

This is a first implementation towards the ticket kieler/KLighD#146.

@NiklasRentzCAU NiklasRentzCAU merged commit 91e7786 into main Jul 25, 2024
1 check passed
@NiklasRentzCAU NiklasRentzCAU deleted the nre/imageURIs branch July 25, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request klighd-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant