Sha256: 98474fce631edf25eac4e552bf338141c1f7a7525023729045df735a41173375

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

KManager.action :bootstrap do
  action do
    director = DrawioDsl::Drawio
      .init(k_builder)
      .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

    diagram = DrawioDsl::XmlBuilder.new(director.builder.diagram)


    File.write('../spec/.samples/drawio/10-page-margin.xml', diagram.build)
    File.write('../spec/.samples/drawio/10-page-margin.drawio', diagram.build)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
drawio_dsl-0.5.4 .builders/generators/sample_diagrams/10-page-margin.rb
drawio_dsl-0.5.3 .builders/generators/sample_diagrams/10-page-margin.rb
drawio_dsl-0.5.2 .builders/generators/sample_diagrams/10-page-margin.rb
drawio_dsl-0.5.1 .builders/generators/sample_diagrams/10-page-margin.rb
drawio_dsl-0.5.0 .builders/generators/sample_diagrams/10-page-margin.rb
drawio_dsl-0.4.1 .builders/generators/sample_diagrams/10-page-margin.rb
drawio_dsl-0.4.0 .builders/generators/10-page-margin.rb
drawio_dsl-0.3.0 .builders/generators/10-page-margin.rb