forma-arch 0.11.2 → 0.11.3
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.
|
@@ -763,11 +763,16 @@ function edgePath(a,b){
|
|
|
763
763
|
}
|
|
764
764
|
function levelName(l){return (STR.lvlNames&&STR.lvlNames[l])||l||"—";}
|
|
765
765
|
function cssv(v){try{return getComputedStyle(document.documentElement).getPropertyValue(v).trim()||"#2b6e8a";}catch(e){return "#2b6e8a";}}
|
|
766
|
+
function detailState(n,timeline){
|
|
767
|
+
// Function prose says what a box is. It is not also a checkpoint state: unchanged timeline nodes
|
|
768
|
+
// without curated `current` used to repeat the same sentence under both labels.
|
|
769
|
+
return timeline?(n.current||""):(n.current||n.func||n.description||"");
|
|
770
|
+
}
|
|
766
771
|
|
|
767
772
|
function showDetail(n){
|
|
768
773
|
if(n&&n.__catalog)return showRoster(n);
|
|
769
|
-
var src=srcOf(n),cur=n
|
|
770
|
-
var
|
|
774
|
+
var timeline=!!(BASE&&BASE.timeline),src=srcOf(n),cur=detailState(n,timeline),showSrc=src&&String(cur).indexOf(src)<0;
|
|
775
|
+
var change=timeline?nodeChange(n.id):null;
|
|
771
776
|
$("detail").innerHTML='<span class="cl" id="dc">'+esc(STR.detClose)+'</span><h3>'+esc(n.name)+' <span class="cat">· '+esc(n.category||n.kind||"")+(n.tech?" · "+esc(n.tech):"")+'</span></h3>'
|
|
772
777
|
+(n.func?'<div class="row"><span class="lbl">'+esc(STR.detFunc)+'</span><span class="func">'+esc(n.func)+'</span></div>':'')
|
|
773
778
|
+(cur&&(timeline||cur!==n.func)?'<div class="row"><span class="lbl">'+esc(timeline?STR.detCheckpoint:STR.detNow)+'</span><span class="now">'+esc(cur)+'</span></div>':'')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forma-arch",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Forma — present your architecture instead of slides. An interactive, stack-agnostic C4 explorer (context → container → component → leaf) generated from your code and kept true to it by a deterministic drift check.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"architecture",
|