wiki-plugin-rcngraph 0.1.12 → 0.1.13
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/client/rcn-graph.js +125 -1
- package/client/rcngraph.js +125 -1
- package/package.json +1 -1
- package/pages/about-rcngraph-plugin +34 -8
package/client/rcn-graph.js
CHANGED
|
@@ -11,6 +11,86 @@
|
|
|
11
11
|
let pendingItem = null
|
|
12
12
|
let pending$item = null
|
|
13
13
|
|
|
14
|
+
// ── Build playback ─────────────────────────────────────────────────────
|
|
15
|
+
// The Graph Tool's Build mode gives nodes a step number (n.build); an edge
|
|
16
|
+
// shows once both its nodes do. The saved SVG keeps the tool's <g id="node-ID">
|
|
17
|
+
// and <g id="edge-ID"> groups, so playing a build here is only hiding and
|
|
18
|
+
// showing those groups — no redraw, no Graph Tool needed.
|
|
19
|
+
const BUILD_COLOR = '#4f46e5'
|
|
20
|
+
|
|
21
|
+
function graphModel(item) {
|
|
22
|
+
let g = item.graphJSON
|
|
23
|
+
if (typeof g === 'string') { try { g = JSON.parse(g) } catch (e) { return null } }
|
|
24
|
+
return g && Array.isArray(g.nodes) && Array.isArray(g.edges) ? g : null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function buildSteps(g) {
|
|
28
|
+
const s = new Set()
|
|
29
|
+
g.nodes.forEach(n => { if (n.build > 0) s.add(n.build) })
|
|
30
|
+
return [...s].sort((a, b) => a - b)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function groupFor(svg, kind, id) {
|
|
34
|
+
return svg.querySelector('#' + CSS.escape(kind + '-' + id))
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// idx === null: not playing, everything shows. 0: nothing of the build yet.
|
|
38
|
+
function showBuildStep($item, g, idx) {
|
|
39
|
+
const svg = $item.find('svg').get(0)
|
|
40
|
+
if (!svg) return
|
|
41
|
+
const steps = buildSteps(g)
|
|
42
|
+
const thr = idx > 0 ? steps[idx - 1] : 0
|
|
43
|
+
const hideOthers = g.buildOthers === 'hide'
|
|
44
|
+
const byId = {}
|
|
45
|
+
g.nodes.forEach(n => { byId[n.id] = n })
|
|
46
|
+
const arrives = n => (n && n.build > 0 ? n.build : 0)
|
|
47
|
+
const shown = n => {
|
|
48
|
+
if (idx === null || !n) return true
|
|
49
|
+
return n.build > 0 ? n.build <= thr : !hideOthers
|
|
50
|
+
}
|
|
51
|
+
svg.querySelectorAll('.rcn-build-ring').forEach(el => el.remove())
|
|
52
|
+
g.nodes.forEach(n => {
|
|
53
|
+
const el = groupFor(svg, 'node', n.id)
|
|
54
|
+
if (!el) return
|
|
55
|
+
el.style.display = shown(n) ? '' : 'none'
|
|
56
|
+
if (idx > 0 && n.build === thr && n.w && n.h) {
|
|
57
|
+
const r = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse')
|
|
58
|
+
r.setAttribute('class', 'rcn-build-ring')
|
|
59
|
+
r.setAttribute('cx', '0'); r.setAttribute('cy', '0')
|
|
60
|
+
r.setAttribute('rx', String(n.w / 2 + 9)); r.setAttribute('ry', String(n.h / 2 + 9))
|
|
61
|
+
r.setAttribute('fill', 'none'); r.setAttribute('stroke', BUILD_COLOR)
|
|
62
|
+
r.setAttribute('stroke-width', '3'); r.setAttribute('opacity', '.9')
|
|
63
|
+
r.setAttribute('pointer-events', 'none')
|
|
64
|
+
el.appendChild(r)
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
g.edges.forEach(e => {
|
|
68
|
+
const el = groupFor(svg, 'edge', e.id)
|
|
69
|
+
if (!el) return
|
|
70
|
+
const s = byId[e.src], t = byId[e.tgt]
|
|
71
|
+
const on = shown(s) && shown(t)
|
|
72
|
+
el.style.display = on ? '' : 'none'
|
|
73
|
+
// The edge that arrived with this step: recolour its visible line, remember
|
|
74
|
+
// the original so the next step can put it back.
|
|
75
|
+
const isNew = on && idx > 0 && Math.max(arrives(s), arrives(t)) === thr
|
|
76
|
+
el.querySelectorAll('path').forEach(p => {
|
|
77
|
+
const st = p.getAttribute('stroke')
|
|
78
|
+
if (!st || st === 'transparent' || st === 'none') return
|
|
79
|
+
if (isNew) {
|
|
80
|
+
if (!p.hasAttribute('data-build-stroke')) p.setAttribute('data-build-stroke', st)
|
|
81
|
+
p.setAttribute('stroke', BUILD_COLOR)
|
|
82
|
+
} else if (p.hasAttribute('data-build-stroke')) {
|
|
83
|
+
p.setAttribute('stroke', p.getAttribute('data-build-stroke'))
|
|
84
|
+
p.removeAttribute('data-build-stroke')
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
const bar = $item.find('.build-bar')
|
|
89
|
+
bar.find('.build-count').text(idx === null ? '' : 'Step ' + idx + ' / ' + steps.length).toggle(idx !== null)
|
|
90
|
+
bar.find('.build-play').text(idx === null ? '▶ Play build' : '■ Show all')
|
|
91
|
+
bar.find('.build-prev, .build-next').toggle(idx !== null)
|
|
92
|
+
}
|
|
93
|
+
|
|
14
94
|
function renderContent($item, item) {
|
|
15
95
|
$item.empty()
|
|
16
96
|
if (item.svgString) {
|
|
@@ -22,6 +102,7 @@
|
|
|
22
102
|
<div style="padding:6px 0 0;display:flex;gap:6px;justify-content:center;">
|
|
23
103
|
<button class="edit-graph" style="cursor:pointer;">Edit in Graph Tool ↗</button>
|
|
24
104
|
</div>
|
|
105
|
+
${buildBar(item)}
|
|
25
106
|
</div>
|
|
26
107
|
`)
|
|
27
108
|
} else {
|
|
@@ -35,6 +116,20 @@
|
|
|
35
116
|
}
|
|
36
117
|
}
|
|
37
118
|
|
|
119
|
+
function buildBar(item) {
|
|
120
|
+
const g = graphModel(item)
|
|
121
|
+
const n = g ? buildSteps(g).length : 0
|
|
122
|
+
if (!n) return ''
|
|
123
|
+
const b = 'cursor:pointer;color:' + BUILD_COLOR + ';'
|
|
124
|
+
return `
|
|
125
|
+
<div class="build-bar" tabindex="0" title="This diagram has a build: it can be revealed node by node. ← → step through it." style="padding:6px 0 0;display:flex;gap:6px;justify-content:center;align-items:center;outline:none;">
|
|
126
|
+
<button class="build-prev" style="${b}display:none" title="Back one step (←)">◀</button>
|
|
127
|
+
<button class="build-play" style="${b}">▶ Play build</button>
|
|
128
|
+
<button class="build-next" style="${b}display:none" title="Next step (→)">▶</button>
|
|
129
|
+
<span class="build-count" style="display:none;font-size:12px;color:#64748b;min-width:70px;text-align:center"></span>
|
|
130
|
+
</div>`
|
|
131
|
+
}
|
|
132
|
+
|
|
38
133
|
function emit($item, item) {
|
|
39
134
|
renderContent($item, item)
|
|
40
135
|
}
|
|
@@ -76,7 +171,36 @@
|
|
|
76
171
|
const popup = window.open(GRAPH_URL, WINDOW_NAME, 'popup,height=820,width=1440')
|
|
77
172
|
if (popup) popup.focus()
|
|
78
173
|
})
|
|
79
|
-
$item.on('dblclick',
|
|
174
|
+
$item.on('dblclick', e => {
|
|
175
|
+
// Stepping a build is quick clicking — never let it open the editor.
|
|
176
|
+
if ($(e.target).closest('.build-bar').length) return
|
|
177
|
+
wiki.textEditor($item, item)
|
|
178
|
+
})
|
|
179
|
+
// Build playback. Namespaced and reset, because a save re-runs bind.
|
|
180
|
+
let buildIdx = null
|
|
181
|
+
const step = d => {
|
|
182
|
+
const g = graphModel(item)
|
|
183
|
+
if (!g) return
|
|
184
|
+
const n = buildSteps(g).length
|
|
185
|
+
buildIdx = buildIdx === null ? (d < 0 ? n : 1) : Math.max(0, Math.min(n, buildIdx + d))
|
|
186
|
+
showBuildStep($item, g, buildIdx)
|
|
187
|
+
}
|
|
188
|
+
$item.off('.rcnbuild')
|
|
189
|
+
$item.on('click.rcnbuild', '.build-play', () => {
|
|
190
|
+
const g = graphModel(item)
|
|
191
|
+
if (!g) return
|
|
192
|
+
buildIdx = buildIdx === null ? 1 : null
|
|
193
|
+
showBuildStep($item, g, buildIdx)
|
|
194
|
+
$item.find('.build-bar').trigger('focus')
|
|
195
|
+
})
|
|
196
|
+
$item.on('click.rcnbuild', '.build-prev', () => step(-1))
|
|
197
|
+
$item.on('click.rcnbuild', '.build-next', () => step(1))
|
|
198
|
+
$item.on('keydown.rcnbuild', '.build-bar', e => {
|
|
199
|
+
if (buildIdx === null) return
|
|
200
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowDown' || e.key === ' ') { e.preventDefault(); e.stopPropagation(); step(1) }
|
|
201
|
+
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') { e.preventDefault(); e.stopPropagation(); step(-1) }
|
|
202
|
+
else if (e.key === 'Escape') { e.preventDefault(); buildIdx = null; showBuildStep($item, graphModel(item), null) }
|
|
203
|
+
})
|
|
80
204
|
// Labels in the saved SVG are wrapped as <a class="internal" data-title=…>, but
|
|
81
205
|
// two things stopped a click reaching the page: the <text> keeps the canvas's
|
|
82
206
|
// pointer-events="none", so the click fell through to the box behind it; and
|
package/client/rcngraph.js
CHANGED
|
@@ -13,6 +13,86 @@
|
|
|
13
13
|
let pendingItem = null
|
|
14
14
|
let pending$item = null
|
|
15
15
|
|
|
16
|
+
// ── Build playback ─────────────────────────────────────────────────────
|
|
17
|
+
// The Graph Tool's Build mode gives nodes a step number (n.build); an edge
|
|
18
|
+
// shows once both its nodes do. The saved SVG keeps the tool's <g id="node-ID">
|
|
19
|
+
// and <g id="edge-ID"> groups, so playing a build here is only hiding and
|
|
20
|
+
// showing those groups — no redraw, no Graph Tool needed.
|
|
21
|
+
const BUILD_COLOR = '#4f46e5'
|
|
22
|
+
|
|
23
|
+
function graphModel(item) {
|
|
24
|
+
let g = item.graphJSON
|
|
25
|
+
if (typeof g === 'string') { try { g = JSON.parse(g) } catch (e) { return null } }
|
|
26
|
+
return g && Array.isArray(g.nodes) && Array.isArray(g.edges) ? g : null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function buildSteps(g) {
|
|
30
|
+
const s = new Set()
|
|
31
|
+
g.nodes.forEach(n => { if (n.build > 0) s.add(n.build) })
|
|
32
|
+
return [...s].sort((a, b) => a - b)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function groupFor(svg, kind, id) {
|
|
36
|
+
return svg.querySelector('#' + CSS.escape(kind + '-' + id))
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// idx === null: not playing, everything shows. 0: nothing of the build yet.
|
|
40
|
+
function showBuildStep($item, g, idx) {
|
|
41
|
+
const svg = $item.find('svg').get(0)
|
|
42
|
+
if (!svg) return
|
|
43
|
+
const steps = buildSteps(g)
|
|
44
|
+
const thr = idx > 0 ? steps[idx - 1] : 0
|
|
45
|
+
const hideOthers = g.buildOthers === 'hide'
|
|
46
|
+
const byId = {}
|
|
47
|
+
g.nodes.forEach(n => { byId[n.id] = n })
|
|
48
|
+
const arrives = n => (n && n.build > 0 ? n.build : 0)
|
|
49
|
+
const shown = n => {
|
|
50
|
+
if (idx === null || !n) return true
|
|
51
|
+
return n.build > 0 ? n.build <= thr : !hideOthers
|
|
52
|
+
}
|
|
53
|
+
svg.querySelectorAll('.rcn-build-ring').forEach(el => el.remove())
|
|
54
|
+
g.nodes.forEach(n => {
|
|
55
|
+
const el = groupFor(svg, 'node', n.id)
|
|
56
|
+
if (!el) return
|
|
57
|
+
el.style.display = shown(n) ? '' : 'none'
|
|
58
|
+
if (idx > 0 && n.build === thr && n.w && n.h) {
|
|
59
|
+
const r = document.createElementNS('http://www.w3.org/2000/svg', 'ellipse')
|
|
60
|
+
r.setAttribute('class', 'rcn-build-ring')
|
|
61
|
+
r.setAttribute('cx', '0'); r.setAttribute('cy', '0')
|
|
62
|
+
r.setAttribute('rx', String(n.w / 2 + 9)); r.setAttribute('ry', String(n.h / 2 + 9))
|
|
63
|
+
r.setAttribute('fill', 'none'); r.setAttribute('stroke', BUILD_COLOR)
|
|
64
|
+
r.setAttribute('stroke-width', '3'); r.setAttribute('opacity', '.9')
|
|
65
|
+
r.setAttribute('pointer-events', 'none')
|
|
66
|
+
el.appendChild(r)
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
g.edges.forEach(e => {
|
|
70
|
+
const el = groupFor(svg, 'edge', e.id)
|
|
71
|
+
if (!el) return
|
|
72
|
+
const s = byId[e.src], t = byId[e.tgt]
|
|
73
|
+
const on = shown(s) && shown(t)
|
|
74
|
+
el.style.display = on ? '' : 'none'
|
|
75
|
+
// The edge that arrived with this step: recolour its visible line, remember
|
|
76
|
+
// the original so the next step can put it back.
|
|
77
|
+
const isNew = on && idx > 0 && Math.max(arrives(s), arrives(t)) === thr
|
|
78
|
+
el.querySelectorAll('path').forEach(p => {
|
|
79
|
+
const st = p.getAttribute('stroke')
|
|
80
|
+
if (!st || st === 'transparent' || st === 'none') return
|
|
81
|
+
if (isNew) {
|
|
82
|
+
if (!p.hasAttribute('data-build-stroke')) p.setAttribute('data-build-stroke', st)
|
|
83
|
+
p.setAttribute('stroke', BUILD_COLOR)
|
|
84
|
+
} else if (p.hasAttribute('data-build-stroke')) {
|
|
85
|
+
p.setAttribute('stroke', p.getAttribute('data-build-stroke'))
|
|
86
|
+
p.removeAttribute('data-build-stroke')
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
const bar = $item.find('.build-bar')
|
|
91
|
+
bar.find('.build-count').text(idx === null ? '' : 'Step ' + idx + ' / ' + steps.length).toggle(idx !== null)
|
|
92
|
+
bar.find('.build-play').text(idx === null ? '▶ Play build' : '■ Show all')
|
|
93
|
+
bar.find('.build-prev, .build-next').toggle(idx !== null)
|
|
94
|
+
}
|
|
95
|
+
|
|
16
96
|
function renderContent($item, item) {
|
|
17
97
|
$item.empty()
|
|
18
98
|
if (item.svgString) {
|
|
@@ -24,6 +104,7 @@
|
|
|
24
104
|
<div style="padding:6px 0 0;display:flex;gap:6px;justify-content:center;">
|
|
25
105
|
<button class="edit-graph" style="cursor:pointer;">Edit in Graph Tool ↗</button>
|
|
26
106
|
</div>
|
|
107
|
+
${buildBar(item)}
|
|
27
108
|
</div>
|
|
28
109
|
`)
|
|
29
110
|
} else {
|
|
@@ -37,6 +118,20 @@
|
|
|
37
118
|
}
|
|
38
119
|
}
|
|
39
120
|
|
|
121
|
+
function buildBar(item) {
|
|
122
|
+
const g = graphModel(item)
|
|
123
|
+
const n = g ? buildSteps(g).length : 0
|
|
124
|
+
if (!n) return ''
|
|
125
|
+
const b = 'cursor:pointer;color:' + BUILD_COLOR + ';'
|
|
126
|
+
return `
|
|
127
|
+
<div class="build-bar" tabindex="0" title="This diagram has a build: it can be revealed node by node. ← → step through it." style="padding:6px 0 0;display:flex;gap:6px;justify-content:center;align-items:center;outline:none;">
|
|
128
|
+
<button class="build-prev" style="${b}display:none" title="Back one step (←)">◀</button>
|
|
129
|
+
<button class="build-play" style="${b}">▶ Play build</button>
|
|
130
|
+
<button class="build-next" style="${b}display:none" title="Next step (→)">▶</button>
|
|
131
|
+
<span class="build-count" style="display:none;font-size:12px;color:#64748b;min-width:70px;text-align:center"></span>
|
|
132
|
+
</div>`
|
|
133
|
+
}
|
|
134
|
+
|
|
40
135
|
function emit($item, item) {
|
|
41
136
|
renderContent($item, item)
|
|
42
137
|
}
|
|
@@ -78,7 +173,36 @@
|
|
|
78
173
|
const popup = window.open(GRAPH_URL, WINDOW_NAME, 'popup,height=820,width=1440')
|
|
79
174
|
if (popup) popup.focus()
|
|
80
175
|
})
|
|
81
|
-
$item.on('dblclick',
|
|
176
|
+
$item.on('dblclick', e => {
|
|
177
|
+
// Stepping a build is quick clicking — never let it open the editor.
|
|
178
|
+
if ($(e.target).closest('.build-bar').length) return
|
|
179
|
+
wiki.textEditor($item, item)
|
|
180
|
+
})
|
|
181
|
+
// Build playback. Namespaced and reset, because a save re-runs bind.
|
|
182
|
+
let buildIdx = null
|
|
183
|
+
const step = d => {
|
|
184
|
+
const g = graphModel(item)
|
|
185
|
+
if (!g) return
|
|
186
|
+
const n = buildSteps(g).length
|
|
187
|
+
buildIdx = buildIdx === null ? (d < 0 ? n : 1) : Math.max(0, Math.min(n, buildIdx + d))
|
|
188
|
+
showBuildStep($item, g, buildIdx)
|
|
189
|
+
}
|
|
190
|
+
$item.off('.rcnbuild')
|
|
191
|
+
$item.on('click.rcnbuild', '.build-play', () => {
|
|
192
|
+
const g = graphModel(item)
|
|
193
|
+
if (!g) return
|
|
194
|
+
buildIdx = buildIdx === null ? 1 : null
|
|
195
|
+
showBuildStep($item, g, buildIdx)
|
|
196
|
+
$item.find('.build-bar').trigger('focus')
|
|
197
|
+
})
|
|
198
|
+
$item.on('click.rcnbuild', '.build-prev', () => step(-1))
|
|
199
|
+
$item.on('click.rcnbuild', '.build-next', () => step(1))
|
|
200
|
+
$item.on('keydown.rcnbuild', '.build-bar', e => {
|
|
201
|
+
if (buildIdx === null) return
|
|
202
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowDown' || e.key === ' ') { e.preventDefault(); e.stopPropagation(); step(1) }
|
|
203
|
+
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') { e.preventDefault(); e.stopPropagation(); step(-1) }
|
|
204
|
+
else if (e.key === 'Escape') { e.preventDefault(); buildIdx = null; showBuildStep($item, graphModel(item), null) }
|
|
205
|
+
})
|
|
82
206
|
// Labels in the saved SVG are wrapped as <a class="internal" data-title=…>, but
|
|
83
207
|
// two things stopped a click reaching the page: the <text> keeps the canvas's
|
|
84
208
|
// pointer-events="none", so the click fell through to the box behind it; and
|
package/package.json
CHANGED
|
@@ -9,17 +9,22 @@
|
|
|
9
9
|
{
|
|
10
10
|
"type": "paragraph",
|
|
11
11
|
"id": "2e7c9f04a3b8d651",
|
|
12
|
-
"text": "Create an item using the factory. Click Open Graph Tool to open the tool. Use -> Item to save the diagram as an SVG preview back into the wiki item
|
|
12
|
+
"text": "Create an item using the factory. Click Open Graph Tool to open the tool. Use -> Item to save the diagram as an SVG preview back into the wiki item — node labels in that preview are clickable internal wiki links, and the graph JSON rides along so Edit in Graph Tool reopens the real model. Use -> Wiki to send the diagram to the lineup as a ghost page. Both follow Ward Cunningham's Enrich Any SVG pattern."
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"type": "paragraph",
|
|
16
16
|
"id": "c1d2e3f4a5b60001",
|
|
17
|
-
"text": "Diagram types
|
|
17
|
+
"text": "Diagram types — CLD (Causal Loop): map feedback loops and system dynamics. EIP (Enriched Influence Pattern): influence networks with stakeholders, flows, and interventions. NRM (Neighbourhood Risk Management): incident and risk analysis on the Tripod Beta pattern. Trace: follow a path through an existing graph. Wardley: Wardley mapping on an evolution/visibility canvas. OPM (Object-Process Methodology): system structure and process using Dov Dori's ISO 19450 standard, with OPL sentences and Cypher export. SFD (Stock and Flow): stocks, valves, auxiliaries and clouds in the Stella idiom, with XMILE export. LOP (Linkage of Processes): the Deming / API organization-as-a-system map. VSM (Value Stream Mapping): Cindy Jimmerson's healthcare value stream — four flows in lanes, storm bursts, and a computed sawtooth giving lead time, value-added time and the ratio between them, with a one-click handoff that seeds an A3. Triples: nodes and edges can link to other edges, enabling RDF-style triple referencing for knowledge graph authoring."
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"type": "paragraph",
|
|
21
21
|
"id": "d2e3f4a5b6c70002",
|
|
22
|
-
"text": "Import and export: MDL/Vensim CLD, Graphviz .dot, XMILE, Cypher, Wardley JSON, and CSV. A model can also be opened straight from a URL with ?url=, including an RCN Substrate subgraph projection. Multi-trace edges, node and edge layers, canvas legend, and Print are available in all modes. A mode
|
|
22
|
+
"text": "Import and export: MDL/Vensim CLD, Graphviz .dot, XMILE, Cypher, Wardley JSON, and CSV. A model can also be opened straight from a URL with ?url=, including an RCN Substrate subgraph projection. Multi-trace edges, node and edge layers, canvas legend, and Print are available in all modes. A mode’s backdrop — EIP columns, Wardley grid, LOP bands, VSM lanes and sawtooth — is drawn inside the SVG, so it travels into the wiki item and out again; save while still in that mode, because the backdrop only draws there."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "paragraph",
|
|
26
|
+
"id": "b7d1e9c3a5f20814",
|
|
27
|
+
"text": "Builds: a diagram made in the Graph Tool’s Build mode carries an order for its nodes. The item then shows a Play build button that reveals the diagram right here on the page, step by step: ◀ and ▶ or the arrow keys move through it, each edge appears once both its nodes are on screen, and what a step just brought in is ringed in indigo. Show all puts the whole diagram back. The Graph Tool’s live build, where the room decides the order, runs in the tool itself."
|
|
23
28
|
},
|
|
24
29
|
{
|
|
25
30
|
"type": "rcngraph",
|
|
@@ -29,7 +34,7 @@
|
|
|
29
34
|
{
|
|
30
35
|
"type": "paragraph",
|
|
31
36
|
"id": "4b6f8e3d9c2a1705",
|
|
32
|
-
"text": "Developed by Marc Pierson with Claude Sonnet 4.6 (Anthropic) for the ReLocalize Creativity Network. Source: [https://github.com/marpie1/wiki-plugin-rcngraph GitHub]. Published on npm as wiki-plugin-rcngraph."
|
|
37
|
+
"text": "Developed by Marc Pierson with Claude Sonnet 4.6 (Anthropic) for the ReLocalize Creativity Network. Build playback added October 2026 with Claude Opus 5.5. Source: [https://github.com/marpie1/wiki-plugin-rcngraph GitHub]. Published on npm as wiki-plugin-rcngraph."
|
|
33
38
|
}
|
|
34
39
|
],
|
|
35
40
|
"journal": [
|
|
@@ -57,7 +62,7 @@
|
|
|
57
62
|
"item": {
|
|
58
63
|
"type": "paragraph",
|
|
59
64
|
"id": "2e7c9f04a3b8d651",
|
|
60
|
-
"text": "Create an item using the factory. Click Open Graph Tool to open the tool. Use -> Item to save the diagram as an SVG preview back into the wiki item
|
|
65
|
+
"text": "Create an item using the factory. Click Open Graph Tool to open the tool. Use -> Item to save the diagram as an SVG preview back into the wiki item — node labels in that preview are clickable internal wiki links, and the graph JSON rides along so Edit in Graph Tool reopens the real model. Use -> Wiki to send the diagram to the lineup as a ghost page. Both follow Ward Cunningham's Enrich Any SVG pattern."
|
|
61
66
|
},
|
|
62
67
|
"date": 1782864002000
|
|
63
68
|
},
|
|
@@ -68,7 +73,7 @@
|
|
|
68
73
|
"item": {
|
|
69
74
|
"type": "paragraph",
|
|
70
75
|
"id": "c1d2e3f4a5b60001",
|
|
71
|
-
"text": "Diagram types
|
|
76
|
+
"text": "Diagram types — CLD (Causal Loop): map feedback loops and system dynamics. EIP (Enriched Influence Pattern): influence networks with stakeholders, flows, and interventions. NRM (Neighbourhood Risk Management): incident and risk analysis on the Tripod Beta pattern. Trace: follow a path through an existing graph. Wardley: Wardley mapping on an evolution/visibility canvas. OPM (Object-Process Methodology): system structure and process using Dov Dori's ISO 19450 standard, with OPL sentences and Cypher export. SFD (Stock and Flow): stocks, valves, auxiliaries and clouds in the Stella idiom, with XMILE export. LOP (Linkage of Processes): the Deming / API organization-as-a-system map. Triples: nodes and edges can link to other edges, enabling RDF-style triple referencing for knowledge graph authoring."
|
|
72
77
|
},
|
|
73
78
|
"date": 1782864003000
|
|
74
79
|
},
|
|
@@ -111,7 +116,7 @@
|
|
|
111
116
|
"item": {
|
|
112
117
|
"type": "paragraph",
|
|
113
118
|
"id": "c1d2e3f4a5b60001",
|
|
114
|
-
"text": "Diagram types
|
|
119
|
+
"text": "Diagram types — CLD (Causal Loop): map feedback loops and system dynamics. EIP (Enriched Influence Pattern): influence networks with stakeholders, flows, and interventions. NRM (Neighbourhood Risk Management): incident and risk analysis on the Tripod Beta pattern. Trace: follow a path through an existing graph. Wardley: Wardley mapping on an evolution/visibility canvas. OPM (Object-Process Methodology): system structure and process using Dov Dori's ISO 19450 standard, with OPL sentences and Cypher export. SFD (Stock and Flow): stocks, valves, auxiliaries and clouds in the Stella idiom, with XMILE export. LOP (Linkage of Processes): the Deming / API organization-as-a-system map. VSM (Value Stream Mapping): Cindy Jimmerson's healthcare value stream — four flows in lanes, storm bursts, and a computed sawtooth giving lead time, value-added time and the ratio between them, with a one-click handoff that seeds an A3. Triples: nodes and edges can link to other edges, enabling RDF-style triple referencing for knowledge graph authoring."
|
|
115
120
|
},
|
|
116
121
|
"date": 1787712127315
|
|
117
122
|
},
|
|
@@ -121,7 +126,7 @@
|
|
|
121
126
|
"item": {
|
|
122
127
|
"type": "paragraph",
|
|
123
128
|
"id": "d2e3f4a5b6c70002",
|
|
124
|
-
"text": "Import and export: MDL/Vensim CLD, Graphviz .dot, XMILE, Cypher, Wardley JSON, and CSV. A model can also be opened straight from a URL with ?url=, including an RCN Substrate subgraph projection. Multi-trace edges, node and edge layers, canvas legend, and Print are available in all modes. A mode
|
|
129
|
+
"text": "Import and export: MDL/Vensim CLD, Graphviz .dot, XMILE, Cypher, Wardley JSON, and CSV. A model can also be opened straight from a URL with ?url=, including an RCN Substrate subgraph projection. Multi-trace edges, node and edge layers, canvas legend, and Print are available in all modes. A mode’s backdrop — EIP columns, Wardley grid, LOP bands, VSM lanes and sawtooth — is drawn inside the SVG, so it travels into the wiki item and out again; save while still in that mode, because the backdrop only draws there."
|
|
125
130
|
},
|
|
126
131
|
"date": 1787712128315
|
|
127
132
|
},
|
|
@@ -134,6 +139,27 @@
|
|
|
134
139
|
"text": "Developed by Marc Pierson with Claude Sonnet 4.6 (Anthropic) for the ReLocalize Creativity Network. Source: [https://github.com/marpie1/wiki-plugin-rcngraph GitHub]. Published on npm as wiki-plugin-rcngraph."
|
|
135
140
|
},
|
|
136
141
|
"date": 1791164815533
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "add",
|
|
145
|
+
"id": "b7d1e9c3a5f20814",
|
|
146
|
+
"item": {
|
|
147
|
+
"type": "paragraph",
|
|
148
|
+
"id": "b7d1e9c3a5f20814",
|
|
149
|
+
"text": "Builds: a diagram made in the Graph Tool’s Build mode carries an order for its nodes. The item then shows a Play build button that reveals the diagram right here on the page, step by step: ◀ and ▶ or the arrow keys move through it, each edge appears once both its nodes are on screen, and what a step just brought in is ringed in indigo. Show all puts the whole diagram back. The Graph Tool’s live build, where the room decides the order, runs in the tool itself."
|
|
150
|
+
},
|
|
151
|
+
"after": "d2e3f4a5b6c70002",
|
|
152
|
+
"date": 1791313722633
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "edit",
|
|
156
|
+
"id": "4b6f8e3d9c2a1705",
|
|
157
|
+
"item": {
|
|
158
|
+
"type": "paragraph",
|
|
159
|
+
"id": "4b6f8e3d9c2a1705",
|
|
160
|
+
"text": "Developed by Marc Pierson with Claude Sonnet 4.6 (Anthropic) for the ReLocalize Creativity Network. Build playback added October 2026 with Claude Opus 5.5. Source: [https://github.com/marpie1/wiki-plugin-rcngraph GitHub]. Published on npm as wiki-plugin-rcngraph."
|
|
161
|
+
},
|
|
162
|
+
"date": 1791313722634
|
|
137
163
|
}
|
|
138
164
|
]
|
|
139
165
|
}
|