From 28642bd1c8d58dc75eeb8760273c2e180d51c3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 6 Nov 2012 11:37:00 -0800 Subject: [PATCH] Rename Path.Oval() to Path.Ellipse(), and deprecate Path.Oval(). --- examples/Animated/Tadpoles.html | 2 +- examples/Node.js/Tadpoles.pjs | 2 +- examples/SVG Export/Circle Testing.html | 4 +- ...g.html => Circle and Ellipse Testing.html} | 14 +-- .../SVG Import/Multiple Paths Test 1.html | 2 +- examples/SVG Import/Testing.html | 2 +- examples/SVG Import/Transform Testing.html | 2 +- src/path/Path.Constructors.js | 94 ++++++++++--------- src/svg/SvgImporter.js | 2 +- test/tests/Path_Shapes.js | 4 +- test/tests/SvgExporter.js | 14 +-- test/tests/SvgImporter.js | 24 ++--- 12 files changed, 87 insertions(+), 79 deletions(-) rename examples/SVG Import/{Circle and Oval Testing.html => Circle and Ellipse Testing.html} (88%) diff --git a/examples/Animated/Tadpoles.html b/examples/Animated/Tadpoles.html index 22816073..947a4771 100644 --- a/examples/Animated/Tadpoles.html +++ b/examples/Animated/Tadpoles.html @@ -15,7 +15,7 @@ strokeCap: 'round' }; - var head = new Path.Oval([0, 0], [13, 8]); + var head = new Path.Ellipse([0, 0], [13, 8]); head.fillColor = 'white'; head.strokeColor = null; var headSymbol = new Symbol(head); diff --git a/examples/Node.js/Tadpoles.pjs b/examples/Node.js/Tadpoles.pjs index a4d04965..0b59850b 100644 --- a/examples/Node.js/Tadpoles.pjs +++ b/examples/Node.js/Tadpoles.pjs @@ -11,7 +11,7 @@ project.currentStyle = { new Path.Rectangle(view.bounds).fillColor = 'black'; -var head = new Path.Oval([0, 0], [13, 8]); +var head = new Path.Ellipse([0, 0], [13, 8]); head.fillColor = 'white'; head.strokeColor = null; var headSymbol = new Symbol(head); diff --git a/examples/SVG Export/Circle Testing.html b/examples/SVG Export/Circle Testing.html index 80840e35..4959e0a2 100644 --- a/examples/SVG Export/Circle Testing.html +++ b/examples/SVG Export/Circle Testing.html @@ -13,13 +13,13 @@ var topLeft = new Point(200, 200); var size = new Size(150, 100); var rectangle = new Rectangle(topLeft, size); - var path = new Path.Oval(rectangle); + var path = new Path.Ellipse(rectangle); path.fillColor = 'black'; var topLeft = new Point(5, 400); var size = new Size(100, 50); var rectangle = new Rectangle(topLeft, size); - var path = new Path.Oval(rectangle); + var path = new Path.Ellipse(rectangle); path.fillColor = 'yellow'; var path = new Path.Circle(new Point(50, 50), 25); diff --git a/examples/SVG Import/Circle and Oval Testing.html b/examples/SVG Import/Circle and Ellipse Testing.html similarity index 88% rename from examples/SVG Import/Circle and Oval Testing.html rename to examples/SVG Import/Circle and Ellipse Testing.html index 432856a2..a0532011 100644 --- a/examples/SVG Import/Circle and Oval Testing.html +++ b/examples/SVG Import/Circle and Ellipse Testing.html @@ -2,7 +2,7 @@ - Circle and Oval Testing + Circle and Ellipse Testing