@r0kshan/cairn 1.0.0-RC15 → 1.0.0-RC16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/bin/cairn.mjs +735 -162
- package/dist/cairn.mjs +792 -137
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ Colours are resolved at three levels — most specific wins. From lowest to high
|
|
|
134
134
|
|
|
135
135
|
Flows can also be coloured inline:
|
|
136
136
|
```cairn
|
|
137
|
-
COM_CTR -> OBS
|
|
137
|
+
COM_CTR -> OBS "Alerts…" { label: above stroke: dashed #a33 text: #a33 }
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
See [`examples/colors-custom.cairn`](examples/colors-custom.cairn) for a full example:
|
|
@@ -207,9 +207,9 @@ style {
|
|
|
207
207
|
flow-label: above # on-line (default) | above | below
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
AGENT -> RECEIVE
|
|
211
|
-
ASSIGN -> SETTLE
|
|
212
|
-
TRACE -> STORE
|
|
210
|
+
AGENT -> RECEIVE "File a claim" # above, from the style block
|
|
211
|
+
ASSIGN -> SETTLE "Request settlement" { label: below } # overridden per flow
|
|
212
|
+
TRACE -> STORE "Archive the trace" { label: on-line } # back to the default
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
<p align="center"><img src="examples/placement/flow-label.svg" alt="Flow label positions" width="760"></p>
|