Skip to content

Commit

Permalink
New library version used in examples: 0.8.0(#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
aibcmars authored Nov 30, 2020
1 parent b466351 commit b35ab72
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 23 deletions.
2 changes: 1 addition & 1 deletion examples/01-getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Javascript example to demonstrate how to integrate `bpmn-visualization` in an ht
Load the browser bundle from [unpkg](https://unpkg.com/browse/bpmn-visualization), [jsdelivr](https://www.jsdelivr.com/package/npm/bpmn-visualization),
or any other location:
```html
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
```

### Use the library
Expand Down
4 changes: 2 additions & 2 deletions examples/01-getting-started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ <h2>Getting Started</h2>
</section>

<!-- load bpmn-visualization -->
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
<!-- if you prefer jsdlivr, comment unpkg and uncomment the following line -->
<!--<script src="https://cdn.jsdelivr.net/npm/bpmn-visualization@0.7.0/dist/bpmn-visualization.min.js"></script>-->
<!--<script src="https://cdn.jsdelivr.net/npm/bpmn-visualization@0.8.0/dist/bpmn-visualization.min.js"></script>-->
<script>
const bpmnVisualization = new bpmnvisu.BpmnVisualization(document.getElementById('bpmn-container'));
bpmnVisualization.load(bpmnDiagram());
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-colors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2>Custom colors for User Task</h2>
</section>

<!-- load bpmn-visualization -->
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
<!-- load the example -->
<script src="./custom-colors.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-fonts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h2>Custom BPMN element fonts</h2>
</section>

<!-- load bpmn-visualization -->
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
<!-- load the example -->
<script src="./custom-fonts.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-user-task-icon/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2>Custom User Task icon</h2>
</section>

<!-- load bpmn-visualization -->
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
<!-- load the example -->
<script src="./custom-user-task-icon.js"></script>
</body>
Expand Down
5 changes: 1 addition & 4 deletions examples/diagram-fit-on-load/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ <h5>Fit type</h5>
</section>

<!-- load bpmn-visualization -->
<!-- TODO Uncomment on the 0.8.0 release -->
<!-- <script src="https://unpkg.com/[email protected]/dist/bpmn-visualization.js"></script> -->
<!-- TODO Delete on the 0.8.0 release -->
<script src="../../tmp/bpmn-visualization.js"></script>
<script src="https://unpkg.com/[email protected]/dist/bpmn-visualization.js"></script>
<script src="./diagram-fit-on-load.js"></script>
</body>
</html>
5 changes: 1 addition & 4 deletions examples/diagram-fit-variants/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ <h2>Various fit variants</h2>
</section>

<!-- load bpmn-visualization -->
<!-- TODO Uncomment on the 0.8.0 release -->
<!-- <script src="https://unpkg.com/[email protected]/dist/bpmn-visualization.js"></script> -->
<!-- TODO Delete on the 0.8.0 release -->
<script src="../../tmp/bpmn-visualization.js"></script>
<script src="https://unpkg.com/[email protected]/dist/bpmn-visualization.js"></script>

<script>
let fitType = bpmnvisu.FitType.None;
Expand Down
2 changes: 1 addition & 1 deletion examples/diagram-navigation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h2>With Diagram Navigation enabled</h2>
</section>
</section>

<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
<script>
const bpmnVisualization = new bpmnvisu.BpmnVisualization(document.getElementById('bpmn-container-default'));
bpmnVisualization.load(bpmnDiagram());
Expand Down
2 changes: 1 addition & 1 deletion examples/hacktoberfest-diagram/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h2>Dark Hacktoberfest Theme</h2>
</section>

<!-- load bpmn-visualization -->
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
<!-- load the example -->
<script src="./hacktoberfest-diagram.js"></script>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ <h2>Open a modal on mouse over on a call activity</h2>
</div>

<!-- load bpmn-visualization -->
<!-- TODO Uncomment on the 0.8.0 release -->
<!-- <script src="https://unpkg.com/[email protected]/dist/bpmn-visualization.js"></script> -->
<!-- TODO Delete on the 0.8.0 release -->
<script src="../../../tmp/bpmn-visualization.js"></script>
<script src="https://unpkg.com/[email protected]/dist/bpmn-visualization.js"></script>
<script src="./index.js"></script>
<script src="./modal.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion examples/load-local-bpmn-diagrams/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h2>Load local BPMN diagrams</h2>
</section>

<!-- load bpmn-visualization -->
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>
<script>
document.getElementById('btn-open-file').addEventListener('change', handleFileSelect, false);

Expand Down
2 changes: 1 addition & 1 deletion examples/load-remote-bpmn-diagrams/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2>Load remote BPMN diagrams</h2>
</section>

<!-- load bpmn-visualization -->
<script src="https://unpkg.com/bpmn-visualization@0.7.0/dist/bpmn-visualization.js"></script>
<script src="https://unpkg.com/bpmn-visualization@0.8.0/dist/bpmn-visualization.js"></script>

<script>
const bpmnVisualization = new bpmnvisu.BpmnVisualization(window.document.getElementById('bpmn-container'));
Expand Down
1 change: 0 additions & 1 deletion tmp/bpmn-visualization.js

This file was deleted.

0 comments on commit b35ab72

Please sign in to comment.