node/lib/metasm/metasm/gui/dasm_graph.rb
# returns the [x1, y1, x2, y2] of the rectangle encompassing all boxes
returns the [x1, y1, x2, y2] of the rectangle encompassing all boxes
returns the [ x1 y1 x2 y2 ] of the rectangle encompassing all boxes
def boundingbox
		minx = @box.map { |b| b.x }.min.to_i
		miny = @box.map { |b| b.y }.min.to_i
		maxx = @box.map { |b| b.x + b.w }.max.to_i
		maxy = @box.map { |b| b.y + b.h }.max.to_i
		[minx, miny, maxx, maxy]
	end
def boundingbox minx = @box . map { | b | b . x } . min . to_i miny = @box . map { | b | b . y } . min . to_i maxx = @box . map { | b | b . x + b . w } . max . to_i maxy = @box . map { | b | b . y + b . h } . max . to_i [ minx , miny , maxx , maxy ] end
returns the [x1, y1, x2, y2] of the rectangle encompassing all boxes
returns the [ x1 y1 x2 y2 ] of the rectangle encompassing all boxes