<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
    <added>
      <filename>_attachments/javascripts/screen.js</filename>
    </added>
    <added>
      <filename>vendor/jquery/_attachments/jquery.svg.js</filename>
    </added>
    <added>
      <filename>vendor/jquery/_attachments/jquery.svganim.js</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 {
   &quot;env&quot;: { 
     &quot;default&quot;: {
-      &quot;db&quot;: &quot;http://localhost:5984/hi_sam&quot;
+      &quot;db&quot;: &quot;http://localhost:5984/boom_amazing&quot;
     }
   }
-}
\ No newline at end of file
+}</diff>
      <filename>.couchapprc</filename>
    </modified>
    <modified>
      <diff>@@ -1,27 +1,21 @@
 &lt;!DOCTYPE html&gt;
 &lt;html&gt;
   &lt;head&gt;
-    &lt;title&gt;hi_sam&lt;/title&gt;
+    &lt;title&gt;boom_amazing&lt;/title&gt;
     &lt;link rel=&quot;stylesheet&quot; href=&quot;style/main.css&quot; type=&quot;text/css&quot;&gt;
     &lt;link rel=&quot;stylesheet&quot; href=&quot;style/jquery.svg.css&quot; type=&quot;text/css&quot;&gt;
   &lt;/head&gt;
   &lt;body&gt;
-    &lt;h1&gt;hi_sam&lt;/h1&gt;
-    &lt;ul id=&quot;controls&quot;&gt;
-      &lt;li&gt;&lt;button id=&quot;rotate_left&quot;&gt;rotate left&lt;/button&gt;&lt;/li&gt;
-      &lt;li&gt;&lt;button id=&quot;rotate_right&quot;&gt;rotate right&lt;/button&gt;&lt;/li&gt;
-    &lt;/ul&gt;
-    &lt;div id=&quot;content&quot;&gt;
-      
-    &lt;/div&gt;
+    &lt;div id=&quot;content&quot;&gt;&lt;/div&gt;
+    &lt;p class=&quot;hint&quot;&gt;Move: click &amp; drag mouse, rotate: [ctrl] + move, scale: [alt] + move&lt;/p&gt;
   &lt;/body&gt;
   &lt;script src=&quot;/_utils/script/json2.js&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/_utils/script/jquery.js?1.2.6&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;/_utils/script/jquery.couch.js?0.8.0&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;./vendor/couchapp/jquery.couchapp.js&quot;&gt;&lt;/script&gt;
-  &lt;!--script src=&quot;./vendor/raphael/raphael.js&quot;&gt;&lt;/script--&gt;
   &lt;script src=&quot;./vendor/sammy/sammy.js&quot;&gt;&lt;/script&gt;
-  &lt;script src=&quot;./javascripts/jquery.svg.js&quot;&gt;&lt;/script&gt;
-  &lt;script src=&quot;./javascripts/jquery.svganim.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;./vendor/jquery/jquery.svg.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;./vendor/jquery/jquery.svganim.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;./javascripts/screen.js&quot;&gt;&lt;/script&gt;
   &lt;script src=&quot;./javascripts/app.js&quot;&gt;&lt;/script&gt;
 &lt;/html&gt;</diff>
      <filename>_attachments/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -4,93 +4,15 @@ $.CouchApp(function(app) {
 });
 var content = $('#content');
 
-
-var sammy = $.sammy(function() { with(this) {
-  element_selector = '#content';
-}});
+// var sammy = $.sammy(function() { with(this) {
+//   element_selector = '#content';
+// }});
 
 canvas = null;
 
 $(function() {
-  //canvas = Raphael('content', 800, 600);
-  //var circle = canvas.circle(50, 40, 10);
-  // Sets the fill attribute of the circle to red (#f00)
-  //circle.attr(&quot;fill&quot;, &quot;#f00&quot;);
-  // Sets the stroke attribute of the circle to white (#fff)
-  //circle.attr(&quot;stroke&quot;, &quot;#fff&quot;);
-  //circle.animate({cx: 20, r: 20}, 2000);
-
-
-  $('#content').svg({loadURL: './talk.svg', onLoad: function(_svg) {
-    canvas = _svg;
-    var all = $('svg *');
-    all.remove();
-    group = canvas.group(canvas.root(), {'trasnform': 'translate(50,50)'});
-    $(group).append(all);
-    
-    var scale = 1, rotate = 0, rot_x = 0, rot_y = 0, translate_x = 0, translate_y = 0;
-    var previouse_mouse_x = null, previouse_mouse_y = null;
-    var mouse_down = false;
-    var key_down = null;
-    
-    var update_canvas = function() {
-      canvas.change(group, {'transform': 'translate(' + translate_x + ',' + translate_y + '), rotate(' + rotate + ') scale(' + scale + ' ' + scale + ')'});
-    };
-    
-    var translate = function(delta_x, delta_y) {
-      translate_x += delta_x;
-      translate_y += delta_y;
-    };
-    
-    var do_scale = function(delta_x, delta_y) {
-      scale += delta_y / 100.0;
-    };
-    
-    $('html').keydown(function(_event) {
-      if(event.altKey) {
-        key_down = 'scale';
-      }
-    });
-    
-    $('html').keyup(function(event) {
-      key_down = null;
-    });
-    
-    $('#rotate_left').click(function() {
-      rotate -= 1;
-      update_canvas();
-    });
-    
-    $('#rotate_right').click(function() {
-      rotate += 1;
-      update_canvas();
-    });
-    
-    $('#content').mousedown(function(event) {
-      mouse_down = true;
-    });
-    
-    $('#content').mouseup(function(event) {
-      mouse_down = false;
-    });
-    
-    $('#content').mousemove(function(event) {
-      if(previouse_mouse_x != null) {
-        var delta_x = event.clientX - previouse_mouse_x;
-        var delta_y = event.clientY - previouse_mouse_y;
-        if(key_down == null &amp;&amp; mouse_down) {
-          translate(delta_x, delta_y);
-        } else if(key_down == 'scale') {
-          do_scale(delta_x, delta_y);
-        };
-        update_canvas();
-      }
-      previouse_mouse_x = event.clientX;
-      previouse_mouse_y = event.clientY;
-    });
-    
-  }});
+  Screen.init('#content', './talk.svg');
+});
   
-  // var svg = $('#content').svg('get');
   //sammy.run('#/');
-});
+  //});</diff>
      <filename>_attachments/javascripts/app.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,16 @@
 /* add styles here */
 
+body {
+  font-family: sans-serif;
+  font-size: 1.0em;
+}
+
+.hint {
+  color: gray;
+}
+
 #content {
-  width:800px;
-  height:600px;
+  width:1000px;
+  height:650px;
   border: 1px solid black;
 }
\ No newline at end of file</diff>
      <filename>_attachments/style/main.css</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>_attachments/javascripts/jquery.svg.js</filename>
    </removed>
    <removed>
      <filename>_attachments/javascripts/jquery.svganim.js</filename>
    </removed>
    <removed>
      <filename>vendor/raphael/_attachments/raphael.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>c1160555285ad163f995e5039d343844eb807f1c</id>
    </parent>
  </parents>
  <author>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </author>
  <url>http://github.com/langalex/boom_amazing/commit/f585c8103f5198979f6a095195d9346ceea93239</url>
  <id>f585c8103f5198979f6a095195d9346ceea93239</id>
  <committed-date>2009-05-23T12:06:12-07:00</committed-date>
  <authored-date>2009-05-23T12:06:12-07:00</authored-date>
  <message>removed raphael, refactored svg control into screen object</message>
  <tree>fd8903abbfb6398bd731f1580b3a8c7ef8e4cd62</tree>
  <committer>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </committer>
</commit>
