-
Notifications
You must be signed in to change notification settings - Fork 51
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
Angular | SingleContainer: Add SVG defs and sizing options to SingleContainer #435
Conversation
…ontainer f5#429 - `svgDefs` allows passing custom SVG defs to be available to all components within the container - `sizing` defines whether components should fit into the container or the container should expand to fit the component's size
Hey @rokotyan sorry for the delay. I was out for a couple weeks. Which version of unovis should I be using with this fix? 1.4.4? |
I saw the release notes and 1.4.4 and it appears the fix should be there, but it still doesn't seem to work. I have defined svgDefs as shown in the documentation and passed it into the html component
For symbolDiamond, it works if I return the online url custom shape, but not when I return cloud, diamond, or any of the svg defs. Is there something I'm doing wrong in the code you see here? I using Angular 15 |
@mossy426 Try 1.4.5-beta.0 |
Thanks! I was able to get it working in stackblitz, but not in my local project. Not seeing why. Troubleshooting now and will get back to you. |
Is there a way to add some kind of error handling to display where the error occurs if no shape is being displayed? It's pretty difficult to debug what could be causing the issue with no error messages. I don't know if the svgdefs arent being sent through properly or there's some other issue. |
@mossy426 This is probably doable, but going to be a little tricky — SVG does the linking itself and doesn't throw any error if it fails. I'll explore this problem when I have time, maybe we can do some checks manually. |
This should fix #429
svgDefs
allows passing custom SVG defs to be available to all components within the containersizing
defines whether components should fit into the container or the container should expand to fit the component's size