architecture-viewer 0.0.1-security → 4.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of architecture-viewer might be problematic. Click here for more details.
- package/2/package.json +10 -0
- package/2/postinstall.js +33 -0
- package/New Folder/architecture-viewer/.babelrc +9 -0
- package/New Folder/architecture-viewer/.whitesource +8 -0
- package/New Folder/architecture-viewer/CODEOWNERS +2 -0
- package/New Folder/architecture-viewer/LICENSE.txt +201 -0
- package/New Folder/architecture-viewer/README.md +238 -0
- package/New Folder/architecture-viewer/licenses.csv +40 -0
- package/New Folder/architecture-viewer/package-lock.json +16126 -0
- package/New Folder/architecture-viewer/package.json +60 -0
- package/New Folder/architecture-viewer/preact.config.js +62 -0
- package/New Folder/architecture-viewer/readme_resources/screenrecord_arch_diagram.gif +0 -0
- package/New Folder/architecture-viewer/sample_json_data/large_web.json +289 -0
- package/New Folder/architecture-viewer/sample_json_data/no_steps.json +185 -0
- package/New Folder/architecture-viewer/sample_json_data/readme_example.json +55 -0
- package/New Folder/architecture-viewer/sample_json_data/section_example.json +323 -0
- package/New Folder/architecture-viewer/sample_json_data/simple_structure.json +131 -0
- package/New Folder/architecture-viewer/sample_json_data/zones_example.json +445 -0
- package/New Folder/architecture-viewer/sample_plantuml_data/example.adoc +65 -0
- package/New Folder/architecture-viewer/sample_plantuml_data/example.png +0 -0
- package/New Folder/architecture-viewer/sample_plantuml_data/example.svg +1 -0
- package/New Folder/architecture-viewer/src/assets/data.json +445 -0
- package/New Folder/architecture-viewer/src/assets/favicon.ico +0 -0
- package/New Folder/architecture-viewer/src/assets/grid_data.json +1126 -0
- package/New Folder/architecture-viewer/src/assets/icons/android-chrome-192x192.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/android-chrome-512x512.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/apple-touch-icon.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/favicon-16x16.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/favicon-32x32.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/info.png +0 -0
- package/New Folder/architecture-viewer/src/assets/icons/mstile-150x150.png +0 -0
- package/New Folder/architecture-viewer/src/assets/test_data.json +32 -0
- package/New Folder/architecture-viewer/src/components/app.js +231 -0
- package/New Folder/architecture-viewer/src/components/controls.js +195 -0
- package/New Folder/architecture-viewer/src/components/diagram.js +362 -0
- package/New Folder/architecture-viewer/src/components/diagramArea.js +68 -0
- package/New Folder/architecture-viewer/src/components/info.js +37 -0
- package/New Folder/architecture-viewer/src/components/infoArea.js +75 -0
- package/New Folder/architecture-viewer/src/components/key.js +42 -0
- package/New Folder/architecture-viewer/src/components/tableOfContents.js +112 -0
- package/New Folder/architecture-viewer/src/components/tocStep.js +100 -0
- package/New Folder/architecture-viewer/src/components/zoneLegend.js +55 -0
- package/New Folder/architecture-viewer/src/index.js +20 -0
- package/New Folder/architecture-viewer/src/manifest.json +19 -0
- package/New Folder/architecture-viewer/src/routes/home/index.js +29 -0
- package/New Folder/architecture-viewer/src/routes/home/style.less +23 -0
- package/New Folder/architecture-viewer/src/routes/profile/index.js +63 -0
- package/New Folder/architecture-viewer/src/routes/profile/style.less +23 -0
- package/New Folder/architecture-viewer/src/style/helpers.less +40 -0
- package/New Folder/architecture-viewer/src/style/index.css +224 -0
- package/New Folder/architecture-viewer/src/style/jquery.qtip.less +623 -0
- package/New Folder/architecture-viewer/src/sw.js +4 -0
- package/New Folder/architecture-viewer/src/template.html +15 -0
- package/New Folder/architecture-viewer/src/utils/dataValidator.js +333 -0
- package/New Folder/architecture-viewer/src/utils/parser.js +623 -0
- package/New Folder/architecture-viewer/src/utils/stepUtils.js +30 -0
- package/New Folder/architecture-viewer/tests/__mocks__/browserMocks.js +21 -0
- package/New Folder/architecture-viewer/tests/__mocks__/fileMocks.js +3 -0
- package/New Folder/architecture-viewer/tests/__mocks__/setupTests.js +6 -0
- package/New Folder/architecture-viewer/tests/parser.test.js +799 -0
- package/New Folder/architecture-viewer/tests/testfiles/aliased_participants.adoc +7 -0
- package/New Folder/architecture-viewer/tests/testfiles/bigspace.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/dividers.adoc +18 -0
- package/New Folder/architecture-viewer/tests/testfiles/doubled_names.adoc +10 -0
- package/New Folder/architecture-viewer/tests/testfiles/empty.adoc +2 -0
- package/New Folder/architecture-viewer/tests/testfiles/meta.adoc +19 -0
- package/New Folder/architecture-viewer/tests/testfiles/notes_multiline.adoc +17 -0
- package/New Folder/architecture-viewer/tests/testfiles/notes_singleline.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/parsefile.adoc +6 -0
- package/New Folder/architecture-viewer/tests/testfiles/participant_decl.adoc +6 -0
- package/New Folder/architecture-viewer/tests/testfiles/participant_info.adoc +7 -0
- package/New Folder/architecture-viewer/tests/testfiles/readme.adoc +7 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_aliased.adoc +9 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group_mixed.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_group_mixed.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_loop.adoc +16 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_loop.json +1 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_mixed.adoc +9 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_steptest.adoc +17 -0
- package/New Folder/architecture-viewer/tests/testfiles/steps_unaliased.adoc +9 -0
- package/New Folder/architecture-viewer/tests/testfiles/supernodes.adoc +10 -0
- package/New Folder/architecture-viewer/tests/testfiles/unaliased_participants.adoc +6 -0
- package/New Folder/architecture-viewer/tests/testfiles/undeclaredparticipant.adoc +23 -0
- package/New Folder/architecture-viewer/tests/testfiles/xsstest.adoc +15 -0
- package/New Folder/architecture-viewer/tests/testfiles/zoned_participants.adoc +5 -0
- package/New Folder/architecture-viewer/tests/validator.test.js +63 -0
- package/New Folder/d_i.txt +1 -0
- package/New Folder/dependency_confution_npm.sh +70 -0
- package/New Folder/licenses.csv +40 -0
- package/New Folder/npm_sub.txt +0 -0
- package/New Folder/package.json.save +12 -0
- package/index.js +39 -0
- package/package.json +9 -3
- package/README.md +0 -5
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"private": true,
|
3
|
+
"name": "architecture-viewer",
|
4
|
+
"version": "1.0.0",
|
5
|
+
"license": "Apache-2.0",
|
6
|
+
"scripts": {
|
7
|
+
"build": "preact build --no-prerender",
|
8
|
+
"serve": "sirv build --port 8080 --cors --single",
|
9
|
+
"dev": "preact watch",
|
10
|
+
"lint": "eslint src",
|
11
|
+
"license": "license-checker --csv --production > licenses.csv",
|
12
|
+
"deploy": "gh-pages -d build",
|
13
|
+
"test": "jest"
|
14
|
+
},
|
15
|
+
"eslintConfig": {
|
16
|
+
"extends": "preact",
|
17
|
+
"ignorePatterns": [
|
18
|
+
"build/"
|
19
|
+
]
|
20
|
+
},
|
21
|
+
"devDependencies": {
|
22
|
+
"enzyme": "^3.10.0",
|
23
|
+
"enzyme-adapter-preact-pure": "^2.0.0",
|
24
|
+
"eslint": "^6.0.1",
|
25
|
+
"eslint-config-preact": "^1.1.0",
|
26
|
+
"gh-pages": "^3.1.0",
|
27
|
+
"identity-obj-proxy": "^3.0.0",
|
28
|
+
"jest": "^24.9.0",
|
29
|
+
"jest-preset-preact": "^1.0.0",
|
30
|
+
"jest-raw-loader": "^1.0.1",
|
31
|
+
"license-checker": "^20.2.0",
|
32
|
+
"preact-cli": "^3.0.0",
|
33
|
+
"preact-render-spy": "^1.2.1",
|
34
|
+
"sirv-cli": "1.0.3"
|
35
|
+
},
|
36
|
+
"dependencies": {
|
37
|
+
"ajv": "^6.12.3",
|
38
|
+
"cytoscape": "^3.15.2",
|
39
|
+
"cytoscape-dagre": "^2.2.2",
|
40
|
+
"cytoscape-popper": "^1.0.7",
|
41
|
+
"dagre": "^0.8.5",
|
42
|
+
"preact": "^10.3.2",
|
43
|
+
"preact-render-to-string": "^5.1.4",
|
44
|
+
"preact-router": "^3.2.1",
|
45
|
+
"tippy.js": "^2.5.4"
|
46
|
+
},
|
47
|
+
"jest": {
|
48
|
+
"modulePathIgnorePatterns": [
|
49
|
+
"<rootDir>/.publish/"
|
50
|
+
],
|
51
|
+
"preset": "jest-preset-preact",
|
52
|
+
"setupFiles": [
|
53
|
+
"<rootDir>/tests/__mocks__/browserMocks.js",
|
54
|
+
"<rootDir>/tests/__mocks__/setupTests.js"
|
55
|
+
],
|
56
|
+
"transform": {
|
57
|
+
"\\.adoc$": "jest-raw-loader"
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2017 Capital One Services, LLC
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
const fs = require('fs');
|
18
|
+
|
19
|
+
// Use this method to modify the base path URLs used in the web application.
|
20
|
+
export default function (config, env, helpers) {
|
21
|
+
if (env.production) {
|
22
|
+
|
23
|
+
// Keep infinity when minifying to avoid low severity static analysis warnings
|
24
|
+
//let { plugin } = helpers.getPluginsByName(config, "UglifyJsPlugin")[0];
|
25
|
+
//plugin.options.compress.keep_infinity = true;
|
26
|
+
|
27
|
+
// Use a relative path for the base URL so the web application works when
|
28
|
+
// hosting through enterprise or public GitHub Pages.
|
29
|
+
config.output.publicPath = '';
|
30
|
+
|
31
|
+
// For another example, the code below reads the GitHub remote URL and
|
32
|
+
// prefixes "/pages/github-org/github-repo/" onto the path URLs in the
|
33
|
+
// web application. This is not required when hosting through
|
34
|
+
// enterprise or public GitHub Pages.
|
35
|
+
//
|
36
|
+
// const config_file = '.git/config';
|
37
|
+
// let path = null;
|
38
|
+
//
|
39
|
+
// if (fs.existsSync(config_file)) {
|
40
|
+
// // grab the contents of the config file
|
41
|
+
// let contents = fs.readFileSync(config_file, 'utf8').split('\n');
|
42
|
+
//
|
43
|
+
// // grab the origin remote url
|
44
|
+
// let url = '';
|
45
|
+
// for (let i = 0; i < contents.length; i++) {
|
46
|
+
// if (contents[i].startsWith('[remote "origin"]')) {
|
47
|
+
// url = contents[i + 1].split(' ')[2];
|
48
|
+
// }
|
49
|
+
// }
|
50
|
+
//
|
51
|
+
// // grab the 'path'
|
52
|
+
// let path_parts = url.replace('.git', '')
|
53
|
+
// .split(/[:\/]/)
|
54
|
+
// .slice(-2);
|
55
|
+
//
|
56
|
+
// path_parts.unshift('pages');
|
57
|
+
//
|
58
|
+
// let path = '/' + path_parts.join('/') + '/';
|
59
|
+
// config.output.publicPath = path
|
60
|
+
// }
|
61
|
+
}
|
62
|
+
}
|
Binary file
|
@@ -0,0 +1,289 @@
|
|
1
|
+
{
|
2
|
+
"title": "large web",
|
3
|
+
"graphData": {
|
4
|
+
"nodes": [
|
5
|
+
{
|
6
|
+
"data": {
|
7
|
+
"id": "A",
|
8
|
+
"fname": "A",
|
9
|
+
"zone": "#FBDCD6"
|
10
|
+
}
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"data": {
|
14
|
+
"id": "B",
|
15
|
+
"fname": "B",
|
16
|
+
"zone": "#FBDCD6"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"data": {
|
21
|
+
"id": "C",
|
22
|
+
"fname": "C",
|
23
|
+
"zone": "#FBDCD6"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"data": {
|
28
|
+
"id": "D",
|
29
|
+
"fname": "D",
|
30
|
+
"zone": "#FBDCD6"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"data": {
|
35
|
+
"id": "E",
|
36
|
+
"zone": "#FBDCD6",
|
37
|
+
"fname": "E"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"data": {
|
42
|
+
"id": "F",
|
43
|
+
"zone": "#FBDCD6",
|
44
|
+
"fname": "F"
|
45
|
+
}
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"data": {
|
49
|
+
"id": "G",
|
50
|
+
"zone": "#FBDCD6",
|
51
|
+
"fname": "G"
|
52
|
+
}
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"data": {
|
56
|
+
"id": "H",
|
57
|
+
"zone": "#FBDCD6",
|
58
|
+
"fname": "H"
|
59
|
+
}
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"data": {
|
63
|
+
"id": "I",
|
64
|
+
"zone": "#FBDCD6",
|
65
|
+
"fname": "I"
|
66
|
+
}
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"data": {
|
70
|
+
"id": "J",
|
71
|
+
"zone": "#FBDCD6",
|
72
|
+
"fname": "J"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"data": {
|
77
|
+
"id": "K",
|
78
|
+
"zone": "#FBDCD6",
|
79
|
+
"fname": "K"
|
80
|
+
}
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"data": {
|
84
|
+
"id": "L",
|
85
|
+
"zone": "#FBDCD6",
|
86
|
+
"fname": "L"
|
87
|
+
}
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"data": {
|
91
|
+
"id": "M",
|
92
|
+
"zone": "#FBDCD6",
|
93
|
+
"fname": "M"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"data": {
|
98
|
+
"id": "N",
|
99
|
+
"zone": "#FBDCD6",
|
100
|
+
"fname": "N"
|
101
|
+
}
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"data": {
|
105
|
+
"id": "O",
|
106
|
+
"zone": "#FBDCD6",
|
107
|
+
"fname": "O"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"data": {
|
112
|
+
"id": "P",
|
113
|
+
"zone": "#FBDCD6",
|
114
|
+
"fname": "P"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"data": {
|
119
|
+
"id": "Q",
|
120
|
+
"zone": "#FBDCD6",
|
121
|
+
"fname": "Q"
|
122
|
+
}
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"data": {
|
126
|
+
"id": "R",
|
127
|
+
"zone": "#FBDCD6",
|
128
|
+
"fname": "R"
|
129
|
+
}
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"data": {
|
133
|
+
"id": "S",
|
134
|
+
"zone": "#FBDCD6",
|
135
|
+
"fname": "S"
|
136
|
+
}
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"edges": [
|
140
|
+
{
|
141
|
+
"data": {
|
142
|
+
"id": "1",
|
143
|
+
"source": "A",
|
144
|
+
"target": "B"
|
145
|
+
}
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"data": {
|
149
|
+
"id": "2",
|
150
|
+
"source": "B",
|
151
|
+
"target": "C"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"data": {
|
156
|
+
"id": "3",
|
157
|
+
"source": "C",
|
158
|
+
"target": "D"
|
159
|
+
}
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"data": {
|
163
|
+
"id": "4",
|
164
|
+
"source": "D",
|
165
|
+
"target": "E"
|
166
|
+
}
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"data": {
|
170
|
+
"id": "5",
|
171
|
+
"source": "E",
|
172
|
+
"target": "F"
|
173
|
+
}
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"data": {
|
177
|
+
"id": "6",
|
178
|
+
"source": "F",
|
179
|
+
"target": "G"
|
180
|
+
}
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"data": {
|
184
|
+
"id": "7",
|
185
|
+
"source": "F",
|
186
|
+
"target": "H"
|
187
|
+
}
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"data": {
|
191
|
+
"id": "8",
|
192
|
+
"source": "F",
|
193
|
+
"target": "I"
|
194
|
+
}
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"data": {
|
198
|
+
"id": "9",
|
199
|
+
"source": "F",
|
200
|
+
"target": "J"
|
201
|
+
}
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"data": {
|
205
|
+
"id": "10",
|
206
|
+
"source": "F",
|
207
|
+
"target": "K"
|
208
|
+
}
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"data": {
|
212
|
+
"id": "11",
|
213
|
+
"source": "G",
|
214
|
+
"target": "C"
|
215
|
+
}
|
216
|
+
},
|
217
|
+
{
|
218
|
+
"data": {
|
219
|
+
"id": "12",
|
220
|
+
"source": "G",
|
221
|
+
"target": "L"
|
222
|
+
}
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"data": {
|
226
|
+
"id": "13",
|
227
|
+
"source": "G",
|
228
|
+
"target": "M"
|
229
|
+
}
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"data": {
|
233
|
+
"id": "14",
|
234
|
+
"source": "G",
|
235
|
+
"target": "N"
|
236
|
+
}
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"data": {
|
240
|
+
"id": "15",
|
241
|
+
"source": "G",
|
242
|
+
"target": "O"
|
243
|
+
}
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"data": {
|
247
|
+
"id": "16",
|
248
|
+
"source": "G",
|
249
|
+
"target": "P"
|
250
|
+
}
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"data": {
|
254
|
+
"id": "17",
|
255
|
+
"source": "H",
|
256
|
+
"target": "Q"
|
257
|
+
}
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"data": {
|
261
|
+
"id": "18",
|
262
|
+
"source": "I",
|
263
|
+
"target": "Q"
|
264
|
+
}
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"data": {
|
268
|
+
"id": "19",
|
269
|
+
"source": "J",
|
270
|
+
"target": "R"
|
271
|
+
}
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"data": {
|
275
|
+
"id": "20",
|
276
|
+
"source": "K",
|
277
|
+
"target": "S"
|
278
|
+
}
|
279
|
+
}
|
280
|
+
]
|
281
|
+
},
|
282
|
+
"stepData": [],
|
283
|
+
"zoneData": [
|
284
|
+
{
|
285
|
+
"name": "main",
|
286
|
+
"color": "#FBDCD6"
|
287
|
+
}
|
288
|
+
]
|
289
|
+
}
|
@@ -0,0 +1,185 @@
|
|
1
|
+
{
|
2
|
+
"title": "this diagram has no steps",
|
3
|
+
"graphData": {
|
4
|
+
"nodes": [
|
5
|
+
{
|
6
|
+
"data": {
|
7
|
+
"id": "Americas",
|
8
|
+
"zone": "#B2D6EB"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"data": {
|
13
|
+
"id": "Asia",
|
14
|
+
"zone": "#FDEDEB"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"data": {
|
19
|
+
"id": "Australia",
|
20
|
+
"zone": "#C7E7C1"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"data": {
|
25
|
+
"id": "CAN",
|
26
|
+
"fname": "Canada",
|
27
|
+
"zone": "#66AED8",
|
28
|
+
"parent": "Americas"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"data": {
|
33
|
+
"id": "USA",
|
34
|
+
"fname": "United States of America",
|
35
|
+
"zone": "#66AED8",
|
36
|
+
"parent": "Americas"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"data": {
|
41
|
+
"id": "MEX",
|
42
|
+
"fname": "Mexico",
|
43
|
+
"zone": "#66AED8",
|
44
|
+
"parent": "Americas"
|
45
|
+
}
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"data": {
|
49
|
+
"id": "GTM",
|
50
|
+
"fname": "Guatemala",
|
51
|
+
"zone": "#66AED8",
|
52
|
+
"parent": "Americas"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"data": {
|
57
|
+
"id": "HND",
|
58
|
+
"fname": "Honduras",
|
59
|
+
"zone": "#66AED8",
|
60
|
+
"parent": "Americas"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"data": {
|
65
|
+
"id": "RUS",
|
66
|
+
"fname": "Russia",
|
67
|
+
"zone": "#FBDCD7",
|
68
|
+
"parent": "Asia"
|
69
|
+
}
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"data": {
|
73
|
+
"id": "MNG",
|
74
|
+
"fname": "Mongolia",
|
75
|
+
"zone": "#FBDCD7",
|
76
|
+
"parent": "Asia"
|
77
|
+
}
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"data": {
|
81
|
+
"id": "CHN",
|
82
|
+
"fname": "China",
|
83
|
+
"zone": "#FBDCD7",
|
84
|
+
"parent": "Asia"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"data": {
|
89
|
+
"id": "IND",
|
90
|
+
"fname": "India",
|
91
|
+
"zone": "#FBDCD7",
|
92
|
+
"parent": "Asia"
|
93
|
+
}
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"data": {
|
97
|
+
"id": "AUS",
|
98
|
+
"fname": "Australia",
|
99
|
+
"zone": "#90D083",
|
100
|
+
"parent": "Australia"
|
101
|
+
}
|
102
|
+
}
|
103
|
+
],
|
104
|
+
"edges": [
|
105
|
+
{
|
106
|
+
"data": {
|
107
|
+
"id": "0",
|
108
|
+
"source": "CAN",
|
109
|
+
"target": "USA"
|
110
|
+
}
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"data": {
|
114
|
+
"id": "1",
|
115
|
+
"source": "USA",
|
116
|
+
"target": "MEX"
|
117
|
+
}
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"data": {
|
121
|
+
"id": "2",
|
122
|
+
"source": "MEX",
|
123
|
+
"target": "GTM"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"data": {
|
128
|
+
"id": "3",
|
129
|
+
"source": "MEX",
|
130
|
+
"target": "HND"
|
131
|
+
}
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"data": {
|
135
|
+
"id": "4",
|
136
|
+
"source": "RUS",
|
137
|
+
"target": "MNG"
|
138
|
+
}
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"data": {
|
142
|
+
"id": "5",
|
143
|
+
"source": "MNG",
|
144
|
+
"target": "CHN"
|
145
|
+
}
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"data": {
|
149
|
+
"id": "6",
|
150
|
+
"source": "CHN",
|
151
|
+
"target": "IND"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"data": {
|
156
|
+
"id": "7",
|
157
|
+
"source": "USA",
|
158
|
+
"target": "CHN"
|
159
|
+
}
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"data": {
|
163
|
+
"id": "8",
|
164
|
+
"source": "USA",
|
165
|
+
"target": "IND"
|
166
|
+
}
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"data": {
|
170
|
+
"id": "9",
|
171
|
+
"source": "CHN",
|
172
|
+
"target": "AUS"
|
173
|
+
}
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"data": {
|
177
|
+
"id": "10",
|
178
|
+
"source": "USA",
|
179
|
+
"target": "RUS"
|
180
|
+
}
|
181
|
+
}
|
182
|
+
]
|
183
|
+
},
|
184
|
+
"stepData": []
|
185
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
{
|
2
|
+
"title": "some_title",
|
3
|
+
"graphData": {
|
4
|
+
"nodes": [
|
5
|
+
{
|
6
|
+
"data": {
|
7
|
+
"id": "s_id",
|
8
|
+
"fname": "some_id",
|
9
|
+
"zone": "#ffb2b2",
|
10
|
+
"info": "info about some_id"
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"data": {
|
15
|
+
"id": "s_id_2",
|
16
|
+
"fname": "some_id_2",
|
17
|
+
"zone": "#b2b2ff",
|
18
|
+
"info": "info about some_id_2"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
],
|
22
|
+
"edges": [
|
23
|
+
{
|
24
|
+
"data": {
|
25
|
+
"id": "some_edge_id",
|
26
|
+
"source": "s_id",
|
27
|
+
"target": "s_id_2"
|
28
|
+
}
|
29
|
+
}
|
30
|
+
]
|
31
|
+
},
|
32
|
+
"stepData": [
|
33
|
+
{
|
34
|
+
"id": "0",
|
35
|
+
"type": "single",
|
36
|
+
"nodes": [
|
37
|
+
"s_id",
|
38
|
+
"s_id_2"
|
39
|
+
],
|
40
|
+
"steps": [],
|
41
|
+
"description": "an example step",
|
42
|
+
"note": ""
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"zoneData": [
|
46
|
+
{
|
47
|
+
"name": "zone1",
|
48
|
+
"color": "#ffb2b2"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"name": "zone2",
|
52
|
+
"color": "#b2b2ff"
|
53
|
+
}
|
54
|
+
]
|
55
|
+
}
|