add arrowheads sketch test
This commit is contained in:
parent
7bea56301c
commit
033a005eea
2 changed files with 132 additions and 0 deletions
|
|
@ -280,6 +280,51 @@ shipments.order_id <-> orders.id`,
|
||||||
+getJobs(): "Job[]"
|
+getJobs(): "Job[]"
|
||||||
+setTimeout(seconds int)
|
+setTimeout(seconds int)
|
||||||
}
|
}
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "arrowheads",
|
||||||
|
script: `
|
||||||
|
a.0 <-> b.0: <->
|
||||||
|
a.1 -- b.1: --
|
||||||
|
a.2 <-> b.2: arrow {
|
||||||
|
source-arrowhead.shape: arrow
|
||||||
|
target-arrowhead.shape: arrow
|
||||||
|
}
|
||||||
|
a.3 <-> b.3: triangle {
|
||||||
|
source-arrowhead.shape: triangle
|
||||||
|
target-arrowhead.shape: triangle
|
||||||
|
}
|
||||||
|
a.4 <-> b.4: diamond {
|
||||||
|
source-arrowhead.shape: diamond
|
||||||
|
target-arrowhead.shape: diamond
|
||||||
|
}
|
||||||
|
a.5 <-> b.5: diamond filled {
|
||||||
|
source-arrowhead: {
|
||||||
|
shape: diamond
|
||||||
|
style.filled: true
|
||||||
|
}
|
||||||
|
target-arrowhead: {
|
||||||
|
shape: diamond
|
||||||
|
style.filled: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
a.6 <-> b.6: cf-many {
|
||||||
|
source-arrowhead.shape: cf-many
|
||||||
|
target-arrowhead.shape: cf-many
|
||||||
|
}
|
||||||
|
a.7 <-> b.7: cf-many-required {
|
||||||
|
source-arrowhead.shape: cf-many-required
|
||||||
|
target-arrowhead.shape: cf-many-required
|
||||||
|
}
|
||||||
|
a.8 <-> b.8: cf-one {
|
||||||
|
source-arrowhead.shape: cf-one
|
||||||
|
target-arrowhead.shape: cf-one
|
||||||
|
}
|
||||||
|
a.9 <-> b.9: cf-one-required {
|
||||||
|
source-arrowhead.shape: cf-one-required
|
||||||
|
target-arrowhead.shape: cf-one-required
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
87
d2renderers/d2sketch/testdata/arrowheads/sketch.exp.svg
vendored
Normal file
87
d2renderers/d2sketch/testdata/arrowheads/sketch.exp.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 349 KiB |
Loading…
Reference in a new issue