Sha256: f5ecba37b4ef297759c65088d5b749c71b1b6274cc4a2ab3f67088e5b05d67cc

Contents?: true

Size: 1.05 KB

Versions: 11

Compression:

Stored size: 1.05 KB

Contents

KManager.action :bootstrap do
  action do
    DrawioDsl::Drawio
      .init(k_builder, on_exist: :write, on_action: :execute)
      .diagram(theme: :style_01)
      .page('Horizontal', margin_left: 0, margin_top: 0) do
        grid_layout(wrap_at: 3, direction: :horizontal)
        h4(title: 'Horizontal')
        circle(title: '01')
        square(title: '02')
        circle(title: '03')
        square(title: '04')
        circle(title: '05')
        square(title: '06')
        circle(title: '07')
      end
      .page('Vertical', margin_left: 0, margin_top: 0) do
        grid_layout(wrap_at: 3, direction: :vertical)
        h4(title: 'Vertical')
        circle(title: '01')
        square(title: '02')
        circle(title: '03')
        square(title: '04')
        circle(title: '05')
        square(title: '06')
        circle(title: '07')
      end
      .cd(:spec)
      .save('.samples/15-grid-direction.drawio')
      .cd(:docs)
      .export_svg('samples/grid-direction-horizontal', page: 1)
      .export_svg('samples/grid-direction-vertical', page: 2)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
drawio_dsl-0.8.8 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.7 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.6 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.5 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.4 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.3 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.2 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.1 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.8.0 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.7.0 .builders/generators/sample_diagrams/15-grid-direction.rb
drawio_dsl-0.6.0 .builders/generators/sample_diagrams/15-grid-direction.rb