Comments (6)
There is a very simple example and we need to work on the rabbitMQ icon to look good.
from diagrams.
Do you have any examples for custom node? I wanna see that :)
from diagrams.
It was just a PoC but the idea is to overload the _load_icon
method.
class Custom(Node):
_provider = "custom"
_type = "custom"
fontcolor = "#ffffff"
_icon_dir = None
def _load_icon(self):
return self._icon
def __init__(self, icon_path, label):
self._icon = icon_path
super().__init__(label)
from diagrams.
Also, the metadata (provider, type, ...) could be also editable on the init
method.
from diagrams.
It's a good idea!
I suggest a small fix that changes the order of arguments.
def __init__(self, label, icon_path):
self._icon = icon_path
super().__init__(label)
# rather than
def __init__(self, icon_path, label):
self._icon = icon_path
super().__init__(label)
from diagrams.
Nice, I'll open a PR with the custom node code.
from diagrams.
Related Issues (20)
- Does not render a hashRing
- TypeError: 'VPC' object does not support the context manager protocol HOT 2
- [new resource request] Do we have sumo logic diagram avaiable in resource?
- How do I remove white space from around the image? HOT 4
- Icon Request: diagrams.onprem.monitoring.VictoriaMetrics HOT 1
- ImportError: cannot import name 'Diagram' from partially initialized module 'diagrams' HOT 3
- Render the Diagram in Markdown with a Server
- Skilled innovator, but new developer
- Support for ER Diagrams
- Python 3.12 not supported HOT 2
- Where does the extra space come from?
- make cluster ranks the same in for loop HOT 2
- Change Layout direction in cluster with connections HOT 1
- Wana join me for a New App giving people There control of there phones back ? 🆓🥔 freepotato.atlassian.net
- links between object misaligned and straight HOT 2
- How do you generate diagrams with transparent background?
- Add AWS Managed Workflow for Airflow Apache
- Is there a node for Kubernetes itself?
- Add edge flow animation
- Icon Request: Azure Speech To Text , Azure Open AI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diagrams.