From c0e2101c32653ad6196f1c9692385260b70ee00e Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 12 Feb 2011 17:59:39 +0100 Subject: [PATCH] Clean up src directory and move Bootstrap.js into lib. --- examples/Animated/animatedStar.html | 23 +++++++++++------------ examples/Scripts/arcTo.html | 23 +++++++++++------------ examples/Scripts/circle.html | 23 +++++++++++------------ examples/Scripts/letter.html | 23 +++++++++++------------ examples/Scripts/lines.html | 23 +++++++++++------------ examples/Scripts/rectangle.html | 23 +++++++++++------------ examples/Scripts/roundRectangle.html | 23 +++++++++++------------ examples/Scripts/star.html | 23 +++++++++++------------ examples/Scripts/strokeJoin.html | 23 +++++++++++------------ examples/Tools/Circles.html | 23 +++++++++++------------ examples/Tools/Clouds.html | 23 +++++++++++------------ examples/Tools/Dripping Brush.html | 23 +++++++++++------------ examples/Tools/Fancy Brush.html | 23 +++++++++++------------ examples/Tools/Grid.html | 23 +++++++++++------------ examples/Tools/MultiLines.html | 23 +++++++++++------------ examples/Tools/Wave.html | 23 +++++++++++------------ examples/Tools/Worm Farm.html | 23 +++++++++++------------ {src => lib}/Bootstrap.js | 0 src/{ => basic}/Point.js | 0 src/{ => basic}/Rectangle.js | 0 src/{ => basic}/Size.js | 0 src/{ => document}/Doc.js | 0 src/{ => item}/Group.js | 0 src/{ => item}/Item.js | 0 src/{ => item}/Layer.js | 0 src/{ => path}/Path.js | 0 src/{ => path}/PathItem.js | 0 src/{ => path}/Segment.js | 15 ++++++++------- src/{ => tool}/Tool.js | 0 src/{ => tool}/ToolEvent.js | 0 src/{ => tool}/ToolHandler.js | 0 test/index.html | 24 ++++++++++++------------ 32 files changed, 207 insertions(+), 223 deletions(-) rename {src => lib}/Bootstrap.js (100%) rename src/{ => basic}/Point.js (100%) rename src/{ => basic}/Rectangle.js (100%) rename src/{ => basic}/Size.js (100%) rename src/{ => document}/Doc.js (100%) rename src/{ => item}/Group.js (100%) rename src/{ => item}/Item.js (100%) rename src/{ => item}/Layer.js (100%) rename src/{ => path}/Path.js (100%) rename src/{ => path}/PathItem.js (100%) rename src/{ => path}/Segment.js (94%) rename src/{ => tool}/Tool.js (100%) rename src/{ => tool}/ToolEvent.js (100%) rename src/{ => tool}/ToolHandler.js (100%) diff --git a/examples/Animated/animatedStar.html b/examples/Animated/animatedStar.html index 79c4ce4b..256ed116 100644 --- a/examples/Animated/animatedStar.html +++ b/examples/Animated/animatedStar.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + diff --git a/examples/Tools/Clouds.html b/examples/Tools/Clouds.html index 0dc21ff2..640e8317 100644 --- a/examples/Tools/Clouds.html +++ b/examples/Tools/Clouds.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + diff --git a/examples/Tools/Dripping Brush.html b/examples/Tools/Dripping Brush.html index 6e519c25..9c51d1b8 100644 --- a/examples/Tools/Dripping Brush.html +++ b/examples/Tools/Dripping Brush.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + diff --git a/examples/Tools/Fancy Brush.html b/examples/Tools/Fancy Brush.html index 41d28713..0f866d96 100644 --- a/examples/Tools/Fancy Brush.html +++ b/examples/Tools/Fancy Brush.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + diff --git a/examples/Tools/Grid.html b/examples/Tools/Grid.html index 4549a0ae..38bc7f39 100644 --- a/examples/Tools/Grid.html +++ b/examples/Tools/Grid.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + diff --git a/examples/Tools/MultiLines.html b/examples/Tools/MultiLines.html index a2b1574e..a192ed3a 100644 --- a/examples/Tools/MultiLines.html +++ b/examples/Tools/MultiLines.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + diff --git a/examples/Tools/Wave.html b/examples/Tools/Wave.html index 1d012adf..d4f0ad2f 100644 --- a/examples/Tools/Wave.html +++ b/examples/Tools/Wave.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + diff --git a/examples/Tools/Worm Farm.html b/examples/Tools/Worm Farm.html index b332538d..0fe2c660 100644 --- a/examples/Tools/Worm Farm.html +++ b/examples/Tools/Worm Farm.html @@ -4,19 +4,18 @@ Example - + - - - - - - - - - - - + + + + + + + + + + diff --git a/src/Bootstrap.js b/lib/Bootstrap.js similarity index 100% rename from src/Bootstrap.js rename to lib/Bootstrap.js diff --git a/src/Point.js b/src/basic/Point.js similarity index 100% rename from src/Point.js rename to src/basic/Point.js diff --git a/src/Rectangle.js b/src/basic/Rectangle.js similarity index 100% rename from src/Rectangle.js rename to src/basic/Rectangle.js diff --git a/src/Size.js b/src/basic/Size.js similarity index 100% rename from src/Size.js rename to src/basic/Size.js diff --git a/src/Doc.js b/src/document/Doc.js similarity index 100% rename from src/Doc.js rename to src/document/Doc.js diff --git a/src/Group.js b/src/item/Group.js similarity index 100% rename from src/Group.js rename to src/item/Group.js diff --git a/src/Item.js b/src/item/Item.js similarity index 100% rename from src/Item.js rename to src/item/Item.js diff --git a/src/Layer.js b/src/item/Layer.js similarity index 100% rename from src/Layer.js rename to src/item/Layer.js diff --git a/src/Path.js b/src/path/Path.js similarity index 100% rename from src/Path.js rename to src/path/Path.js diff --git a/src/PathItem.js b/src/path/PathItem.js similarity index 100% rename from src/PathItem.js rename to src/path/PathItem.js diff --git a/src/Segment.js b/src/path/Segment.js similarity index 94% rename from src/Segment.js rename to src/path/Segment.js index 2e642576..a5ba5475 100644 --- a/src/Segment.js +++ b/src/path/Segment.js @@ -30,13 +30,14 @@ Segment = Base.extend({ } }, - insert: function() { - if(this.segments && this.segments.path) { - var path = this.segments.path; - path.checkValid(); - - } - }, + // TODO: + // insert: function() { + // if(this.segments && this.segments.path) { + // var path = this.segments.path; + // path.checkValid(); + // + // } + // }, getPoint: function() { return this.point; diff --git a/src/Tool.js b/src/tool/Tool.js similarity index 100% rename from src/Tool.js rename to src/tool/Tool.js diff --git a/src/ToolEvent.js b/src/tool/ToolEvent.js similarity index 100% rename from src/ToolEvent.js rename to src/tool/ToolEvent.js diff --git a/src/ToolHandler.js b/src/tool/ToolHandler.js similarity index 100% rename from src/ToolHandler.js rename to src/tool/ToolHandler.js diff --git a/test/index.html b/test/index.html index ed0c7036..a20688bb 100644 --- a/test/index.html +++ b/test/index.html @@ -4,19 +4,19 @@ Paper.js Tests - + - - - - - - - - - - - + + + + + + + + + + +