Sha256: 1550b435a60f0a0b9168d8814e32a3a064e377750e2ac9a11b7fb83747c19556
Contents?: true
Size: 1.58 KB
Versions: 3
Compression:
Stored size: 1.58 KB
Contents
KManager.action :bootstrap do action do # KConfig.configuration.drawio.square.w = KConfig.configuration.drawio.square.w / 4 # KConfig.configuration.drawio.square.h = KConfig.configuration.drawio.square.h / 4 # KConfig.configuration.drawio.circle.w = KConfig.configuration.drawio.circle.w / 4 # KConfig.configuration.drawio.circle.h = KConfig.configuration.drawio.circle.h / 4 # KConfig.configuration.drawio.rectangle.w = KConfig.configuration.drawio.rectangle.w / 4 # KConfig.configuration.drawio.rectangle.h = KConfig.configuration.drawio.rectangle.h / 4 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
3 entries across 3 versions & 1 rubygems