diff options
author | wout <wout@impinc.co.uk> | 2012-12-22 12:53:11 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-22 12:53:11 +0100 |
commit | 41c12fb60b9ba2afbdaca5a445a7af59d2bccd5a (patch) | |
tree | 5bf794377901410fa0a061a99038a865974fffea /Rakefile | |
parent | 740392ee6c756b1d794fa60cb991e70ca4bbb558 (diff) | |
download | svg.js-41c12fb60b9ba2afbdaca5a445a7af59d2bccd5a.tar.gz svg.js-41c12fb60b9ba2afbdaca5a445a7af59d2bccd5a.zip |
Added gradient
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,13 +1,13 @@ SVGJS_VERSION = '0.1a' # all available modules in the correct loading order -ALL = %w[ svg container element group arrange defs clip doc shape rect circle ellipse path image text sugar ] +ALL = %w[ svg container element group arrange defs clip gradient doc shape rect circle ellipse path image text sugar ] # required modules to make the library operational CORE = %w[ circle container defs doc element ellipse image path rect shape svg text ] # optional modules -OPTIONAL = %w[ clip group arrange sugar ] +OPTIONAL = %w[ clip group arrange gradient sugar ] # modules used in the curren build MODULES = CORE.concat(OPTIONAL).sort { |a,b| ALL.index(a) <=> ALL.index(b) } @@ -67,7 +67,7 @@ BuildTask.define_task 'dist/svg.js' => MODULES.map {|m| "src/#{ m }.js" } do |ta file.puts "\n" file.puts svgjs file.puts '}).call(this);' - file.puts 'window.svg = function(e) { return new SVG.Doc(e); };' + file.puts 'function svg(e) { return new SVG.Doc(e); };' end end |