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