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

Add support of hotspot thumbnail image #1131

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

Conversation

Wolfshe
Copy link

@Wolfshe Wolfshe commented Dec 9, 2022

The proposed modification allows to add thumbnail at each hotspot linker. The thumbnail is display when the mouse enter in the hotspot linker element.

The thumbnail image is defined in the config json file with the "thumbnail" attribute.

@mpetroff
Copy link
Owner

Unless I'm missing something, this can already be done by setting the cssClass hot spot parameter and using the :hover selector for the custom CSS class. Doing this styling using CSS is better for performance reasons, anyway.

@Wolfshe
Copy link
Author

Wolfshe commented Dec 19, 2022

The proposed feature allows to load a specific thumbnail for a hotspot (like preview rendering of the scene associated to the hotspot). This implies to use the thumbnail attribute loaded in javascript to craft adapted css attribute.

This feature cannot be implement by a custom CSS class with :hover because hotspots don't share same thumbnail.

Best regards

@mpetroff
Copy link
Owner

This feature cannot be implement by a custom CSS class with :hover because hotspots don't share same thumbnail.

Yes, it can. You just give each hot spot a different CSS class.

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.

2 participants