Source File
constants.go
Belonging Package
oss.terrastruct.com/d2/d2layouts/d2sequence
package d2sequence// units of space on the left/right when computing the space required between actorsconst HORIZONTAL_PAD = 40.const LABEL_HORIZONTAL_PAD = 60.// units of space on the top/bottom when computing the space required between messages// TODO lowerconst VERTICAL_PAD = 40.const MIN_ACTOR_DISTANCE = 150.const MIN_ACTOR_WIDTH = 100.const SELF_MESSAGE_HORIZONTAL_TRAVEL = 80.const GROUP_CONTAINER_PADDING = 12.const EDGE_GROUP_LABEL_PADDING = 20.// min vertical distance between messagesconst MIN_MESSAGE_DISTANCE = 30.// default sizeconst SPAN_BASE_WIDTH = 12.// as the spans start getting nested, their size growsconst SPAN_DEPTH_GROWTH_FACTOR = 8.// when a span has a single messagesconst MIN_SPAN_HEIGHT = 30.const SPAN_MESSAGE_PAD = 10.const LIFELINE_STROKE_WIDTH int = 2const LIFELINE_STROKE_DASH int = 6// pad when the actor has the label placed OutsideMiddleBottom so that the lifeline is not so close to the textconst LIFELINE_LABEL_PAD = 5.const (LIFELINE_Z_INDEX = 1SPAN_Z_INDEX = 2GROUP_Z_INDEX = 3MESSAGE_Z_INDEX = 4NOTE_Z_INDEX = 5)
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |