d2/d2layouts/d2sequence/constants.go

22 lines
596 B
Go
Raw Normal View History

2022-11-28 19:41:44 +00:00
package d2sequence
2022-11-28 21:08:52 +00:00
// leaves at least 25 units of space on the left/right when computing the space required between actors
const HORIZONTAL_PAD = 50.
2022-11-28 19:41:44 +00:00
2022-11-30 20:09:29 +00:00
// leaves at least 25 units of space on the top/bottom when computing the space required between messages
2022-11-29 18:18:32 +00:00
const VERTICAL_PAD = 50.
2022-11-28 19:41:44 +00:00
const MIN_ACTOR_DISTANCE = 200.
2022-11-30 20:09:29 +00:00
// min vertical distance between messages
const MIN_MESSAGE_DISTANCE = 100.
2022-11-29 01:06:37 +00:00
2022-11-29 03:20:53 +00:00
// default size
const SPAN_BASE_WIDTH = 12.
2022-11-29 02:23:51 +00:00
2022-11-29 23:40:43 +00:00
// as the spans start getting nested, their size grows
const SPAN_DEPTH_GROWTH_FACTOR = 8.
2022-11-29 03:20:53 +00:00
2022-11-30 20:09:29 +00:00
// when a span has a single messages
const MIN_SPAN_HEIGHT = 80.