-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
260 lines (254 loc) · 20.7 KB
/
index.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!--
Copyright 2021 Bonitasoft S.A.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bpmn-visualization - Add & remove default overlays</title>
<link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="stylesheet" href="../../static/css/spectre.min.css" type="text/css">
<link rel="stylesheet" href="../../static/css/icons.min.css" type="text/css">
<link rel="stylesheet" href="../../static/css/main.css" type="text/css">
<style>
.bpmn-container {
/* use absolute values for height to ensure that the vertical diagram is not fully displayed when the page is opened. */
/* width is relative to the window size */
height: 650px;
width: 100%;
margin-top: 1.5em;
border-style: solid;
border-color: #B0B0B0;
border-width: 1px;
/* This ensures that the parts of the diagram outside of the container are not displayed. */
overflow: hidden;
background-color: white;
}
button {
width: 40px;
height: 40px;
margin-right: 5px;
}
#controls {
height: 36px;
margin-top: 2em;
}
</style>
<script defer src="../../static/js/link-to-sources.js"></script>
<!-- load bpmn-visualization -->
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bpmn-visualization.min.js" integrity="sha384-tH6ndjrd9jcLvZ+J/m4FW4BqMVGS14/wQj9VOpj6qmpFdrO96k20YXSTcJd5jJQr" crossorigin="anonymous"></script>
<script defer src="../../static/js/diagram/bpmn-diagrams.js"></script>
<script defer src="./index.js"></script>
</head>
<body>
<header class="navbar bg-dark p-2">
<section class="navbar-section ml-2">
<a class="home" href="../../index.html">
<img src="../../static/img/logo_64x64_white.png" alt="logo" class="logo">
<span class="h3 text-light ml-2 lib-name-text">bpmn-visualization examples</span>
</a>
</section>
<section class="navbar-section">
<a href="https://process-analytics.github.io/bpmn-visualization-js/" class="mr-2 btn btn-secondary">Docs</a>
<div class="dropdown mr-2">
<a href="#" class="btn btn-primary dropdown-toggle" tabindex="0">
GitHub <span class="icon icon-caret icon-in-the-middle"></span>
</a>
<ul class="menu">
<li><a href="https://github.com/process-analytics/bpmn-visualization-js"
class="mr-2 btn btn-link">Library</a></li>
<li><a href="https://github.com/process-analytics/bpmn-visualization-examples"
class="mr-2 btn btn-link">Examples</a></li>
</ul>
</div>
</section>
</header>
<section class="container col-10 flex-centered mt-2">
<section class="col-12 mt-2">
<div class="col-11 col-mx-auto">
<h2>Add & remove default overlays</h2>
<div id="controls">
<div id="btn-group-overlay" class="col-12" style="float: left">
<button id="btn-reset" type="button" class="btn btn-primary has-icon-right" title="Remove all the overlays of the selected BPMN element">
<span class="icon icon-refresh mb-1"></span>
</button>
<button id="btn-start" type="button" class="btn bg-secondary" title="Add overlay on the start of the edge">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path d="M20.5 15.49L17.5 19.11L17.5 11.86L17.5 4.62L20.5 8.24L23.5 11.86L20.5 15.49Z" id="b1Hrf82jB2"></path>
<path d="M19.74 12C16.55 12 10.17 12 0.59 12" id="a22Hrm2jxs"></path>
<path d="M6.59 11.86C6.59 14.31 5.25 16.29 3.59 16.29C1.94 16.29 0.59 14.31 0.59 11.86C0.59 9.42 1.94 7.44 3.59 7.44C5.25 7.44 6.59 9.42 6.59 11.86Z"
id="b2hlvdIfrY"></path>
</defs>
<g>
<use xlink:href="#b1Hrf82jB2" opacity="1" fill="#3b4351" fill-opacity="1"></use>
<use xlink:href="#a22Hrm2jxs" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#b2hlvdIfrY" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-middle" type="button" class="btn bg-secondary" title="Add overlay on the middle of the edge">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path d="M20.5 15.49L17.5 19.11L17.5 11.86L17.5 4.62L20.5 8.24L23.5 11.86L20.5 15.49Z" id="b1Hrf82jB2"></path>
<path d="M19.74 12C16.55 12 10.17 12 0.59 12" id="a22Hrm2jxs"></path>
<path d="M12.37 11.86C12.37 14.31 11.03 16.29 9.37 16.29C7.72 16.29 6.37 14.31 6.37 11.86C6.37 9.42 7.72 7.44 9.37 7.44C11.03 7.44 12.37 9.42 12.37 11.86Z"
id="a3UW4OJtps"></path>
</defs>
<g>
<use xlink:href="#b1Hrf82jB2" opacity="1" fill="#3b4351" fill-opacity="1"></use>
<use xlink:href="#a22Hrm2jxs" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#a3UW4OJtps" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-end" type="button" class="btn bg-secondary" title="Add overlay on the end of the edge">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path d="M20.5 15.49L17.5 19.11L17.5 11.86L17.5 4.62L20.5 8.24L23.5 11.86L20.5 15.49Z" id="b1Hrf82jB2"></path>
<path d="M19.74 12C16.55 12 10.17 12 0.59 12" id="a22Hrm2jxs"></path>
<path d="M17.19 11.73C17.19 14.17 15.85 16.15 14.19 16.15C12.54 16.15 11.19 14.17 11.19 11.73C11.19 9.29 12.54 7.3 14.19 7.3C15.85 7.3 17.19 9.29 17.19 11.73Z"
id="aL951rTpo"></path>
</defs>
<g>
<use xlink:href="#b1Hrf82jB2" opacity="1" fill="#3b4351" fill-opacity="1"></use>
<use xlink:href="#a22Hrm2jxs" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#aL951rTpo" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-top-left" type="button" class="btn bg-secondary" title="Add overlay on the top left of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27Z"
id="b38fGJxyxD"></path>
<path d="M0.85 5.76C0.85 4.06 2.18 2.68 3.82 2.68C5.47 2.68 6.8 4.06 6.8 5.76C6.8 7.46 5.47 8.85 3.82 8.85C2.18 8.85 0.85 7.46 0.85 5.76Z" id="a30JgDXm9"></path>
</defs>
<g>
<use xlink:href="#b38fGJxyxD" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#a30JgDXm9" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-top-center" type="button" class="btn bg-secondary" title="Add overlay on the top center of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27Z"
id="b38fGJxyxD"></path>
<path d="M9.02 4.5C9.02 2.79 10.36 1.41 11.99 1.41C13.64 1.41 14.97 2.79 14.97 4.5C14.97 6.2 13.64 7.59 11.99 7.59C10.36 7.59 9.02 6.2 9.02 4.5Z" id="a2qjjh30WU"></path>
</defs>
<g>
<use xlink:href="#b38fGJxyxD" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#a2qjjh30WU" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-top-right" type="button" class="btn bg-secondary" title="Add overlay on the top right of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27Z"
id="b38fGJxyxD"></path>
<path d="M16.85 5.76C16.85 4.06 18.18 2.68 19.82 2.68C21.47 2.68 22.8 4.06 22.8 5.76C22.8 7.46 21.47 8.85 19.82 8.85C18.18 8.85 16.85 7.46 16.85 5.76Z"
id="dc6GaQ2oN"></path>
</defs>
<g>
<use xlink:href="#b38fGJxyxD" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#dc6GaQ2oN" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-middle-right" type="button" class="btn bg-secondary" title="Add overlay on the middle right of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27Z"
id="b38fGJxyxD"></path>
<path d="M18.21 12.34C18.21 10.64 19.54 9.26 21.17 9.26C22.82 9.26 24.16 10.64 24.16 12.34C24.16 14.04 22.82 15.43 21.17 15.43C19.54 15.43 18.21 14.04 18.21 12.34Z"
id="b7H9MFGaQ"></path>
</defs>
<g>
<use xlink:href="#b38fGJxyxD" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#b7H9MFGaQ" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-bottom-right" type="button" class="btn bg-secondary" title="Add overlay on the top right of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27Z"
id="b38fGJxyxD"></path>
<path d="M16.85 19.51C16.85 17.81 18.18 16.43 19.82 16.43C21.47 16.43 22.8 17.81 22.8 19.51C22.8 21.21 21.47 22.6 19.82 22.6C18.18 22.6 16.85 21.21 16.85 19.51Z"
id="a1I8UgfMpA"></path>
</defs>
<g>
<use xlink:href="#b38fGJxyxD" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#a1I8UgfMpA" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-bottom-center" type="button" class="btn bg-secondary" title="Add overlay on the bottom center of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27Z"
id="b38fGJxyxD"></path>
<path d="M9.02 20.19C9.02 18.49 10.36 17.11 11.99 17.11C13.64 17.11 14.97 18.49 14.97 20.19C14.97 21.89 13.64 23.28 11.99 23.28C10.36 23.28 9.02 21.89 9.02 20.19Z"
id="bppu6sfFE"></path>
</defs>
<g>
<use xlink:href="#b38fGJxyxD" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#bppu6sfFE" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-bottom-left" type="button" class="btn bg-secondary" title="Add overlay on the bottom left of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42Z"
id="c18B1s7AYL"></path>
<path d="M3.57 22.35C2.21 22.35 1.1 20.96 1.1 19.26C1.1 17.56 2.21 16.18 3.57 16.18C4.94 16.18 6.05 17.56 6.05 19.26C6.05 20.96 4.94 22.35 3.57 22.35Z"
id="a1lKJcmcZY"></path>
</defs>
<g>
<use xlink:href="#c18B1s7AYL" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#a1lKJcmcZY" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
<button id="btn-middle-left" type="button" class="btn bg-secondary" title="Add overlay on the middle left of the shape">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width="24" height="24">
<defs>
<path
d="M21.18 16.27C21.18 18.44 19.62 20.19 17.71 20.19C14.73 20.19 9.27 20.19 6.29 20.19C4.38 20.19 2.82 18.44 2.82 16.27C2.82 13.92 2.82 10.78 2.82 8.42C2.82 6.26 4.38 4.5 6.29 4.5C9.27 4.5 14.73 4.5 17.71 4.5C19.62 4.5 21.18 6.26 21.18 8.42C21.18 10.78 21.18 13.92 21.18 16.27Z"
id="b38fGJxyxD"></path>
<path d="M0 12.34C0 10.64 1.33 9.26 2.97 9.26C4.62 9.26 5.95 10.64 5.95 12.34C5.95 14.04 4.62 15.43 2.97 15.43C1.33 15.43 0 14.04 0 12.34Z" id="b1hDiEZ2vk"></path>
</defs>
<g>
<use xlink:href="#b38fGJxyxD" opacity="1" fill-opacity="0" stroke="#3b4351" stroke-width="2" stroke-opacity="1"></use>
<use xlink:href="#b1hDiEZ2vk" opacity="1" fill="#f65bc3" fill-opacity="1"></use>
</g>
</svg>
</button>
</div>
</div>
<div class="bg-gray">
<div id="bpmn-container" class="column col-12 col-mx-auto bpmn-container"></div>
</div>
</div>
</section>
</section>
</body>
</html>