3 A wardley mapping tool: Write some text, get a diagram
7 Open the project in Xcode and press buithe run button
9 ## Formatting and Linting
11 In order to format and lint the code, the project provides a Makefile that
12 uses [swift-format][swift-format].
14 * To format: `make format`
15 * To lint: `make lint`
17 These commands run on every `.swift` file in the directory.
23 Nodes should be of the format `Name (x,y)`. The name can contain spaces, and
24 the `x`/`y` can be integers or decimals. All dimensions go from 0 - 100, so
25 50 means 50% of the way through. eg.
28 - `My Cool Node (1.0,2.0)`
33 Edges connect two nodes. They use the format `Node -- Node` (line only) or
34 `Node -> Node` (with arrowhead). eg.
36 - `Node -- My Cool Node`
41 You can place a blocker in front of a node by using `[Blocker] Node`. eg.
43 - `[Blocker] My Cool Node`
48 You can draw evolution arrows by using `[Evolution] Node +x` or
49 `[Evolution] Node -x`. eg.
51 - `[Evolution] My Cool Node -10`
54 ### Modifying the axes
56 If you need more space for one of the four segments you can use
57 `[I] x`, `[II] x`, or `[III] x`. eg.
63 The parser doesn't enforce position, so if you put axis iii before axis i,
64 you'll get some rendering issues.
68 You can group nodes together by using `[Group] NodeA, NodeB...`. eg.
70 - `[Group] Tinker, Tailor, Soldier`
71 - `[Group] Two Words, Three Words Here`
75 You can add notes `[Note] (x, y) Text` where x and y are numbers, and Text is
76 any text with spaces or `\n`.
78 - `[Note] (30, 45) Here we want to call out an explanation or context.`
79 - `[Note] (90, 25) We're close to the edge \n so we can multiline it.`
81 [swift-format]: https://github.com/apple/swift-format.git