You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jb...@apache.org on 2010/08/15 05:19:48 UTC

svn commit: r985610 - in /commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool: drawing-tool-with-graphical-debugger.html drawing-tool.html

Author: jbeard
Date: Sun Aug 15 03:19:45 2010
New Revision: 985610

URL: http://svn.apache.org/viewvc?rev=985610&view=rev
Log:
Removed leftover script fragment from drawing tool demos.

Modified:
    commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool-with-graphical-debugger.html
    commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool.html

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool-with-graphical-debugger.html
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool-with-graphical-debugger.html?rev=985610&r1=985609&r2=985610&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool-with-graphical-debugger.html (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool-with-graphical-debugger.html Sun Aug 15 03:19:45 2010
@@ -255,97 +255,6 @@ $(document).ready(function(){
 
 });
 
-
-
-      $(document).ready(function(){
-
-        //hook up minimal console api
-        if(typeof console == "undefined"){
-          console = {};
-          ["log","info","error","dirxml"].forEach(function(m){console[m] = console[m] || function(){} });
-        } 
-
-
-        var scxmlns = "http://www.w3.org/2005/07/scxml";
-        var svgns = "http://www.w3.org/2000/svg";
-
-        $("#toolbarDiv").svg({
-          onLoad:function(toolbar){
-            $(toolbar.root()).attr({
-              "width":"150px",
-              "height":"50px"
-            });
-
-            $(document.body).svg({
-              onLoad:function(svg){
-
-                $(svg.root()).attr({
-                  "width":"100%",
-                  "height":"100%"
-                });
-
-                var toolbarOutlineRect = toolbar.rect(0,0,150,50,{
-                  fill:"white", 
-                  stroke:"black"
-                }) ;
-
-                var transformButton = toolbar.group();
-
-                var transformButtonBackground = toolbar.rect(transformButton,0,0,50,50,{
-                  class:"background"
-                });
-
-								//TODO: make proper icon
-                var transformButtonIcon = toolbar.circle(transformButton,25,25,15,{
-                  fill:"green",
-                  stroke:"black"
-                });
-                
-                var rectButton = toolbar.group({"transform":"translate(50,0)"});
-                var rectButtonBackground = toolbar.rect(rectButton,0,0,50,50,{ 
-                  class:"background"
-                });
-                var rectButtonIcon = toolbar.rect(rectButton,10,10,30,30,{ 
-                  fill:"red", 
-                  stroke:"black"
-                });
-
-                var ellipseButton = toolbar.group({"transform":"translate(100,0)"});
-
-                var ellipseButtonBackground = toolbar.rect(ellipseButton,0,0,50,50,{
-                  class:"background"
-                });
-
-                var ellipseButtonIcon = toolbar.circle(ellipseButton,25,25,15,{
-                  fill:"blue",
-                  stroke:"black"
-                });
-
-		var scaleHandle = svg.path("M 0 0 L -4 6 L -2 6 L -2 12 L -4 12 L 0 18 L 4 12 L 2 12 L 2 6 L 4 6 L 0 0 z",{
-		  transform:"rotate(-45)",
-		  visibility:"hidden"
-		})
-		var rotationHandle =  svg.path("M 12 0 L 17 5 L 15 5 Q 15 15 5 15 L 5 17 L 0 12 L 5 7 L 5 9 Q 9 9 9 5 L 7 5 L 12 0 z",{visibility:"hidden"})
-
-                function hookUpDOMEvents(node,compiledStatechartInstance){
-                  //hook up DOM events
-                  ["mousedown","mouseup","mousemove"].forEach(function(eventName){
-                    if(compiledStatechartInstance[eventName]){
-                      node.addEventListener(eventName,function(e){
-                        e.preventDefault();
-                        compiledStatechartInstance[eventName](e)
-                      },false);
-                    }
-                  });
-                }
-
-              }  
-            })
-          }
-        });
-
-        //build up the DOM
-      });
     </script>
   </head>
   <body>

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool.html
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool.html?rev=985610&r1=985609&r2=985610&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool.html (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/demo/drawing-tool/drawing-tool.html Sun Aug 15 03:19:45 2010
@@ -231,97 +231,6 @@ $(document).ready(function(){
 
 });
 
-
-
-      $(document).ready(function(){
-
-        //hook up minimal console api
-        if(typeof console == "undefined"){
-          console = {};
-          ["log","info","error","dirxml"].forEach(function(m){console[m] = console[m] || function(){} });
-        } 
-
-
-        var scxmlns = "http://www.w3.org/2005/07/scxml";
-        var svgns = "http://www.w3.org/2000/svg";
-
-        $("#toolbarDiv").svg({
-          onLoad:function(toolbar){
-            $(toolbar.root()).attr({
-              "width":"150px",
-              "height":"50px"
-            });
-
-            $(document.body).svg({
-              onLoad:function(svg){
-
-                $(svg.root()).attr({
-                  "width":"100%",
-                  "height":"100%"
-                });
-
-                var toolbarOutlineRect = toolbar.rect(0,0,150,50,{
-                  fill:"white", 
-                  stroke:"black"
-                }) ;
-
-                var transformButton = toolbar.group();
-
-                var transformButtonBackground = toolbar.rect(transformButton,0,0,50,50,{
-                  class:"background"
-                });
-
-								//TODO: make proper icon
-                var transformButtonIcon = toolbar.circle(transformButton,25,25,15,{
-                  fill:"green",
-                  stroke:"black"
-                });
-                
-                var rectButton = toolbar.group({"transform":"translate(50,0)"});
-                var rectButtonBackground = toolbar.rect(rectButton,0,0,50,50,{ 
-                  class:"background"
-                });
-                var rectButtonIcon = toolbar.rect(rectButton,10,10,30,30,{ 
-                  fill:"red", 
-                  stroke:"black"
-                });
-
-                var ellipseButton = toolbar.group({"transform":"translate(100,0)"});
-
-                var ellipseButtonBackground = toolbar.rect(ellipseButton,0,0,50,50,{
-                  class:"background"
-                });
-
-                var ellipseButtonIcon = toolbar.circle(ellipseButton,25,25,15,{
-                  fill:"blue",
-                  stroke:"black"
-                });
-
-		var scaleHandle = svg.path("M 0 0 L -4 6 L -2 6 L -2 12 L -4 12 L 0 18 L 4 12 L 2 12 L 2 6 L 4 6 L 0 0 z",{
-		  transform:"rotate(-45)",
-		  visibility:"hidden"
-		})
-		var rotationHandle =  svg.path("M 12 0 L 17 5 L 15 5 Q 15 15 5 15 L 5 17 L 0 12 L 5 7 L 5 9 Q 9 9 9 5 L 7 5 L 12 0 z",{visibility:"hidden"})
-
-                function hookUpDOMEvents(node,compiledStatechartInstance){
-                  //hook up DOM events
-                  ["mousedown","mouseup","mousemove"].forEach(function(eventName){
-                    if(compiledStatechartInstance[eventName]){
-                      node.addEventListener(eventName,function(e){
-                        e.preventDefault();
-                        compiledStatechartInstance[eventName](e)
-                      },false);
-                    }
-                  });
-                }
-
-              }  
-            })
-          }
-        });
-
-        //build up the DOM
-      });
     </script>
   </head>
   <body>