summaryrefslogtreecommitdiff
path: root/includes/js/dojox/gfx/tests/test_image2.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/gfx/tests/test_image2.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-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_image2.html')
-rw-r--r--includes/js/dojox/gfx/tests/test_image2.html50
1 files changed, 0 insertions, 50 deletions
diff --git a/includes/js/dojox/gfx/tests/test_image2.html b/includes/js/dojox/gfx/tests/test_image2.html
deleted file mode 100644
index 25f71c0..0000000
--- a/includes/js/dojox/gfx/tests/test_image2.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" >
-<head>
-<title>Testing image</title>
-<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="../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 grid_size = 500, grid_step = 50;
-var main = null, g = null, image = null, rect = null;
-
-makeShapes = function(){
- var s = dojox.gfx.createSurface("test", 800, 600);
- for(var i = 0; i <= grid_size; i += grid_step){
- s.createLine({x1: 0, x2: grid_size, y1: i, y2: i}).setStroke("black");
- s.createLine({y1: 0, y2: grid_size, x1: i, x2: i}).setStroke("black");
- }
-
- main = s.createGroup();
- //rect = main.createRect({x: 0, y: 0, width: 100, height: 100}).setStroke("black").setFill(new dojo.Color([255, 0, 255, 0.5]));
- image = main.createImage({width: 157, height: 53, src: "http://archive.dojotoolkit.org/nightly/checkout/util/resources/dojotoolkit.org/mini-dtk/images/logo.png"});
- // comment out the next string to see the problem
- rect = main.createRect({x: 0, y: 0, width: 100, height: 100}).setStroke("black").setFill(new dojo.Color([255, 0, 255, 0.5]));
- //g = main.createGroup();
- //g.createRect({x: 0, y: 0, width: 100, height: 100}).setStroke("black").setFill(new dojo.Color([255, 255, 0, 0.5]));
-};
-
-trans = function(){
- var x = 1;
- main.setTransform([dojox.gfx.matrix.rotategAt(45, 200, 200), {dx: 200, dy: 200}]);
-};
-
-dojo.addOnLoad(makeShapes);
-
-</script>
-</head>
-<body>
-<p>Testing image:<br /><button onclick="trans();">Trans</button></p>
-<p>Note: Silverlight doesn't allow downloading images when run from a file system. This demo should be run from a server.</p>
-<div id="test"></div>
-<p>That's all Folks!</p>
-</body>
-</html>