| 1 | <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" > |
| 2 | <head> |
| 3 | <title>Drawing Test</title> |
| 4 | <style> |
| 5 | @import url("../../../dijit/themes/dijit.css"); |
| 6 | @import url("../../../dojox/drawing/resources/drawing.css"); |
| 7 | @import url("../../../dojox/drawing/resources/toolbar.css"); |
| 8 | @import url("../../../dojox/drawing/resources/GreekPalette.css"); |
| 9 | href, body{ |
| 10 | overflow:hidden; |
| 11 | } |
| 12 | .drawing{ |
| 13 | margin-left:52px; |
| 14 | width:800px; |
| 15 | height:400px; |
| 16 | border:1px solid #ccc; |
| 17 | cursor:crosshair; |
| 18 | position:absolute; |
| 19 | left:52px; |
| 20 | top:100px; |
| 21 | } |
| 22 | #data{ |
| 23 | display:block; |
| 24 | height:100px; |
| 25 | width:855px; |
| 26 | margin-top:5px; |
| 27 | } |
| 28 | button{ |
| 29 | border:2px solid #ccc; |
| 30 | border-color:#D9E1F9 #B5BCD0 #878E9D #C6CEE4; |
| 31 | background-color:#CDDCF3; |
| 32 | cursor:pointer; |
| 33 | } |
| 34 | .gfxToolbar{ |
| 35 | width:800px; |
| 36 | height:50px; |
| 37 | margin-bottom:10px; |
| 38 | margin-left:52px; |
| 39 | border:1px solid #ccc; |
| 40 | } |
| 41 | .gfxToolbar{ |
| 42 | width:50px; |
| 43 | height:800px; |
| 44 | margin-top:50px; |
| 45 | margin-left:2px; |
| 46 | border:1px solid #ccc; |
| 47 | } |
| 48 | </style> |
| 49 | |
| 50 | <script> |
| 51 | djConfig = { |
| 52 | isDebug:false, |
| 53 | parseOnLoad:true |
| 54 | }; |
| 55 | </script> |
| 56 | <script src="../../../dojo/dojo.js"></script> |
| 57 | <script> |
| 58 | dojo.require("dojo.parser"); |
| 59 | dojo.require("dojox.drawing"); |
| 60 | |
| 61 | |
| 62 | // custom Tools and Plugins need to be required |
| 63 | dojo.require("dojox.drawing.tools.TextBlock"); |
| 64 | dojo.require("dojox.drawing.tools.Rect"); |
| 65 | dojo.require("dojox.drawing.tools.Ellipse"); |
| 66 | dojo.require("dojox.drawing.tools.Line"); |
| 67 | dojo.require("dojox.drawing.tools.Path"); |
| 68 | |
| 69 | dojo.require("dojox.drawing.annotations.Label"); |
| 70 | dojo.require("dojox.drawing.annotations.Angle"); |
| 71 | dojo.require("dojox.drawing.annotations.Arrow"); |
| 72 | dojo.require("dojox.drawing.annotations.BoxShadow"); |
| 73 | |
| 74 | dojo.require("dojox.drawing.tools.custom.Vector"); |
| 75 | dojo.require("dojox.drawing.tools.custom.Axes"); |
| 76 | dojo.require("dojox.drawing.tools.Arrow"); |
| 77 | dojo.require("dojox.drawing.plugins.tools.Pan"); |
| 78 | dojo.require("dojox.drawing.plugins.tools.Zoom"); |
| 79 | dojo.require("dojox.drawing.plugins.drawing.Grid"); |
| 80 | dojo.require("dojox.drawing.plugins.drawing.GreekPalette"); |
| 81 | |
| 82 | dojo.require("dojox.drawing.ui.Toolbar"); |
| 83 | dojo.require("dojox.drawing.ui.Button"); |
| 84 | dojo.require("dojox.drawing.library.icons"); |
| 85 | |
| 86 | |
| 87 | </script> |
| 88 | |
| 89 | </head> |
| 90 | <body> |
| 91 | <h2>Drawing Test</h2> |
| 92 | <div id="conEdit" contenteditable="true"></div> |
| 93 | <div id="wrapper"> |
| 94 | |
| 95 | <div dojoType="dojox.drawing.ui.Toolbar" id="gfxToolbarNode" drawingId="drawingNode" class="gfxToolbar" tools="all" plugs="all" selected="ellipse"></div> |
| 96 | |
| 97 | <div dojoType="dojox.drawing.Drawing" id="drawingNode" data-dojo-id="myDrawing" class="drawing" |
| 98 | plugins="[{'name':'dojox.drawing.plugins.drawing.Grid', 'options':{gap:100}}]"> |
| 99 | </div> |
| 100 | </div> |
| 101 | |
| 102 | <div dojoType="dojox.drawing.plugins.drawing.GreekPalette" id="greekPalette"></div> |
| 103 | |
| 104 | </body> |
| 105 | </html> |