fix: add clipPath for only ShapeClass and SQLTable
This commit is contained in:
parent
39419f221f
commit
de42aa58e7
1 changed files with 1 additions and 1 deletions
|
|
@ -879,7 +879,7 @@ func drawShape(writer io.Writer, targetShape d2target.Shape, sketchRunner *d2ske
|
|||
}
|
||||
|
||||
// this clipPath must be defined outside `g` element
|
||||
if targetShape.BorderRadius != 0 {
|
||||
if targetShape.BorderRadius != 0 && (targetShape.Type == d2target.ShapeClass || targetShape.Type == d2target.ShapeSQLTable) {
|
||||
fmt.Fprint(writer, tableHeaderBorderRadius(targetShape))
|
||||
}
|
||||
fmt.Fprintf(writer, `<g id="%s"%s>`, svg.EscapeText(targetShape.ID), opacityStyle)
|
||||
|
|
|
|||
Loading…
Reference in a new issue