rails-erd-d3 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates/d3.html.erb +3 -3
- data/rails-erd-d3.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c643d8b2c3896e833a0dace32a7c7f9e9be32a86
|
4
|
+
data.tar.gz: d8d04fae05fbd2c149a957504c3f111ba69be9fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bebeda796ceff948d210a16fefd83e214e3f980391831a3c963b23654bc5fd15a67a6c899c388cb8f3f048d75d51bdf97c25ff41e3fed51a643f217784fecab3
|
7
|
+
data.tar.gz: 63ecd9c4aa04ecd4f8c0d6221fe2540c5c8c9bf2cd02bc61c9c0f5ec295b6b7620ec16bc00d6d9c366b89df0d063d055c3b29c7ec8081cc09f8a07720e82a38a
|
data/lib/templates/d3.html.erb
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
.data(data.links)
|
30
30
|
.enter()
|
31
31
|
.append('line')
|
32
|
-
.attr('class', function(d, i) { return
|
32
|
+
.attr('class', function(d, i) { return data.nodes[i].label })
|
33
33
|
.attr('stroke', function(d) { return colorScale(d.color) });
|
34
34
|
|
35
35
|
var node = svg.selectAll('.node')
|
@@ -39,8 +39,8 @@
|
|
39
39
|
.classed('node', true)
|
40
40
|
.style('cursor', 'pointer')
|
41
41
|
.attr('data-toggle', 'modal')
|
42
|
-
.attr('data-target', function(d, i) { return '#' +
|
43
|
-
.attr('class', function(d, i) { return d
|
42
|
+
.attr('data-target', function(d, i) { return '#' + d[i].label })
|
43
|
+
.attr('class', function(d, i) { return d[i].label })
|
44
44
|
.call(d3.drag()
|
45
45
|
.on('start', dragstarted)
|
46
46
|
.on('drag', dragged)
|
data/rails-erd-d3.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "rails-erd-d3"
|
7
7
|
spec.authors = ["Roman Krasavtsev"]
|
8
8
|
spec.email = ["mr.krasavtsev@gmail.com"]
|
9
|
-
spec.version = "0.2.
|
9
|
+
spec.version = "0.2.6"
|
10
10
|
spec.summary = "Entity–relationship diagram with D3.js for Rails application"
|
11
11
|
spec.description = "This gem creates entity–relationship diagram with D3.js for your Rails application"
|
12
12
|
spec.homepage = "https://github.com/RomanKrasavtsev/rails-erd-d3"
|