Sha256: 52eb8273b137f8feb41e2269be8eef7adcb6931579c35ad767a3ef287e27c677
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 Bytes
Contents
KManager.action :bootstrap do action do # :rounded, :shadow, :sketch, :glass director = DrawioDsl::Drawio .init(k_builder) .diagram(theme: :style_06) .page('Style-Plain', margin_left: 0, margin_top: 0) do grid_layout(wrap_at: 5) square(title: 'The quick brown fox jumps over the lazy dog') circle(title: 'Mary had a little lamb') KConfig.configuration.drawio.themes.keys.each do |theme| random(title: theme.to_s, theme: theme) end end diagram = DrawioDsl::XmlBuilder.new(director.builder.diagram) File.write('../spec/.samples/drawio/25-themes.xml', diagram.build) File.write('../spec/.samples/drawio/25-themes.drawio', diagram.build) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
drawio_dsl-0.4.1 | .builders/generators/sample_diagrams/25-themes.rb |
drawio_dsl-0.4.0 | .builders/generators/25-themes.rb |