add class row ascii diagram

This commit is contained in:
Gavin Nishizawa 2023-01-27 10:52:46 -08:00
parent ce0d81650d
commit 781194e8ba
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -764,6 +764,12 @@ func (obj *Object) GetDefaultSize(mtexts []*d2target.MText, ruler *textmeasure.R
maxWidth = lineWidth
}
}
// ┌─PrefixWidth ┌─CenterPadding
// ┌─┬─┬───────┬──────┬───┬──┐
// │ + getJobs() Job[] │
// └─┴─┴───────┴──────┴───┴──┘
// └─PrefixPadding └──TypePadding
// ├───────┤ + ├───┤ = maxWidth
dims.Width = d2target.PrefixPadding + d2target.PrefixWidth + maxWidth + d2target.CenterPadding + d2target.TypePadding
// All rows should be the same height