Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update links #266

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bpmn-properties/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ modeling.updateProperties(sequenceFlowElement, {
});
```

> Implement your own [`CommandHandler`](https://github.com/bpmn-io/diagram-js/blob/master/lib/command/CommandHandler.js) to perform more advanced atomic updates.
> Implement your own [`CommandHandler`](https://github.com/bpmn-io/diagram-js/blob/main/lib/command/CommandHandler.js) to perform more advanced atomic updates.
Both ways will eventually serialize the condition to XML.

Expand Down
6 changes: 3 additions & 3 deletions colors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This example shows how to add colors to BPMN diagrams rendered with [bpmn-js](https://github.com/bpmn-io/bpmn-js).

[__Try out__](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/colors/index.html).
[__Try out__](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/colors/index.html).


## About
Expand Down Expand Up @@ -129,12 +129,12 @@ canvas.addMarker('UserTask_1', 'highlight');

### Option 4: Color via Custom Renderer

Checkout [bpmn-js-task-priorities](https://github.com/bpmn-io/bpmn-js-task-priorities) for an example that provides a [custom renderer](https://github.com/bpmn-io/bpmn-js-task-priorities/blob/master/lib/priorities/ColorRenderer.js) to color shapes and connections dynamically.
Checkout [bpmn-js-task-priorities](https://github.com/bpmn-io/bpmn-js-task-priorities) for an example that provides a [custom renderer](https://github.com/bpmn-io/bpmn-js-task-priorities/blob/main/lib/priorities/ColorRenderer.js) to color shapes and connections dynamically.


## Run this Example

Download the [example diagram](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/colors/index.html) and open it in a web browser.
Download the [example diagram](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/colors/index.html) and open it in a web browser.


## License
Expand Down
2 changes: 1 addition & 1 deletion colors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h1>bpmn-js Colors</h1>
}

// load + show diagram
$.get('https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/colors/resources/pizza-collaboration.bpmn', showDiagram, 'text');
$.get('https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/colors/resources/pizza-collaboration.bpmn', showDiagram, 'text');
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion custom-bundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<script>

var diagramUrl = 'https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/dfceecba/starter/diagram.bpmn';
var diagramUrl = 'https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/dfceecba/starter/diagram.bpmn';

// viewer instance
var bpmnViewer = new CustomBpmnJS({
Expand Down
4 changes: 2 additions & 2 deletions deep-linking/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bpmn-js deep-linking example

This example shows how to use the [rootElements API](https://github.com/bpmn-io/diagram-js/blob/master/lib/core/Canvas.js) of [bpmn-js](https://github.com/bpmn-io/bpmn-js) to switch between different diagram layers.
This example shows how to use the [rootElements API](https://github.com/bpmn-io/diagram-js/blob/main/lib/core/Canvas.js) of [bpmn-js](https://github.com/bpmn-io/bpmn-js) to switch between different diagram layers.

![Screenshot](resources/screenshot.png)

Expand All @@ -12,7 +12,7 @@ Opening the generated link will take you to the selected subprocess view directl

## Usage summary

Access the [`Canvas`](https://github.com/bpmn-io/diagram-js/blob/master/lib/core/Canvas.js) service via `bpmnViewer.get('canvas')` and set root elements by id using the `Canvas#setRootElement` method. For collapsed subprocesses, the root element is suffixed with `_plane`.
Access the [`Canvas`](https://github.com/bpmn-io/diagram-js/blob/main/lib/core/Canvas.js) service via `bpmnViewer.get('canvas')` and set root elements by id using the `Canvas#setRootElement` method. For collapsed subprocesses, the root element is suffixed with `_plane`.

```javascript
var canvas = bpmnViewer.get('canvas');
Expand Down
4 changes: 2 additions & 2 deletions interaction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
An example that showcases the different ways to enable user interaction with
BPMN diagrams using [bpmn-js](https://github.com/bpmn-io/bpmn-js).

[__Try out__](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/interaction/index.html).
[__Try out__](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/interaction/index.html).


## About
Expand Down Expand Up @@ -89,4 +89,4 @@ handle it accordingly.

## Run this Example

Download and open the [example HTML page](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/interaction/index.html).
Download and open the [example HTML page](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/interaction/index.html).
6 changes: 3 additions & 3 deletions overlays/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# bpmn-js overlays example

This example shows how to use the [overlays API](https://github.com/bpmn-io/diagram-js/blob/master/lib/features/overlays/Overlays.js) of [bpmn-js](https://github.com/bpmn-io/bpmn-js) to attach HTML overlays to a BPMN 2.0 diagram.
This example shows how to use the [overlays API](https://github.com/bpmn-io/diagram-js/blob/main/lib/features/overlays/Overlays.js) of [bpmn-js](https://github.com/bpmn-io/bpmn-js) to attach HTML overlays to a BPMN 2.0 diagram.


## About

The example loads a process diagram on how to process QR codes and attaches a note on it using the [`overlays`](https://github.com/bpmn-io/diagram-js/blob/master/lib/features/overlays/Overlays.js) service.
The example loads a process diagram on how to process QR codes and attaches a note on it using the [`overlays`](https://github.com/bpmn-io/diagram-js/blob/main/lib/features/overlays/Overlays.js) service.

![QR-CODE workflow process](./docs/qr-code.gif "Screencast of overlays in action.")


## Usage summary

Access the [`overlays`](https://github.com/bpmn-io/diagram-js/blob/master/lib/features/overlays/Overlays.js) service via `bpmnViewer.get('overlays')` and add overlays to elements by id using the `Overlays#add` method.
Access the [`overlays`](https://github.com/bpmn-io/diagram-js/blob/main/lib/features/overlays/Overlays.js) service via `bpmnViewer.get('overlays')` and add overlays to elements by id using the `Overlays#add` method.

```javascript
var overlays = bpmnViewer.get('overlays');
Expand Down
4 changes: 2 additions & 2 deletions pre-packaged/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Download or simply include the relevant dependencies into your website:
<script src="https://unpkg.com/[email protected]/dist/bpmn-viewer.development.js"></script>
```

Download the complete [viewer example](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html).
Download the complete [viewer example](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html).

#### Modeler

Expand All @@ -37,7 +37,7 @@ Download the complete [viewer example](https://cdn.staticaly.com/gh/bpmn-io/bpmn
<script src="https://unpkg.com/[email protected]/dist/bpmn-modeler.development.js"></script>
```

Download the complete [modeler example](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/starter/modeler.html).
Download the complete [modeler example](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/starter/modeler.html).


## Use the Library
Expand Down
6 changes: 3 additions & 3 deletions starter/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# bpmn-js starter

Try out our toolkit by downloading the [viewer](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html) or [modeler](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/starter/modeler.html) example.
Try out our toolkit by downloading the [viewer](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html) or [modeler](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/starter/modeler.html) example.


[![viewer example screenshot](./viewer.png)](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html)
[![viewer example screenshot](./viewer.png)](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html)

_Screenshot of the [viewer example](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html)._
_Screenshot of the [viewer example](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/starter/viewer.html)._
2 changes: 1 addition & 1 deletion starter/modeler.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

<script>

var diagramUrl = 'https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/dfceecba/starter/diagram.bpmn';
var diagramUrl = 'https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/dfceecba/starter/diagram.bpmn';

// modeler instance
var bpmnModeler = new BpmnJS({
Expand Down
2 changes: 1 addition & 1 deletion starter/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<script>

var diagramUrl = 'https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/dfceecba/starter/diagram.bpmn';
var diagramUrl = 'https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/dfceecba/starter/diagram.bpmn';

// viewer instance
var bpmnViewer = new BpmnJS({
Expand Down
2 changes: 1 addition & 1 deletion theming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var bpmnViewer = new CustomBpmnJS({

### Custom CSS

bpmn-js comes with a [default stylesheet](https://github.com/bpmn-io/diagram-js/blob/master/assets/diagram-js.css). Of course you can override any of these styles.
bpmn-js comes with a [default stylesheet](https://github.com/bpmn-io/diagram-js/blob/main/assets/diagram-js.css). Of course you can override any of these styles.

## Run this example

Expand Down
4 changes: 2 additions & 2 deletions url-viewer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This example uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) to implement a
simple viewer for BPMN 2.0 process diagrams that can be loaded via their URL.

[__Try out__](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/url-viewer/index.html).
[__Try out__](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/url-viewer/index.html).


## About
Expand All @@ -18,4 +18,4 @@ Make sure you serve the application via a web server (nginx, apache, embedded) a

## Run the Example

Download and open the [example HTML page](https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/main/url-viewer/index.html).
Download and open the [example HTML page](https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/main/url-viewer/index.html).
2 changes: 1 addition & 1 deletion url-viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3>Open BPMN 2.0 diagram from URL</h3>
<input type="text" id="js-url" placeholder="path to diagram" /><button id="js-open">Open</button>
</p>
<p>
<strong>Hint:</strong> try <code>https://cdn.staticaly.com/gh/bpmn-io/bpmn-js-examples/dfceecba/url-viewer/resources/pizza-collaboration.bpmn</code></strong>
<strong>Hint:</strong> try <code>https://cdn.statically.io/gh/bpmn-io/bpmn-js-examples/dfceecba/url-viewer/resources/pizza-collaboration.bpmn</code></strong>
</p>
</div>

Expand Down