Line | |
---|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
---|
2 | <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> |
---|
3 | <head> |
---|
4 | <title>Testing clipping on surface</title> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
6 | <style> |
---|
7 | @import "../../../dojo/resources/dojo.css"; |
---|
8 | @import "../../../dijit/tests/css/dijitTests.css"; |
---|
9 | </style> |
---|
10 | <script src="../../../dojo/dojo.js" data-dojo-config="isDebug: true"></script> |
---|
11 | <script> |
---|
12 | dojo.require("dojox.gfx"); |
---|
13 | |
---|
14 | createSurface = function(){ |
---|
15 | var surface = dojox.gfx.createSurface("test", 200, 200); |
---|
16 | surface.whenLoaded(makeShapes); |
---|
17 | }; |
---|
18 | |
---|
19 | makeShapes = function(surface){ |
---|
20 | surface.createRect({width: 200, height: 200}).setStroke("black"); |
---|
21 | surface.createRect({x: 150, y: 10, width: 300, height: 300}).setFill("red"); |
---|
22 | }; |
---|
23 | |
---|
24 | dojo.addOnLoad(createSurface); |
---|
25 | </script> |
---|
26 | </head> |
---|
27 | <body> |
---|
28 | <h1>Testing clipping on surface</h1> |
---|
29 | <!--<p><button onclick="createSurface();">Go</button></p>--> |
---|
30 | <div id="test"></div> |
---|
31 | <p>That's all Folks!</p> |
---|
32 | </body> |
---|
33 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.