-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Custom SVG Background #98
Comments
Hi! Currently, it’s not possible to draw a custom image as a background, but I agree it would be a great addition. I'm considering how best to implement it:
|
Hi, Thanks a lot for the reply. I'm thinking a SVG / an Image like a city map, that scale, move on zoom/pan gonna be a cool one, but will be a tricky one since the canvas is infinite. |
That map-feature with image in the background would be powerful.
For the map it would be probably beneficial to have an option to "limit" the infinite canvas. But I guess "white" area outside of that background image would be sufficient for the beginning. |
@elnipa thank you for the suggestion! Added to the backlog @VinskyStrauss I guess it would help if your city map image is a repeat friendly, so it will look fine in infinite canvas with enabled repeating |
Hi @elnipa @VinskyStrauss. I added this feature in this release. |
Awesome, that's a great addition. Thanks |
Hi @artem-mangilev, I have a question about the background SVG. I tried it in my code, but the background image won't appear. I can access the SVG in http://localhost:4200/assets/darmstadt.svg . This is the code for my ngx-vflow
|
Hi! That's interesting, I'll check it during the week. The first guess why it works for me (as you may see in the doc) is because the library compiles as a part of docs application. So I'll try to reproduce the bug by installing the lib from npm |
Hi, thanks a lot for the quick response. I'm looking forward to your findings. |
Hi, It seems I’ve found the solution. To pull images from assets as shown in my example, you need to make the following changes to your |
Hi,
Based on the Documentation of ngx-vflow currently it supports 2 type of Background, which is the dots-Background and the color Background. Is it possible to use a custom svg as the Background of the ngx-vflow? let's take an example, where i use a city map as the custom SVG Background.
The text was updated successfully, but these errors were encountered: