Class: DrawioDsl::Configuration::Connector::CompassPoint

Inherits:
Object
  • Object
show all
Defined in:
lib/drawio_dsl/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ CompassPoint

Returns a new instance of CompassPoint.



218
219
220
221
# File 'lib/drawio_dsl/configuration.rb', line 218

def initialize(x, y)
  @x = x
  @y = y
end

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x.



215
216
217
# File 'lib/drawio_dsl/configuration.rb', line 215

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



216
217
218
# File 'lib/drawio_dsl/configuration.rb', line 216

def y
  @y
end

Instance Method Details

#entry_modifiersObject



228
229
230
# File 'lib/drawio_dsl/configuration.rb', line 228

def entry_modifiers
  "entryX=#{x};entryY=#{y};entryDx=0;entryDy=0"
end

#exit_modifiersObject

should this be start/end



224
225
226
# File 'lib/drawio_dsl/configuration.rb', line 224

def exit_modifiers
  "exitX=#{x};exitY=#{y};exitDx=0;exitDy=0"
end