KNowledgeOnWebScale / dataflow-visualization

https://knowledgeonwebscale.github.io/dataflow-visualization/
MIT License
4 stars 2 forks source link

local property should override preset property #133

Closed mvanbrab closed 2 years ago

mvanbrab commented 2 years ago

As an example in a node, the resulting fill color should be green, regardless of any fill color defined in the preset:

   {
        "id": "thing1",
        "label": "thing 1",
        "preset": "coloredThings",
        "fill": "green"
  }
TiboStr commented 2 years ago

This is fixed by issue #132

{
    "graph": {},
    "node": {
        "presets": {
            "preset1": {
                "shape": "8-star",
                "fill": "yellow"
            }
        }
    },
    "edge": {}
}
[
    {
        "preset": ["preset1"],
        "fill": "red"
    }
]

Result: Screenshot_20220901_114430


So the local fill has priority on the fill of the preset.