Method: HDLRuby::Viz::Node#move_deep
- Defined in:
- lib/HDLRuby/hruby_viz.rb
#move_deep(dx, dy) ⇒ Object
Move deeply the position.
3082 3083 3084 3085 3086 3087 3088 3089 |
# File 'lib/HDLRuby/hruby_viz.rb', line 3082 def move_deep(dx,dy) @xpos += dx @ypos += dy @branches.each {|branch| branch.move_deep(dx,dy) } @arrows.map! do |coord| [coord[0]+dx, coord[1]+dy, coord[2]+dx, coord[3]+dy ] end end |