lib/rails_erd/diagram/graphviz.rb in rails-erd-1.5.0 vs lib/rails_erd/diagram/graphviz.rb in rails-erd-1.5.1
- old
+ new
@@ -60,11 +60,12 @@
pad: "0.4,0.4",
margin: "0,0",
concentrate: true,
labelloc: :t,
fontsize: 13,
- fontname: FONTS[:bold]
+ fontname: FONTS[:bold],
+ splines: 'spline'
}
# Default node attributes.
NODE_ATTRIBUTES = {
shape: "Mrecord",
@@ -185,9 +186,12 @@
# Switch rank direction if we're creating a vertically oriented graph.
graph[:rankdir] = (options.orientation == "vertical") ? :LR : :TB
# Title of the graph itself.
graph[:label] = "#{title}\\n\\n" if title
+
+ # Style of splines
+ graph[:splines] = options.splines unless options.splines.nil?
# Setup notation options.
extend self.class.const_get(options.notation.to_s.capitalize.to_sym)
end