Skip to content

Commit

Permalink
Merge navigation-diagram page on rendering-diagram page
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Nov 17, 2020
1 parent 745dfab commit 7557139
Show file tree
Hide file tree
Showing 10 changed files with 178 additions and 242 deletions.
96 changes: 0 additions & 96 deletions src/navigation-diagram.html

This file was deleted.

57 changes: 49 additions & 8 deletions src/rendering-diagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
<title>BPMN Visualization - Diagram Rendering</title>
<link rel="shortcut icon" href="./static/img/favicon.ico">

<link href='https://css.gg/close.css' rel='stylesheet'>
<link href='https://css.gg/code.css' rel='stylesheet'>
<link href='https://css.gg/select.css' rel='stylesheet'>
<link href='https://css.gg/minimize.css' rel='stylesheet'>
<link href='https://css.gg/maximize.css' rel='stylesheet'>

<style>
.flex-container{
display: flex;
Expand All @@ -22,7 +16,7 @@
bottom: 20px;
position: absolute;
}
.flex-sub-container{
.flex-column-container{
display: flex;
flex-direction: column;
justify-content: space-around;
Expand All @@ -43,11 +37,58 @@
height:28px;
background-color: #f9dfe8;
}

.tooltip {
visibility: hidden;
width: 300px;
background-color: black;
color: #fff;
fill: #B0B0B0;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
top: -5px;
left: 110%;
font-family: monospace;
}
.info:hover .tooltip {
visibility: visible;
}

.zoom-config {
font-size: 0.7em;
width: 35px;
}
label {
font-size: 0.65em;
}
</style>
</head>
<body>
<div class="flex-container">
<div class="flex-sub-container" style="flex-grow: 1">
<div class="flex-column-container" style="flex-grow: 1">
<div class="info">
<!-- https://icons.getbootstrap.com/icons/info-square-fill/ -->
<svg width="28px" height="28px" viewBox="0 0 16 16" class="bi bi-info-square-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm8.93 4.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
</svg>
<div class="tooltip">
<p>Drag and Drop a BPMN file</p>
<p>To show zoom config controls add this to the url: .../navigation-diagram.html?zoomConfigControls=true</p>
</div>
</div>

<div class="flex-column-container">
<label for="zoom-throttle">throttle</label>
<input id="zoom-throttle" class="zoom-config" type="number" placeholder="thr" value="40" disabled title="to play with throttle pass parameter in url like this: .../rendering-diagram.html?zoomThrottle=40"/>
</div>
<div class="flex-column-container">
<label for="zoom-debounce">debounce</label>
<input id="zoom-debounce" class="zoom-config" type="number" placeholder="deb" value="30" disabled title="to play with debounce pass parameter in url like this: .../rendering-diagram.html?zoomDebounce=30"/>
</div>

<button type="button" id="None">
<svg
width="24"
Expand Down
123 changes: 0 additions & 123 deletions src/static/js/navigation-diagram.js

This file was deleted.

Loading

0 comments on commit 7557139

Please sign in to comment.