You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small usability issue. I'm attempting to render a diagram that uses the GCP Pubsub icon (which the asset package does not appear to have).
I thought I might be able to diagram.NewNode(diagram.Icon("pubsub.png")).Label("QueueName") but I noticed that node render expects the image path to be in the asset box. Would it be possible to fall back to local disk? Or maybe better yet provide a NodeOption like CustomImage to support custom icons?
The text was updated successfully, but these errors were encountered:
Good catch! We should absolutely find a way intuitively use images from outside the library. I have an idea on how to do this but wanna release an update before I tackle it. Thanks for calling attention to this.
Small usability issue. I'm attempting to render a diagram that uses the GCP Pubsub icon (which the asset package does not appear to have).
I thought I might be able to
diagram.NewNode(diagram.Icon("pubsub.png")).Label("QueueName")
but I noticed that node render expects the image path to be in the asset box. Would it be possible to fall back to local disk? Or maybe better yet provide aNodeOption
likeCustomImage
to support custom icons?The text was updated successfully, but these errors were encountered: