-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dev.html
56 lines (51 loc) · 1.72 KB
/
Dev.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<script src="Framework/Namespace.js" type="text/javascript"></script>
<script src="Framework/Lib/Klass.js" type="text/javascript"></script>
<script src="Framework/Lib/Helpers.js" type="text/javascript"></script>
<script src="Framework/Lib/E.js" type="text/javascript"></script>
<script src="Framework/Lib/MouseService.js" type="text/javascript"></script>
<script src="Framework/Core/CanvasNode.js" type="text/javascript"></script>
<script src="Framework/Core/Canvas.js" type="text/javascript"></script>
<script src="Framework/Controls/Layout/Panel.js" type="text/javascript"></script>
<script src="Framework/Controls/Shapes/Rectangle.js" type="text/javascript"></script>
<script src="Framework/Designer/Namespace.js" type="text/javascript"></script>
<script src="Framework/Designer/Designer.js" type="text/javascript"></script>
<script src="Framework/Designer/CanvasDesigner.js" type="text/javascript"></script>
<script src="Framework/Designer/RectangleDesigner.js" type="text/javascript"></script>
<style type="text/css">
* {
padding: 0;
margin: 0;
}
html, body {
width: 100%;
height: 100%;
font-family: 'Arial';
}
#drawingCanvas {
position: absolute;
left: 1px;
top: 1px;
}
#drawingCanvas_designer {
position: absolute;
}
</style>
<script type="text/javascript">
window.onload = function() {
var rect = new UI.Rectangle(40, 40, {
stroke : 'black',
cornerRadius : 4,
x : 100,
y : 100
});
var canvas = new UI.Canvas(document.body, 'drawingCanvas', 400, 400, rect, null);
var designer = new UI.Designer.Designer(document.body, canvas, null);
};
</script>
</head>
<body>
</body>
</html>