2022-11-28 19:41:44 +00:00
|
|
|
package d2sequence
|
|
|
|
|
|
2023-02-12 17:59:44 +00:00
|
|
|
// units of space on the left/right when computing the space required between actors
|
|
|
|
|
const HORIZONTAL_PAD = 40.
|
2022-11-28 19:41:44 +00:00
|
|
|
|
2023-02-12 17:59:44 +00:00
|
|
|
// units of space on the top/bottom when computing the space required between messages
|
|
|
|
|
// TODO lower
|
|
|
|
|
const VERTICAL_PAD = 40.
|
2022-11-29 18:18:32 +00:00
|
|
|
|
2023-02-12 17:59:44 +00:00
|
|
|
const MIN_ACTOR_DISTANCE = 150.
|
2022-11-28 19:41:44 +00:00
|
|
|
|
2023-02-12 17:59:44 +00:00
|
|
|
const MIN_ACTOR_WIDTH = 100.
|
2022-12-03 01:08:04 +00:00
|
|
|
|
2023-02-12 17:59:44 +00:00
|
|
|
const SELF_MESSAGE_HORIZONTAL_TRAVEL = 80.
|
2022-12-05 06:34:38 +00:00
|
|
|
|
2023-02-12 17:59:44 +00:00
|
|
|
const GROUP_CONTAINER_PADDING = 12.
|
|
|
|
|
|
|
|
|
|
const EDGE_GROUP_LABEL_PADDING = 20.
|
2022-12-05 07:38:47 +00:00
|
|
|
|
2022-11-30 20:09:29 +00:00
|
|
|
// min vertical distance between messages
|
2023-02-12 17:59:44 +00:00
|
|
|
const MIN_MESSAGE_DISTANCE = 30.
|
2022-11-29 01:06:37 +00:00
|
|
|
|
2022-11-29 03:20:53 +00:00
|
|
|
// default size
|
2022-12-02 21:54:40 +00:00
|
|
|
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
|
2022-12-02 21:54:40 +00:00
|
|
|
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
|
2023-02-12 17:59:44 +00:00
|
|
|
const MIN_SPAN_HEIGHT = 30.
|
2022-12-02 21:59:12 +00:00
|
|
|
|
2022-12-03 00:02:34 +00:00
|
|
|
const SPAN_MESSAGE_PAD = 16.
|
|
|
|
|
|
2022-12-02 21:59:12 +00:00
|
|
|
const LIFELINE_STROKE_WIDTH int = 2
|
|
|
|
|
|
2022-12-05 00:02:25 +00:00
|
|
|
const LIFELINE_STROKE_DASH int = 6
|
2022-12-03 01:08:04 +00:00
|
|
|
|
|
|
|
|
// pad when the actor has the label placed OutsideMiddleBottom so that the lifeline is not so close to the text
|
|
|
|
|
const LIFELINE_LABEL_PAD = 5.
|
2022-12-05 04:53:31 +00:00
|
|
|
|
|
|
|
|
const (
|
2022-12-05 19:22:16 +00:00
|
|
|
LIFELINE_Z_INDEX = 1
|
|
|
|
|
SPAN_Z_INDEX = 2
|
|
|
|
|
GROUP_Z_INDEX = 3
|
2022-12-05 05:19:40 +00:00
|
|
|
MESSAGE_Z_INDEX = 4
|
|
|
|
|
NOTE_Z_INDEX = 5
|
2022-12-05 04:53:31 +00:00
|
|
|
)
|