Sha256: 4560fc57b3e6c9ffe9c9fb671c785a55ad14875ede42bbdcee32cd2d8d796a14

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 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)

        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

1 entries across 1 versions & 1 rubygems

Version Path
drawio_dsl-0.3.0 .builders/generators/25-themes.rb