]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.ontology/graph/DiagramElements.pgraph
Font property for DIA.TextElement
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / DiagramElements.pgraph
index 7fb684aefb49b564b31f8436d901e6338c573019..87f6da68f046ad60d5634e82e4ca796dab734f9d 100644 (file)
@@ -2,6 +2,7 @@ L0 = <http://www.simantics.org/Layer0-1.1>
 L0X = <http://www.simantics.org/Layer0X-1.1>
 G2D = <http://www.simantics.org/G2D-1.1>
 DIA = <http://www.simantics.org/Diagram-2.2>
+SEL = <http://www.simantics.org/SelectionView-1.2>
 
 // SHAPE ELEMENT (NOT USED, DEPRECATE?)
 
@@ -39,7 +40,17 @@ DIA.TextElement <T DIA.Element <T DIA.ColorProvider <T DIA.FontProvider
     @L0.assert G2D.HasVerticalAlignment G2D.Alignment.Baseline
     @L0.assert G2D.HasStrokeWidth
         0 : L0.Float
-
+    >-- DIA.TextElement.font ==> "String" <R L0.HasProperty <R G2D.HasFont : SEL.GenericParameterType
+      L0.HasLabel "Font"
+      SEL.HasDisplayValue
+        _ : SEL.DisplayValue
+          SEL.HasCustomModifier
+            DIA.Functions.fontModifier : L0.Function
+          L0.valueAccessor
+            _ : L0.SCLValue
+              L0.SCLValue.expression "textFontValueAccessor"
+              L0.HasValueType "ValueAccessor" 
+              
 DIA.HasText <R L0.HasProperty : L0.FunctionalRelation
     L0.HasLabel "Text"
     --> L0.String