From 06eda6b6f232f5c22a7dc3d56f7ce72a86f28ec8 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sun, 21 Jun 2015 18:32:10 +0200 Subject: Removed scale consideration in `move()` It wasn't compatible to the other move-functions e.g. for the PointArray --- spec/spec/element.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/spec/element.js b/spec/spec/element.js index 1c722cd..813ec9b 100755 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -364,10 +364,10 @@ describe('Element', function() { it('returns the correct rectangular box within a viewbox', function() { var rect = draw.size(200,150).viewbox(0,0,100,75).rect(105,210).move(2,12) var box = rect.rbox() - expect(box.x).toBe(2) - expect(box.y).toBe(12) - expect(box.cx).toBe(54.5) - expect(box.cy).toBe(117) + expect(box.x).toBe(4) + expect(box.y).toBe(24) + expect(box.cx).toBe(56.5) + expect(box.cy).toBe(129) expect(box.width).toBe(105) expect(box.height).toBe(210) }) -- cgit v1.2.3