forked from tfedor/datamodeler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.html
79 lines (70 loc) · 4.03 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DataModeler</title>
<link rel="stylesheet" type="text/css" href="styles/reset.css">
<link rel="stylesheet" type="text/css" href="styles/styles.css">
<link rel="stylesheet" href="libs/font-awesome-4.6.3/css/font-awesome.min.css">
<script src="libs/saveSvgAsPng-gh-pages/saveSvgAsPng.js"></script>
<script src="libs/jszip/dist/jszip.min.js"></script>
<script type="application/javascript" src="src/Enums.js"></script>
<script type="application/javascript" src="src/Consts.js"></script>
<!-- model -->
<script type="application/javascript" src="src/model/CanvasObject.js"></script>
<script type="application/javascript" src="src/model/Entity.js"></script>
<script type="application/javascript" src="src/model/Attribute.js"></script>
<script type="application/javascript" src="src/model/AttributeList.js"></script>
<script type="application/javascript" src="src/model/Relation.js"></script>
<script type="application/javascript" src="src/model/RelationLeg.js"></script>
<script type="application/javascript" src="src/model/Note.js"></script>
<!-- view -->
<script type="application/javascript" src="src/view/EditableContent.js"></script>
<script type="application/javascript" src="src/view/EditableText.js"></script>
<script type="application/javascript" src="src/view/EditableLongText.js"></script>
<script type="application/javascript" src="src/view/CanvasObject.js"></script>
<script type="application/javascript" src="src/view/Entity.js"></script>
<script type="application/javascript" src="src/view/Attribute.js"></script>
<script type="application/javascript" src="src/view/Relation.js"></script>
<script type="application/javascript" src="src/view/RelationLeg.js"></script>
<script type="application/javascript" src="src/view/Arc.js"></script>
<script type="application/javascript" src="src/view/Note.js"></script>
<!-- control -->
<script type="application/javascript" src="src/control/CanvasObject.js"></script>
<script type="application/javascript" src="src/control/Entity.js"></script>
<script type="application/javascript" src="src/control/Attribute.js"></script>
<script type="application/javascript" src="src/control/AttributeList.js"></script>
<script type="application/javascript" src="src/control/Relation.js"></script>
<script type="application/javascript" src="src/control/RelationLeg.js"></script>
<script type="application/javascript" src="src/control/Note.js"></script>
<script type="application/javascript" src="src/Random.js"></script>
<script type="application/javascript" src="src/Hash.js"></script>
<script type="application/javascript" src="src/Diagram.js"></script>
<script type="application/javascript" src="src/UI.js"></script>
<script type="application/javascript" src="src/Canvas.js"></script>
<script type="application/javascript" src="src/Layout.js"></script>
<script type="application/javascript" src="src/Mouse.js"></script>
<script type="application/javascript" src="src/History.js"></script>
<script type="application/javascript" src="src/Element.js"></script>
<script type="application/javascript" src="src/Geometry.js"></script>
<script type="application/javascript" src="src/Vector.js"></script>
<script type="application/javascript" src="src/File.js"></script>
<script type="application/javascript" src="src/Fullscreen.js"></script>
<script type="application/javascript" src="src/MenuController.js"></script>
</head>
<body>
<input type="file" id="fileUpload" style="margin:50px 0 0 50px;">
<div id="modelerContainer"></div>
<script>
DBSDM.Diagram.init({
showTutorial: false,
confirmLeave: false,
allowCorrectMode: true
});
var parent = document.getElementById("modelerContainer");
var canvas = new DBSDM.Canvas();
canvas.create(parent);
canvas.attachFileUploadInput("#fileUpload");
</script>
</body>
</html>