d2/d2layouts/d2sequence/constants.go
Júlio César Batista a0c0546059
Add padding to edges
2022-11-29 21:38:19 -08:00

24 lines
757 B
Go

package d2sequence
// leaves at least 25 units of space on the left/right when computing the space required between actors
const HORIZONTAL_PAD = 50.
// leaves at least 25 units of space on the top/bottom when computing the space required between edges
const VERTICAL_PAD = 50.
const MIN_ACTOR_DISTANCE = 200.
// min vertical distance between edges
const MIN_EDGE_DISTANCE = 100.
// default size
const ACTIVATION_BOX_WIDTH = 20.
// small pad so that edges don't touch lifelines and activation boxes
const ACTIVATION_BOX_EDGE_PAD = 2.
// as the activation boxes start getting nested, their size grows
const ACTIVATION_BOX_DEPTH_GROW_FACTOR = 10.
// when a activation box has a single edge
const DEFAULT_ACTIVATION_BOX_HEIGHT = MIN_EDGE_DISTANCE / 2.