diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/gfx/tests/test_group.html | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/gfx/tests/test_group.html')
-rw-r--r-- | includes/js/dojox/gfx/tests/test_group.html | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/includes/js/dojox/gfx/tests/test_group.html b/includes/js/dojox/gfx/tests/test_group.html deleted file mode 100644 index fe11b37..0000000 --- a/includes/js/dojox/gfx/tests/test_group.html +++ /dev/null @@ -1,73 +0,0 @@ -<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" > -<head> -<title>Dojo Unified 2D Graphics</title> -<style type="text/css"> - @import "../../../dojo/resources/dojo.css"; - @import "../../../dijit/tests/css/dijitTests.css"; -</style> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<!-- -The next line should include Microsoft's Silverligth.js, if you plan to use the silverlight backend -<script type="text/javascript" src="Silverlight.js"></script> ---> -<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug: true"></script> -<!--<script type="text/javascript" src="../matrix.js"></script>--> -<!--<script type="text/javascript" src="../util.js"></script>--> -<!--<script type="text/javascript" src="../shape.js"></script>--> -<!--<script type="text/javascript" src="../path.js"></script>--> -<!--<script type="text/javascript" src="../vml.js"></script>--> -<!--<script type="text/javascript" src="../svg.js"></script>--> -<!--<script type="text/javascript" src="../silverlight.js"></script>--> -<script type="text/javascript"> -dojo.require("dojox.gfx"); - -var surface = null; -var g1 = null; -var g2 = null; -var r1 = null; - -makeShapes = function(){ - surface = dojox.gfx.createSurface(document.getElementById("test"), 500, 500); - // make a checkerboard - for(var i = 0; i < 500; i += 100){ - for(var j = 0; j < 500; j += 100){ - if(i % 200 == j % 200) { - surface.createRect({ x: i, y: j }).setFill([255, 0, 0, 0.1]); - } - } - } - // create groups and shapes - g1 = surface.createGroup(); - g2 = surface.createGroup(); - r1 = surface.createRect({x: 200, y: 200}).setFill("green").setStroke({}); - g1.setTransform({dy: -100}); - //g2.setTransform(dojox.gfx.matrix.rotateAt(-45, 250, 250)); - g2.setTransform({dx: 100, dy: -100}); -}; - -switchRect = function(){ - var radio = document.getElementsByName("switch"); - if(radio[0].checked){ - surface.add(r1); - }else if(radio[1].checked){ - g1.add(r1); - }else if(radio[2].checked){ - g2.add(r1); - } -}; - -dojo.addOnLoad(makeShapes); - -</script> -</head> -<body> -<h1>dojox.gfx Group tests</h1> -<p> -<input type="radio" name="switch" id="r1_s" checked="checked" onclick="switchRect()" /><label for="r1_s">Rectangle belongs to the surface</label><br /> -<input type="radio" name="switch" id="r1_g1" onclick="switchRect()" /><label for="r1_g1">Rectangle belongs to the group #1</label><br /> -<input type="radio" name="switch" id="r1_g2" onclick="switchRect()" /><label for="r1_g2">Rectangle belongs to the group #2</label> -</p> -<div id="test"></div> -<p>That's all Folks!</p> -</body> -</html> |