The example can be compiled correctly to a png image if the font size is 22 in both classes. If the size is 17, the db_users entity is displayed incorrectly, and when the size is 16, nothing is displayed correctly.
vars: {
d2-config: {
layout-engine: elk
}
}
classes: {
model-proxy: {
shape: hexagon
style.font-size: 22
# style.font-size: 17 # Proxy is shown correctly
# style.font-size: 16 # Nothing is shown correctly
}
model-database: {
shape: cylinder
style.font-size: 22
# style.font-size: 17 # Users is not shown correctly
# style.font-size: 16 # Nothing is shown correctly
}
}
proxy: |md
# Reverse Proxy
[Web Server: Nginx]
| {class: model-proxy}
db_users: |md
# Users
BD: PostgreSQL
| {class: model-database}
db_system: |md
# Content
BD: PostgreSQL
| {class: model-database}
The example can be compiled correctly to a png image if the font size is 22 in both classes. If the size is 17, the
db_usersentity is displayed incorrectly, and when the size is 16, nothing is displayed correctly.