Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 3f529b6b

Přidáno uživatelem Patrik Harag před více než 5 roky(ů)

Add RAW examples (from tests)

Zobrazit rozdíly:

examples/IMiGEr RAW json/simple-1.json
1
{
2
  "attributeTypes": [
3
    {
4
      "dataType": "STRING",
5
      "name": "D",
6
      "text": "0"
7
    },
8
    {
9
      "dataType": "STRING",
10
      "name": "C",
11
      "text": "1"
12
    },
13
    {
14
      "dataType": "STRING",
15
      "name": "B",
16
      "text": "2"
17
    },
18
    {
19
      "dataType": "STRING",
20
      "name": "A",
21
      "text": "3"
22
    }
23
  ],
24
  "edgeArchetypes": [
25
    {
26
      "name": "edgeArchetype1",
27
      "text": ""
28
    },
29
    {
30
      "name": "edgeArchetype2",
31
      "text": ""
32
    }
33
  ],
34
  "vertexArchetypes": [
35
    {
36
      "icon": "",
37
      "name": "1",
38
      "text": ""
39
    },
40
    {
41
      "icon": "",
42
      "name": "2",
43
      "text": ""
44
    },
45
    {
46
      "icon": "",
47
      "name": "3",
48
      "text": ""
49
    }
50
  ],
51
  "vertices": [
52
    {
53
      "archetype": 2,
54
      "attributes": [
55
        [
56
          "D",
57
          "E"
58
        ],
59
        [
60
          "B",
61
          "W"
62
        ],
63
        [
64
          "A",
65
          "Q"
66
        ]
67
      ],
68
      "id": 1,
69
      "text": "",
70
      "name": "V1",
71
      "position": {
72
        "x": 753.25,
73
        "y": 693.75
74
      }
75
    },
76
    {
77
      "archetype": 1,
78
      "attributes": [
79
        [
80
          "D",
81
          "E"
82
        ],
83
        [
84
          "C",
85
          "Q"
86
        ],
87
        [
88
          "B",
89
          "W"
90
        ]
91
      ],
92
      "id": 2,
93
      "text": "",
94
      "name": "V2",
95
      "position": {
96
        "x": 534.25,
97
        "y": 897.5
98
      }
99
    },
100
    {
101
      "archetype": 0,
102
      "attributes": [
103
        [
104
          "D",
105
          "Q"
106
        ],
107
        [
108
          "C",
109
          "W"
110
        ],
111
        [
112
          "A",
113
          "E"
114
        ]
115
      ],
116
      "id": 3,
117
      "text": "",
118
      "name": "V3",
119
      "position": {
120
        "x": 961.25,
121
        "y": 899.75
122
      }
123
    }
124
  ],
125
  "edges": [
126
    {
127
      "subedgeInfo": [
128
        {
129
          "archetype": 0,
130
          "attributes": [
131
            [
132
              "D",
133
              "E"
134
            ],
135
            [
136
              "C",
137
              "W"
138
            ]
139
          ],
140
          "id": 3
141
        }
142
      ],
143
      "from": 1,
144
      "to": 3,
145
      "text": "",
146
      "id": 1
147
    },
148
    {
149
      "subedgeInfo": [
150
        {
151
          "archetype": 0,
152
          "attributes": [
153
            [
154
              "D",
155
              "E"
156
            ],
157
            [
158
              "B",
159
              "W"
160
            ],
161
            [
162
              "A",
163
              "Q"
164
            ]
165
          ],
166
          "id": 1
167
        },
168
        {
169
          "archetype": 1,
170
          "attributes": [
171
            [
172
              "D",
173
              "D"
174
            ],
175
            [
176
              "B",
177
              "S"
178
            ],
179
            [
180
              "A",
181
              "A"
182
            ]
183
          ],
184
          "id": 2
185
        }
186
      ],
187
      "from": 1,
188
      "to": 2,
189
      "text": "",
190
      "id": 2
191
    },
192
    {
193
      "subedgeInfo": [
194
        {
195
          "archetype": 1,
196
          "attributes": [
197
            [
198
              "C",
199
              "T"
200
            ],
201
            [
202
              "B",
203
              "R"
204
            ]
205
          ],
206
          "id": 4
207
        }
208
      ],
209
      "from": 3,
210
      "to": 1,
211
      "text": "",
212
      "id": 3
213
    }
214
  ],
215
  "possibleEnumValues": {},
216
  "groups": [],
217
  "sideBar": [],
218
  "highlightedVertex": "",
219
  "highlightedEdge": ""
220
}
examples/IMiGEr RAW json/simple-2.json
1
{
2
  "attributeTypes": [],
3
  "edgeArchetypes": [
4
    {
5
      "name": "edge",
6
      "text": ""
7
    }
8
  ],
9
  "vertexArchetypes": [
10
    {
11
      "icon": "",
12
      "name": "1",
13
      "text": ""
14
    },
15
    {
16
      "icon": "",
17
      "name": "2",
18
      "text": ""
19
    },
20
    {
21
      "icon": "",
22
      "name": "3",
23
      "text": ""
24
    },
25
    {
26
      "icon": "",
27
      "name": "4",
28
      "text": ""
29
    }
30
  ],
31
  "vertices": [
32
    {
33
      "archetype": 0,
34
      "attributes": [],
35
      "id": 1,
36
      "text": "",
37
      "name": "V1",
38
      "position": {
39
        "x": 989.5,
40
        "y": 684
41
      }
42
    },
43
    {
44
      "archetype": 1,
45
      "attributes": [],
46
      "id": 2,
47
      "text": "",
48
      "name": "V2",
49
      "position": {
50
        "x": 985.75,
51
        "y": 871.5
52
      }
53
    },
54
    {
55
      "archetype": 1,
56
      "attributes": [],
57
      "id": 3,
58
      "text": "",
59
      "name": "V3",
60
      "position": {
61
        "x": 988,
62
        "y": 540
63
      }
64
    },
65
    {
66
      "archetype": 3,
67
      "attributes": [],
68
      "id": 4,
69
      "text": "",
70
      "name": "V4",
71
      "position": {
72
        "x": 694,
73
        "y": 678.25
74
      }
75
    },
76
    {
77
      "archetype": 2,
78
      "attributes": [],
79
      "id": 5,
80
      "text": "",
81
      "name": "V5",
82
      "position": {
83
        "x": 702.75,
84
        "y": 755
85
      }
86
    }
87
  ],
88
  "edges": [
89
    {
90
      "subedgeInfo": [
91
        {
92
          "archetype": 0,
93
          "attributes": [],
94
          "id": 0
95
        }
96
      ],
97
      "from": 1,
98
      "to": 2,
99
      "text": "",
100
      "id": 1
101
    },
102
    {
103
      "subedgeInfo": [
104
        {
105
          "archetype": 0,
106
          "attributes": [],
107
          "id": 4
108
        }
109
      ],
110
      "from": 4,
111
      "to": 5,
112
      "text": "",
113
      "id": 2
114
    },
115
    {
116
      "subedgeInfo": [
117
        {
118
          "archetype": 0,
119
          "attributes": [],
120
          "id": 2
121
        }
122
      ],
123
      "from": 1,
124
      "to": 4,
125
      "text": "",
126
      "id": 3
127
    },
128
    {
129
      "subedgeInfo": [
130
        {
131
          "archetype": 0,
132
          "attributes": [],
133
          "id": 1
134
        }
135
      ],
136
      "from": 3,
137
      "to": 1,
138
      "text": "",
139
      "id": 4
140
    },
141
    {
142
      "subedgeInfo": [
143
        {
144
          "archetype": 0,
145
          "attributes": [],
146
          "id": 3
147
        }
148
      ],
149
      "from": 4,
150
      "to": 1,
151
      "text": "",
152
      "id": 5
153
    }
154
  ],
155
  "possibleEnumValues": {},
156
  "groups": [],
157
  "sideBar": [],
158
  "highlightedVertex": "",
159
  "highlightedEdge": ""
160
}
examples/IMiGEr RAW json/simple-icons.json
1
{
2
  "attributeTypes": [],
3
  "edgeArchetypes": [
4
    {
5
      "name": "edge",
6
      "text": ""
7
    }
8
  ],
9
  "vertexArchetypes": [
10
    {
11
      "icon": "<rect class=\"testingArchetypeIcon\" width=\"12\" height=\"15\" x=\"0\" y =\"0\" stroke=\"none\" fill=\"green\"/>",
12
      "name": "SpecifiedIcon",
13
      "text": ""
14
    },
15
    {
16
      "icon": "",
17
      "name": "UnspecifiedIcon",
18
      "text": ""
19
    },
20
    {
21
      "icon": "<text y=\"8\" fill=\"red\">☺</text>",
22
      "name": "Smiley",
23
      "text": ""
24
    }
25
  ],
26
  "vertices": [
27
    {
28
      "archetype": 0,
29
      "attributes": [],
30
      "id": 1,
31
      "text": "",
32
      "name": "Vertex with specified icon",
33
      "position": {
34
        "x": 640.5,
35
        "y": 408.25
36
      }
37
    },
38
    {
39
      "archetype": 1,
40
      "attributes": [],
41
      "id": 2,
42
      "text": "",
43
      "name": "Vertex with unspecified icon",
44
      "position": {
45
        "x": 826.25,
46
        "y": 536.75
47
      }
48
    },
49
    {
50
      "archetype": 2,
51
      "attributes": [],
52
      "id": 3,
53
      "text": "",
54
      "name": "Vertex with smiley as archetype icon",
55
      "position": {
56
        "x": 438,
57
        "y": 537.75
58
      }
59
    }
60
  ],
61
  "edges": [
62
    {
63
      "subedgeInfo": [
64
        {
65
          "archetype": 0,
66
          "attributes": [],
67
          "id": 1
68
        }
69
      ],
70
      "from": 1,
71
      "to": 3,
72
      "text": "",
73
      "id": 1
74
    },
75
    {
76
      "subedgeInfo": [
77
        {
78
          "archetype": 0,
79
          "attributes": [],
80
          "id": 0
81
        }
82
      ],
83
      "from": 1,
84
      "to": 2,
85
      "text": "",
86
      "id": 2
87
    }
88
  ],
89
  "possibleEnumValues": {},
90
  "groups": [],
91
  "sideBar": [],
92
  "highlightedVertex": "",
93
  "highlightedEdge": ""
94
}

Také k dispozici: Unified diff