Sha256: d68f6160a3d1100aab8f25068a716c81ce2649b446f9ace4a640e98204a3a633

Contents?: true

Size: 976 Bytes

Versions: 14

Compression:

Stored size: 976 Bytes

Contents

KManager.action :bootstrap do
  action do
    DrawioDsl::Drawio
      .init(k_builder, on_exist: :write, on_action: :execute)
      .diagram(theme: :style_01)
      .page('PgMargin-default') do
        grid_layout(wrap_at: 4)
        square(title: 'Page Margin 50, 50 (Default)')
        circle
        square
        circle
        square
        circle
        square
        circle
      end
      .page('PgMargin-0-0', margin_left: 0, margin_top: 0) do
        grid_layout(wrap_at: 4)
        square(title: 'Page Margin 0, 0')
        circle
        square
        circle
        square
        circle
        square
        circle
      end
      .page('PgMargin-90-70', margin_left: 90, margin_top: 70) do
        grid_layout(wrap_at: 4)
        square(title: 'Page Margin 90, 70')
        circle
        square
        circle
        square
        circle
        square
        circle
      end
      .cd(:spec)
      .save('.samples/10-page-margin.drawio')
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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