Sha256: a7bcd59e8fdcb2fe7af7ea4c7dbd34a7cbcd385d5e32d513d1a47bb03b780f50

Contents?: true

Size: 1.21 KB

Versions: 14

Compression:

Stored size: 1.21 KB

Contents

KManager.action :bootstrap do
  action do

    # :rounded, :shadow, :sketch, :glass
    DrawioDsl::Drawio
      .init(k_builder, on_exist: :write, on_action: :execute)
      .diagram(theme: :style_06)
      .page('Style-Plain', margin_left: 0, margin_top: 0, rounded: 1, background: '#FFEADB') do
        grid_layout(wrap_at: 8)

        KConfig.configuration.drawio.themes.keys.each do |theme|
          square(title: theme.to_s, theme: theme)
        end
      end
      .page('Style-Plain', margin_left: 0, margin_top: 0, rounded: 1, background: '#FFEADB') do
        grid_layout(wrap_at: 8)

        KConfig.configuration.drawio.themes.keys.each do |theme|
          circle(title: theme.to_s, theme: theme)
        end
      end
      .page('Style-Plain', margin_left: 0, margin_top: 0, rounded: 1, background: '#FFEADB') do
        grid_layout(wrap_at: 8)

        KConfig.configuration.drawio.themes.keys.each do |theme|
          random(title: theme.to_s, theme: theme)
        end
      end
      .cd(:spec)
      .save('.samples/25-themes.drawio')
      .cd(:docs)
      .export_svg('samples/themes-square', page: 1)
      .export_svg('samples/themes-circle', page: 2)
      .export_svg('samples/themes-random', page: 3)

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
drawio_dsl-0.8.8 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.7 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.6 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.5 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.4 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.3 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.2 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.1 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.8.0 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.7.0 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.6.0 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.5.7 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.5.6 .builders/generators/sample_diagrams/25-themes.rb
drawio_dsl-0.5.5 .builders/generators/sample_diagrams/25-themes.rb