zui53 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +4 -0
- data/Gemfile +9 -0
- data/LICENSE +20 -0
- data/README.markdown +25 -0
- data/Rakefile +25 -0
- data/build/zui53.js +4014 -0
- data/demos/css_surface.html +30 -0
- data/demos/svg_surface.html +33 -0
- data/lib/assets/javascripts/zui53/.DS_Store +0 -0
- data/lib/assets/javascripts/zui53/helper.js +43 -0
- data/lib/assets/javascripts/zui53/index.js +4 -0
- data/lib/assets/javascripts/zui53/surfaces/css_surface.js.coffee +27 -0
- data/lib/assets/javascripts/zui53/surfaces/svg_surface.js.coffee +16 -0
- data/lib/assets/javascripts/zui53/tools/pan_tool.js.coffee +76 -0
- data/lib/assets/javascripts/zui53/tools/toolset.js.coffee +84 -0
- data/lib/assets/javascripts/zui53/tools/zoom_tool.js.coffee +167 -0
- data/lib/assets/javascripts/zui53/zui53.js.coffee +257 -0
- data/lib/generators/zui53/install_generator.rb +21 -0
- data/lib/zui53.rb +7 -0
- data/vendor/assets/javascripts/jquery.mousewheel.js +78 -0
- data/vendor/assets/javascripts/jquery.transform.js +1961 -0
- data/vendor/assets/javascripts/sylvester.js +1254 -0
- data/zui53.gemspec +20 -0
- metadata +75 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Florian Günther
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.markdown
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
ZUI53 is a JavaScript Library to create powerfull webbased Zoomable User Interfaces (ZUIs) with new technologies like HTML5 and CSS3.
|
2
|
+
|
3
|
+
It is the library behind [http://sketchub.com/](http://sketchub.com/) and is running on a bunch of desktop browsers as well as on the iPad, iPhone and MultiTouch Tables (See Demo with Windows7 and Firefox 5 here: [http://www.youtube.com/watch?v=LpDp2Izx4W8](http://www.youtube.com/watch?v=LpDp2Izx4W8))
|
4
|
+
|
5
|
+
# Browser/Plattform Compatibility
|
6
|
+
ToDo
|
7
|
+
|
8
|
+
# Usage
|
9
|
+
See the 'demos' folder
|
10
|
+
|
11
|
+
# Build
|
12
|
+
The Library is written in CoffeeScript. It uses Sprockets to handle dependencies and to generate the build output.
|
13
|
+
|
14
|
+
bundle install
|
15
|
+
rake
|
16
|
+
|
17
|
+
This will generate 'build/zui53.js'
|
18
|
+
|
19
|
+
# License
|
20
|
+
MIT Licence, see LICENSE file
|
21
|
+
|
22
|
+
# Contribution
|
23
|
+
Please feel free to fork and contribute!
|
24
|
+
|
25
|
+
Merge-Requests are welcome!
|
data/Rakefile
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
puts 'Init Bundler ...'
|
2
|
+
require 'bundler'
|
3
|
+
Bundler::GemHelper.install_tasks
|
4
|
+
|
5
|
+
# Set up gems listed in the Gemfile.
|
6
|
+
ENV['BUNDLE_GEMFILE'] ||= File.join(File.dirname(__FILE__), 'Gemfile')
|
7
|
+
require 'bundler/setup'
|
8
|
+
require 'sprockets'
|
9
|
+
|
10
|
+
task :default => [:core] do
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
task :core do
|
15
|
+
puts "Building zui53"
|
16
|
+
|
17
|
+
assets = Sprockets::Environment.new() do |env|
|
18
|
+
env.logger = Logger.new(STDOUT)
|
19
|
+
end
|
20
|
+
|
21
|
+
assets.append_path "lib/assets/javascripts/zui53"
|
22
|
+
assets.append_path "vendor/assets/javascripts"
|
23
|
+
|
24
|
+
open("build/zui53.js", "w").write( assets["index"] )
|
25
|
+
end
|