source: Dev/trunk/src/client/dojox/gfx/tests/svgweb/test.roundrect.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.2 KB
Line 
1<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" >
2<head>
3<title>Testing rounded rectangle</title>
4<style type="text/css">
5        @import "../../../../dojo/resources/dojo.css";
6        @import "../../../../dijit/tests/css/dijitTests.css";
7</style>
8<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9<!-- SVGWEB { -->
10<meta name="svg.render.forceflash" content="true"/>
11<script src="svgweb/src/svg.js" data-path="svgweb/src"></script>
12<script src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true, forceGfxRenderer: 'svg'" type="text/javascript"></script>
13<!-- } -->
14<script type="text/javascript">
15dojo.require("dojox.gfx");
16dojo.require("dojox.gfx.move");
17dojo.require("dojo.colors");
18
19makeShapes = function(){
20    var g = dojox.gfx;
21        var surface = g.createSurface("test", 800, 600)
22        /* SVGWEB { */
23        surface.whenLoaded(function() {
24    var rect1 = surface.createRect({x: 100, y: 100, width: 300, height: 200, r: 50}).setFill("red").setStroke("black");
25        new g.Moveable(rect1);
26        });
27        /* } */
28};
29
30dojo.addOnLoad(makeShapes);
31
32</script>
33</head>
34<body>
35<h1>dojox.gfx Rounded rectangle</h1>
36<div id="test"></div>
37<p>That's all Folks!</p>
38</body>
39</html>
Note: See TracBrowser for help on using the repository browser.