Files
openlayers/master/examples/test.roundrect.html
Éric Lemoine 5d14b9e2d4 Updated
2013-02-20 10:38:25 +01:00

40 lines
1.2 KiB
HTML

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" >
<head>
<title>Testing rounded rectangle</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" />
<!-- SVGWEB { -->
<meta name="svg.render.forceflash" content="true"/>
<script src="svgweb/src/svg.js" data-path="svgweb/src"></script>
<script src="../../../../dojo/dojo.js" djConfig="isDebug: true, forceGfxRenderer: 'svg'" type="text/javascript"></script>
<!-- } -->
<script type="text/javascript">
dojo.require("dojox.gfx");
dojo.require("dojox.gfx.move");
dojo.require("dojo.colors");
makeShapes = function(){
var g = dojox.gfx;
var surface = g.createSurface("test", 800, 600)
/* SVGWEB { */
surface.whenLoaded(function() {
var rect1 = surface.createRect({x: 100, y: 100, width: 300, height: 200, r: 50}).setFill("red").setStroke("black");
new g.Moveable(rect1);
});
/* } */
};
dojo.addOnLoad(makeShapes);
</script>
</head>
<body>
<h1>dojox.gfx Rounded rectangle</h1>
<div id="test"></div>
<p>That's all Folks!</p>
</body>
</html>