-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMP teams overview.html
61 lines (55 loc) · 1.69 KB
/
SMP teams overview.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
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>SvgDiagram DIAGRAM</title>
<!-- <script type="text/javascript" src='https://melandel.github.io/svgdiagram/svgdiagram.js'></script> -->
<script type="text/javascript" src='svgdiagram.js'></script>
</head>
<body style="overflow:hidden">
<div id="svgcontainer" style="border:10px chocolate solid; height:calc(100vh - 36px - 10px - 10px - 1px); width:calc((100vw - 20px) - 10px - 10px);"></div>
</body>
</html>
<script>
drawDiagram("svgcontainer", "SMP: Supplier Management Platform", function (draw) {
let offlineBookingTools = draw("Offline Booking Tools"),
smpOlay = draw("API SMP-Olay").e(),
smpHotels = draw("API SMP-Hotels").se(200),
smpAir = draw("API SMP-Air").ne(smpOlay, 200),
smpSoc = draw("SOC: Supply Optimization Console").b(smpHotels, smpAir).dx(100),
smpConnector = draw("API SMP-Connector").e(smpSoc, 50),
smpCore = draw("SMP", smpHotels, smpAir, smpConnector, smpSoc),
smpExt = draw("'SMP'", smpCore, smpOlay),
gds = draw("GDS Suppliers").e(smpConnector, 300),
crs = draw("CRS Suppliers").n(),
prices = draw("negociated prices Suppliers").s(gds),
propertySuppliers = draw("Property Suppliers", crs, gds),
otherSuppliers = draw("Other suppliers", prices)
suppliers = draw("Data Suppliers", propertySuppliers, otherSuppliers);
offlineBookingTools.oneToMany(
{from:"e"},
smpOlay.oneToMany(
{from:"e"},
smpAir,
smpHotels,
),
smpAir,
smpHotels,
);
smpConnector.manyToOne(
smpAir,
smpHotels,
).oneToMany(
{to:"w"},
crs,
gds,
prices,
);
smpSoc.oneToMany(
{type: "dash"},
smpAir,
"(optimizes)",
smpHotels,
"(optimizes)"
);
});
</script>