fix width stroke when the shape has shadow
This commit is contained in:
parent
88d6eac8e0
commit
36373c30ff
3 changed files with 7 additions and 7 deletions
|
|
@ -175,7 +175,7 @@ func (diagram Diagram) BoundingBox() (topLeft, bottomRight Point) {
|
|||
}
|
||||
if targetShape.Shadow {
|
||||
y2 = go2.Max(y2, targetShape.Pos.Y+targetShape.Height+int(math.Ceil(float64(targetShape.StrokeWidth)/2.))+SHADOW_SIZE_Y)
|
||||
x2 = go2.Max(x2, targetShape.Pos.X+targetShape.StrokeWidth+targetShape.Width+SHADOW_SIZE_X)
|
||||
x2 = go2.Max(x2, targetShape.Pos.X+targetShape.Width+int(math.Ceil(float64(targetShape.StrokeWidth)/2.))+SHADOW_SIZE_X)
|
||||
}
|
||||
|
||||
if targetShape.ThreeDee {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Loading…
Reference in a new issue