Skip to content

Commit

Permalink
Add border line to resources which have children
Browse files Browse the repository at this point in the history
  • Loading branch information
a2ush committed May 9, 2024
1 parent f8d72c9 commit 4fefdb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/ctl/cfntemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package ctl

import (
"fmt"
"image/color"
"regexp"
"strings"

Expand Down Expand Up @@ -210,6 +211,11 @@ func associateCFnChildren(template *TemplateStruct, ds definition.DefinitionStru
log.Infof("Add child(%s) on %s", child, logicalId)

resources[logicalId].AddChild(resources[child])

if def.Border == nil {
resources[logicalId].SetBorderColor(color.RGBA{0, 0, 0, 255})
resources[logicalId].SetFillColor(color.RGBA{0, 0, 0, 0})
}
}
}
}
Expand Down

0 comments on commit 4fefdb6

Please sign in to comment.