add unfilled triangle to sketch renderer
This commit is contained in:
parent
d337f71513
commit
81868de8f6
1 changed files with 8 additions and 0 deletions
|
|
@ -733,6 +733,14 @@ func ArrowheadJS(r *Runner, arrowhead d2target.Arrowhead, stroke string, strokeW
|
|||
stroke,
|
||||
stroke,
|
||||
)
|
||||
case d2target.UnfilledTriangleArrowhead:
|
||||
arrowJS = fmt.Sprintf(
|
||||
`node = rc.polygon(%s, { strokeWidth: %d, stroke: "%s", fill: "%s", fillStyle: "solid", seed: 2 })`,
|
||||
`[[-10, -4], [0, 0], [-10, 4]]`,
|
||||
strokeWidth,
|
||||
stroke,
|
||||
BG_COLOR,
|
||||
)
|
||||
case d2target.DiamondArrowhead:
|
||||
arrowJS = fmt.Sprintf(
|
||||
`node = rc.polygon(%s, { strokeWidth: %d, stroke: "%s", fill: "%s", fillStyle: "solid", seed: 1 })`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue