mingrammer/diagrams

Edge labels not placed with line

Open

#433 aperta il 8 gen 2021

Vedi su GitHub
 (7 commenti) (2 reazioni) (0 assegnatari)Python (2701 fork)batch import
comp/edgeenhancementhelp wanted

Metriche repository

Star
 (41.903 star)
Metriche merge PR
 (Merge medio 53g 15h) (5 PR mergiate in 30 g)

Descrizione

Green line labels not displaying correctly.

with Diagram("Diagram", outformat="svg") as diag:
    with Cluster("cluster01"):
        s1prox1 = ociVM("Proxy01")
        s1prox2 = ociVM("Proxy02")
        proxygrp = [ s1prox1, s1prox2 ]

    with Cluster("cluster02"):
        s1 = ociVM("s1")

    with Cluster("cluster02"):
        nfs1 = FileStorage("/nfs1")
        nfs2 = FileStorage("/nfs2")
        nfs3 = FileStorage("/nfs3")
        mounts = [nfs1,nfs2,nfs3]

    # s1 - s1prox1
    s1 - Edge(color="blue", style="bold") - proxygrp
    s1prox1 - Edge(color="blue", style="bold") - s1prox2
    s1 >> Edge(label="collect", color="green") >> mounts
    s1prox1 >> Edge(label="collect", color="green") >> mounts
    s1prox2 >> Edge(label="collect", color="green") >> mounts

diag

image

Guida contributor