Skip to content

Commit

Permalink
add arrowhead_scaling test
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-ts committed Mar 30, 2023
1 parent 3d5f329 commit fb3e49a
Show file tree
Hide file tree
Showing 6 changed files with 18,002 additions and 0 deletions.
1 change: 1 addition & 0 deletions e2etests/stable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2464,6 +2464,7 @@ scenarios: {
}
}`,
},
loadFromFile(t, "arrowhead_scaling"),
}

runa(t, tcs)
Expand Down
340 changes: 340 additions & 0 deletions e2etests/testdata/files/arrowhead_scaling.d2
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
default: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
}
}

line: {
start: ""
end: ""

start.1 -- end.1: 1 {
style.stroke-width: 1
}
start.2 -- end.2: 2 {
style.stroke-width: 2
}
start.3 -- end.3: 4 {
style.stroke-width: 4
}
start.8 -- end.8: 8 {
style.stroke-width: 8
}
start.15 -- end.15: 15 {
style.stroke-width: 15
}
}

arrow: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: arrow
target-arrowhead.shape: arrow
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: arrow
target-arrowhead.shape: arrow
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: arrow
target-arrowhead.shape: arrow
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: arrow
target-arrowhead.shape: arrow
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: arrow
target-arrowhead.shape: arrow
}
}

diamond: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
}
}

filled diamond: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: diamond
target-arrowhead.shape: diamond
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
}

circle: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: circle
target-arrowhead.shape: circle
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: circle
target-arrowhead.shape: circle
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: circle
target-arrowhead.shape: circle
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: circle
target-arrowhead.shape: circle
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: circle
target-arrowhead.shape: circle
}
}

filled circle: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: circle
target-arrowhead.shape: circle
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: circle
target-arrowhead.shape: circle
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: circle
target-arrowhead.shape: circle
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: circle
target-arrowhead.shape: circle
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: circle
target-arrowhead.shape: circle
source-arrowhead.style.filled: true
target-arrowhead.style.filled: true
}
}

cf one: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: cf-one
target-arrowhead.shape: cf-one
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: cf-one
target-arrowhead.shape: cf-one
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: cf-one
target-arrowhead.shape: cf-one
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: cf-one
target-arrowhead.shape: cf-one
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: cf-one
target-arrowhead.shape: cf-one
}
}

cf one required: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: cf-one-required
target-arrowhead.shape: cf-one-required
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: cf-one-required
target-arrowhead.shape: cf-one-required
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: cf-one-required
target-arrowhead.shape: cf-one-required
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: cf-one-required
target-arrowhead.shape: cf-one-required
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: cf-one-required
target-arrowhead.shape: cf-one-required
}
}

cf many: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: cf-many
target-arrowhead.shape: cf-many
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: cf-many
target-arrowhead.shape: cf-many
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: cf-many
target-arrowhead.shape: cf-many
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: cf-many
target-arrowhead.shape: cf-many
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: cf-many
target-arrowhead.shape: cf-many
}
}

cf many required: {
start: ""
end: ""

start.1 <-> end.1: 1 {
style.stroke-width: 1
source-arrowhead.shape: cf-many-required
target-arrowhead.shape: cf-many-required
}
start.2 <-> end.2: 2 {
style.stroke-width: 2
source-arrowhead.shape: cf-many-required
target-arrowhead.shape: cf-many-required
}
start.3 <-> end.3: 4 {
style.stroke-width: 4
source-arrowhead.shape: cf-many-required
target-arrowhead.shape: cf-many-required
}
start.8 <-> end.8: 8 {
style.stroke-width: 8
source-arrowhead.shape: cf-many-required
target-arrowhead.shape: cf-many-required
}
start.15 <-> end.15: 15 {
style.stroke-width: 15
source-arrowhead.shape: cf-many-required
target-arrowhead.shape: cf-many-required
}
}
Loading

0 comments on commit fb3e49a

Please sign in to comment.