codecharta-visualization 1.142.0 → 2.1.0

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.
Files changed (29) hide show
  1. package/conf/jestUnit.config.json +7 -1
  2. package/conf/setupJestUnit.ts +31 -2
  3. package/dist/bundler/browser/chunk-EPUAHMGD.js +17 -0
  4. package/dist/bundler/browser/chunk-MWZH4CY2.js +4207 -0
  5. package/dist/bundler/browser/codeCharta/assets/codecharta_logo.svg +1 -1
  6. package/dist/bundler/browser/codeCharta/assets/sample1.cc.json +167 -95
  7. package/dist/bundler/browser/codeCharta/assets/sample2.cc.json +80 -44
  8. package/dist/bundler/browser/codeCharta/assets/sample3.cc.json +69 -38
  9. package/dist/bundler/browser/codeCharta/assets/sample4.cc.json +74 -38
  10. package/dist/bundler/browser/index.html +2 -2
  11. package/dist/bundler/browser/main-MZ6ES7FX.js +3484 -0
  12. package/dist/bundler/browser/media/fa-brands-400-AHOAZHCU.woff2 +0 -0
  13. package/dist/bundler/browser/media/fa-regular-400-VRZYIBIZ.woff2 +0 -0
  14. package/dist/bundler/browser/media/fa-solid-900-MDEYK55F.woff2 +0 -0
  15. package/dist/bundler/browser/media/fa-v4compatibility-ETEVP6IB.woff2 +0 -0
  16. package/dist/bundler/browser/package.json +48 -46
  17. package/dist/bundler/browser/styles-WSHUKF7I.css +1 -0
  18. package/package.json +48 -46
  19. package/tsconfig.json +1 -0
  20. package/dist/bundler/browser/chunk-NKVGRELO.js +0 -1
  21. package/dist/bundler/browser/chunk-ZBYYCPI2.js +0 -4
  22. package/dist/bundler/browser/main-MPBOPWHZ.js +0 -8702
  23. package/dist/bundler/browser/media/fontawesome-webfont-3KIJVIEY.svg +0 -2671
  24. package/dist/bundler/browser/media/fontawesome-webfont-5GKVPAEF.woff2 +0 -0
  25. package/dist/bundler/browser/media/fontawesome-webfont-FMJ3VJ65.eot +0 -0
  26. package/dist/bundler/browser/media/fontawesome-webfont-RJ6LE7IU.ttf +0 -0
  27. package/dist/bundler/browser/media/fontawesome-webfont-Z4ARLA73.woff +0 -0
  28. package/dist/bundler/browser/polyfills-DOYHMSTV.js +0 -2
  29. package/dist/bundler/browser/styles-GWN7ODIQ.css +0 -1
@@ -1,97 +1,169 @@
1
1
  {
2
- "projectName": "Sample Project with Edges",
3
- "apiVersion": "1.2",
4
- "fileChecksum": "valid-md5-sample1",
5
- "nodes": [
6
- {
7
- "name": "root",
8
- "type": "Folder",
9
- "attributes": {},
10
- "children": [
11
- {
12
- "name": "sample1OnlyLeaf.scss",
13
- "type": "File",
14
- "attributes": {
15
- "rloc": 400,
16
- "functions": 10,
17
- "sonar_complexity": 100,
18
- "pairingRate": 32,
19
- "avgCommits": 17
20
- },
21
- "link": "http://www.google.de"
22
- },
23
- {
24
- "name": "bigLeaf.ts",
25
- "type": "File",
26
- "attributes": {
27
- "rloc": 100,
28
- "functions": 10,
29
- "sonar_complexity": 1,
30
- "pairingRate": 77,
31
- "avgCommits": 56
32
- },
33
- "link": "http://www.google.de"
34
- },
35
- {
36
- "name": "ParentLeaf",
37
- "type": "Folder",
38
- "attributes": {},
39
- "children": [
40
- {
41
- "name": "smallLeaf.html",
42
- "type": "File",
43
- "attributes": {
44
- "rloc": 30,
45
- "functions": 100,
46
- "sonar_complexity": 100,
47
- "pairingRate": 60,
48
- "avgCommits": 51
49
- }
50
- },
51
- {
52
- "name": "otherSmallLeaf.ts",
53
- "type": "File",
54
- "attributes": {
55
- "rloc": 70,
56
- "functions": 1000,
57
- "sonar_complexity": 10,
58
- "pairingRate": 65,
59
- "avgCommits": 22
60
- }
61
- }
62
- ]
63
- }
64
- ]
65
- }
66
- ],
67
- "edges": [
68
- {
69
- "fromNodeName": "/root/bigLeaf.ts",
70
- "toNodeName": "/root/ParentLeaf/smallLeaf.html",
71
- "attributes": {
72
- "pairingRate": 89,
73
- "avgCommits": 34
74
- }
75
- },
76
- {
77
- "fromNodeName": "/root/sample1OnlyLeaf.scss",
78
- "toNodeName": "/root/ParentLeaf/smallLeaf.html",
79
- "attributes": {
80
- "pairingRate": 32,
81
- "avgCommits": 17
82
- }
83
- },
84
- {
85
- "fromNodeName": "/root/ParentLeaf/otherSmallLeaf.ts",
86
- "toNodeName": "/root/bigLeaf.ts",
87
- "attributes": {
88
- "pairingRate": 65,
89
- "avgCommits": 22
90
- }
91
- }
92
- ],
93
- "attributeTypes": {
94
- "nodes": { "rloc": "absolute", "functions": "absolute", "sonar_complexity": "absolute", "pairingRate": "relative" },
95
- "edges": { "pairingRate": "relative", "avgCommits": "absolute" }
96
- }
2
+ "meta": {
3
+ "projectName": "Sample Project with Edges",
4
+ "apiVersion": "2.0",
5
+ "checksum": "06a21f72c5b644784f7c2b0fa6abca21"
6
+ },
7
+ "files": [
8
+ {
9
+ "id": "164ddff4bb1345e1",
10
+ "name": "root",
11
+ "type": "Folder",
12
+ "children": [
13
+ {
14
+ "id": "1ae98c1a93690d75",
15
+ "name": "ParentLeaf",
16
+ "type": "Folder",
17
+ "children": [
18
+ {
19
+ "id": "ea70504d5daa3547",
20
+ "name": "otherSmallLeaf.ts",
21
+ "type": "File"
22
+ },
23
+ {
24
+ "id": "120a1569e3556450",
25
+ "name": "smallLeaf.html",
26
+ "type": "File"
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "id": "7de6343f370ff7cf",
32
+ "name": "bigLeaf.ts",
33
+ "type": "File",
34
+ "link": "http://www.google.de"
35
+ },
36
+ {
37
+ "id": "3d6521b0884ce9f4",
38
+ "name": "sample1OnlyLeaf.scss",
39
+ "type": "File",
40
+ "link": "http://www.google.de"
41
+ }
42
+ ]
43
+ }
44
+ ],
45
+ "lenses": {
46
+ "metrics": {
47
+ "attributes": {
48
+ "ea70504d5daa3547": {
49
+ "rloc": 70,
50
+ "functions": 1000,
51
+ "sonar_complexity": 10,
52
+ "pairingRate": 65,
53
+ "avgCommits": 22
54
+ },
55
+ "120a1569e3556450": {
56
+ "rloc": 30,
57
+ "functions": 100,
58
+ "sonar_complexity": 100,
59
+ "pairingRate": 60,
60
+ "avgCommits": 51
61
+ },
62
+ "7de6343f370ff7cf": {
63
+ "rloc": 100,
64
+ "functions": 10,
65
+ "sonar_complexity": 1,
66
+ "pairingRate": 77,
67
+ "avgCommits": 56
68
+ },
69
+ "3d6521b0884ce9f4": {
70
+ "rloc": 400,
71
+ "functions": 10,
72
+ "sonar_complexity": 100,
73
+ "pairingRate": 32,
74
+ "avgCommits": 17
75
+ }
76
+ },
77
+ "attributeDescriptors": {},
78
+ "attributeTypes": {
79
+ "rloc": "absolute",
80
+ "functions": "absolute",
81
+ "sonar_complexity": "absolute",
82
+ "pairingRate": "relative"
83
+ }
84
+ },
85
+ "dependency": {
86
+ "edges": [
87
+ {
88
+ "fromId": "7de6343f370ff7cf",
89
+ "toId": "120a1569e3556450",
90
+ "attributes": {
91
+ "pairingRate": 89,
92
+ "avgCommits": 34
93
+ }
94
+ },
95
+ {
96
+ "fromId": "3d6521b0884ce9f4",
97
+ "toId": "120a1569e3556450",
98
+ "attributes": {
99
+ "pairingRate": 32,
100
+ "avgCommits": 17
101
+ }
102
+ },
103
+ {
104
+ "fromId": "ea70504d5daa3547",
105
+ "toId": "7de6343f370ff7cf",
106
+ "attributes": {
107
+ "pairingRate": 65,
108
+ "avgCommits": 22
109
+ }
110
+ }
111
+ ],
112
+ "attributeTypes": {
113
+ "pairingRate": "relative",
114
+ "avgCommits": "absolute"
115
+ },
116
+ "attributeDescriptors": {}
117
+ },
118
+ "domain": {
119
+ "nodes": {
120
+ "164ddff4bb1345e1": {
121
+ "words": [
122
+ { "text": "invoice", "frequency": 42, "tfidf": 0.81 },
123
+ { "text": "payment", "frequency": 30, "tfidf": 0.64 },
124
+ { "text": "customer", "frequency": 25, "tfidf": 0.55 },
125
+ { "text": "account", "frequency": 20, "tfidf": 0.52 },
126
+ { "text": "order", "frequency": 18, "tfidf": 0.41 },
127
+ { "text": "ledger", "frequency": 16, "tfidf": 0.44 },
128
+ { "text": "balance", "frequency": 14, "tfidf": 0.37 },
129
+ { "text": "shipment", "frequency": 12, "tfidf": 0.28 },
130
+ { "text": "transaction", "frequency": 9, "tfidf": 0.22 }
131
+ ]
132
+ },
133
+ "1ae98c1a93690d75": {
134
+ "words": [
135
+ { "text": "account", "frequency": 20, "tfidf": 0.52 },
136
+ { "text": "balance", "frequency": 14, "tfidf": 0.37 }
137
+ ]
138
+ },
139
+ "7de6343f370ff7cf": {
140
+ "words": [
141
+ { "text": "ledger", "frequency": 16, "tfidf": 0.44 },
142
+ { "text": "transaction", "frequency": 9, "tfidf": 0.22 }
143
+ ]
144
+ },
145
+ "3d6521b0884ce9f4": {
146
+ "words": [
147
+ { "text": "invoice", "frequency": 42, "tfidf": 0.81 },
148
+ { "text": "payment", "frequency": 30, "tfidf": 0.64 },
149
+ { "text": "customer", "frequency": 25, "tfidf": 0.55 },
150
+ { "text": "order", "frequency": 18, "tfidf": 0.41 },
151
+ { "text": "shipment", "frequency": 12, "tfidf": 0.28 }
152
+ ]
153
+ },
154
+ "ea70504d5daa3547": {
155
+ "words": [
156
+ { "text": "account", "frequency": 12, "tfidf": 0.52 },
157
+ { "text": "balance", "frequency": 5, "tfidf": 0.37 }
158
+ ]
159
+ },
160
+ "120a1569e3556450": {
161
+ "words": [
162
+ { "text": "balance", "frequency": 9, "tfidf": 0.37 },
163
+ { "text": "account", "frequency": 8, "tfidf": 0.52 }
164
+ ]
165
+ }
166
+ }
167
+ }
168
+ }
97
169
  }
@@ -1,46 +1,82 @@
1
1
  {
2
- "projectName": "Sample Project",
3
- "apiVersion": "1.2",
4
- "fileChecksum": "valid-md5-sample2",
5
- "nodes": [
6
- {
7
- "name": "root",
8
- "type": "Folder",
9
- "attributes": {},
10
- "children": [
11
- {
12
- "name": "bigLeaf.ts",
13
- "type": "File",
14
- "attributes": { "rloc": 120, "functions": 10, "sonar_complexity": 1 },
15
- "link": "http://www.google.de"
16
- },
17
- {
18
- "name": "ParentLeaf",
19
- "type": "Folder",
20
- "attributes": {},
21
- "children": [
22
- {
23
- "name": "smallLeaf.html",
24
- "type": "File",
25
- "attributes": { "rloc": 30, "functions": 101, "sonar_complexity": 80 }
26
- },
27
- {
28
- "name": "otherSmallLeaf.ts",
29
- "type": "File",
30
- "attributes": { "rloc": 70, "functions": 10, "sonar_complexity": 100 }
31
- },
32
- {
33
- "name": "sample2LeafMergedIn.kt",
34
- "type": "File",
35
- "attributes": { "rloc": 600, "functions": 10, "sonar_complexity": 1 },
36
- "link": "http://www.google.de"
37
- }
38
- ]
39
- }
40
- ]
41
- }
42
- ],
43
- "attributeTypes": {
44
- "nodes": { "rloc": "absolute", "functions": "absolute", "sonar_complexity": "absolute" }
45
- }
2
+ "meta": {
3
+ "projectName": "Sample Project",
4
+ "apiVersion": "2.0",
5
+ "checksum": "7faac66263000ff555df1cbd6c9c052b"
6
+ },
7
+ "files": [
8
+ {
9
+ "id": "164ddff4bb1345e1",
10
+ "name": "root",
11
+ "type": "Folder",
12
+ "children": [
13
+ {
14
+ "id": "1ae98c1a93690d75",
15
+ "name": "ParentLeaf",
16
+ "type": "Folder",
17
+ "children": [
18
+ {
19
+ "id": "ea70504d5daa3547",
20
+ "name": "otherSmallLeaf.ts",
21
+ "type": "File"
22
+ },
23
+ {
24
+ "id": "0b67463fe6066209",
25
+ "name": "sample2LeafMergedIn.kt",
26
+ "type": "File",
27
+ "link": "http://www.google.de"
28
+ },
29
+ {
30
+ "id": "120a1569e3556450",
31
+ "name": "smallLeaf.html",
32
+ "type": "File"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "id": "7de6343f370ff7cf",
38
+ "name": "bigLeaf.ts",
39
+ "type": "File",
40
+ "link": "http://www.google.de"
41
+ }
42
+ ]
43
+ }
44
+ ],
45
+ "lenses": {
46
+ "metrics": {
47
+ "attributes": {
48
+ "ea70504d5daa3547": {
49
+ "rloc": 70,
50
+ "functions": 10,
51
+ "sonar_complexity": 100
52
+ },
53
+ "0b67463fe6066209": {
54
+ "rloc": 600,
55
+ "functions": 10,
56
+ "sonar_complexity": 1
57
+ },
58
+ "120a1569e3556450": {
59
+ "rloc": 30,
60
+ "functions": 101,
61
+ "sonar_complexity": 80
62
+ },
63
+ "7de6343f370ff7cf": {
64
+ "rloc": 120,
65
+ "functions": 10,
66
+ "sonar_complexity": 1
67
+ }
68
+ },
69
+ "attributeDescriptors": {},
70
+ "attributeTypes": {
71
+ "rloc": "absolute",
72
+ "functions": "absolute",
73
+ "sonar_complexity": "absolute"
74
+ }
75
+ },
76
+ "dependency": {
77
+ "edges": [],
78
+ "attributeTypes": {},
79
+ "attributeDescriptors": {}
80
+ }
81
+ }
46
82
  }
@@ -1,40 +1,71 @@
1
1
  {
2
- "projectName": "Sample Project",
3
- "fileChecksum": "valid-md5-sample",
4
- "apiVersion": "1.2",
5
- "nodes": [
6
- {
7
- "name": "root",
8
- "type": "Folder",
9
- "attributes": {},
10
- "children": [
11
- {
12
- "name": "bigLeaf.ts",
13
- "type": "File",
14
- "attributes": { "rloc": 120, "functions": 10, "sonar_complexity": 1 },
15
- "link": "http://www.google.de"
16
- },
17
- {
18
- "name": "ParentLeaf",
19
- "type": "Folder",
20
- "attributes": {},
21
- "children": [
22
- {
23
- "name": "smallLeaf.html",
24
- "type": "File",
25
- "attributes": { "rloc": 30, "functions": 19, "sonar_complexity": 80 }
26
- },
27
- {
28
- "name": "otherSmallLeaf.ts",
29
- "type": "File",
30
- "attributes": { "rloc": 80, "functions": 10, "sonar_complexity": 100 }
31
- }
32
- ]
33
- }
34
- ]
35
- }
36
- ],
37
- "attributeTypes": {
38
- "nodes": { "rloc": "absolute", "functions": "absolute", "sonar_complexity": "absolute" }
39
- }
2
+ "meta": {
3
+ "projectName": "Sample Project",
4
+ "apiVersion": "2.0",
5
+ "checksum": "0f309a686f9338cfb8f8a147a2ac2219"
6
+ },
7
+ "files": [
8
+ {
9
+ "id": "164ddff4bb1345e1",
10
+ "name": "root",
11
+ "type": "Folder",
12
+ "children": [
13
+ {
14
+ "id": "1ae98c1a93690d75",
15
+ "name": "ParentLeaf",
16
+ "type": "Folder",
17
+ "children": [
18
+ {
19
+ "id": "ea70504d5daa3547",
20
+ "name": "otherSmallLeaf.ts",
21
+ "type": "File"
22
+ },
23
+ {
24
+ "id": "120a1569e3556450",
25
+ "name": "smallLeaf.html",
26
+ "type": "File"
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "id": "7de6343f370ff7cf",
32
+ "name": "bigLeaf.ts",
33
+ "type": "File",
34
+ "link": "http://www.google.de"
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "lenses": {
40
+ "metrics": {
41
+ "attributes": {
42
+ "ea70504d5daa3547": {
43
+ "rloc": 80,
44
+ "functions": 10,
45
+ "sonar_complexity": 100
46
+ },
47
+ "120a1569e3556450": {
48
+ "rloc": 30,
49
+ "functions": 19,
50
+ "sonar_complexity": 80
51
+ },
52
+ "7de6343f370ff7cf": {
53
+ "rloc": 120,
54
+ "functions": 10,
55
+ "sonar_complexity": 1
56
+ }
57
+ },
58
+ "attributeDescriptors": {},
59
+ "attributeTypes": {
60
+ "rloc": "absolute",
61
+ "functions": "absolute",
62
+ "sonar_complexity": "absolute"
63
+ }
64
+ },
65
+ "dependency": {
66
+ "edges": [],
67
+ "attributeTypes": {},
68
+ "attributeDescriptors": {}
69
+ }
70
+ }
40
71
  }
@@ -1,45 +1,81 @@
1
1
  {
2
- "projectName": "Sample Project 4",
3
- "fileChecksum": "valid-md5-sample-1",
4
- "apiVersion": "1.2",
5
- "nodes": [
6
- {
7
- "name": "rootLeaf",
8
- "type": "Folder",
9
- "attributes": {},
10
- "children": [
2
+ "meta": {
3
+ "projectName": "Sample Project 4",
4
+ "apiVersion": "2.0",
5
+ "checksum": "3bceb7bccb9ea08b9c4b34d7185eab66"
6
+ },
7
+ "files": [
11
8
  {
12
- "name": "aLeaf.ts",
13
- "type": "File",
14
- "attributes": { "rloc": 120, "functions": 10, "sonar_complexity": 1 },
15
- "link": "http://www.google.de"
16
- },
17
- {
18
- "name": "bLeaf",
19
- "type": "Folder",
20
- "attributes": {},
21
- "children": [
22
- {
23
- "name": "smallLeafOne.html",
24
- "type": "File",
25
- "attributes": { "rloc": 100, "functions": 28, "sonar_complexity": 80 }
26
- },
27
- {
28
- "name": "smallLeafTwo.ts",
29
- "type": "File",
30
- "attributes": { "rloc": 300, "functions": 5, "sonar_complexity": 150 }
9
+ "id": "164ddff4bb1345e1",
10
+ "name": "rootLeaf",
11
+ "type": "Folder",
12
+ "children": [
13
+ {
14
+ "id": "b07e0dd3bee14aa2",
15
+ "name": "aLeaf.ts",
16
+ "type": "File",
17
+ "link": "http://www.google.de"
18
+ },
19
+ {
20
+ "id": "63d2b916fc5d1ac0",
21
+ "name": "bLeaf",
22
+ "type": "Folder",
23
+ "children": [
24
+ {
25
+ "id": "981cfc8046a987cb",
26
+ "name": "smallLeafOne.html",
27
+ "type": "File"
28
+ },
29
+ {
30
+ "id": "14d6d2b98bb241c8",
31
+ "name": "smallLeafThree.ts",
32
+ "type": "File"
33
+ },
34
+ {
35
+ "id": "cdda43644c2e1e32",
36
+ "name": "smallLeafTwo.ts",
37
+ "type": "File"
38
+ }
39
+ ]
40
+ }
41
+ ]
42
+ }
43
+ ],
44
+ "lenses": {
45
+ "metrics": {
46
+ "attributes": {
47
+ "b07e0dd3bee14aa2": {
48
+ "rloc": 120,
49
+ "functions": 10,
50
+ "sonar_complexity": 1
51
+ },
52
+ "981cfc8046a987cb": {
53
+ "rloc": 100,
54
+ "functions": 28,
55
+ "sonar_complexity": 80
56
+ },
57
+ "14d6d2b98bb241c8": {
58
+ "rloc": 50,
59
+ "functions": 5,
60
+ "sonar_complexity": 150
61
+ },
62
+ "cdda43644c2e1e32": {
63
+ "rloc": 300,
64
+ "functions": 5,
65
+ "sonar_complexity": 150
66
+ }
31
67
  },
32
- {
33
- "name": "smallLeafThree.ts",
34
- "type": "File",
35
- "attributes": { "rloc": 50, "functions": 5, "sonar_complexity": 150 }
68
+ "attributeDescriptors": {},
69
+ "attributeTypes": {
70
+ "rloc": "absolute",
71
+ "functions": "absolute",
72
+ "sonar_complexity": "absolute"
36
73
  }
37
- ]
74
+ },
75
+ "dependency": {
76
+ "edges": [],
77
+ "attributeTypes": {},
78
+ "attributeDescriptors": {}
38
79
  }
39
- ]
40
80
  }
41
- ],
42
- "attributeTypes": {
43
- "nodes": { "rloc": "absolute", "functions": "absolute", "sonar_complexity": "absolute" }
44
- }
45
81
  }