]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkProfiles.pgraph
Dynamic vertex SVG symbol generation
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkProfiles.pgraph
index ac1cf19fd3ec67b24a986b071656ed89ea0319f7..1a468d12696cca2c3822eebe555ca0f8c2812d01 100644 (file)
@@ -23,3 +23,12 @@ DN.ElementColoringStyle : DIA.Style
 DN.VertexSizeStyle : DIA.Style
 DN.EdgeThicknessStyle : DIA.Style
 DN.HideStyle : DIA.Style
+DN.VertexSymbolStyle : DIA.Style
+
+// Function for dynamic selection of symbols for a vertex
+// The input of the function is a DN.Vertex
+// The output of the function should be SVG
+DN.HasSymbolFunction <R L0.HasProperty
+    <-- DIA.ProfileEntry
+    --> L0.ExternalValue
+    ==> "Resource -> <ReadGraph> String"