terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
18.17k stars 447 forks source link

Arrow overlaps tooltip #589

Open rfuehrer opened 1 year ago

rfuehrer commented 1 year ago

In a diagram, an element has two incoming references. If a tooltip is defined on the element to which the arrows refer, the arrow overlaps the tooltip icon. This makes the display unclean. Whether the arrow should be placed behind the tool or the arrow should hit the element or the tooltip at another place, I would be undecided myself at the moment.

62829

alixander commented 1 year ago

interesting. i'm not sure either. it would also look weird pointing to the icon. maybe i can make the icon like 0.8 opacity or choose a blending-mode

bo-ku-ra commented 1 year ago

i think the svg that includes pictogram(tooltip/link) is not beautiful simply.

alixander commented 1 year ago

@bo-ku-ra can you say more?

bo-ku-ra commented 1 year ago

Excuse me. I don't need the pictograms. the mouse cursor changes on links. tooltips will be displayed. (p.s. IMO, png output is only non-intaractive diagrams.)

Why are they there? > @alixander

alixander commented 1 year ago

in a larger diagram, maybe you only have a few shapes that have tooltips. the viewer should easily know which ones do, so they don't have to hover over every one checking

bo-ku-ra commented 1 year ago

Oh, i see. I would say "could i customize these pictograms visible or invisible by .env?" (#588) "is there the method that changing pictogram's opacity=zero"

589 will solve too.

alixander commented 1 year ago

wouldn't you or your teammates get confused where to hover then?

is it an issue with the pictogram itself? Would you want it to be smaller, somewhere else, a different icon?

bo-ku-ra commented 1 year ago

no ploblem. because tooltip is only tips. i think "must not write core contents there"

i see the whole diagram for widly understandig. i dont need to read such tips.

next

i see a part of diagram for deep understanding. tips is helpful. and my mouse cursol is already near there.

if necessary, I can change colors, lines type for eye catching.