-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.html
More file actions
123 lines (118 loc) · 6.34 KB
/
index.html
File metadata and controls
123 lines (118 loc) · 6.34 KB
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
<!--
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 stylized 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;
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;
}
#btn-group-overlay-config input {
max-width: 50px;
}
.row {
margin-bottom: 5px;
min-width: 200px;
}
</style>
<script defer src="../../static/js/link-to-sources.js"></script>
<!-- load bpmn-visualization -->
<script defer src="https://cdn.jsdelivr.net/npm/bpmn-visualization@0.47.0/dist/bpmn-visualization.min.js" integrity="sha384-iBi1qHIqEUUcy+O7Dhksxd1KyS9k+EaXdIZ4LvWDw3P4c8CkCB1qFJNN6m3nHJmP" 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" style="margin-top: 3rem">
<div class="col-11 col-mx-auto">
<h2>Add stylized overlays</h2>
<div class="columns" style="margin-top: 2.5rem">
<div id="controls" class="column col-2 p-centered">
<div id="btn-group-overlay">
<h4>Actions</h4>
<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-set-overlay" type="button" class="ml-1 btn btn-primary bg-warning has-icon-right" title="Set custom overlay on edge or shape">
<span>Apply </span><span class="icon icon-message mb-1"></span>
</button>
</div>
<div id="btn-group-overlay-config" style="margin-top: 1.5rem">
<h4>Overlay settings</h4>
<div class="ml-2 mb-5">
<h5>Font</h5>
<div class="row">
<input type="color" id="font-color" name="font-color" value="#7FFFD4">
<label for="font-color">font color</label>
</div>
<div class="row">
<input type="number" id="font-size" name="font-size" value="16">
<label for="font-size">font size</label>
</div>
</div>
<div class="ml-2 mb-5">
<h5>Fill</h5>
<div class="row">
<input type="color" id="fill-color" name="fill-color" value="#778899">
<label for="fill-color">fill color</label>
</div>
</div>
<div class="ml-2">
<h5>Stroke</h5>
<div class="row">
<input type="color" id="stroke-color" name="stroke-color" value="#FFB6C1">
<label for="stroke-color">stroke color</label>
</div>
</div>
</div>
</div>
<div id="bpmn-container" class="column col-10 col-mx-auto bpmn-container"></div>
</div>
</div>
</section>
</body>
</html>