rubrowser 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rubrowser/version.rb +1 -1
- data/public/css/application.css +6 -2
- data/public/javascript/toolbox.js +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa463c82a9510b20cb22bf00daeac6fc23bfab95
|
4
|
+
data.tar.gz: a5b0c4b8aab45182208e7b5811c682a3fc64fca8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9c9d3ab34e424af0e497a973cb70a6f858d64e59bbb6e949a3c3c222dcb1ec38f26587e1c841cdea5b18312939c5c6dcc451ae771cf6cf2a3ec8f8b61336c9e
|
7
|
+
data.tar.gz: dc90749e99a239e0815139671b152b3ad27f819b5233db28029014de5934be7b4dd0023aac29031d68f65df40687996c7d10decc88bdc6ba86577bfa1e90cbbe
|
data/Gemfile.lock
CHANGED
data/lib/rubrowser/version.rb
CHANGED
data/public/css/application.css
CHANGED
@@ -45,10 +45,14 @@ text.type{
|
|
45
45
|
font: 7px sans-serif;
|
46
46
|
}
|
47
47
|
|
48
|
-
.downlighted
|
48
|
+
.downlighted {
|
49
49
|
opacity: 0.1;
|
50
50
|
}
|
51
51
|
|
52
|
+
.type_ignored, .name_ignored{
|
53
|
+
display: none;
|
54
|
+
}
|
55
|
+
|
52
56
|
.highlighted, .name_highlighted, .type_highlighted{
|
53
57
|
fill: #008ef3;
|
54
58
|
}
|
@@ -130,4 +134,4 @@ ul, ol{
|
|
130
134
|
padding-left: 0px;
|
131
135
|
max-width: 100%;
|
132
136
|
overflow: auto;
|
133
|
-
}
|
137
|
+
}
|
@@ -77,10 +77,30 @@ $(document).on('change', '#ignore_by_namespace', function(){
|
|
77
77
|
var ignores_entries = $(this).val().trim();
|
78
78
|
var ignores = ignores_entries.split("\n");
|
79
79
|
|
80
|
+
// filtering definitions
|
81
|
+
var filtered_definitions = rubrowser.definitions.filter(function(d){
|
82
|
+
if(ignores_entries.length == 0){ return true; }
|
83
|
+
return ignores.filter(function(i){ return d.id.indexOf(i) > -1; }).length == 0;
|
84
|
+
})
|
85
|
+
|
86
|
+
rubrowser.simulation
|
87
|
+
.nodes(filtered_definitions)
|
88
|
+
|
80
89
|
rubrowser.node.classed('name_ignored', function(d){
|
81
90
|
if(ignores_entries.length == 0){ return false; }
|
82
91
|
return ignores.filter(function(i){ return d.id.indexOf(i) > -1; }).length > 0;
|
83
92
|
});
|
93
|
+
|
94
|
+
// filtering relations
|
95
|
+
var filtered_relations = rubrowser.relations.filter(function(d){
|
96
|
+
if(ignores_entries.length == 0){ return true; }
|
97
|
+
return ignores.filter(function(i){ return d.source.id.indexOf(i) > -1 || d.target.id.indexOf(i) > -1; }).length == 0;
|
98
|
+
})
|
99
|
+
|
100
|
+
rubrowser.simulation
|
101
|
+
.force("link")
|
102
|
+
.links(filtered_relations);
|
103
|
+
|
84
104
|
rubrowser.link.classed('name_ignored', function(d){
|
85
105
|
if(ignores_entries.length == 0){ return false; }
|
86
106
|
return ignores.filter(function(i){ return d.source.id.indexOf(i) > -1 || d.target.id.indexOf(i) > -1; }).length > 0;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubrowser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emad Elsaid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|