Skip to content

Commit 3d4d2d2

Browse files
committed
now utilizing John Resig's mashup of Base.js and protototype.js inheritiance Class so that it's easy for developers to extend KineticJS objects with extend() or to simply tack on new methods and properties that's available to all children classes. Moved getter and setter logic to Node. Moved transition class to root directory and created Tween class
1 parent e2e16d4 commit 3d4d2d2

24 files changed

+1620
-1655
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Building the KineticJS library
22
To build the library, you need to have Ruby and Rubygems installed. After that, install the dependencies by running `bundle install`.
33

4-
To build a development version of the library, run `thor build:dev VERSION`, where VERSION is a string that can be anything you like. For example, using `thor build:dev core` will produce `kinetic-core.js`. To build a minified version of the library, run `thor build:prod VERSION`. If you want to add a release date other than the current day, use `-d="DATE"` (e.g. `-d="Mar 07 2012`).
4+
To build a development version of the library, run `thor build:dev VERSION`, where VERSION is a string that can be anything you like. For example, using `thor build:dev core` will produce `kinetic-core.js`. To build a minified version of the library, run `thor build:prod VERSION`. If you want to add a release date other than the current day, use `-d="DATE"` (e.g. `-d="Mar 07 2012"`).
55

66
If you add a file in the src directory, be sure to add the filename to the filename array in the Thorfile.
77

Thorfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ require 'json/pure'
33
class Build < Thor
44
# This is the list of files to concatenate. The first file will appear at the top of the final file. All files are relative to the lib directory.
55
FILES = [
6-
"license.js", "src/GlobalObject.js", "src/Node.js", "src/Container.js", "src/Stage.js",
6+
"license.js", "src/GlobalObject.js", "src/util/Class.js", "src/Node.js", "src/Container.js", "src/Stage.js",
77
"src/Layer.js", "src/Group.js", "src/Shape.js", "src/shapes/Rect.js", "src/shapes/Ellipse.js", "src/shapes/Image.js",
88
"src/shapes/Sprite.js", "src/shapes/Polygon.js", "src/shapes/RegularPolygon.js", "src/shapes/Star.js", "src/shapes/Text.js",
9-
"src/shapes/Line.js", "src/shapes/Path.js", "src/util/Transform.js", "src/util/Transition.js"
9+
"src/shapes/Line.js", "src/shapes/Path.js", "src/util/Transform.js", "src/Transition.js", "src/util/Tween.js"
1010
]
1111

1212
desc "dev", "Concatenate all the js files into /dist/kinetic-VERSION.js."

0 commit comments

Comments
 (0)