Skip to content

Commit

Permalink
replace font in graph options
Browse files Browse the repository at this point in the history
  • Loading branch information
tntobias committed Sep 13, 2020
1 parent 41dac3e commit fe98241
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions diagram/options.go
Expand Up @@ -2,8 +2,6 @@ package diagram

import (
"strconv"

"github.com/blushft/go-diagrams/font"
)

type Options struct {
Expand All @@ -18,7 +16,7 @@ type Options struct {
Splines string
NodeSep float64
RankSep float64
Font font.Options
Font Font
Attributes map[string]string
}

Expand Down Expand Up @@ -57,7 +55,7 @@ func DefaultOptions(opts ...Option) Options {
Splines: "ortho",
NodeSep: 0.60,
RankSep: 0.75,
Font: font.DefaultOptions(),
Font: defaultFont(),
Attributes: make(map[string]string),
}

Expand Down

0 comments on commit fe98241

Please sign in to comment.