packages feed

eventlog2html 0.8.0 → 0.8.1

raw patch · 3 files changed

+108/−1 lines, 3 files

Files

CHANGELOG view
@@ -1,3 +1,7 @@+0.8.1, release 202-12-16++* Add a missing file to the cabal file to fix 0.8 release+ 0.8, release 2020-12-11  * Fix a bug for Windows users by explicitly setting output to utf-8. (Issue #123)
eventlog2html.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.4 Name:                eventlog2html-Version:             0.8.0+Version:             0.8.1 Synopsis:            Visualise an eventlog Description:         eventlog2html is a library for visualising eventlogs.                      At the moment, the intended use is to visualise eventlogs@@ -24,6 +24,7 @@ Extra-source-files:   javascript/**/*.js   javascript/**/*.css+  javascript/**/*.vg   javascript/generated/vega-embed@6.14.0   javascript/generated/vega@5.17.0   javascript/generated/vega-lite@4.17.0
+ javascript/ccmap.vg view
@@ -0,0 +1,102 @@+{+  "$schema": "https://vega.github.io/schema/vega/v5.json",+  "width": 1000,+  "height": 600,+  "padding": 5,++  "signals": [+  ],++  "data": [+    {+      "name": "tree",+      "values": desc_json,+      "transform": [+        {+          "type": "stratify",+          "key": "id",+          "parentKey": "parent"+        },+        {+          "type": "tree",+          "method": "tidy",+          "size": [{"signal": "width - 100"}, {"signal": "height"}],+          "separation": false,+          "as": ["x", "y", "depth", "children"]+        }+      ]+    },+    {+      "name": "links",+      "source": "tree",+      "transform": [+        { "type": "treelinks" },+        {+          "type": "linkpath",+          "orient": "vertical",+          "shape": "diagonal"+        }+      ]+    }+  ],++  "scales": [+    {+      "name": "color",+      "type": "ordinal",+      "domain": { "fields": [{"data": "tree", "field": "c"}+                            ,{"data": "tree", "field": "c"}], "sort": true},+      "range": {"scheme": colour_scheme}+    }+  ],++  "marks": [+    {+      "type": "path",+      "from": {"data": "links"},+      "encode": {+        "update": {+          "path": {"field": "path"},+          "stroke": {"value": "#ccc"}+        }+      }+    },+    {+      "type": "symbol",+      "from": {"data": "tree"},+      "encode": {+        "enter": {+          "size": {"value": 500},+          "stroke": {"value": "black"},+          "tooltip": {"signal": "datum.name"}+        },+        "update": {+          "x": {"field": "x"},+          "y": {"field": "y"},+          "fill": {"scale": "color", "field": "c"}+        }+      }+    },+    {+      "type": "text",+      "from": {"data": "tree"},+      "encode": {+        "enter": {+          "text": {"field": "ccs"},+          "fontSize": {"value": 9},+          "baseline": {"value": "middle"}+        },+        "update": {+          "x": {"field": "x"},+          "y": {"field": "y"},+          "angle": {"signal": "datum.children ? 0 : 0"},+          "dy": {"signal": "datum.children ? 0 : 0"},+          "dx": {"signal": "datum.children ? 0 : 0"},+          "align": {"signal": "datum.children ? 'center' : 'center'"},+          "opacity": 0+        }+      }+    }+  ]+}+