Added two SymbolRendererProviders
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / am2901 / GUIAm2901QReg.json
index 85f0edf..6bc113d 100644 (file)
@@ -1,7 +1,5 @@
-mograsim version: 0.1.2
+mograsim version: 0.1.3
 {
-  "type": "SimpleRectangularSubmodelComponent",
-  "name": "GUIAm2901QReg",
   "width": 35.0,
   "height": 60.0,
   "interfacePins": [
@@ -86,7 +84,7 @@ mograsim version: 0.1.2
       "logicWidth": 1
     }
   ],
-  "composition": {
+  "submodel": {
     "innerScale": 0.4,
     "subComps": [
       {
@@ -94,70 +92,59 @@ mograsim version: 0.1.2
           "x": 5.0,
           "y": 15.0
         },
-        "name": "GUIand",
-        "params": {}
+        "id": "GUIand"
       },
       {
         "pos": {
           "x": 50.0,
           "y": 7.5
         },
-        "name": "GUIdff",
-        "params": {}
+        "id": "GUIdff"
       },
       {
         "pos": {
           "x": 50.0,
           "y": 32.5
         },
-        "name": "GUIdff",
-        "params": {}
+        "id": "GUIdff"
       },
       {
         "pos": {
           "x": 50.0,
           "y": 57.5
         },
-        "name": "GUIdff",
-        "params": {}
+        "id": "GUIdff"
       },
       {
         "pos": {
           "x": 50.0,
           "y": 82.5
         },
-        "name": "GUIdff",
-        "params": {}
+        "id": "GUIdff"
       },
       {
         "pos": {
           "x": 41.5,
           "y": 19.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 41.5,
           "y": 36.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 41.5,
           "y": 61.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       }
     ],
     "innerWires": [
@@ -402,22 +389,12 @@ mograsim version: 0.1.2
       }
     ]
   },
-  "specialized": {
-    "input_count": [
-      "C",
-      "WE",
-      "D1",
-      "D2",
-      "D3",
-      "D4"
-    ],
-    "label": "GUIAm2901QReg",
-    "logic_width": 1,
-    "output_count": [
-      "Q1",
-      "Q2",
-      "Q3",
-      "Q4"
-    ]
+  "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+  "symbolRendererParams": {
+    "centerText": "Am2901QReg",
+    "horizontalComponentCenter": 17.5,
+    "centerTextHeight": 5,
+    "pinLabelHeight": 3.5,
+    "pinLabelMargin": 0.5
   }
 }
\ No newline at end of file