projects
/
erdiag.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Better graph rendering by randomizing appearances and links left/right in dot string
[erdiag.git]
/
example.html
1
<div
id
=
"test"
></div>
2
3
<script
src
=
"//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"
></script>
4
<script
src
=
"parser.js"
></script>
5
<script>
6
let er =
7
new ErDiags(`
8
[Musician]
9
#id (integer)
10
name
11
band
12
role (varchar not null)
13
14
[Instrument]
15
#name
16
family (varchar not null default "Brass")
17
18
[Piano]
19
type
20
21
[Guitar]
22
type
23
24
{Play}
25
Musician +
26
Instrument *
27
--
28
event
29
30
is_a
31
Instrument Piano Guitar
32
`);
33
er.drawMcd("test");
34
</script>