From fee35dca32296c016cd8ff14bacb80acb85f4888 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 8 Jul 2017 00:08:33 +0300 Subject: [PATCH] added graphviz graph generator... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-widgets.js | 8 ++++++++ ui (gen4)/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index c3efeff1..09473755 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -472,6 +472,7 @@ var DialogsActions = actions.Actions({ // XXX this knows about action priority and shortcut marker... // XXX should these be more like .getDoc(..) and support lists of actions??? + // XXX should these be here or someplace in base (base-introspection)??? getDocPath: ['- Interface/', function(action, clean, join){ clean = clean == null ? true : clean @@ -886,6 +887,12 @@ var UIIntrospectionActions = actions.Actions({ cls: 'table-view' }) })], + + + // XXX EXPERIMENTAL... + featureGraph: ['- Help/Generate feature graph (graphviz format)', + function(){ + return this.features.FeatureSet.gvGraph(this.features.features) }], }) var UIIntrospection = @@ -1429,6 +1436,7 @@ module.BrowseActions = core.ImageGridFeatures.Feature({ depends: [ 'ui', 'ui-dialogs', + 'ui-introspection', ], suggested: [ 'keyboard', diff --git a/ui (gen4)/package.json b/ui (gen4)/package.json index 4c9cb85d..2eef1ca2 100755 --- a/ui (gen4)/package.json +++ b/ui (gen4)/package.json @@ -23,7 +23,7 @@ "glob": "^4.0.6", "guarantee-events": "^1.0.0", "ig-actions": "^3.2.5", - "ig-features": "^3.2.2", + "ig-features": "^3.2.4", "ig-object": "^1.0.1", "openseadragon": "^2.1.0", "preact": "^8.1.0",