Class: DrawioDsl::DrawioPage
- Inherits:
-
KDirector::Directors::ChildDirector
- Object
- KDirector::Directors::ChildDirector
- DrawioDsl::DrawioPage
- Includes:
- DrawioShapes
- Defined in:
- lib/drawio_dsl/drawio_page.rb
Overview
DrawioDsl::DrawioPage is created when you call .page on the draw-io DSL.
Instance Method Summary collapse
- #flex_layout(**opts) ⇒ Object
- #grid_layout(**opts) ⇒ Object
-
#initialize(parent, **opts) ⇒ DrawioPage
constructor
A new instance of DrawioPage.
Methods included from DrawioShapes
#actor, #actor2, #callout, #callout2, #callout3, #callout4, #circle, #cloud, #container, #container2, #container3, #container4, #cross, #dash, #dash24, #dash32, #dash44, #dash_dot, #dash_dot_dot, #dash_long_dash, #database, #db_json, #diamond, #document, #dot, #dot_dot_dot, #double, #double_dash, #double_dot, #ellipse, #embed_col200, #embed_col50, #embed_row, #envelop, #face, #group, #h1, #h2, #h3, #h4, #h5, #h6, #hexagon, #interface, #klass, #long_dash, #note, #p, #process, #random, #rectangle, #rectangle2, #solid, #square, #step, #tick, #todo, #triangle
Constructor Details
#initialize(parent, **opts) ⇒ DrawioPage
Returns a new instance of DrawioPage.
8 9 10 11 12 |
# File 'lib/drawio_dsl/drawio_page.rb', line 8 def initialize(parent, **opts) super(parent, **opts) builder.add_page(**opts) end |
Instance Method Details
#flex_layout(**opts) ⇒ Object
18 19 20 |
# File 'lib/drawio_dsl/drawio_page.rb', line 18 def flex_layout(**opts) builder.add_flex_layout(**opts) end |
#grid_layout(**opts) ⇒ Object
14 15 16 |
# File 'lib/drawio_dsl/drawio_page.rb', line 14 def grid_layout(**opts) builder.add_grid_layout(**opts) end |