add comment

This commit is contained in:
Alexander Wang 2022-12-05 22:33:35 -08:00
parent 06ea7c191a
commit 59815cc218
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -978,6 +978,8 @@ func Render(diagram *d2target.Diagram) ([]byte, error) {
} }
} }
// Mask URLs are global. So when multiple SVGs attach to a DOM, they share
// the same namespace for mask URLs.
labelMaskID, err := diagram.HashID() labelMaskID, err := diagram.HashID()
if err != nil { if err != nil {
return nil, err return nil, err