Skip to content

Commit

Permalink
Merge pull request #13 from kdungs/master
Browse files Browse the repository at this point in the history
Fix default values for groups and nodes.
  • Loading branch information
tntobias authored Oct 6, 2020
2 parents 5cb928d + 43f8809 commit c78c821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diagram/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ type OptionSet []NodeOption
func DefaultNodeOptions(opts ...NodeOption) NodeOptions {
nopts := NodeOptions{
Name: "node",
Label: "node",
Label: "",
Shape: "box",
Style: "rounded",
FixedSize: true,
Expand Down
2 changes: 1 addition & 1 deletion diagram/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (o Options) attrs() map[string]string {
m[k] = v
}

return m
return trimAttrs(m)
}

type Option func(*Options)
Expand Down

0 comments on commit c78c821

Please sign in to comment.