Sha256: 0b57b6b90390ddf7e25b7ffb1534b0845395e6f8558d3e7ce86634ea5602709c
Contents?: true
Size: 1.47 KB
Versions: 6
Compression:
Stored size: 1.47 KB
Contents
KManager.action :html_shapes do action do # :rounded, :shadow, :sketch, :glass DrawioDsl::Drawio .init(k_builder, on_exist: :write, on_action: :execute) .diagram(theme: :style_11) .page('Style-Plain', margin_left: 0, margin_top: 0, rounded: 0, background: '#FFEADB') do grid_layout(wrap_at: 8) # html = DrawioDsl::Formatters::KlassFormatter.new # .header('IPerson') # .field(:first_name, type: :string) # .field(:last_name, type: :string) # .field(:age, type: :integer) # .field(:birthday, type: :date) # .method(:full_name) # .method(:sean) # .as_html # square(title: html, # style_modifiers: 'align=left;overflow=fill;fontSize=12;fontFamily=Helvetica' # ) interface(theme: :style_07) do format .header('IPerson') .field(:field1, type: :string) .field(:field2, type: :string) .method(:full_name, type: :string) end klass do format(:class) .header('Person') .field(:field1, type: :string) .field(:field2, type: :string) .field(:age, type: :integer) .field(:birthday, type: :date) .method(:full_name, type: :string) end end .cd(:spec) .osave('.samples/30-html-shapes.drawio') # .cd(:docs) # .export_svg('samples/html-shapes', page: 1) end end
Version data entries
6 entries across 6 versions & 1 rubygems